fix(components): [tree-select] disabled attribute does not take effect (#10670)

* fix(components): disabled attribute does not take effect

Add default values for attributes, fix #10648

closed #10648

* test: use toBeLessThanOrEqual

* fix(components): recovery code
This commit is contained in:
Qiang 2023-01-15 07:50:34 +08:00 committed by GitHub
parent 0e9e2f39a9
commit f65c5687da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,6 +57,10 @@ export const useTree = (
const propsMap = computed(() => ({
value: key.value,
label: 'label',
children: 'children',
disabled: 'disabled',
isLeaf: 'isLeaf',
...props.props,
}))