Skip to content

Latest commit

 

History

History
27 lines (26 loc) · 817 Bytes

README.md

File metadata and controls

27 lines (26 loc) · 817 Bytes

  static propTypes = {
    onSelect: PropTypes.func,
    value: PropTypes.oneOfType([
      PropTypes.arrayOf(PropTypes.shape({
        key: PropTypes.string.isRequired,
        label: PropTypes.string,
      })),
      PropTypes.shape({
        key: PropTypes.string.isRequired,
        label: PropTypes.string,
      })
    ]),
    multiple: PropTypes.bool,
    onlyCheckLeaf: PropTypes.bool,
    treeDefaultExpandedKeys: PropTypes.arrayOf(PropTypes.string),
    treeDefaultExpandAll: PropTypes.bool,
    treeData: PropTypes.arrayOf(PropTypes.shape({
      key: PropTypes.string.isRequired,
      label: PropTypes.string.isRequired,
      disabled: PropTypes.bool,
      children: PropTypes.array,
    })).isRequired
  }