diff --git a/src/components/common/custom-module/model-icon/model-icon-style.vue b/src/components/common/custom-module/model-icon/model-icon-style.vue index 221bcc24..83e3c07d 100644 --- a/src/components/common/custom-module/model-icon/model-icon-style.vue +++ b/src/components/common/custom-module/model-icon/model-icon-style.vue @@ -22,7 +22,12 @@ - + + + + + + @@ -130,7 +135,13 @@ const icon_change = (key: string) => { form.value.data_source_id = ''; } }; - +const link_change = (key: string) => { + if (key == '2') { + form.value.icon_link = ''; + } else { + form.value.data_source_link = ''; + } +}; const mult_color_picker_event = (arry: color_list[], type: number) => { form.value.color_list = arry; form.value.direction = type.toString(); diff --git a/src/components/common/custom-module/model-image/model-image-style.vue b/src/components/common/custom-module/model-image/model-image-style.vue index f1f49ec3..0d6694e7 100644 --- a/src/components/common/custom-module/model-image/model-image-style.vue +++ b/src/components/common/custom-module/model-image/model-image-style.vue @@ -22,7 +22,12 @@ - + + + + + + @@ -96,7 +101,7 @@ const img_radius_change = (radius: any) => { const border_radius_change = (radius: any) => { form.value.border_radius = Object.assign(form.value.border_radius, pick(radius, ['radius', 'radius_top_left', 'radius_top_right', 'radius_bottom_left', 'radius_bottom_right'])); }; - +// 数据字段切换时,更新另外一个数据 const img_src_change = (key: string) => { if (key == '2') { form.value.img = []; @@ -104,6 +109,14 @@ const img_src_change = (key: string) => { form.value.data_source_id = ''; } } +// 数据链接字段切换时,更新另外一个数据 +const img_link_change = (key: string) => { + if (key == '2') { + form.value.link = ''; + } else { + form.value.data_source_link = ''; + } +} // x轴变化时,更新记录的位置 const location_x_change = (val: number) => { diff --git a/src/components/common/custom-module/model-text/model-text-style.vue b/src/components/common/custom-module/model-text/model-text-style.vue index b09a4820..9e47b67e 100644 --- a/src/components/common/custom-module/model-text/model-text-style.vue +++ b/src/components/common/custom-module/model-text/model-text-style.vue @@ -22,7 +22,12 @@ - + + + + + + @@ -151,7 +156,7 @@ onBeforeMount(() => { form.value.line_text_size = form.value.text_size; } }); - +// 数据字段切换时,更新另外一个数据 const text_change = (key: string) => { if (key == '2') { form.value.text_title = ''; @@ -159,6 +164,14 @@ const text_change = (key: string) => { form.value.data_source_id = ''; } }; +// 数据字段切换时,更新另外一个数据 +const text_link_change = (key: string) => { + if (key == '2') { + form.value.text_link = ''; + } else { + form.value.data_source_link = ''; + } +}; // 文字大小变化时,同步更新行间距 const text_size_change = (size: number) => { form.value.line_text_size = size;