派生自 wuyushui/SewerAndRainNetwork

chenzeping
2021-03-15 3ca24d97c52399dcbd93165bf5c01e2ee2af7823
修改功能样式
2个文件已修改
76 ■■■■■ 已修改文件
src/components/panel/BaseNavMenuItem.vue 27 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/panel/ToolBoxPanel.vue 49 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/panel/BaseNavMenuItem.vue
@@ -6,12 +6,13 @@
          <template slot="title" v-if="item.icon">
            <img :src="item.icon" :title="item.label"/>
          </template>
          <template slot="title" v-else>{{item.label}}</template>
          <template slot="title" v-else>{{ item.label }}</template>
          <base-nav-menu-item v-for="child in item.items" :key="child.title" :menuList='[child]'></base-nav-menu-item>
        </el-submenu>
      </template>
      <template v-else>
        <el-menu-item :index="item.index" :key="index">
          <!--          <el-radio></el-radio>-->
          {{ item.label }}
        </el-menu-item>
      </template>
@@ -33,24 +34,26 @@
</script>
<style lang="less" scoped>
.el-menu--popup {
  min-width: 100px;
}
.base-nav-menu {
  height: 38px;
  line-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  justify-content: center;
  outline: none;
  border: none;
  //margin-left: 20px;
  padding: 0;
  .el-menu--popup {
    min-width: 100px;
  }
}
  .el-submenu {
    .el-submenu__title {
      border-radius: 50%;
      .el-icon-arrow-down {
        display: none;
      }
    }
.el-menu--horizontal {
  .el-menu--popup {
    min-width: 100px;
  }
}
</style>
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>