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

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

parent c7a0090f
...@@ -612,6 +612,13 @@ export default { ...@@ -612,6 +612,13 @@ export default {
.el-tree-node { .el-tree-node {
.el-tree-node__content { .el-tree-node__content {
height: 40px !important; height: 40px !important;
.el-tree-node__expand-icon.is-leaf{
color: transparent !important;
}
.el-tree-node__expand-icon {
color: #000;
font-size: 24px;
}
i { i {
display: inline-block; display: inline-block;
vertical-align: middle; vertical-align: middle;
......
...@@ -98,7 +98,8 @@ export default { ...@@ -98,7 +98,8 @@ export default {
treeData: [], treeData: [],
defaultExpandedKeys: [], defaultExpandedKeys: [],
defaultProps: { defaultProps: {
children: 'children' children: 'children',
isLeaf: 'leaf'
}, },
tabItems: [ tabItems: [
{ {
...@@ -282,6 +283,9 @@ export default { ...@@ -282,6 +283,9 @@ export default {
data.map((item) => { data.map((item) => {
if (item.extPositionLinks) { if (item.extPositionLinks) {
item.extPositionLinks = item.extPositionLinks.filter(val => val.target) item.extPositionLinks = item.extPositionLinks.filter(val => val.target)
item.extPositionLinks.forEach(element => {
element.leaf = true
})
item.children = item.extPositionLinks item.children = item.extPositionLinks
} }
}) })
...@@ -437,6 +441,13 @@ export default { ...@@ -437,6 +441,13 @@ export default {
.el-tree-node { .el-tree-node {
.el-tree-node__content { .el-tree-node__content {
height: 40px !important; height: 40px !important;
.el-tree-node__expand-icon.is-leaf{
color: transparent !important;
}
.el-tree-node__expand-icon {
color: #000;
font-size: 24px;
}
i { i {
display: inline-block; display: inline-block;
vertical-align: middle; 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