树状结构加减号

This commit is contained in:
yanyizhou
2021-11-29 18:05:33 +08:00
parent 2f9e9c0b12
commit 3a64610ccf
2 changed files with 15 additions and 0 deletions
+8
View File
@@ -25,6 +25,7 @@
node-key="id"
style="height: 100%; overflow: auto;"
class="filter-tree tree-line"
icon-class="icon-tree"
@check-change="checkChange"
:data="treeData"
:props="defaultProps"
@@ -47,6 +48,7 @@
node-key="id"
style="height: 100%; overflow: auto;"
class="filter-tree tree-line"
icon-class="icon-tree"
:data="treeData1"
:props="defaultProps"
@check-change="checkChange2"
@@ -249,6 +251,12 @@
</script>
<style lang="less" scoped>
/deep/ .icon-tree {
margin: 0 5px 0 10px;
position: relative;
background: url('~@/assets/images/shangqi/img/tree-add.png');
background-size: 100% 100%;
}
/deep/.el-tree-node__content {
padding-left: 0px !important;
}