diff --git a/src/components/common/custom-module/model-icon/index.vue b/src/components/common/custom-module/model-icon/index.vue index aac5af13..3528a066 100644 --- a/src/components/common/custom-module/model-icon/index.vue +++ b/src/components/common/custom-module/model-icon/index.vue @@ -1,18 +1,12 @@ 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 ccf1e73c..5765b6cc 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 @@ -3,39 +3,25 @@
文本设置
- - + + - + - + - - + + - - - 加粗 - 正常 - 倾斜 - - - - + + - - - Aa - Aa - Aa - - - - + + @@ -48,10 +34,10 @@ - + - + @@ -67,7 +53,7 @@ - + @@ -121,15 +107,15 @@ const form = ref(diy_data.value.com_data); const center_height = defineModel('height', { type: Number, default: 0 }); const padding_change = (padding: any) => { - form.value.text_padding = Object.assign(form.value.text_padding, pick(padding, ['padding', 'padding_top', 'padding_bottom', 'padding_left', 'padding_right'])); + form.value.icon_padding = Object.assign(form.value.icon_padding, pick(padding, ['padding', 'padding_top', 'padding_bottom', 'padding_left', 'padding_right'])); }; const bg_radius_change = (radius: any) => { form.value.bg_radius = Object.assign(form.value.bg_radius, pick(radius, ['radius', 'radius_top_left', 'radius_top_right', 'radius_bottom_left', 'radius_bottom_right'])); }; -const text_change = (key: string) => { +const icon_change = (key: string) => { if (key == '2') { - form.value.text_title = ''; + form.value.icon_title = ''; } else { form.value.data_source_id = ''; } diff --git a/src/components/common/custom-module/model-lines/model-lines-style.vue b/src/components/common/custom-module/model-lines/model-lines-style.vue index 1dc49af5..bfa17240 100644 --- a/src/components/common/custom-module/model-lines/model-lines-style.vue +++ b/src/components/common/custom-module/model-lines/model-lines-style.vue @@ -29,7 +29,7 @@ - + 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 932a09b1..cb758d34 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 @@ -73,7 +73,7 @@ - + diff --git a/src/components/model-carousel/index.vue b/src/components/model-carousel/index.vue index dfb5bd41..cc1bc1dc 100644 --- a/src/components/model-carousel/index.vue +++ b/src/components/model-carousel/index.vue @@ -309,5 +309,7 @@ const slideChange = (swiper: { realIndex: number }) => { } .video-class { max-width: 100%; + margin-right: 10px; + margin-left: 10px; } diff --git a/src/components/model-custom/components/index-default.ts b/src/components/model-custom/components/index-default.ts index 9c6535ea..0f90dacc 100644 --- a/src/components/model-custom/components/index-default.ts +++ b/src/components/model-custom/components/index-default.ts @@ -82,6 +82,44 @@ export const line_com_data = { bottom_up: '1', } +// icon的默认值 +export const icon_com_data = { + com_width: 36, + com_height: 36, + staging_height: 36, + icon_class: '', + data_source_id: '', + data_source_list: {}, + icon_link: {}, + is_rich_icon: '0', + is_up_down: '1', + icon_color: '#000', + icon_weight: 'normal', + icon_size: 12, + icon_option: 'none', + icon_location: 'left', + icon_padding: { + padding: 0, + padding_top: 0, + padding_bottom: 0, + padding_left: 0, + padding_right: 0, + }, + icon_rotate: 0, + border_show: '0', + border_color: '#FF5D5D', + border_style: 'solid', + bg_radius: { + radius: 0, + radius_top_left: 0, + radius_top_right: 0, + radius_bottom_left: 0, + radius_bottom_right: 0, + }, + border_size: 1, + com_bg: '', + bottom_up: '1', +} // 判断两个矩形是否有交集或者被包裹 export const isRectangleIntersecting = (rect1: react1, rect2: react1) => { // 矩形的格式为 { x, y, width, height } diff --git a/src/components/model-custom/components/index.vue b/src/components/model-custom/components/index.vue index aee1b007..83dbb2a4 100644 --- a/src/components/model-custom/components/index.vue +++ b/src/components/model-custom/components/index.vue @@ -56,6 +56,9 @@ + @@ -82,7 +85,7 @@