docs(tree-select): watch-props

This commit is contained in:
07akioni 2023-12-03 21:52:28 +08:00
parent a638db9822
commit b1acfe9d8a
2 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ debug.vue
| to | `string \| HTMLElement \| false` | `body` | Container node of the menu. `false` will keep it not detached. | |
| value | `string \| number \| Array<string \| number> \| null>` | `undefined` | Selected key (or keys when multiple). | |
| virtual-scroll | `boolean` | `true` | Whether to enable virtual scrolling. | |
| watch-props | `Array<'defaultCheckedKeys' \| 'defaultSelectedKeys' \|'defaultExpandedKeys'>` | `undefined` | Default prop names that needed to be watched. Components will be updated after the prop is changed. Note: the `watch-props` itself is not reactive. | |
| watch-props | `Array<'defaultCheckedKeys' \| 'defaultSelectedKeys' \|'defaultExpandedKeys'>` | `undefined` | Default prop names that needed to be watched. Components will be updated after the prop is changed. Note: the `watch-props` itself is not reactive. | NEXT_VERSION |
| on-blur | `(e: FocusEvent) => void` | `undefined` | Callback on blur. | |
| on-focus | `(e: FocusEvent) => void` | `undefined` | Callback on focus. | |
| on-load | `(node: TreeSelectOption) => Promise<void>` | `undefined` | Callback function for asynchronously loading data. | 2.27.0 |

View File

@ -65,7 +65,7 @@ render-debug.vue
| to | `string \| HTMLElement \| false` | `body` | 菜单的容器节点,`false` 会待在原地 | |
| value | `string \| number \| Array<string \| number> \| null>` | `undefined` | 选中的 key | |
| virtual-scroll | `boolean` | `true` | 是否开启虚拟滚动 | |
| watch-props | `Array<'defaultCheckedKeys' \| 'defaultSelectedKeys' \|'defaultExpandedKeys'>` | `undefined` | 需要检测变更的默认属性,检测后组件状态会更新。注意:`watch-props` 本身不是响应式的 | |
| watch-props | `Array<'defaultCheckedKeys' \| 'defaultSelectedKeys' \|'defaultExpandedKeys'>` | `undefined` | 需要检测变更的默认属性,检测后组件状态会更新。注意:`watch-props` 本身不是响应式的 | NEXT_VERSION |
| on-blur | `(e: FocusEvent) => void` | `undefined` | Blur 时的回调 | |
| on-focus | `(e: FocusEvent) => void` | `undefined` | Focus 时的回调 | |
| on-load | `(node: TreeSelectOption) => Promise<void>` | `undefined` | 异步加载数据的回调函数 | 2.27.0 |