| | |
| | | <template> |
| | | <div v-drag class="layerBox"> |
| | | <div |
| | | v-drag |
| | | class="layerBox" |
| | | > |
| | | <div class="layerTitle"> |
| | | <div class="tileLeft"> |
| | | <div class="titleImg"> |
| | | <div |
| | | @click="setCloseLayer" |
| | | class="titleImg" |
| | | > |
| | | <ArrowLeft /> |
| | | </div> |
| | | <div class="titleLable">图层管理</div> |
| | | </div> |
| | | <div class="titleImg set" @click="layerSetBox"> |
| | | <div |
| | | class="titleImg set" |
| | | @click="layerSetBox" |
| | | > |
| | | <Setting /> |
| | | </div> |
| | | </div> |
| | | <div class="layerContent"> |
| | | <div class="contentBox" v-for="(item, i) in menuOption" :key="i"> |
| | | <div |
| | | class="contentBox" |
| | | v-for="(item, i) in menuOption" |
| | | :key="i" |
| | | > |
| | | <div class="contentTile"> |
| | | <div class="contentLeft"> |
| | | <div class="contentImg"></div> |
| | |
| | | <el-checkbox |
| | | @change="handlCheckAllChange(item)" |
| | | v-model="item.checkedAll" |
| | | >全部选中</el-checkbox |
| | | > |
| | | >全部选中</el-checkbox> |
| | | </div> |
| | | <div> |
| | | <div |
| | |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="content" v-show="item.isShow"> |
| | | <div class="layer_box" v-for="(v, k) in item.children" :key="k"> |
| | | <div |
| | | class="content" |
| | | v-show="item.isShow" |
| | | > |
| | | <div |
| | | class="layer_box" |
| | | v-for="(v, k) in item.children" |
| | | :key="k" |
| | | > |
| | | <div class="check_box"> |
| | | <el-checkbox |
| | | @change="handlCheckAllChange(item)" |
| | | v-model="v.layerState" |
| | | >{{ v.layerName }}</el-checkbox |
| | | > |
| | | <img src="../../assets/img/layer.png" alt="" /> |
| | | >{{ v.layerName }}</el-checkbox> |
| | | <img |
| | | src="../../assets/img/layer.png" |
| | | alt="" |
| | | /> |
| | | </div> |
| | | <div class="slider-demo-block"> |
| | | <div class="demonstration">透明度</div> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <layer-set v-show="layerSetIsshow" @SETstate="SETstate"></layer-set> |
| | | <layer-set |
| | | v-show="layerSetIsshow" |
| | | @SETstate="SETstate" |
| | | ></layer-set> |
| | | </template> |
| | | |
| | | <script lang="ts" setup> |
| | |
| | | }, |
| | | ]); |
| | | const layerSetIsshow = ref(false); |
| | | |
| | | const emits = defineEmits(["setCloseLayer"]); |
| | | const handlCheckAllChange = (res) => {}; |
| | | const handlIsShow = (res: string) => { |
| | | menuOption.forEach((e) => { |
| | |
| | | const SETstate = (res) => { |
| | | layerSetIsshow.value = res; |
| | | }; |
| | | const setCloseLayer = () => { |
| | | emits("setCloseLayer", false); |
| | | }; |
| | | </script> |
| | | |
| | | <style lang="less" scoped> |
| | |
| | | width: 359px; |
| | | height: 680px; |
| | | background: rgba(7, 8, 14, 0.8); |
| | | box-shadow: inset 0px 10px 40px 10px rgba(38, 47, 71, 1); |
| | | .layerTitle { |
| | | width: calc(100% - 27px); |
| | | height: 42px; |
| | |
| | | align-items: center; |
| | | |
| | | .titleLable { |
| | | font-size: 24px; |
| | | font-size: 18px; |
| | | font-family: Source Han Sans CN; |
| | | font-weight: 400; |
| | | color: #ffffff; |
| | |
| | | margin-left: 16px; |
| | | } |
| | | .contentLabel { |
| | | font-size: 20px; |
| | | font-size: 16px; |
| | | font-family: Source Han Sans CN; |
| | | font-weight: 300; |
| | | margin-bottom: 5px; |
| | | |
| | | color: #ffffff; |
| | | margin-left: 7px; |
| | | } |
| | |
| | | align-items: center; |
| | | .contentCheck { |
| | | margin-right: 12px; |
| | | /deep/.el-checkbox__label { |
| | | font-size: 14px; |
| | | } |
| | | } |
| | | .contentUP { |
| | | width: 18px; |
| | |
| | | background-size: 100% 100%; |
| | | border-radius: 0; |
| | | } |
| | | |
| | | .selectBox { |
| | | margin-top: 24px; |
| | | .selectTile { |
| | |
| | | } |
| | | } |
| | | } |
| | | /deep/.el-select-dropdown__item { |
| | | font-size: 12px !important; |
| | | } |
| | | </style> |