vue-treeselect icon indicating copy to clipboard operation
vue-treeselect copied to clipboard

远程搜索和懒加载不能一起用吗

Open FKdamn opened this issue 2 years ago • 0 comments

加了:async="true"之后懒加载失效了 如果去掉这个懒加载又可以了,请问是什么问题 附: loadOptions的代码: loadOptions({ action, parentNode, searchQuery, callback }){ if(action === 'LOAD_CHILDREN_OPTIONS'){ getSealParentDept(parentNode.deptId).then(response => { // 子集树数据 parentNode.children = this.getTreeData(response.data); callback(); }) } else if(action === 'ASYNC_SEARCH'){ queryDeptByName(searchQuery).then(response => { if (response.data) { callback(null, this.getTreeData(response.data)); } }) } }, normalizer的代码: normalizer(node) { return { id:node.deptId, // isDisabled:node.disabled, label: node.deptName, children: node.children } },

FKdamn avatar Oct 31 '23 07:10 FKdamn