<!--
 * @Author: your name
 * @Date: 2021-09-14 11:03:43
 * @LastEditTime: 2021-11-29 14:52:57
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /MedicalWisdomCheckSys/src/components/MccsFileTree/README.md
-->





#### Demo


```js
  
   <MccsFileTree
        treeData={treeData}
        defaultSelected={defaultOpened}
        onSelectHandle={onSelectHandle}
        actionHandle={actionHandle}
        searchHandle={searchHandle}
        editable={true}
    />

```


#### Api 

```js
  
  onSelectHandle?: (data: MccsFileTree.childTree) => void, //选中回调
  actionHandle?: ({ type, data }: { type: string, data: MccsFileTree.childTree }) => void, //操作回调，包括编辑/删除/新增/搜索
  searchHandle?: (val: any) => void,

  switcherIcon?: ReactNode,   //废弃

  treeData: MccsFileTree.childTree[] | [],  //树形结构数据

  defaultSelected?: string,  //默认展开/选中 传id

  formContent?: ReactNode,  //新增/编辑表单

  editable?: boolean   

```