增加表格重置

This commit is contained in:
龙运模
2024-07-30 10:08:04 +08:00
parent 337ed6fbb0
commit 67f098aa07
3 changed files with 50 additions and 16 deletions
+8 -3
View File
@@ -11,12 +11,11 @@
:props="defaultProps"
node-key="id"
:expand-on-click-node="false"
default-expand-all
@node-click="getNodes"
>
<template #default="{ node }">
<span class="custom-tree-node">
<span><el-icon><sc-icon-Folder/></el-icon> {{ node.data.name }}</span>
<span class="treeName"><el-icon><sc-icon-Folder/></el-icon> {{ node.data.name }}</span>
</span>
</template>
</el-tree>
@@ -131,8 +130,14 @@ export default {
}
}
.treeMain{
padding: 5px;
padding: 5px 0;
border-radius: 4px;
border: 1px solid rgba(0,0,0,0.12);
.treeName{
display: flex;align-items: center;
.el-icon{
margin-right: 8px;
}
}
}
</style>