diff --git a/src/views/ModelMain.less b/src/views/ModelMain.less index d69e24d..8c45a22 100644 --- a/src/views/ModelMain.less +++ b/src/views/ModelMain.less @@ -116,6 +116,29 @@ line-height: 35px; padding:0 0 0 10px; font-size: 14px; + position: relative; + display: flex; + &>.el-input{ + flex:1; + margin:4px 30px 4px 10px; + } + .close{ + position: absolute; + right:0; + display: inline-flex; + padding:10px; + cursor:pointer; + &:hover{ + color:var(--el-color-primary) + } + } + } + } + .section-bottom{ + .section-item-wrap{ + &>.title >.el-input{ + flex:none; + } } } .section-tabs.el-tabs--card{ diff --git a/src/views/ModelMain.vue b/src/views/ModelMain.vue index 9ab648f..9c9a261 100644 --- a/src/views/ModelMain.vue +++ b/src/views/ModelMain.vue @@ -49,7 +49,19 @@ - {{ calcLeftPanel?.title }} + + {{ calcLeftPanel?.title }} + + + + + + + @@ -101,7 +113,19 @@ - {{ calcRightPanel?.title }} + + {{ calcRightPanel?.title }} + + + + + + + @@ -109,7 +133,19 @@ - {{ calcBottomPanel?.title }} + + {{ calcBottomPanel?.title }} + + + + + + + @@ -161,7 +197,8 @@ export default { sectionRightSize: 20, sectionLeftTitle: 'modeltree', sectionRightTitle: 'property', - sectionBottomTitle: '' + sectionBottomTitle: '', + sectionLeftSearch:'' } }, computed: { @@ -261,6 +298,18 @@ export default { this.hideBottom = false this.sectionBottomTitle = panel.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 = '' + } } } }