在 postLoadItem 事件中加如下代码,可以实现
[JavaScript] 纯文本查看 复制代码 const allIdentityData = this.target.selector.allIdentityData;
if (allIdentityData.length === 1) {
setTimeout(() => {
// 点击第一个全选下级
this.target.selector.itemAreaNode.querySelector('[title="全选下级"]').click();
}, 50);
} |