1.0.0-beta.0 • Published 5 years ago

frc-tree v1.0.0-beta.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

React Component Tree

npm package NPM downloads Dependencies DevDependencies Gitter Codecov Issues need help

在线 Demo

https://paul-long.github.io/react-components/#/tree

安装

rc-select

npm install frc-tree --save-dev

Props

propsdescribetypedefault value
classNameclassNamestring
indentSizeindentSizenumber
multipleselect multiplebooleanfalse
nodestree nodesArray[]
maxShowCountmax countnumbernodes.length or 50
nodeHeighttree item heightnumber30
checkablechecked enablebooleanfalse
expandedKeysexpanded nodesArray[]
checkedKeyschecked nodesArray[]
selectedKeysselected nodesArray[]
onExpandlisten expandFunction
onChecklisten checkFunction
onSelectlisten selectFunction
showIconshow icon ,not defaultbooleanfalse

示例

import React from 'react';
import Tree from 'frc-tree';

class Demo extends React.Component {
  render() {
    return (
      <div>
        <Tree nodes={[]} />
      </div>
    );
  }
}