diff --git a/src/components/common/custom-module/model-image/index.vue b/src/components/common/custom-module/model-image/index.vue index c83a12f6..6b8c8ace 100644 --- a/src/components/common/custom-module/model-image/index.vue +++ b/src/components/common/custom-module/model-image/index.vue @@ -14,6 +14,12 @@ const props = defineProps({ }, required: true }, + sourceList: { + type: Object, + default: () => { + return {}; + } + }, isPercentage: { type: Boolean, default: false @@ -21,13 +27,14 @@ const props = defineProps({ }); // 用于页面判断显示 const form = reactive(props.value); - const img_src = computed(() => { if (!isEmpty(form.img_src[0])) { return form.img_src[0]; } else { - return { - url: form.data_source_list.url + if (!isEmpty(props.sourceList)) { + return props.sourceList[form.data_source_id]; + } else { + return ''; } } }); 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 d6dfbd33..f8529e62 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 @@ -4,19 +4,12 @@
图片设置
-
- -
- - - - - - -
-
+ +
+ + + + @@ -97,6 +90,14 @@ 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_src = []; + } else { + form.value.data_source_id = ''; + } +} + watch( diy_data, (val) => { diff --git a/src/components/common/custom-module/model-text/index.vue b/src/components/common/custom-module/model-text/index.vue index bfac84d8..bae1d789 100644 --- a/src/components/common/custom-module/model-text/index.vue +++ b/src/components/common/custom-module/model-text/index.vue @@ -2,16 +2,17 @@
diff --git a/src/components/model-data-magic/components/product-list-show.vue b/src/components/model-data-magic/components/product-list-show.vue index bee0bd79..049ca357 100644 --- a/src/components/model-data-magic/components/product-list-show.vue +++ b/src/components/model-data-magic/components/product-list-show.vue @@ -6,11 +6,8 @@ -
{{ item.title }}
@@ -29,11 +26,8 @@ -
{{ item.show_price_symbol }}{{ item.min_price }} @@ -50,11 +44,8 @@ -
{{ item.title }}
@@ -76,11 +67,8 @@ -
{{ item.title }}
diff --git a/src/components/model-data-magic/index.vue b/src/components/model-data-magic/index.vue index f5a9b4aa..1aa6f042 100644 --- a/src/components/model-data-magic/index.vue +++ b/src/components/model-data-magic/index.vue @@ -35,7 +35,7 @@