parent
e2cd246b21
commit
6eeedf0a95
|
|
@ -85,6 +85,7 @@ const app = getCurrentInstance();
|
||||||
const props = defineProps({});
|
const props = defineProps({});
|
||||||
const modelValue = defineModel({ type: Object as PropType<hotData>, default: {} });
|
const modelValue = defineModel({ type: Object as PropType<hotData>, default: {} });
|
||||||
const dialog_visible = defineModel('visibleDialog', { type: Boolean, default: false });
|
const dialog_visible = defineModel('visibleDialog', { type: Boolean, default: false });
|
||||||
|
|
||||||
const hot_list = ref<hotData>({
|
const hot_list = ref<hotData>({
|
||||||
img: '',
|
img: '',
|
||||||
img_height: 1,
|
img_height: 1,
|
||||||
|
|
@ -254,7 +255,6 @@ const open_hot_event = () => {
|
||||||
if (modelValue.value.img.length > 0) {
|
if (modelValue.value.img.length > 0) {
|
||||||
dialog_visible.value = true;
|
dialog_visible.value = true;
|
||||||
hot_list.value = cloneDeep(modelValue.value);
|
hot_list.value = cloneDeep(modelValue.value);
|
||||||
console.log(1);
|
|
||||||
} else {
|
} else {
|
||||||
ElMessage({
|
ElMessage({
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,7 @@
|
||||||
<template v-else-if="value.key == 'img-magic'">
|
<template v-else-if="value.key == 'img-magic'">
|
||||||
<model-img-magic-setting :type="radio" :value="value.com_data"></model-img-magic-setting>
|
<model-img-magic-setting :type="radio" :value="value.com_data"></model-img-magic-setting>
|
||||||
</template>
|
</template>
|
||||||
<!-- 自定义 -->
|
<!-- 热区 -->
|
||||||
<template v-else-if="value.key == 'hot-zone'">
|
<template v-else-if="value.key == 'hot-zone'">
|
||||||
<model-hot-zone-setting :type="radio" :value="value.com_data"></model-hot-zone-setting>
|
<model-hot-zone-setting :type="radio" :value="value.com_data"></model-hot-zone-setting>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue