ElemeFE / element

A Vue.js 2.0 UI Toolkit for Web
https://element.eleme.io/
MIT License
54.12k stars 14.64k forks source link

[feature request] tree control adds the event of lazy loading completion #19905

Open fzn0268 opened 4 years ago

fzn0268 commented 4 years ago

Existing Component

Component Name

Tree 树形控件

Description

需要用已有Key对懒加载的Tree做勾选的回显,但懒加载完成的时间在Vue.$nextTick回调之后,在传入Vue.$nextTick的回调中调用setCheckedKeys方法出现找不到节点的报错,希望有懒加载完成的事件以供勾选的初始化

element-bot commented 4 years ago

Translation of this issue:

Existing Component

yes

Component Name

Tree control

Description

You need to check the lazy Tree loaded with the existing Key. However, after lazy callback completion, after calling the Vue.$nextTick callback, calling the setCheckedKeys method in the callback of the incoming Vue.$nextTick can not find the node's error. It is hoped that there will be lazy loading completed events for the initialization of the check.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.