From 3c8ffc8c21c6297263ad0b3a980c1bc07c8adc87 Mon Sep 17 00:00:00 2001 From: owen Date: Fri, 1 Dec 2023 23:58:57 +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=E5=8D=A1=E5=88=B8=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/mobile/UserCoupon/config.ts | 23 +++++++++++++++++++ .../components/mobile/UserCoupon/index.vue | 15 ++++++++++++ .../components/mobile/UserCoupon/property.vue | 17 ++++++++++++++ .../components/mobile/UserWallet/index.vue | 2 +- 4 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 src/components/DiyEditor/components/mobile/UserCoupon/config.ts create mode 100644 src/components/DiyEditor/components/mobile/UserCoupon/index.vue create mode 100644 src/components/DiyEditor/components/mobile/UserCoupon/property.vue diff --git a/src/components/DiyEditor/components/mobile/UserCoupon/config.ts b/src/components/DiyEditor/components/mobile/UserCoupon/config.ts new file mode 100644 index 00000000..92eba9b6 --- /dev/null +++ b/src/components/DiyEditor/components/mobile/UserCoupon/config.ts @@ -0,0 +1,23 @@ +import { ComponentStyle, DiyComponent } from '@/components/DiyEditor/util' + +/** 用户卡券属性 */ +export interface UserCouponProperty { + // 组件样式 + style: ComponentStyle +} + +// 定义组件 +export const component = { + id: 'UserCoupon', + name: '用户卡券', + icon: 'ep:ticket', + property: { + style: { + bgType: 'color', + bgColor: '', + marginLeft: 8, + marginRight: 8, + marginBottom: 8 + } as ComponentStyle + } +} as DiyComponent diff --git a/src/components/DiyEditor/components/mobile/UserCoupon/index.vue b/src/components/DiyEditor/components/mobile/UserCoupon/index.vue new file mode 100644 index 00000000..27ad310a --- /dev/null +++ b/src/components/DiyEditor/components/mobile/UserCoupon/index.vue @@ -0,0 +1,15 @@ + + + + diff --git a/src/components/DiyEditor/components/mobile/UserCoupon/property.vue b/src/components/DiyEditor/components/mobile/UserCoupon/property.vue new file mode 100644 index 00000000..f902e04e --- /dev/null +++ b/src/components/DiyEditor/components/mobile/UserCoupon/property.vue @@ -0,0 +1,17 @@ + + + + + diff --git a/src/components/DiyEditor/components/mobile/UserWallet/index.vue b/src/components/DiyEditor/components/mobile/UserWallet/index.vue index b00d3105..0efc9371 100644 --- a/src/components/DiyEditor/components/mobile/UserWallet/index.vue +++ b/src/components/DiyEditor/components/mobile/UserWallet/index.vue @@ -1,6 +1,6 @@