Commit 800d25df authored by “lixuyan”'s avatar “lixuyan”

修改el-tree展开按钮的样式

parent c7a0090f
......@@ -612,6 +612,13 @@ export default {
.el-tree-node {
.el-tree-node__content {
height: 40px !important;
.el-tree-node__expand-icon.is-leaf{
color: transparent !important;
}
.el-tree-node__expand-icon {
color: #000;
font-size: 24px;
}
i {
display: inline-block;
vertical-align: middle;
......
......@@ -98,7 +98,8 @@ export default {
treeData: [],
defaultExpandedKeys: [],
defaultProps: {
children: 'children'
children: 'children',
isLeaf: 'leaf'
},
tabItems: [
{
......@@ -282,6 +283,9 @@ export default {
data.map((item) => {
if (item.extPositionLinks) {
item.extPositionLinks = item.extPositionLinks.filter(val => val.target)
item.extPositionLinks.forEach(element => {
element.leaf = true
})
item.children = item.extPositionLinks
}
})
......@@ -437,6 +441,13 @@ export default {
.el-tree-node {
.el-tree-node__content {
height: 40px !important;
.el-tree-node__expand-icon.is-leaf{
color: transparent !important;
}
.el-tree-node__expand-icon {
color: #000;
font-size: 24px;
}
i {
display: inline-block;
vertical-align: middle;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment