nicecode-v2/packages/biz/src/tree/index.md

35 lines
834 B
Markdown

---
category: Components
title: Tree 树 [废弃]
toc: content
demo:
cols: 2
group:
title: 数据展示
order: 2
---
:::warning{title=0.25.1之后版本已废弃}
组件迁移到 @zhst/meta
:::
## 代码演示
<code src="./demo/basic.tsx">基本用法</code>
<code src="./demo/customTitleRender.tsx">自定义渲染界面</code>
<code src="./demo/noOption.tsx">不展示配置项</code>
<code src="./demo/customOptions.tsx">自定义配置项</code>
## API
**额外参数可以参考 antd - Tree 组件**
| 参数 | 说明 | 类型 | 默认值 | 版本 |
| --- | --- | --- | --- | --- |
| data | 数据源 | Array[] | [] | - |
| titleRender | 子项自定义 | ReactNode、 undefined | - | - |
| showItemOption | 是否显示额外配置功能 | boolean | true | - |
| customOptions | 自定义配置项 | any | - | - |