@@ -93,7 +93,7 @@ const props = defineProps({
const form = computed(() => props.value);
const new_style = computed(() => props.value.data_style);
// 公共样式
-const style_container = computed(() => common_styles_computer(new_style.value.common_style));
+const style_container = computed(() => common_styles_computer(new_style.value.common_style) + 'overflow: auto;');
const style_img_container = computed(() => common_img_computer(new_style.value.common_style));
// 内容样式
const style_content_container = computed(() => common_styles_computer(new_style.value.data_content_style));
diff --git a/src/components/common/custom-module/model-icon/index.vue b/src/components/common/custom-module/model-icon/index.vue
index ee37d3de..6046831d 100644
--- a/src/components/common/custom-module/model-icon/index.vue
+++ b/src/components/common/custom-module/model-icon/index.vue
@@ -40,7 +40,7 @@ const props = defineProps({
});
// 用于页面判断显示
const form = computed(() => props.value);
-
+// 图标样式
const icon_class = computed(() => {
if (!isEmpty(form.value.icon_class)) {
return form.value.icon_class;
@@ -69,7 +69,7 @@ const icon_class = computed(() => {
}
}
});
-
+// 数据处理
const data_handling = (data_source_id: string) => {
// 不输入商品, 文章和品牌时,从外层处理数据
let icon = get_nested_property(props.sourceList, data_source_id);
@@ -79,7 +79,7 @@ const data_handling = (data_source_id: string) => {
}
return icon;
}
-
+// 外层样式
const com_style = computed(() => {
let style = `${ set_count() } ${ gradient_handle(form.value.color_list, form.value.direction) } ${ radius_computer(form.value.bg_radius, props.scale) };transform: rotate(${form.value.icon_rotate}deg);${ padding_computer(form.value.icon_padding, props.scale) };`;
if (form.value.border_show == '1') {
@@ -94,6 +94,7 @@ const com_style = computed(() => {
}
return style;
});
+// 不同地方下的样式
const set_count = () => {
if (props.isDisplayPanel) {
return '';
diff --git a/src/components/common/custom-module/model-image/index.vue b/src/components/common/custom-module/model-image/index.vue
index 8cc346e0..8f24a680 100644
--- a/src/components/common/custom-module/model-image/index.vue
+++ b/src/components/common/custom-module/model-image/index.vue
@@ -39,7 +39,7 @@ const props = defineProps({
});
// 用于页面判断显示
const form = computed(() => props.value);
-
+// 图片地址
const img = computed(() => {
if (!isEmpty(form.value.img[0])) {
return form.value.img[0];
@@ -69,7 +69,7 @@ const img = computed(() => {
}
}
});
-
+// 数据处理
const data_handling = (data_source_id: string) => {
// 循环取值,使用reduce 累加函数循环取值
let image_url = get_nested_property(props.sourceList, data_source_id);
@@ -83,11 +83,11 @@ const data_handling = (data_source_id: string) => {
}
return image_url;
}
-
+// 图片的样式
const image_style = computed(() => {
return `${ set_count() };transform: rotate(${form.value.img_rotate}deg); ${ radius_computer(form.value.img_radius, props.scale) };`;
});
-
+// 边框样式
const border_style = computed(() => {
let style = ``;
if (form.value.border_show == '1') {
@@ -95,6 +95,7 @@ const border_style = computed(() => {
}
return style;
});
+// 不同地方下的宽度显示
const set_count = () => {
if (props.isDisplayPanel) {
return `width: ${ percentage_count(form.value.img_width, form.value.com_width) }; height: ${ percentage_count(form.value.img_height, form.value.com_height) };`;
diff --git a/src/components/common/custom-module/model-lines/index.vue b/src/components/common/custom-module/model-lines/index.vue
index 22232654..be204a99 100644
--- a/src/components/common/custom-module/model-lines/index.vue
+++ b/src/components/common/custom-module/model-lines/index.vue
@@ -21,7 +21,7 @@ const props = defineProps({
});
// 用于页面判断显示
const form = computed(() => props.value);
-
+// 边框样式
const border_style = computed(() => {
if (form.value.line_settings === 'horizontal') {
return `${set_count()} margin: 5px 0;border-bottom: ${form.value.line_size * props.scale}px ${form.value.line_style} ${form.value.line_color};`;
@@ -29,6 +29,7 @@ const border_style = computed(() => {
return `${set_count()} margin: 0 5px;border-right: ${form.value.line_size * props.scale}px ${form.value.line_style} ${form.value.line_color};`;
}
});
+// 不同地方下的宽度显示
const set_count = () => {
if (form.value.line_settings === 'horizontal') {
return `width: ${form.value.com_width}px;`;
diff --git a/src/components/common/custom-module/model-panel/index.vue b/src/components/common/custom-module/model-panel/index.vue
index 63f80703..8b9a9357 100644
--- a/src/components/common/custom-module/model-panel/index.vue
+++ b/src/components/common/custom-module/model-panel/index.vue
@@ -30,7 +30,7 @@ const props = defineProps({
});
// 用于页面判断显示
const form = computed(() => props.value);
-
+// 外层样式
const com_style = computed(() => {
let style = `${ set_count() } ${ gradient_handle(form.value.color_list, form.value.direction) } ${ radius_computer(form.value.bg_radius, props.scale) }; transform: rotate(${form.value.panel_rotate}deg);`;
if (form.value.border_show == '1') {
@@ -38,7 +38,7 @@ const com_style = computed(() => {
}
return style;
});
-
+// 背景图
const com_img_style = computed(() => {
const data = {
background_img: form.value?.background_img || [],
@@ -46,6 +46,7 @@ const com_img_style = computed(() => {
}
return background_computer(data);
});
+// 不同地方下的宽度显示
const set_count = () => {
if (props.isDisplayPanel) {
return '';
diff --git a/src/components/common/custom-module/model-text/index.vue b/src/components/common/custom-module/model-text/index.vue
index 2e7f8b5d..71aa8c6c 100644
--- a/src/components/common/custom-module/model-text/index.vue
+++ b/src/components/common/custom-module/model-text/index.vue
@@ -111,7 +111,7 @@ const text_title = computed(() => {
}
return text;
}
-
+// 数据处理
const data_handling = (data_source_id: string) => {
let text_title = get_nested_property(props.sourceList, data_source_id);
// 如果是自定义标题,进一步处理嵌套对象中的数据
@@ -124,7 +124,7 @@ const data_handling = (data_source_id: string) => {
}
return text_title;
}
-
+// 文本样式
const text_style = computed(() => {
let style = `font-size: ${ form.value.text_size * props.scale }px;line-height: ${ (typeof form.value.line_text_size === "number" ? form.value.line_text_size : form.value.text_size) * props.scale}px;color: ${ form.value.text_color }; text-align: ${ form.value.text_location }; transform: rotate(${form.value.text_rotate}deg);text-decoration: ${ form.value.text_option };${ padding_computer(form.value.text_padding, props.scale) };`;
if (form.value.text_weight == 'italic') {
@@ -134,7 +134,7 @@ const text_style = computed(() => {
}
return style;
});
-
+// 外层样式
const com_style = computed(() => {
let style = `${ set_count() } ${ gradient_handle(form.value.color_list, form.value.direction) } ${ radius_computer(form.value.bg_radius, props.scale) }`;
if (form.value.border_show == '1') {
@@ -146,6 +146,7 @@ const com_style = computed(() => {
}
return style;
});
+// 不同地方下的宽度显示
const set_count = () => {
if (props.isDisplayPanel) {
return '';
diff --git a/src/components/model-custom/components/index.vue b/src/components/model-custom/components/index.vue
index 35e5cc7c..53ebb09c 100644
--- a/src/components/model-custom/components/index.vue
+++ b/src/components/model-custom/components/index.vue
@@ -85,7 +85,7 @@
-
+
@@ -111,7 +111,7 @@