| | |
| | | <img src="@assets/images/map-pages/icon/toolbox/tool.png" alt=""> |
| | | <span>工具</span> |
| | | </el-button> |
| | | <el-row v-show="selectGroup" class="specific-tools-group"> |
| | | <el-popover |
| | | placement="bottom" |
| | | width="" |
| | | trigger="click" |
| | | :popper-class="'tools-panel-content'" |
| | | v-for="(item,index) in menuList" :key="index" |
| | | > |
| | | <el-button slot="reference" class="el-button" :class="active === index ? 'tools-panel-choose':''" |
| | | @click="changeChoose(index)"> |
| | | <img :src="item.icon" alt=""/> |
| | | <span>{{ item.label }}</span> |
| | | <transition name="isD"> |
| | | <el-row v-show="selectGroup" class="specific-tools-group"> |
| | | <el-popover |
| | | placement="bottom" |
| | | width="" |
| | | trigger="click" |
| | | :popper-class="'tools-panel-content'" |
| | | v-for="(item,index) in menuList" :key="index" |
| | | > |
| | | <el-button slot="reference" class="el-button" :class="active === index ? 'tools-panel-choose':''" |
| | | @click="changeChoose(index)"> |
| | | <img :src="item.icon" alt=""/> |
| | | <span>{{ item.label }}</span> |
| | | </el-button> |
| | | <el-button v-for="(itemT,indexT) in item.items" :key="indexT" @click="choiceItem(itemT)"> |
| | | <img :src="itemT.icon" :title="itemT.title"/> |
| | | </el-button> |
| | | </el-popover> |
| | | <el-button @click="changeSelect" class="special-button"> |
| | | <i :class="selectGroup === false ? 'el-icon-d-arrow-right':'el-icon-d-arrow-left'"></i> |
| | | </el-button> |
| | | <el-button v-for="(itemT,indexT) in item.items" :key="indexT" @click="choiceItem(itemT)"> |
| | | <img :src="itemT.icon" :title="itemT.title"/> |
| | | </el-button> |
| | | </el-popover> |
| | | <el-button @click="changeSelect" class="special-button"> |
| | | <i :class="selectGroup === false ? 'el-icon-d-arrow-right':'el-icon-d-arrow-left'"></i> |
| | | </el-button> |
| | | </el-row> |
| | | </el-row> |
| | | </transition> |
| | | </div> |
| | | </div> |
| | | </template> |
| | |
| | | drawLayer: null, |
| | | map: null, |
| | | L: window.L, |
| | | active: 0 |
| | | active: 0, |
| | | isShow: true |
| | | } |
| | | }, |
| | | methods: { |
| | |
| | | // 左上功能控制 |
| | | changeSelect () { |
| | | this.selectGroup = !this.selectGroup |
| | | this.isShow = !this.isShow |
| | | } |
| | | } |
| | | } |
| | |
| | | |
| | | .specific-tools { |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: space-evenly; |
| | | |
| | | .el-button { |
| | | z-index: 999; |
| | | padding: 0; |
| | | margin: 0 0.015rem; |
| | | width: 45px; |
| | |
| | | } |
| | | |
| | | .specific-tools-group { |
| | | z-index: 1; |
| | | .tools-panel-choose { |
| | | border: none; |
| | | box-shadow: 0 0 0.03rem @color-shadow; |
| | |
| | | } |
| | | } |
| | | } |
| | | .isD-enter-active, .isD-leave-active{ |
| | | transition: all 0.5s; |
| | | } |
| | | .isD-enter, .isD-leave-to{ |
| | | opacity: 0; |
| | | transform: translateX(-100px); |
| | | } |
| | | </style> |