From abe75238afe335a21b39d8752a835b091014a05b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E6=B3=BD=E5=9D=A4?= <984757534@qq.com> Date: Mon, 26 Jul 2021 16:45:20 +0800 Subject: [PATCH 1/2] docs(tree-select): size prop --- src/tree-select/demos/enUS/index.demo-entry.md | 1 + src/tree-select/demos/zhCN/index.demo-entry.md | 1 + 2 files changed, 2 insertions(+) diff --git a/src/tree-select/demos/enUS/index.demo-entry.md b/src/tree-select/demos/enUS/index.demo-entry.md index 1e0b28383..0db11282b 100644 --- a/src/tree-select/demos/enUS/index.demo-entry.md +++ b/src/tree-select/demos/enUS/index.demo-entry.md @@ -31,6 +31,7 @@ debug | filter | `(pattern: string, option: TreeSelectOption) => boolean` | - | Filter function. | | max-tag-count | `number \| 'responsive'` | `undefined` | Max tag count to be shown in multiple mode. Set to `'responsive'` will keep all tags in the same row. | | multiple | `boolean` | `false` | Whether to support multiple select. | +| size | `'small' \| 'medium' \| 'large'` | `'medium'` | Component size. | | options | `TreeSelectOption[]` | `[]` | Options. | | placeholder | `string` | `'Please Select'` | Placeholder. | | value | `string \| number \| Array \| null>` | `undefined` | Selected key (or keys when multiple). | diff --git a/src/tree-select/demos/zhCN/index.demo-entry.md b/src/tree-select/demos/zhCN/index.demo-entry.md index aaea712e7..f4d43d15e 100644 --- a/src/tree-select/demos/zhCN/index.demo-entry.md +++ b/src/tree-select/demos/zhCN/index.demo-entry.md @@ -32,6 +32,7 @@ debug | leaf-only | `boolean` | `false` | 是否开启仅末层树节点可选 | | max-tag-count | `number \| 'responsive'` | `undefined` | 多选时最多直接显示多少选项,设为 `'responsive'` 会保证最多一行 | | multiple | `boolean` | `false` | 是否支持多选 | +| size | `'small' \| 'medium' \| 'large'` | `'medium'` | 组件尺寸 | | options | `TreeSelectOption[]` | `[]` | 选项 | | placeholder | `string` | `'请选择'` | 占位信息 | | value | `string \| number \| Array \| null>` | `undefined` | 选中的 key | From 0e30fac8831f283d58fff8f98630113dc9ff1260 Mon Sep 17 00:00:00 2001 From: kungege <984757534@qq.com> Date: Mon, 26 Jul 2021 21:00:42 +0800 Subject: [PATCH 2/2] docs: order --- src/tree-select/demos/enUS/index.demo-entry.md | 2 +- src/tree-select/demos/zhCN/index.demo-entry.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tree-select/demos/enUS/index.demo-entry.md b/src/tree-select/demos/enUS/index.demo-entry.md index 0db11282b..28da095dd 100644 --- a/src/tree-select/demos/enUS/index.demo-entry.md +++ b/src/tree-select/demos/enUS/index.demo-entry.md @@ -31,9 +31,9 @@ debug | filter | `(pattern: string, option: TreeSelectOption) => boolean` | - | Filter function. | | max-tag-count | `number \| 'responsive'` | `undefined` | Max tag count to be shown in multiple mode. Set to `'responsive'` will keep all tags in the same row. | | multiple | `boolean` | `false` | Whether to support multiple select. | -| size | `'small' \| 'medium' \| 'large'` | `'medium'` | Component size. | | options | `TreeSelectOption[]` | `[]` | Options. | | placeholder | `string` | `'Please Select'` | Placeholder. | +| size | `'small' \| 'medium' \| 'large'` | `'medium'` | Component size. | | value | `string \| number \| Array \| null>` | `undefined` | Selected key (or keys when multiple). | | virtual-scroll | `boolean` | `true` | Whether to enable virtual scroll. | | on-blur | `(e: FocusEvent) => void` | `undefined` | Callback on blur. | diff --git a/src/tree-select/demos/zhCN/index.demo-entry.md b/src/tree-select/demos/zhCN/index.demo-entry.md index f4d43d15e..9d8859691 100644 --- a/src/tree-select/demos/zhCN/index.demo-entry.md +++ b/src/tree-select/demos/zhCN/index.demo-entry.md @@ -32,9 +32,9 @@ debug | leaf-only | `boolean` | `false` | 是否开启仅末层树节点可选 | | max-tag-count | `number \| 'responsive'` | `undefined` | 多选时最多直接显示多少选项,设为 `'responsive'` 会保证最多一行 | | multiple | `boolean` | `false` | 是否支持多选 | -| size | `'small' \| 'medium' \| 'large'` | `'medium'` | 组件尺寸 | | options | `TreeSelectOption[]` | `[]` | 选项 | | placeholder | `string` | `'请选择'` | 占位信息 | +| size | `'small' \| 'medium' \| 'large'` | `'medium'` | 组件尺寸 | | value | `string \| number \| Array \| null>` | `undefined` | 选中的 key | | virtual-scroll | `boolean` | `true` | 是否开启虚拟滚动 | | on-blur | `(e: FocusEvent) => void` | `undefined` | Blur 时的回调 |