1.热区新增热区回显

sws 2024-08-12
v1.0.0
sws 2024-08-12 17:14:39 +08:00
parent e2cd246b21
commit 6eeedf0a95
2 changed files with 2 additions and 2 deletions

View File

@ -85,6 +85,7 @@ const app = getCurrentInstance();
const props = defineProps({});
const modelValue = defineModel({ type: Object as PropType<hotData>, default: {} });
const dialog_visible = defineModel('visibleDialog', { type: Boolean, default: false });
const hot_list = ref<hotData>({
img: '',
img_height: 1,
@ -254,7 +255,6 @@ const open_hot_event = () => {
if (modelValue.value.img.length > 0) {
dialog_visible.value = true;
hot_list.value = cloneDeep(modelValue.value);
console.log(1);
} else {
ElMessage({
type: 'warning',

View File

@ -63,7 +63,7 @@
<template v-else-if="value.key == 'img-magic'">
<model-img-magic-setting :type="radio" :value="value.com_data"></model-img-magic-setting>
</template>
<!-- 自定义 -->
<!-- 热区 -->
<template v-else-if="value.key == 'hot-zone'">
<model-hot-zone-setting :type="radio" :value="value.com_data"></model-hot-zone-setting>
</template>