From a1d7e81859f554f3a53680cc35f0f49bf1f77098 Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期四, 14 五月 2026 14:37:02 +0800
Subject: [PATCH] 导入项目
---
src/components/DiyEditor/components/mobile/CouponCard/config.ts | 47 +++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 47 insertions(+), 0 deletions(-)
diff --git a/src/components/DiyEditor/components/mobile/CouponCard/config.ts b/src/components/DiyEditor/components/mobile/CouponCard/config.ts
new file mode 100644
index 0000000..304533d
--- /dev/null
+++ b/src/components/DiyEditor/components/mobile/CouponCard/config.ts
@@ -0,0 +1,47 @@
+import { ComponentStyle, DiyComponent } from '@/components/DiyEditor/util'
+
+/** 鍟嗗搧鍗$墖灞炴�� */
+export interface CouponCardProperty {
+ // 鍒楁暟
+ columns: number
+ // 鑳屾櫙鍥�
+ bgImg: string
+ // 鏂囧瓧棰滆壊
+ textColor: string
+ // 鎸夐挳鏍峰紡
+ button: {
+ // 棰滆壊
+ color: string
+ // 鑳屾櫙棰滆壊
+ bgColor: string
+ }
+ // 闂磋窛
+ space: number
+ // 浼樻儬鍒哥紪鍙峰垪琛�
+ couponIds: number[]
+ // 缁勪欢鏍峰紡
+ style: ComponentStyle
+}
+
+// 瀹氫箟缁勪欢
+export const component = {
+ id: 'CouponCard',
+ name: '浼樻儬鍒�',
+ icon: 'ep:ticket',
+ property: {
+ columns: 1,
+ bgImg: '',
+ textColor: '#E9B461',
+ button: {
+ color: '#434343',
+ bgColor: ''
+ },
+ space: 0,
+ couponIds: [],
+ style: {
+ bgType: 'color',
+ bgColor: '',
+ marginBottom: 8
+ } as ComponentStyle
+ }
+} as DiyComponent<CouponCardProperty>
--
Gitblit v1.8.0