feat: 跳转按钮修改

This commit is contained in:
huanghao1412 2024-07-15 15:39:43 +08:00
parent d995d65294
commit a32bb7283b
3 changed files with 8 additions and 1 deletions

View File

@ -7,6 +7,7 @@ import cloneDeep from 'lodash/cloneDeep'
export const option = {}
export const customData = {
label: '1号楼',
jumpEnable: true,
id: null,
id1: null,
showInterval: true,

View File

@ -14,6 +14,11 @@
<n-input-number v-model:value="props.customData.id1" size="small" placeholder="请输入"/>
</setting-item>
</setting-item-box>
<setting-item-box name="开启跳转" alone>
<n-space>
<n-switch v-model:value="props.customData.jumpEnable" size="small"/>
</n-space>
</setting-item-box>
</template>
<script lang="ts" setup>

View File

@ -1,6 +1,7 @@
<template>
<div class="floorBox">
<div class="floor" :class="[errorClassName]" @click.stop="jump"><div class="rect"></div>{{ customData.label }}</div>
<div v-if="customData.jumpEnable" class="floor" :class="[errorClassName]" @click.stop="jump"><div class="rect"></div>{{ customData.label }}</div>
<div v-else class="floor" :class="[errorClassName]"><div class="rect"></div>{{ customData.label }}</div>
</div>
</template>