From 3ca24d97c52399dcbd93165bf5c01e2ee2af7823 Mon Sep 17 00:00:00 2001 From: chenzeping <ChenZeping02609@163.com> Date: 星期一, 15 三月 2021 09:13:48 +0800 Subject: [PATCH] 修改功能样式 --- src/components/panel/ToolBoxPanel.vue | 49 +++++++++++++++++++++++++++++++------------------ 1 files changed, 31 insertions(+), 18 deletions(-) diff --git a/src/components/panel/ToolBoxPanel.vue b/src/components/panel/ToolBoxPanel.vue index 1b9fd88..92aeed5 100644 --- a/src/components/panel/ToolBoxPanel.vue +++ b/src/components/panel/ToolBoxPanel.vue @@ -8,8 +8,6 @@ mode="horizontal" :collapse="isCollapse" unique-opened - @open="handleOpen" - @close="handleClose" @select="handleSelect" v-show='selectGroup' > @@ -172,19 +170,10 @@ }, handleClose () { }, - handleSelect (index, indexPath) { - - }, - gitBounced (params) { - this.bouncedText = params - }, - changeSelect () { - this.selectGroup = !this.selectGroup - }, - handleSelects (command) { - console.log(command) - switch (command) { - case '鍏ㄥ睆': + handleSelect (index) { + console.log(index) + switch (index) { + case '4-1': // this.map.toggleFullscreen() var printer = this.L.easyPrint({ sizeModes: ['Current', 'A4Landscape', 'A4Portrait'], @@ -242,13 +231,18 @@ Measure.startMeasureArea(this.map, this.L) break } + }, + gitBounced (params) { + this.bouncedText = params + }, + changeSelect () { + this.selectGroup = !this.selectGroup } } } </script> <style lang="less"> - .lefttop-toolbox-panel { position: absolute; left: 15px; @@ -261,7 +255,6 @@ line-height: 55px; display: flex; align-items: center; - justify-content: space-around; .init-choose { background: #305B62; @@ -276,12 +269,21 @@ } .el-menu { - width: 80%; + width: 100%; background: none; z-index: 1; border: none; background: #305B62; border-radius: 50px; + //margin-left: -30px; + + .el-icon-arrow-down:before { + content: " "; + } + + .el-submenu__title:focus, .el-submenu__title:hover { + background: none; + } } } @@ -309,4 +311,15 @@ //} } +.el-menu--horizontal { + .el-menu--popup { + min-width: 100px; + .el-menu-item { + min-width: 50px; + } + } +} +ul { + padding-inline-start: 0; +} </style> -- Gitblit v1.8.0