丰都大屏标题搞定

This commit is contained in:
aixianling
2023-10-12 18:17:46 +08:00
parent 6b7ff8e58c
commit ab92982e71
6 changed files with 53 additions and 86 deletions

View File

@@ -1,6 +1,6 @@
<template>
<section class="ai-area">
<div v-if="inputClicker" @click="chooseArea" class="input-clicker">
<div v-if="inputClicker&&!$scopedSlots.default" @click="chooseArea" class="input-clicker">
<el-row type="flex" justify="space-between">
<div class="prepend">
<i style="font-size: 16px" class="iconfont iconLocation"/>
@@ -10,13 +10,15 @@
<i class="iconfont iconChange pad-r10"/>
</el-row>
</div>
<el-button v-else-if="!customClicker" class="area-btn" type="primary" size="mini" @click="chooseArea">
<el-button v-else-if="!customClicker&&!$scopedSlots.default" class="area-btn" type="primary" size="mini"
@click="chooseArea">
{{ btnShowArea ? selectedName : "切换地区" }}
</el-button>
<a class="custom-clicker" v-else @click="chooseArea">
<slot :areaname="selectedName" :fullname="fullName" :id="selected"/>
</a>
<ai-dialog :visible.sync="dialog" title="选择地区" width="60%" @onConfirm="confirmArea" @open="selected=(value||'')">
<ai-dialog :visible.sync="dialog" title="选择地区" width="60%" @onConfirm="confirmArea" :modal="mask"
@open="selected=(value||'')">
<ai-highlight content="您当前选择&nbsp;@v" :value="selectedName" color="#333" bold/>
<div class="area_edge">
<div class="area-box" v-for="ops in showOps">
@@ -65,7 +67,8 @@ export default {
showBadge: {type: Boolean, default: true},
value: String,
valueLevel: {type: [Number, String], default: -1},
root: String
root: String,
mask: {type: Boolean, default: true}
},
data() {
return {