docs: fix typo (#7162)
parent
af383a34bc
commit
c1b4941def
|
@ -45,9 +45,9 @@ Select component to select value from options.
|
||||||
| getPopupContainer | Parent Node which the selector should be rendered to. Default to `body`. When position issues happen, try to modify it into scrollable content and position it relative. | function(triggerNode) | () => document.body | |
|
| getPopupContainer | Parent Node which the selector should be rendered to. Default to `body`. When position issues happen, try to modify it into scrollable content and position it relative. | function(triggerNode) | () => document.body | |
|
||||||
| labelInValue | whether to embed label in value, turn the format of value from `string` to `{key: string, label: vNodes, originLabel: any}`, originLabel (3.1) maintains the original type. If the node is constructed through a-select-option children, the value is a function (the default slot of a-select-option) | boolean | false | |
|
| labelInValue | whether to embed label in value, turn the format of value from `string` to `{key: string, label: vNodes, originLabel: any}`, originLabel (3.1) maintains the original type. If the node is constructed through a-select-option children, the value is a function (the default slot of a-select-option) | boolean | false | |
|
||||||
| listHeight | Config popup height | number | 256 | |
|
| listHeight | Config popup height | number | 256 | |
|
||||||
| loading | indicate loading state | Boolean | false | |
|
| loading | indicate loading state | boolean | false | |
|
||||||
| maxTagCount | Max tag count to show | number | - | |
|
| maxTagCount | Max tag count to show | number | - | |
|
||||||
| maxTagPlaceholder | Placeholder for not showing tags | slot/function(omittedValues) | - | |
|
| maxTagPlaceholder | Placeholder for not showing tags | slot \| function(omittedValues) | - | |
|
||||||
| maxTagTextLength | Max text length to show | number | - | |
|
| maxTagTextLength | Max text length to show | number | - | |
|
||||||
| menuItemSelectedIcon | The custom menuItemSelected icon | VNode \| slot | - | |
|
| menuItemSelectedIcon | The custom menuItemSelected icon | VNode \| slot | - | |
|
||||||
| mode | Set mode of Select | 'multiple' \| 'tags' | - | |
|
| mode | Set mode of Select | 'multiple' \| 'tags' | - | |
|
||||||
|
@ -56,7 +56,7 @@ Select component to select value from options.
|
||||||
| option | custom render option by slot | v-slot:option="{value, label, [disabled, key, title]}" | - | 2.2.5 |
|
| option | custom render option by slot | v-slot:option="{value, label, [disabled, key, title]}" | - | 2.2.5 |
|
||||||
| optionFilterProp | Which prop value of option will be used for filter if filterOption is true | string | value | |
|
| optionFilterProp | Which prop value of option will be used for filter if filterOption is true | string | value | |
|
||||||
| optionLabelProp | Which prop value of option will render as content of select. | string | `children` \| `label`(when use options) | |
|
| optionLabelProp | Which prop value of option will render as content of select. | string | `children` \| `label`(when use options) | |
|
||||||
| options | Data of the selectOption, manual construction work is no longer needed if this property has been set | array<{value, label, [disabled, key, title]}> | \[] | |
|
| options | Data of the selectOption, manual construction work is no longer needed if this property has been set | Array<{value, label, [disabled, key, title]}> | \[] | |
|
||||||
| placeholder | Placeholder of select | string\|slot | - | |
|
| placeholder | Placeholder of select | string\|slot | - | |
|
||||||
| placement | The position where the selection box pops up | `bottomLeft` `bottomRight` `topLeft` `topRight` | bottomLeft | 3.3.0 |
|
| placement | The position where the selection box pops up | `bottomLeft` `bottomRight` `topLeft` `topRight` | bottomLeft | 3.3.0 |
|
||||||
| removeIcon | The custom remove icon | VNode \| slot | - | |
|
| removeIcon | The custom remove icon | VNode \| slot | - | |
|
||||||
|
@ -78,7 +78,7 @@ Select component to select value from options.
|
||||||
| Events Name | Description | Arguments |
|
| Events Name | Description | Arguments |
|
||||||
| --- | --- | --- |
|
| --- | --- | --- |
|
||||||
| blur | Called when blur | function |
|
| blur | Called when blur | function |
|
||||||
| change | Called when select an option or input value change, or value of input is changed in combobox mode | function(value, option:Option/Array<Option>) |
|
| change | Called when select an option or input value change, or value of input is changed in combobox mode | function(value, option:Option \| Array<Option>) |
|
||||||
| deselect | Called when a option is deselected, the params are option's value (or key) . only called for multiple or tags, effective in multiple or tags mode only. | function(value, option:Option) |
|
| deselect | Called when a option is deselected, the params are option's value (or key) . only called for multiple or tags, effective in multiple or tags mode only. | function(value, option:Option) |
|
||||||
| dropdownVisibleChange | Call when dropdown open | function(open) |
|
| dropdownVisibleChange | Call when dropdown open | function(open) |
|
||||||
| focus | Called when focus | function |
|
| focus | Called when focus | function |
|
||||||
|
|
|
@ -56,7 +56,7 @@ coverDark: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*5oPiTqPxGAUAAA
|
||||||
| option | 通过 option 插槽,自定义节点 | v-slot:option="{value, label, [disabled, key, title]}" | - | 2.2.5 |
|
| option | 通过 option 插槽,自定义节点 | v-slot:option="{value, label, [disabled, key, title]}" | - | 2.2.5 |
|
||||||
| optionFilterProp | 搜索时过滤对应的 option 属性,不支持 children | string | value | |
|
| optionFilterProp | 搜索时过滤对应的 option 属性,不支持 children | string | value | |
|
||||||
| optionLabelProp | 回填到选择框的 Option 的属性值,默认是 Option 的子元素。比如在子元素需要高亮效果时,此值可以设为 `value`。 | string | `children` \| `label`(设置 options 时) | |
|
| optionLabelProp | 回填到选择框的 Option 的属性值,默认是 Option 的子元素。比如在子元素需要高亮效果时,此值可以设为 `value`。 | string | `children` \| `label`(设置 options 时) | |
|
||||||
| options | options 数据,如果设置则不需要手动构造 selectOption 节点 | array<{value, label, [disabled, key, title]}> | \[] | |
|
| options | options 数据,如果设置则不需要手动构造 selectOption 节点 | Array<{value, label, [disabled, key, title]}> | \[] | |
|
||||||
| placeholder | 选择框默认文字 | string\|slot | - | |
|
| placeholder | 选择框默认文字 | string\|slot | - | |
|
||||||
| placement | 选择框弹出的位置 | `bottomLeft` `bottomRight` `topLeft` `topRight` | bottomLeft | 3.3.0 |
|
| placement | 选择框弹出的位置 | `bottomLeft` `bottomRight` `topLeft` `topRight` | bottomLeft | 3.3.0 |
|
||||||
| removeIcon | 自定义的多选框清除图标 | VNode \| slot | - | |
|
| removeIcon | 自定义的多选框清除图标 | VNode \| slot | - | |
|
||||||
|
@ -78,7 +78,7 @@ coverDark: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*5oPiTqPxGAUAAA
|
||||||
| 事件名称 | 说明 | 回调参数 |
|
| 事件名称 | 说明 | 回调参数 |
|
||||||
| --- | --- | --- |
|
| --- | --- | --- |
|
||||||
| blur | 失去焦点的时回调 | function |
|
| blur | 失去焦点的时回调 | function |
|
||||||
| change | 选中 option,或 input 的 value 变化(combobox 模式下)时,调用此函数 | function(value, option:Option/Array<Option>) |
|
| change | 选中 option,或 input 的 value 变化(combobox 模式下)时,调用此函数 | function(value, option:Option \| Array<Option>) |
|
||||||
| deselect | 取消选中时调用,参数为选中项的 value (或 key) 值,仅在 multiple 或 tags 模式下生效 | function(value,option:Option) |
|
| deselect | 取消选中时调用,参数为选中项的 value (或 key) 值,仅在 multiple 或 tags 模式下生效 | function(value,option:Option) |
|
||||||
| dropdownVisibleChange | 展开下拉菜单的回调 | function(open) |
|
| dropdownVisibleChange | 展开下拉菜单的回调 | function(open) |
|
||||||
| focus | 获得焦点时回调 | function |
|
| focus | 获得焦点时回调 | function |
|
||||||
|
|
Loading…
Reference in New Issue