table-tree
v1.0.2
Published
table tree
Downloads
2
Readme
table-tree
使用方式
npm i table-tree --save
or
yarn add table-tree
DEMO
import TableTree from 'table-tree'
<TableTree data={data} />
数据格式
export default [{ title: "", checked: false, key: 13, children: [{ title: "", checked: false, key: 23, fkey: 13, children: [{ title: "", checked: false, key: 6, fkey: 23, children:[{ title: "", checked: false, key: 61, fkey: 6 },{ title: "", checked: false, key: 62, fkey: 6 }] }, { title: "", checked: false, key: 7, fkey: 23 }, { title: "", checked: false, key: 8, fkey: 23 }] }, { title: "", checked: false, key: 32, fkey: 13, children: [{ title: "", checked: false, key: 9, fkey: 32, }, { title: "", checked: false, key: 10, fkey: 32, }] }, { title: "", checked: false, key: 4, fkey: 13, }, { title: "", checked: false, key: 5, fkey: 13, }] }]