Skip to content

g770728y/valor-random-ui

Repository files navigation

valor-random-ui

工作中写的 不成体系 的 ui 组件, 有少量复用机会

Install

npm install --save valor-random-ui

组件介绍

FlatTree

只需要数据库返回如下数据: \

[{id, level, content} , {id, level, content}]
( 无需pid, children )

然后就可以使用 FlatTree 构建出树来. 在视效上, FlatTree 相当于一个列表, 通过缩进来展示树 � 由于FlatTree组件, 为一个纯展示组件 ( 自身不保持状态 ) 为方便起见, 提供了以下helper方法:

版本

V1.0.0

适配 antd 3.x

master

适配 antd 4.x

License

MIT © g770728y

About

工作中随机做的ui ( 不成体系 ) , 项目之间的复用度不高

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published