From 82aed175ab31296666a317e81e0e2bb7744b4f5d Mon Sep 17 00:00:00 2001 From: owen Date: Thu, 9 Nov 2023 09:18:46 +0800 Subject: [PATCH] =?UTF-8?q?=E8=90=A5=E9=94=80=EF=BC=9A=E9=80=82=E9=85=8D?= =?UTF-8?q?=E5=95=86=E5=9F=8E=E8=A3=85=E4=BF=AE=E7=BB=84=E4=BB=B6=E3=80=90?= =?UTF-8?q?=E8=8F=9C=E5=8D=95=E5=AF=BC=E8=88=AA=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ColorInput/index.vue | 24 +--- .../components/ComponentContainer.vue | 31 +++-- .../components/mobile/MenuGrid/config.ts | 2 +- .../components/mobile/MenuSwiper/config.ts | 66 ++++++++++ .../components/mobile/MenuSwiper/index.vue | 119 ++++++++++++++++++ .../components/mobile/MenuSwiper/property.vue | 106 ++++++++++++++++ src/components/DiyEditor/util.ts | 16 +-- src/components/InputWithColor/index.vue | 3 +- src/utils/color.ts | 21 ++++ 9 files changed, 344 insertions(+), 44 deletions(-) create mode 100644 src/components/DiyEditor/components/mobile/MenuSwiper/config.ts create mode 100644 src/components/DiyEditor/components/mobile/MenuSwiper/index.vue create mode 100644 src/components/DiyEditor/components/mobile/MenuSwiper/property.vue diff --git a/src/components/ColorInput/index.vue b/src/components/ColorInput/index.vue index abd083a1..63ff73cf 100644 --- a/src/components/ColorInput/index.vue +++ b/src/components/ColorInput/index.vue @@ -1,38 +1,18 @@ + + diff --git a/src/components/DiyEditor/components/mobile/MenuSwiper/property.vue b/src/components/DiyEditor/components/mobile/MenuSwiper/property.vue new file mode 100644 index 00000000..2175d57e --- /dev/null +++ b/src/components/DiyEditor/components/mobile/MenuSwiper/property.vue @@ -0,0 +1,106 @@ + + + + + diff --git a/src/components/DiyEditor/util.ts b/src/components/DiyEditor/util.ts index 96dd4dbb..5ae0a93f 100644 --- a/src/components/DiyEditor/util.ts +++ b/src/components/DiyEditor/util.ts @@ -100,17 +100,13 @@ export const PAGE_LIBS = [ { name: '基础组件', extended: true, - components: [ - 'SearchBar', - 'NoticeBar', - 'MenuSwiper', - 'MenuGrid', - 'MenuList', - 'Divider', - 'TitleBar' - ] + components: ['SearchBar', 'NoticeBar', 'MenuSwiper', 'MenuGrid', 'MenuList'] + }, + { + name: '图文组件', + extended: true, + components: ['ImageBar', 'Carousel', 'TitleBar', 'VideoPlayer', 'Divider'] }, - { name: '图文组件', extended: true, components: ['ImageBar', 'Carousel', 'VideoPlayer'] }, { name: '商品组件', extended: true, components: ['ProductCard'] }, { name: '会员组件', diff --git a/src/components/InputWithColor/index.vue b/src/components/InputWithColor/index.vue index 1932fd58..2bc53172 100644 --- a/src/components/InputWithColor/index.vue +++ b/src/components/InputWithColor/index.vue @@ -1,13 +1,14 @@