From 49323809ea1da0da5de58dd89558488d7ccce54b Mon Sep 17 00:00:00 2001 From: panbibi <1265629139@qq.com> Date: Wed, 15 Feb 2023 17:20:12 +0800 Subject: [PATCH] =?UTF-8?q?doc(TreeSelect):=E4=BF=AE=E6=94=B9TreeSelect=20?= =?UTF-8?q?api=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/core/src/TreeSelect/README.md | 30 ++++++++------------------ 1 file changed, 9 insertions(+), 21 deletions(-) diff --git a/packages/core/src/TreeSelect/README.md b/packages/core/src/TreeSelect/README.md index 1d9398565..2d32ceca9 100644 --- a/packages/core/src/TreeSelect/README.md +++ b/packages/core/src/TreeSelect/README.md @@ -213,26 +213,14 @@ function Demo() { export default Demo ``` +### Props -### TransitionImage Props +| 参数 | 说明 | 类型 | 默认值 | +|------|------|-----|------| +| options | 级联数据 | TreeSelectOption[] | - | +| defaultValue | 默认选中项 | string[] | - | +| value | 选中项 | string[] | - | +| onChange | value 变化时触发 | (value: string[], extend: { options: TreeSelectOption[] }) => void | - | +| fieldNames | 自定义 options 中 label value children 的字段 | {{ label: string, value: string, children: string }} \| any | - | +| activeColor | 选中文本颜色 | `string` | - | -```ts -export interface TreeSelectOption { - [key: string]: any -} - -export type TreeSelectProps = { - // 级联数据 - options: TreeSelectOption[] - // 默认选中项 - defaultValue?: string[] - // 选中项 - value?: string[] - // value 变化时触发 - onChange?: (value: string[], extend: { options: TreeSelectOption[] }) => void - // 自定义 options 中 label value children 的字段 - fieldNames?: {{ label: string, value: string, children: string } } | any - // 选中文本颜色 - activeColor?:ColorValue -} -```