docs: 📖 virtual default value

This commit is contained in:
afc163 2020-04-08 10:52:55 +08:00
parent ed5abc246c
commit b8af3de2a0
6 changed files with 6 additions and 6 deletions

View File

@ -55,7 +55,7 @@ Select component to select value from options.
| menuItemSelectedIcon | The custom menuItemSelected icon with multiple options | ReactNode | - | |
| tokenSeparators | Separator used to tokenize on tag/multiple mode | string\[] | | |
| value | Current selected option. | string\|string\[]<br />number\|number\[]<br />LabeledValue\|LabeledValue[] | - | |
| virtual | Disable virtual scroll when set to `false` | boolean | - | 4.1.0 |
| virtual | Disable virtual scroll when set to `false` | boolean | true | 4.1.0 |
| onBlur | Called when blur | function | - | |
| onChange | Called when select an option or input value change, or value of input is changed in combobox mode | function(value, option:Option/Array&lt;Option>) | - | |
| onDeselect | Called when a option is deselected, param is the selected option's value. Only called for multiple or tags, effective in multiple or tags mode only. | function(string\|number\|LabeledValue) | - | |

View File

@ -56,7 +56,7 @@ title: Select
| menuItemSelectedIcon | 自定义多选时当前选中的条目图标 | ReactNode | - | |
| tokenSeparators | 在 tags 和 multiple 模式下自动分词的分隔符 | string\[] | | |
| value | 指定当前选中的条目 | string\|string\[]<br />number\|number\[]<br />LabeledValue\|LabeledValue[] | - | |
| virtual | 设置 `false` 时关闭虚拟滚动 | boolean | - | 4.1.0 |
| virtual | 设置 `false` 时关闭虚拟滚动 | boolean | true | 4.1.0 |
| onBlur | 失去焦点时回调 | function | - | |
| onChange | 选中 option或 input 的 value 变化combobox 模式下)时,调用此函数 | function(value, option:Option/Array&lt;Option>) | - | |
| onDeselect | 取消选中时调用,参数为选中项的 value (或 key) 值,仅在 multiple 或 tags 模式下生效 | function(string\|number\|LabeledValue) | - | |

View File

@ -50,7 +50,7 @@ Tree selection control.
| treeNodeFilterProp | Will be used for filtering if `filterTreeNode` returns true | string | 'value' | |
| treeNodeLabelProp | Will render as content of select | string | 'title' | |
| value | To set the current selected treeNode(s). | string\|string\[] | - | |
| virtual | Disable virtual scroll when set to `false` | boolean | - | 4.1.0 |
| virtual | Disable virtual scroll when set to `false` | boolean | true | 4.1.0 |
| onChange | A callback function, can be executed when selected treeNodes or input value change | function(value, label, extra) | - | |
| onSearch | A callback function, can be executed when the search input changes. | function(value: string) | - | |
| onSelect | A callback function, can be executed when you select a treeNode. | function(value, node, extra) | - | |

View File

@ -51,7 +51,7 @@ title: TreeSelect
| treeNodeFilterProp | 输入项过滤对应的 treeNode 属性 | string | 'value' | |
| treeNodeLabelProp | 作为显示的 prop 设置 | string | 'title' | |
| value | 指定当前选中的条目 | string/string\[] | - | |
| virtual | 设置 `false` 时关闭虚拟滚动 | boolean | - | 4.1.0 |
| virtual | 设置 `false` 时关闭虚拟滚动 | boolean | true | 4.1.0 |
| onChange | 选中树节点时调用此函数 | function(value, label, extra) | - | |
| onSearch | 文本框值变化时回调 | function(value: string) | - | |
| onSelect | 被选中时调用 | function(value, node, extra) | - | |

View File

@ -39,7 +39,7 @@ Almost anything can be represented in a tree structure. Examples include directo
| switcherIcon | customize collapse/expand icon of tree node | ReactNode | - | |
| showLine | Shows a connecting line | boolean | false | |
| treeData | treeNodes data Array, if set it then you need not to construct children TreeNode. (key should be unique across the whole array) | array\<{ key, title, children, \[disabled, selectable] }> | - | |
| virtual | Disable virtual scroll when set to `false` | boolean | - | 4.1.0 |
| virtual | Disable virtual scroll when set to `false` | boolean | true | 4.1.0 |
| onCheck | Callback function for when the onCheck event occurs | function(checkedKeys, e:{checked: bool, checkedNodes, node, event, halfCheckedKeys}) | - | |
| onDragEnd | Callback function for when the onDragEnd event occurs | function({event, node}) | - | |
| onDragEnter | Callback function for when the onDragEnter event occurs | function({event, node, expandedKeys}) | - | |

View File

@ -40,7 +40,7 @@ subtitle: 树形控件
| switcherIcon | 自定义树节点的展开/折叠图标 | ReactNode | - |
| showLine | 是否展示连接线 | boolean | false | |
| treeData | treeNodes 数据,如果设置则不需要手动构造 TreeNode 节点key 在整个树范围内唯一) | array\<{key, title, children, \[disabled, selectable]}> | - | |
| virtual | 设置 `false` 时关闭虚拟滚动 | boolean | - | 4.1.0 |
| virtual | 设置 `false` 时关闭虚拟滚动 | boolean | true | 4.1.0 |
| onCheck | 点击复选框触发 | function(checkedKeys, e:{checked: bool, checkedNodes, node, event, halfCheckedKeys}) | - | |
| onDragEnd | dragend 触发时调用 | function({event, node}) | - | |
| onDragEnter | dragenter 触发时调用 | function({event, node, expandedKeys}) | - | |