From dbea7082f5ac51e9c45835370b454adb3732afbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com> Date: Fri, 16 Aug 2024 18:12:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A1=B5=E9=9D=A2=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../model-custom/components/index.ts | 80 ------------------- .../model-custom/components/index.vue | 3 +- .../model-custom/model-custom-content.vue | 2 - src/utils/index.ts | 17 ---- 4 files changed, 2 insertions(+), 100 deletions(-) diff --git a/src/components/model-custom/components/index.ts b/src/components/model-custom/components/index.ts index 7a0738f0..529c579e 100644 --- a/src/components/model-custom/components/index.ts +++ b/src/components/model-custom/components/index.ts @@ -34,84 +34,4 @@ interface react1 { y: number; width: number; height: number; -} -// 文本的默认值 -const text_com_data = { - com_width: 150, - com_height: 17, - staging_height: 17, - text_title: '文本', - data_source_id: '', - data_source_list: {}, - text_link: {}, - text_color: '#000', - text_weight: 'normal', - text_size: 12, - text_option: 'none', - text_location: 'left', - text_padding: { - padding: 0, - padding_top: 0, - padding_bottom: 0, - padding_left: 0, - padding_right: 0, - }, - text_rotate: 0, - border_show: false, - border_color: '#FF5D5D', - border_style: 'solid', - border_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: true, -} -// 图片的默认值 -const img_com_data = { - com_width: 50, - com_height: 50, - staging_height: 50, - img_src: [], - data_source_id: '', - data_source_list: {}, - link: {}, - img_radius: { - radius: 0, - radius_top_left: 0, - radius_top_right: 0, - radius_bottom_left: 0, - radius_bottom_right: 0, - }, - img_width: 50, - img_height: 50, - img_rotate: 0, - border_show: false, - border_color: '#FF3F3F', - border_style: 'dashed', - border_radius: { - radius: 0, - radius_top_left: 0, - radius_top_right: 0, - radius_bottom_left: 0, - radius_bottom_right: 0, - }, - border_size: 1, - bottom_up: true, -} -// 线条的默认值 -const line_com_data = { - com_width: 306, - com_height: 11, - staging_height: 11, - line_settings: 'horizontal', - line_style: 'solid', - line_width: 306, - line_size: 1, - line_color: '#000', - bottom_up: true, } \ No newline at end of file diff --git a/src/components/model-custom/components/index.vue b/src/components/model-custom/components/index.vue index 1bc7ad77..a28a3edf 100644 --- a/src/components/model-custom/components/index.vue +++ b/src/components/model-custom/components/index.vue @@ -80,7 +80,8 @@