diff --git a/src/views/ModelMain.less b/src/views/ModelMain.less index d69e24d..c7ea483 100644 --- a/src/views/ModelMain.less +++ b/src/views/ModelMain.less @@ -116,6 +116,17 @@ line-height: 35px; padding:0 0 0 10px; font-size: 14px; + position: relative; + .close{ + position: absolute; + right:0; + display: inline-flex; + padding:10px; + cursor:pointer; + &:hover{ + color:var(--el-color-primary) + } + } } } .section-tabs.el-tabs--card{ diff --git a/src/views/ModelMain.vue b/src/views/ModelMain.vue index 9c46b6a..8f92237 100644 --- a/src/views/ModelMain.vue +++ b/src/views/ModelMain.vue @@ -34,7 +34,9 @@
-
{{ sectionLeftTitle }}
+
+ {{ sectionLeftTitle }} +
@@ -85,14 +87,18 @@
-
{{ sectionRightTitle }}
+
+ {{ sectionRightTitle }} +
-
{{ sectionBottomTitle }}
+
+ {{ sectionBottomTitle }} +
@@ -219,6 +225,18 @@ export default { this.hideBottom = false this.sectionBottomTitle = name } + }, + closeMe(btn){ + if(btn==='hideLeft'){ + this.hideLeft = true + this.sectionLeftTitle = '' + }else if(btn==='hideRight'){ + this.hideRight = true + this.sectionRightTitle = '' + }else if(btn==='hideBottom'){ + this.hideBottom = true + this.sectionBottomTitle = '' + } } } }