<Tree class="tree-content" :data="treeData" :load-data="loadData" ref="tree" @on-select-change="selectChange" :render="renderContent"></Tree>
selectChange(selectedList) {
const node = selectedList[selectedList.length - 1];
console.log(selectedList);
if (node) {
this._loadData(node.id, response => {
if (!response) return;
let array = [];
response.forEach(item => {
array.push(item);
this._loadData(item.id, () => {});
});
node.children = array;
node.expend = true; //
});
}
},
selectChange is completely invalid, click on the text can not expand, find the reason