From 59ff6b13fbec66e0fe85db7c867ba365b1df3ddd Mon Sep 17 00:00:00 2001 From: owen Date: Fri, 8 Dec 2023 21:54:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=81=E8=A3=85=E6=8B=96=E6=8B=BD=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=EF=BC=8C=E6=8F=90=E4=BE=9B=E7=A7=BB=E5=8A=A8=E3=80=81?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E3=80=81=E5=88=A0=E9=99=A4=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/mobile/Carousel/property.vue | 130 +++++++----------- .../components/mobile/MenuGrid/property.vue | 93 +++++-------- .../components/mobile/MenuList/property.vue | 66 +++------ .../components/mobile/MenuSwiper/property.vue | 86 ++++-------- .../components/mobile/NoticeBar/config.ts | 11 +- .../components/mobile/NoticeBar/property.vue | 84 ++++------- .../components/mobile/SearchBar/property.vue | 128 +++++++---------- .../components/mobile/TabBar/index.vue | 11 +- .../components/mobile/TabBar/property.vue | 101 ++++---------- src/components/Draggable/index.vue | 77 +++++++++++ 10 files changed, 325 insertions(+), 462 deletions(-) create mode 100644 src/components/Draggable/index.vue diff --git a/src/components/DiyEditor/components/mobile/Carousel/property.vue b/src/components/DiyEditor/components/mobile/Carousel/property.vue index 972ba507..c3a51542 100644 --- a/src/components/DiyEditor/components/mobile/Carousel/property.vue +++ b/src/components/DiyEditor/components/mobile/Carousel/property.vue @@ -39,87 +39,60 @@ - 拖动左上角的小圆点可对其排序 - diff --git a/src/components/DiyEditor/components/mobile/MenuGrid/property.vue b/src/components/DiyEditor/components/mobile/MenuGrid/property.vue index b92e2099..7940fd0f 100644 --- a/src/components/DiyEditor/components/mobile/MenuGrid/property.vue +++ b/src/components/DiyEditor/components/mobile/MenuGrid/property.vue @@ -9,72 +9,50 @@ - 菜单设置 - 拖动左侧的小圆点可以调整顺序 - diff --git a/src/components/DiyEditor/components/mobile/MenuList/property.vue b/src/components/DiyEditor/components/mobile/MenuList/property.vue index 0ed6035c..a5fb4603 100644 --- a/src/components/DiyEditor/components/mobile/MenuList/property.vue +++ b/src/components/DiyEditor/components/mobile/MenuList/property.vue @@ -5,55 +5,34 @@ -
- - - -
- - - 添加菜单 - - + + +
diff --git a/src/components/DiyEditor/components/mobile/MenuSwiper/property.vue b/src/components/DiyEditor/components/mobile/MenuSwiper/property.vue index 31e158ce..bb7f8ce1 100644 --- a/src/components/DiyEditor/components/mobile/MenuSwiper/property.vue +++ b/src/components/DiyEditor/components/mobile/MenuSwiper/property.vue @@ -22,63 +22,42 @@ - 菜单设置 - 拖动左侧的小圆点可以调整顺序 - diff --git a/src/components/DiyEditor/components/mobile/NoticeBar/config.ts b/src/components/DiyEditor/components/mobile/NoticeBar/config.ts index 03e7143a..b6b0860d 100644 --- a/src/components/DiyEditor/components/mobile/NoticeBar/config.ts +++ b/src/components/DiyEditor/components/mobile/NoticeBar/config.ts @@ -1,4 +1,4 @@ -import { DiyComponent } from '@/components/DiyEditor/util' +import { ComponentStyle, DiyComponent } from '@/components/DiyEditor/util' /** 公告栏属性 */ export interface NoticeBarProperty { @@ -10,6 +10,8 @@ export interface NoticeBarProperty { backgroundColor: string // 文字颜色 textColor: string + // 组件样式 + style: ComponentStyle } /** 内容属性 */ @@ -34,6 +36,11 @@ export const component = { } ], backgroundColor: '#fff', - textColor: '#333' + textColor: '#333', + style: { + bgType: 'color', + bgColor: '#fff', + marginBottom: 8 + } as ComponentStyle } } as DiyComponent diff --git a/src/components/DiyEditor/components/mobile/NoticeBar/property.vue b/src/components/DiyEditor/components/mobile/NoticeBar/property.vue index a3eefebe..7129d7cb 100644 --- a/src/components/DiyEditor/components/mobile/NoticeBar/property.vue +++ b/src/components/DiyEditor/components/mobile/NoticeBar/property.vue @@ -1,58 +1,37 @@ diff --git a/src/components/DiyEditor/components/mobile/SearchBar/property.vue b/src/components/DiyEditor/components/mobile/SearchBar/property.vue index d121a1e3..90027027 100644 --- a/src/components/DiyEditor/components/mobile/SearchBar/property.vue +++ b/src/components/DiyEditor/components/mobile/SearchBar/property.vue @@ -1,81 +1,64 @@