| | |
| | | v-for="(item,index) in menuList" :key="index" |
| | | :width="item.index === '2'?230 : 150" |
| | | > |
| | | <el-button slot="reference" class="el-button" :class="active === index ? 'tools-panel-choose':''" |
| | | <el-button slot="reference" class="el-button" :class="active === index && checked? 'tools-panel-choose':''" |
| | | @click="changeChoose(index)"> |
| | | <img :src="item.iconSelecd" alt="" v-if="active === index && checked"/> |
| | | <img :src="item.icon" alt="" v-else/> |
| | | <span v-if="active === index && checked">{{ item.label }}</span> |
| | | <span v-else>{{ item.label }}</span> |
| | | <span v-else class="default-span">{{ item.label }}</span> |
| | | </el-button> |
| | | <el-button v-for="(itemT,indexT) in item.items" :key="indexT" @click="choiceItem(itemT,indexT)" |
| | | v-show="item.index!=='2'"> |
| | |
| | | name: 'ToolBoxPanel', |
| | | data () { |
| | | return { |
| | | checked: false, |
| | | isShow: true, |
| | | currentBaseMapCode: 'tianditu_img', |
| | | basemapList: [], |
| | |
| | | map: null, |
| | | active: -1, |
| | | Selecd: -1, |
| | | isSelecd: false, |
| | | checked: false, |
| | | checkbutton: -1, |
| | | menuList: [ |
| | | { |
| | |
| | | this.selectGroup = false |
| | | this.isShow = !this.isShow |
| | | this.active = -1 |
| | | this.checked = false |
| | | }, |
| | | changeSelectMouse () { |
| | | this.selectGroup = true |
| | |
| | | display: block; |
| | | color: @color-shadow; |
| | | } |
| | | a { |
| | | .default-span { |
| | | display: block; |
| | | color: @color-over; |
| | | } |