From 848091ea6f7abd85bcbec71978568b67fee73ef0 Mon Sep 17 00:00:00 2001 From: owen Date: Fri, 1 Dec 2023 23:34:19 +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?=E7=94=A8=E6=88=B7=E8=AE=A2=E5=8D=95=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 2c1edfa781c549742a014213c6840f00dd432fe3) --- .../components/mobile/UserCard/config.ts | 2 -- .../components/mobile/UserOrder/config.ts | 23 +++++++++++++++++++ .../components/mobile/UserOrder/index.vue | 13 +++++++++++ .../components/mobile/UserOrder/property.vue | 17 ++++++++++++++ src/components/DiyEditor/util.ts | 2 +- 5 files changed, 54 insertions(+), 3 deletions(-) create mode 100644 src/components/DiyEditor/components/mobile/UserOrder/config.ts create mode 100644 src/components/DiyEditor/components/mobile/UserOrder/index.vue create mode 100644 src/components/DiyEditor/components/mobile/UserOrder/property.vue diff --git a/src/components/DiyEditor/components/mobile/UserCard/config.ts b/src/components/DiyEditor/components/mobile/UserCard/config.ts index b4676005..7b337761 100644 --- a/src/components/DiyEditor/components/mobile/UserCard/config.ts +++ b/src/components/DiyEditor/components/mobile/UserCard/config.ts @@ -15,8 +15,6 @@ export const component = { style: { bgType: 'color', bgColor: '', - marginLeft: 8, - marginRight: 8, marginBottom: 8 } as ComponentStyle } diff --git a/src/components/DiyEditor/components/mobile/UserOrder/config.ts b/src/components/DiyEditor/components/mobile/UserOrder/config.ts new file mode 100644 index 00000000..f9c5a6db --- /dev/null +++ b/src/components/DiyEditor/components/mobile/UserOrder/config.ts @@ -0,0 +1,23 @@ +import { ComponentStyle, DiyComponent } from '@/components/DiyEditor/util' + +/** 用户订单属性 */ +export interface UserOrderProperty { + // 组件样式 + style: ComponentStyle +} + +// 定义组件 +export const component = { + id: 'UserOrder', + name: '用户订单', + icon: 'ep:list', + property: { + style: { + bgType: 'color', + bgColor: '', + marginLeft: 8, + marginRight: 8, + marginBottom: 8 + } as ComponentStyle + } +} as DiyComponent diff --git a/src/components/DiyEditor/components/mobile/UserOrder/index.vue b/src/components/DiyEditor/components/mobile/UserOrder/index.vue new file mode 100644 index 00000000..450ae548 --- /dev/null +++ b/src/components/DiyEditor/components/mobile/UserOrder/index.vue @@ -0,0 +1,13 @@ + + + + diff --git a/src/components/DiyEditor/components/mobile/UserOrder/property.vue b/src/components/DiyEditor/components/mobile/UserOrder/property.vue new file mode 100644 index 00000000..42df7410 --- /dev/null +++ b/src/components/DiyEditor/components/mobile/UserOrder/property.vue @@ -0,0 +1,17 @@ + + + + + diff --git a/src/components/DiyEditor/util.ts b/src/components/DiyEditor/util.ts index 9f75aaa8..606e53a2 100644 --- a/src/components/DiyEditor/util.ts +++ b/src/components/DiyEditor/util.ts @@ -109,7 +109,7 @@ export const PAGE_LIBS = [ }, { name: '商品组件', extended: true, components: ['ProductCard', 'ProductList'] }, { - name: '会员组件', + name: '用户组件', extended: true, components: ['UserCard', 'UserOrder', 'UserWallet', 'UserCoupon'] },