chore: update dependencies

This commit is contained in:
xiaoxian521
2022-11-11 03:36:18 +08:00
parent c4839aa5f4
commit df71c7f75c
50 changed files with 1229 additions and 945 deletions

View File

@@ -21,7 +21,7 @@ const searchValue = ref("");
const { proxy } = getCurrentInstance();
const treeRef = ref<InstanceType<typeof ElTree>>();
let highlightMap = ref({});
const highlightMap = ref({});
const filterNode = (value: string, data: Tree) => {
if (!value) return true;
@@ -45,8 +45,8 @@ function nodeClick(value) {
}
function toggleRowExpansionAll(status) {
let nodes = (proxy.$refs["treeRef"] as any).store._getAllNodes();
for (var i = 0; i < nodes.length; i++) {
const nodes = (proxy.$refs["treeRef"] as any).store._getAllNodes();
for (let i = 0; i < nodes.length; i++) {
nodes[i].expanded = status;
}
}
@@ -63,7 +63,7 @@ watch(searchValue, val => {
});
onMounted(async () => {
let { data } = await getDeptList();
const { data } = await getDeptList();
treeData.value = handleTree(data as any);
});
</script>