1.0.0-beta.0 • Published 7 years ago
frc-tree v1.0.0-beta.0
React Component Tree
在线 Demo
https://paul-long.github.io/react-components/#/tree
安装
npm install frc-tree --save-devProps
| 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>
);
}
}1.0.0-beta.0
7 years ago
