You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
loadData(row,key,treeNode){const{ load }=this.table;const{ lazyTreeNodeMap, treeData }=this.states;if(load&&!treeData[key].loaded){treeData[key].loading=true;load(row,treeNode,data=>{if(!Array.isArray(data)){thrownewError('[ElTable] data must be an array');}// FIXME add this line to fix treeData pointer to the newTreeData!const{ treeData }=this.states;treeData[key].loading=false;treeData[key].loaded=true;treeData[key].expanded=true;if(data.length){this.$set(lazyTreeNodeMap,key,data);}this.table.$emit('expand-change',row,true);});}}
Element UI version
2.15.2
OS/Browsers version
win10
Vue version
2.6.12
Reproduction Link
https://codepen.io/superchangme/project/editor/DOrgje
Steps to reproduce
1.点击第一个加载更多按钮
2.在3s内(第一个数据加载完成前)点击第二个加载更多按钮
What is Expected?
期望3s后,5s后,两个数据都能正常加载
What is actually happening?
发现第二个加载状态一直处于loading状态
The text was updated successfully, but these errors were encountered: