This commit is contained in:
蔡玲
2024-09-11 14:10:37 +08:00
parent 064df23a7f
commit 89a230a899
2 changed files with 12 additions and 5 deletions

View File

@@ -4,8 +4,8 @@
<div class="m-content">
<p>{{ screenData.device_name }}</p>
</div>
<div class="button-wraper">
<div v-for="(e, i) in screenData.region_points" :key="i" class="button-item">
<div class="button-wraper" :style="screenData.region_points.length <= 2 ? 'justify-content: center' : 'justify-content: space-between'">
<div v-for="(e, i) in screenData.region_points" :key="i" class="button-item" :class="{'button-item_3': screenData.region_points.length <= 3}">
<p v-if="e.type === '1'" class="point_name">{{ e.name }}</p>
<p v-if="e.type === '0'" class="point_name point_name_btn" @click="showPop('IN', e)">{{ e.name }}</p>
<p class="point_value">{{ e.device_code }}</p>