fix(通用功能): 修复模块节点搜索不能展开全部搜索的节点问题
--bug=1036029 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001036029
This commit is contained in:
parent
240cf0581d
commit
7fc07e0239
|
@ -228,7 +228,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
expandedKeys.value = result.map((item) => item[props.fieldNames.key]); // 搜索时,匹配的节点需要自动展开
|
result.forEach((item) => expandedKeys.value.push(item[props.fieldNames.key])); // 搜索时,匹配的节点需要自动展开
|
||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
:modules-count="modulesCount"
|
:modules-count="modulesCount"
|
||||||
@folder-node-select="handleFolderNodeSelect"
|
@folder-node-select="handleFolderNodeSelect"
|
||||||
@init="initModuleTree"
|
@init="initModuleTree"
|
||||||
|
:is-expand-all=true
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Reference in New Issue