用于嵌套数据和层次结构的可拖放排序组件
ES6和CommonJS的建筑随每次发行而提供. 例如:
ZZ1ZZ
□ 使用量
(原始内容存档于2019-09-29). ```jsx import React, { Component } from 'react'; import SortableTree from 'react-sortable-tree'; import 'react-sortable-tree/style.css'; // This only needs to be imported once in your app
export default class Tree extends Component { constructor(props) { super(props);
this.state = {
treeData: [
{ title: 'Chicken', children: [{ title: 'Egg' }] },
{ title: 'Fish', children: [{ title: 'fingerline' }] },
],
};
}
render() { return (
);
} }
□ 道具
++ Project ++ 类型 ++
|
|:相去相去也暂无开放 Issues,或尚未同步最近议题。