프로젝트
GitHub에서 보기
amsik/liquor-tree
소개
Vue.js 기반 트리 컴포넌트
웹 및 앱 개발What you can do
- mobile friendly
- events for every action
- flexible configuration
- any number of instances per page
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- -1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalLiquor Tree
A Vue tree component that allows you to present hierarchically organized data in a nice and logical manner.
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:
$ npm install liquor-tree
Yarn:
$ yarn add liquor-tree
Live Playground
To run that demo on your own computer:
- Clone this repository
npm installnpm run buildnpm 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
<!-- 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.jsons script section. There are 2 scripts:
npm run dev- it will open browser and you can play with codenpm run build- it will craete a module file inproductionmode
License
관련 프로젝트 살펴보기
불러오는 중…