react-nestable:拖放分层列表作为React组件

时间:2021-04-28 19:15:21
【文件属性】:
文件名称:react-nestable:拖放分层列表作为React组件
文件大小:285KB
文件格式:ZIP
更新时间:2021-04-28 19:15:21
react sortable draggable nestable dragndrop 目录 演示版 安装 npm install -save react-nestable 用法 import Nestable from 'react-nestable'; 每个项目都必须具有唯一的id以区分元素 const items = [ { id: 0, text: 'Andy' }, { id: 1, text: 'Harry', children: [ { id: 2, text: 'David' } ] }, { id: 3, text: 'Lisa' } ]; const renderItem = ({ item }) => item.text; const Example = () => ( ) 选项
【文件预览】:
react-nestable-master
----.gitignore(83B)
----.babelrc(47B)
----package.json(2KB)
----package-lock.json(315KB)
----src()
--------Icon()
--------index.js(60B)
--------utils.js(2KB)
--------example()
--------Nestable()
----LICENSE.md(735B)
----webpack.config.js(2KB)
----dist()
--------Icon()
--------index.js(308B)
--------utils.js(3KB)
--------example()
--------Nestable()
----tools()
--------devServer.js(913B)
----.eslintrc.js(333B)
----README.md(3KB)

网友评论