# Liquor Tree
A Vue tree component that allows you to present hierarchically organized data in a nice and logical manner.
[documentation](https://amsik.github.io/liquor-tree/) | [demos](https://amsik.github.io/liquor-tree/#Examples)
## Features
* drag&drop
* mobile friendly
* events for every action
* flexible configuration
* any number of instances per page
* multi selection
* keyboard navigation
* filtering
* sorting
* integration with Vuex
## Installation
**Npm:**
```shell
$ npm install liquor-tree
```
**Yarn:**
```shell
$ yarn add liquor-tree
```
## Live Playground
To run that demo on your own computer:
* Clone this repository
* `npm install`
* `npm run build`
* `npm run storybook`
* Visit `http://localhost:9001/`
There are a lot of examples for you. All sources of stories are located in `liquor-tree/docs/storybook/stories`.
## Usage
```html
<!-- Vue Component -->
<template>
<tree
:data="items"
:options="options"
ref="tree"
/>
</template>
<script>
import Vue from 'Vue'
import LiquorTree from 'liquor-tree'
Vue.use(LiquorTree)
export default {
...
data() {
return {
items: [
{text: 'Item 1'},
{text: 'Item 2'},
{text: 'Item 3', children: [
{text: 'Item 3.1'},
{text: 'Item 3.2'}
]}
],
options: {
checkbox: true
}
}
}
...
}
</script>
```
## Development
Check out the `package.json`s script section. There are 2 scripts:
- `npm run dev` - it will open browser and you can *play* with code
- `npm run build` - it will craete a module file in `production` mode
## License
[MIT](https://opensource.org/licenses/MIT)
没有合适的资源?快使用搜索试试~ 我知道了~
liquor-tree:基于Vue.js的树组件liquor-tree-master
共94个文件
js:33个
json:21个
html:15个
需积分: 5 0 下载量 65 浏览量
2023-11-23
17:21:11
上传
评论
收藏 410KB RAR 举报
温馨提示
liquor-tree:基于Vue.js的树组件liquor-tree-master
资源推荐
资源详情
资源评论
收起资源包目录
liquor-tree:基于Vue.js的树组件liquor-tree-master.rar (94个子文件)
liquor-tree:基于Vue.js的树组件liquor-tree-master
liquor-tree-master
.editorconfig 244B
babel.config.js 66B
.eslintrc.js 310B
.travis.yml 78B
jest.config.js 369B
src
lib
Tree.js 14KB
Selection.js 1014B
Node.js 13KB
main.js 252B
utils
request.js 725B
uuidV4.js 265B
assert.js 110B
recurse.js 296B
sort.js 715B
stack.js 528B
find.js 2KB
objectToNode.js 1KB
fetchDelay.js 100B
treeParser.js 2KB
keyboardNavigation.js 2KB
components
DraggableNode.vue 624B
TreeRoot.vue 4KB
NodeContent.vue 1KB
TreeNode.vue 10KB
mixins
DndMixin.js 6KB
TreeMixin.js 5KB
LICENSE 1KB
tests
lib
Node.spec.js 5KB
setupTests.js 81B
utils
objectToNode.spec.js 2KB
stack.spec.js 648B
demo
pages
events.html 7KB
custom.html 4KB
checkboxes.html 5KB
basic-usage.html 7KB
updating.html 1KB
custom-theme.html 6KB
exporting.html 4KB
editing.html 2KB
filtering.html 3KB
vuex.html 4KB
async.html 4KB
sorting.html 4KB
dnd.html 5KB
big-data.html 2KB
assets
style.css 2KB
data
sorting.json 2KB
fetch-example.json 1KB
filtering-custom.json 4KB
fetch0
data-1.json 152B
data-root.json 198B
data-2.json 357B
events
2.json 224B
1.json 153B
3.json 396B
editing.json 3KB
devdocs-menu.json 63KB
filtering.json 3KB
img
arrow.png 253B
loading.gif 92KB
menu.js 2KB
vue.js 283KB
index.html 1KB
docs
storybook
addons.js 316B
public
fetch0
data-1.json 152B
data-root.json 198B
data-2.json 123B
data-3.json 178B
stories
options.js 3KB
async.js 5KB
v-model.js 3KB
index.js 3KB
config.js 322B
hexo
_config.yml 2KB
source
_data
nav.yml 2KB
index.md 26KB
package.json 519B
themes
liquor
_config.yml 72B
source
img
vue-logo.png 2KB
css
_typography.scss 807B
docs.scss 226B
_table.scss 341B
_content.scss 913B
_code.scss 3KB
_menu.scss 1KB
package.json 262B
layout
default.swig 1KB
package-lock.json 128KB
.gitignore 65B
package.json 2KB
rollup.config.js 1KB
package-lock.json 826KB
.gitignore 907B
README.md 2KB
共 94 条
- 1
资源评论
温柔-的-女汉子
- 粉丝: 931
- 资源: 4012
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- TG-2024-05-23-204718255.mp4
- 候志强@181 5428 8938_20240420112107.amr
- spispispispispi
- 实验二:IP协议分析.zip
- 驱动代码驱动代码驱动代码驱动代码
- SVID_20240523_141155_1.mp4
- Code for the complete guide to tkinter tutorial
- 关于百货中心供应链管理系统.zip
- SimpleFolderIcon-master 修改Unity的Project下的文件夹图标
- A python Tkinter widget to display tile based maps
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功