派生自 wuyushui/SewerAndRainNetwork

chenzeping
2021-03-15 3ca24d97c52399dcbd93165bf5c01e2ee2af7823
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>