element-plus/packages/components/tree
xuan 27bdf1f076
fix(components): [el-tree-select] fix lazy and multiple select node (#17903)
* fix(components): [el-tree-select] fix lazy and multiple select node

1.Fix the issue where non-leaf nodes cannot be selected when using lazy and multiple together.

2. Since the original code did not handle the selection of non-leaf nodes before expanding
lazy-loaded child nodes, additional processing was added to link the selection of parent and child
nodes.

3. Because the time required for lazyLoad after nodeExpand cannot be predicted, the triggering time
of the node-expand event in the tree has been adjusted to occur within the callback of the expand
function. This change only affects the timing when using lazyLoad.

BREAKING CHANGE :
no

closed closed Fixes #17232

* fix: test typecheck

* fix: onNodeExpand event and update function name
2024-09-01 20:59:31 +08:00
..
__tests__ test(components): [tree] setCheckedNodes with disabled node (#15753) 2024-02-02 15:06:43 +08:00
src fix(components): [el-tree-select] fix lazy and multiple select node (#17903) 2024-09-01 20:59:31 +08:00
style chore: enhance eslint rules (#6476) 2022-03-08 14:03:32 +08:00
index.ts fix(components): [tree] instance type missing (#17882) 2024-08-13 20:28:52 +08:00