frc-tree
v1.0.0-beta.0
Published
react component tree
Downloads
2
Readme
React Component Tree
在线 Demo
https://paul-long.github.io/react-components/#/tree
安装
npm install frc-tree --save-dev
Props
| props | describe | type | default value | | ------------ | ---------------------- | -------- | ------------------ | | className | className | string | | | indentSize | indentSize | number | | | multiple | select multiple | boolean | false | | nodes | tree nodes | Array | [] | | maxShowCount | max count | number | nodes.length or 50 | | nodeHeight | tree item height | number | 30 | | checkable | checked enable | boolean | false | | expandedKeys | expanded nodes | Array | [] | | checkedKeys | checked nodes | Array | [] | | selectedKeys | selected nodes | Array | [] | | onExpand | listen expand | Function | | | onCheck | listen check | Function | | | onSelect | listen select | Function | | | showIcon | show icon ,not default | boolean | false |
示例
import React from 'react';
import Tree from 'frc-tree';
class Demo extends React.Component {
render() {
return (
<div>
<Tree nodes={[]} />
</div>
);
}
}