0.0.8 • Published 3 years ago

v-simple-tree v0.0.8

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

v-simple-tree

一个简单的树状结构组件,用法如下:

import SimpleTree from 'simple-tree'
const tree = {
  l: 'tree',
  i: '1',
  c: [
    { l: 'foo', i: '2' },
    { l: 'bar', i: '3' },
    {
      l: 'baz',
      i: '4',
      c: [
        { l: '李雷', i: '5' },
        { l: '韩梅梅', i: '6' },
      ],
    },
  ],
}

const st = new SimpleTree(tree, '#root')

st.onclick = item => {
  console.log(item)
}
0.0.8

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago