树状结构加减号

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
+7
View File
@@ -23,6 +23,7 @@
class="filter-tree tree-line"
:data="treeData"
:props="defaultProps"
icon-class="icon-tree"
:check-strictly="true"
:current-node-key="nodeKeyId"
node-key="id"
@@ -169,6 +170,12 @@ export default {
</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;
}