diff --git a/src/components/base/drag/index.vue b/src/components/base/drag/index.vue
index b4ba87ff..a0b3e0a1 100644
--- a/src/components/base/drag/index.vue
+++ b/src/components/base/drag/index.vue
@@ -1,8 +1,8 @@
-
-
+
+
diff --git a/src/components/common/tabs-magic-config/tabs-magic-content.vue b/src/components/common/tabs-magic-config/tabs-magic-content.vue
index 23451524..dfd4ce67 100644
--- a/src/components/common/tabs-magic-config/tabs-magic-content.vue
+++ b/src/components/common/tabs-magic-config/tabs-magic-content.vue
@@ -9,7 +9,7 @@
-
+
diff --git a/src/components/model-carousel/index.vue b/src/components/model-carousel/index.vue
index 673a607d..63cb3ae7 100644
--- a/src/components/model-carousel/index.vue
+++ b/src/components/model-carousel/index.vue
@@ -87,16 +87,16 @@ const props = defineProps({
return {};
},
},
- isNest: {
+ isCommonStyle: {
type: Boolean,
- default: false,
+ default: true,
},
});
const form = computed(() => props.value.content);
const new_style = computed(() => props.value.style);
// 用于样式显示
-const style_container = computed(() => !props.isNest ? common_styles_computer(new_style.value.common_style) : '');
-const style_img_container = computed(() => !props.isNest ? common_img_computer(new_style.value.common_style) : '');
+const style_container = computed(() => props.isCommonStyle ? common_styles_computer(new_style.value.common_style) : '');
+const style_img_container = computed(() => props.isCommonStyle ? common_img_computer(new_style.value.common_style) : '');
const autoplay = ref(false)
// 图片的设置
diff --git a/src/components/model-custom/model-custom-content.vue b/src/components/model-custom/model-custom-content.vue
index 7827d500..71bfc5e1 100644
--- a/src/components/model-custom/model-custom-content.vue
+++ b/src/components/model-custom/model-custom-content.vue
@@ -104,7 +104,7 @@ const props = defineProps({
isSubcomponent: {
type: Boolean,
default: false,
- }
+ },
});
// 容器宽度
const center_width = ref(props.magicWidth);
diff --git a/src/components/model-goods-magic/index.vue b/src/components/model-goods-magic/index.vue
index 4d35e164..5d2aa555 100644
--- a/src/components/model-goods-magic/index.vue
+++ b/src/components/model-goods-magic/index.vue
@@ -1,5 +1,5 @@
-
+
diff --git a/src/components/model-tabs-magic/model-tabs-magic-content.vue b/src/components/model-tabs-magic/model-tabs-magic-content.vue
index e3d752fa..61792352 100644
--- a/src/components/model-tabs-magic/model-tabs-magic-content.vue
+++ b/src/components/model-tabs-magic/model-tabs-magic-content.vue
@@ -313,5 +313,33 @@ watchEffect(() => {
width: 8rem;
}
}
+ .card-background {
+ padding-left: 0.5rem;
+ .gap-16 {
+ gap: 0.5rem;
+ }
+ .card-container {
+ padding: 0rem !important;
+ }
+ .el-color-picker__trigger {
+ width: 5rem;
+ }
+ .el-color-picker__trigger .el-color-picker__color .el-color-picker__color-inner .el-icon {
+ right: -2rem;
+ }
+ }
+ .flex-row.is-newline {
+ flex-direction: column !important;
+ align-items: flex-start;
+ gap: 0.5rem;
+ }
+ .el-radio {
+ margin-right: 1rem;
+ }
+}
+@media screen and (max-width: 1560px) {
+ .tabs-magic-content-tabs {
+ width: 100%;
+ }
}
diff --git a/src/components/model-tabs-magic/model-tabs-magic-styles.vue b/src/components/model-tabs-magic/model-tabs-magic-styles.vue
index 6f4d193a..2498cbb1 100644
--- a/src/components/model-tabs-magic/model-tabs-magic-styles.vue
+++ b/src/components/model-tabs-magic/model-tabs-magic-styles.vue
@@ -65,24 +65,22 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -97,11 +95,28 @@
+
+ 内容样式
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
+
+
diff --git a/src/components/model-video/index.vue b/src/components/model-video/index.vue
index b841e903..807cef41 100644
--- a/src/components/model-video/index.vue
+++ b/src/components/model-video/index.vue
@@ -34,6 +34,10 @@ const props = defineProps({
type: Object,
default: () => ({}),
},
+ isCommonStyle: {
+ type: Boolean,
+ default: true,
+ }
});
const video_src = ref(common_store.common.config.attachment_host + `/static/diy/images/components/model-video/video.png`);
const style = ref('');
@@ -41,8 +45,7 @@ const style_container = ref('');
const style_img_container = ref('');
const video_img = ref('');
const video = ref('');
-watch(
- props.value,
+watch(() => props.value,
(newVal, oldValue) => {
const new_content = newVal?.content || {};
const new_style = newVal?.style || {};
@@ -60,8 +63,10 @@ watch(
video_ratio = `height: 220px;`;
}
style.value = video_ratio;
- style_container.value = common_styles_computer(new_style.common_style);
- style_img_container.value = common_img_computer(new_style.common_style);
+ if (props.isCommonStyle) {
+ style_container.value = common_styles_computer(new_style.common_style);
+ style_img_container.value = common_img_computer(new_style.common_style);
+ }
},
{ immediate: true, deep: true }
);
diff --git a/src/config/const/tabs-magic.ts b/src/config/const/tabs-magic.ts
index d365b6b0..5e3fb5b7 100644
--- a/src/config/const/tabs-magic.ts
+++ b/src/config/const/tabs-magic.ts
@@ -94,6 +94,14 @@ interface defaultTabs {
more_icon_color: string;
more_icon_size: number;
data_spacing: number;
+ magic_content_direction: string;
+ magic_content_color_list: color_list[];
+ magic_content_background_img_style: string;
+ magic_content_background_img: string[];
+ magic_content_radius: radiusStyle;
+ magic_content_margin: marginStyle;
+ magic_content_padding: paddingStyle;
+ magic_content: object;
common_style: object;
};
}
@@ -157,7 +165,16 @@ export const magic_config = {
goods_magic: cloneDeep(defaultGoodsMagic),
img_magic: cloneDeep(defaultImgMagic),
hot_zone: cloneDeep(defaultHotZone),
- custom: cloneDeep(defaultCustom),
+ custom:{
+ ...cloneDeep(defaultCustom),
+ style: {
+ ...cloneDeep(defaultCustom.style),
+ data_content_style: {
+ ...cloneDeep(defaultCustom.style.data_content_style),
+ color_list: [{ color: 'rgb(244, 252, 255)', color_percentage: undefined }],
+ }
+ }
+ },
}
const defaultTabs: defaultTabs = {
@@ -337,6 +354,51 @@ const defaultTabs: defaultTabs = {
more_icon_size: 14,
// 选项卡与轮播之间的间距
data_spacing: 0,
+ // 魔方内容设置
+ magic_content_direction: '90deg',
+ magic_content_color_list: [{ color: '', color_percentage: undefined }],
+ magic_content_background_img_style: '2',
+ magic_content_background_img: [],
+ magic_content_radius: {
+ radius: 0,
+ radius_top_left: 0,
+ radius_top_right: 0,
+ radius_bottom_left: 0,
+ radius_bottom_right: 0,
+ },
+ magic_content_margin: {
+ margin: 0,
+ margin_top: 0,
+ margin_bottom: 0,
+ margin_left: 0,
+ margin_right: 0,
+ },
+ magic_content_padding: {
+ padding: 0,
+ padding_top: 0,
+ padding_bottom: 10,
+ padding_left: 10,
+ padding_right: 10,
+ },
+ magic_content: {
+ // 边框样式
+ border_is_show: '0',
+ border_color: '#FF3F3F',
+ border_style: 'solid',
+ border_size: {
+ padding: 1,
+ padding_top: 1,
+ padding_right: 1,
+ padding_bottom: 1,
+ padding_left: 1,
+ },
+ // 阴影
+ box_shadow_color: '',
+ box_shadow_x: 0,
+ box_shadow_y: 0,
+ box_shadow_blur: 0,
+ box_shadow_spread: 0,
+ },
// 公共样式
common_style: defaultCommon,
},