派生自 wuyushui/SewerAndRainNetwork

liyuan
2021-03-16 e146dc63e63bafb4f755d59421d8f3279caea173
src/components/panel/ToolBoxPanel.vue
@@ -5,6 +5,7 @@
        <img src="@assets/images/map-pages/icon/toolbox/tool.png" alt="">
        <span>工具</span>
      </el-button>
      <transition name="isD">
      <el-row v-show="selectGroup" class="specific-tools-group">
        <el-popover
            placement="bottom"
@@ -26,6 +27,7 @@
          <i :class="selectGroup === false ? 'el-icon-d-arrow-right':'el-icon-d-arrow-left'"></i>
        </el-button>
      </el-row>
      </transition>
    </div>
  </div>
</template>
@@ -179,7 +181,8 @@
      drawLayer: null,
      map: null,
      L: window.L,
      active: 0
      active: 0,
      isShow: true
    }
  },
  methods: {
@@ -314,6 +317,7 @@
    // 左上功能控制
    changeSelect () {
      this.selectGroup = !this.selectGroup
      this.isShow = !this.isShow
    }
  }
}
@@ -328,10 +332,8 @@
  .specific-tools {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    .el-button {
      z-index: 999;
      padding: 0;
      margin: 0 0.015rem;
      width: 45px;
@@ -352,6 +354,7 @@
    }
    .specific-tools-group {
      z-index: 1;
      .tools-panel-choose {
        border: none;
        box-shadow: 0 0 0.03rem @color-shadow;
@@ -374,4 +377,11 @@
    }
  }
}
.isD-enter-active, .isD-leave-active{
  transition: all 0.5s;
}
.isD-enter, .isD-leave-to{
  opacity: 0;
  transform: translateX(-100px);
}
</style>