From e2c9eb37aceaf6fc1146859b4b2769fa0e26325e Mon Sep 17 00:00:00 2001 From: zhanglecong <07akioni2@gmail.com> Date: Thu, 21 Dec 2023 20:14:22 +0800 Subject: [PATCH] docs: format --- CHANGELOG.en-US.md | 1 + src/cascader/demos/enUS/index.demo-entry.md | 2 +- src/cascader/demos/zhCN/index.demo-entry.md | 2 +- src/select/demos/enUS/index.demo-entry.md | 2 +- src/select/demos/zhCN/index.demo-entry.md | 2 +- src/tree-select/demos/enUS/index.demo-entry.md | 2 +- 6 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.en-US.md b/CHANGELOG.en-US.md index 64d91eeb8..29e18e2ec 100644 --- a/CHANGELOG.en-US.md +++ b/CHANGELOG.en-US.md @@ -43,6 +43,7 @@ - `n-cascader` adds `ellipsis-tag-popover-props` prop. - `n-select` adds `ellipsis-tag-popover-props` prop. - `n-tree-select` adds `ellipsis-tag-popover-props` prop. + ## 2.36.0 ### Fixes diff --git a/src/cascader/demos/enUS/index.demo-entry.md b/src/cascader/demos/enUS/index.demo-entry.md index bbbf5b551..b8ed849e8 100644 --- a/src/cascader/demos/enUS/index.demo-entry.md +++ b/src/cascader/demos/enUS/index.demo-entry.md @@ -34,6 +34,7 @@ status.vue | default-value | `string \| number \| Array \| null` | `null` | Data selected by default if no value is set. | | | disabled | `boolean` | `false` | Whether to disable the cascader. | | | disabled-field | `string` | `'disabled'` | The disabled field in `CascaderOption`. | 2.32.2 | +| ellipsis-tag-popover-props | `PopoverProps` | `undefined` | the `popover` properties of the preview ellipsis tag | NEXT_VERSION | | expand-trigger | `'click' \| 'hover'` | `'click'` | If `remote` is set, `'hover'` won't work. | | | filterable | `boolean` | `false` | Note: If `remote` is set, this won't have any effect. | | | filter | `(pattern: string, option: CascaderOption, path: CascaderOption[]) => boolean` | A string based filter algorithm. | Filter function of the cascader. | | @@ -41,7 +42,6 @@ status.vue | value-field | `string` | `'value'` | The value field in `CascaderOption`. | | | label-field | `string` | `'label'` | The label field in `CascaderOption`. | | | max-tag-count | `number \| 'responsive'` | `undefined` | Max tag count in multiple select mode. `responsive` will keep all the tags in single line. | | -| ellipsis-tag-popover-props | `PopoverProps` | `undefined` | the `popover` properties of the preview ellipsis tag | NEXT_VERSION | | menu-props | `HTMLAttributes` | `undefined` | The menu's dom props. | 2.27.0 | | multiple | `boolean` | `false` | Whether to allow multiple options being selected. | | | options | `CascaderOption[]` | `[]` | Options of the cascader. | | diff --git a/src/cascader/demos/zhCN/index.demo-entry.md b/src/cascader/demos/zhCN/index.demo-entry.md index 6cd3550a8..546e985be 100644 --- a/src/cascader/demos/zhCN/index.demo-entry.md +++ b/src/cascader/demos/zhCN/index.demo-entry.md @@ -35,6 +35,7 @@ default-value-debug.vue | default-value | `string \| number \| Array \| null` | `null` | 级联菜单默认选中的数据 | | | disabled | `boolean` | `false` | 是否禁用 | | | disabled-field | `string` | `'disabled'` | 替代 `CascaderOption` 中的 disabled 字段名 | 2.32.2 | +| ellipsis-tag-popover-props | `PopoverProps` | `undefined` | `tag` 过多省略显示时,预览弹出 `popover` 的属性 | NEXT_VERSION | | expand-trigger | `'click' \| 'hover'` | `'click'` | 在 `remote` 被设定时 `'hover'` 不生效 | | | filterable | `boolean` | `false` | `remote` 被设定时不生效 | | | filter | `(pattern: string, option: CascaderOption, path: CascaderOption[]) => boolean` | 一个基于字符串的过滤算法 | 过滤选项的函数 | | @@ -42,7 +43,6 @@ default-value-debug.vue | value-field | `string` | `'value'` | 替代 `CascaderOption` 中的 value 字段名 | | | label-field | `string` | `'label'` | 替代 `CascaderOption` 中的 label 字段名 | | | max-tag-count | `number \| 'responsive'` | `undefined` | 多选标签的最大显示数量,`responsive` 会将所有标签保持在一行 | | -| ellipsis-tag-popover-props | `PopoverProps` | `undefined` | `tag` 过多省略显示时,预览弹出 `popover` 的属性 | NEXT_VERSION | | menu-props | `HTMLAttributes` | `undefined` | 菜单的 DOM 属性 | 2.27.0 | | multiple | `boolean` | `false` | 是否支持多选 | | | options | `CascaderOption[]` | `[]` | 填充的 options 数据 | | diff --git a/src/select/demos/enUS/index.demo-entry.md b/src/select/demos/enUS/index.demo-entry.md index 07f8ff70b..807de3743 100644 --- a/src/select/demos/enUS/index.demo-entry.md +++ b/src/select/demos/enUS/index.demo-entry.md @@ -43,6 +43,7 @@ custom-field.vue | clear-filter-after-select | `boolean` | `true` | When multiple and filter is true, whether to clear filter keyword after select an option. | 2.25.2 | | default-value | `Array \| string \| number \| null` | `null` | Default value. | | | disabled | `boolean` | `false` | Whether to disable the select. | | +| ellipsis-tag-popover-props | `PopoverProps` | `undefined` | the `popover` properties of the preview ellipsis tag | NEXT_VERSION | | fallback-option | `false \| (value: string \| number) => SelectOption` | `value => ({ label: '' + value, value })` | The option to be created using the value which has no corresponding option value. If set to `false`, the fallback option won't be created and displayed. | | | filterable | `boolean` | `false` | Whether options can be filtered. | | | filter | `(pattern: string, option: Object) => boolean` | String search method. | Filter function. | | @@ -52,7 +53,6 @@ custom-field.vue | label-field | `string` | `'label'` | Field name of option label. | 2.29.1 | | loading | `boolean` | `false` | Whether to show a loading state. | | | max-tag-count | `number \| 'responsive'` | `undefined` | Maximum selected values to display while in `multiple` mode. `responsive` will keep all the tags in single line. | | -| ellipsis-tag-popover-props | `PopoverProps` | `undefined` | the `popover` properties of the preview ellipsis tag | NEXT_VERSION | | menu-props | `HTMLAttributes` | `undefined` | The menu's dom props. | | | multiple | `boolean` | `false` | Whether to allow selecting multiple values. | | | node-props | `(option: SelectOption \| SelectGroupOption) => object` | `undefined` | Option's DOM attrs generator. | 2.32.2 | diff --git a/src/select/demos/zhCN/index.demo-entry.md b/src/select/demos/zhCN/index.demo-entry.md index ae2fa1522..8bfdaedcb 100644 --- a/src/select/demos/zhCN/index.demo-entry.md +++ b/src/select/demos/zhCN/index.demo-entry.md @@ -53,6 +53,7 @@ create-debug.vue | clear-filter-after-select | `boolean` | `true` | 是否在可过滤和多选的情况下选中一个选项后保留当前的搜索关键词 | 2.25.2 | | default-value | `Array \| string \| number \| null` | `null` | 非受控模式下的默认值 | | | disabled | `boolean` | `false` | 是否禁用 | | +| ellipsis-tag-popover-props | `PopoverProps` | `undefined` | `tag` 过多省略显示时,预览弹出 `popover` 的属性 | NEXT_VERSION | | fallback-option | `false \| (value: string \| number) => SelectOption` | `value => ({ label: '' + value, value })` | 在传入的选项中没有对应当前值的选项时,这个值应该对应的选项。如果设为 `false`,不会为找不到对应选项的值生成回退选项也不会显示它,未在选项中的值会被视为不合法,操作过程中会被组件清除掉 | | | filterable | `boolean` | `false` | 是否可以过滤 | | | filter | `(pattern: string, option: object) => boolean` | 一个简单的字符串搜索算法 | 过滤器函数 | | @@ -62,7 +63,6 @@ create-debug.vue | label-field | `string` | `'label'` | 选项 label 的字段名 | 2.29.1 | | loading | `boolean` | `false` | 是否为加载状态 | | | max-tag-count | `number \| 'responsive'` | `undefined` | 多选标签的最大显示数量,`responsive` 会将所有标签保持在一行 | | -| ellipsis-tag-popover-props | `PopoverProps` | `undefined` | `tag` 过多省略显示时,预览弹出 `popover` 的属性 | NEXT_VERSION | | menu-props | `HTMLAttributes` | `undefined` | 菜单的 DOM 属性 | | | multiple | `boolean` | `false` | 是否为多选 | | | node-props | `(option: SelectOption \| SelectGroupOption) => object` | `undefined` | 选项的 DOM 属性生成函数 | 2.32.2 | diff --git a/src/tree-select/demos/enUS/index.demo-entry.md b/src/tree-select/demos/enUS/index.demo-entry.md index 4160d80b0..c59432987 100644 --- a/src/tree-select/demos/enUS/index.demo-entry.md +++ b/src/tree-select/demos/enUS/index.demo-entry.md @@ -35,6 +35,7 @@ debug.vue | default-expand-all | `boolean` | `false` | Expand all nodes by default. | | | default-expanded-keys | `Array` | `[]` | Expand specific keys by default. | | | disabled | `boolean` | `false` | Disabled state. | | +| ellipsis-tag-popover-props | `PopoverProps` | `undefined` | the `popover` properties of the preview ellipsis tag | NEXT_VERSION | | expanded-keys | `Array` | `undefined` | Collection of expanded keys. | | | indeterminate-keys | `Array` | `undefined` | Indeterminate keys of the tree. | | | filterable | `boolean` | `false` | Whether to show a filter. | | @@ -44,7 +45,6 @@ debug.vue | disabled-field | `string` | `'disabled'` | The disabled field used for `TreeSelectOption`. | 2.32.2 | | loading | `boolean` | `false` | Whether it's loading. | 2.28.3 | | max-tag-count | `number \| 'responsive'` | `undefined` | Maximum number of selected options to show before the list is truncated. `'responsive'` will keep all of the selected options in one row. | | -| ellipsis-tag-popover-props | `PopoverProps` | `undefined` | the `popover` properties of the preview ellipsis tag | NEXT_VERSION | | menu-props | `HTMLAttributes` | `undefined` | The menu's dom props. | 2.22.0 | | multiple | `boolean` | `false` | Allow selecting multiple options. | | | node-props | `(info: { option: TreeSelectOption }) => HTMLAttributes` | `undefined` | HTML attributes of node. | 2.30.7 |