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/ProductList/config.ts | 64 ++++++++++++++++++++++++++++++++
1 files changed, 64 insertions(+), 0 deletions(-)
diff --git a/src/components/DiyEditor/components/mobile/ProductList/config.ts b/src/components/DiyEditor/components/mobile/ProductList/config.ts
new file mode 100644
index 0000000..1f16832
--- /dev/null
+++ b/src/components/DiyEditor/components/mobile/ProductList/config.ts
@@ -0,0 +1,64 @@
+import { ComponentStyle, DiyComponent } from '@/components/DiyEditor/util'
+
+/** 鍟嗗搧鏍忓睘鎬� */
+export interface ProductListProperty {
+ // 甯冨眬绫诲瀷锛氬弻鍒� | 涓夊垪 | 姘村钩婊戝姩
+ layoutType: 'twoCol' | 'threeCol' | 'horizSwiper'
+ // 鍟嗗搧瀛楁
+ fields: {
+ // 鍟嗗搧鍚嶇О
+ name: ProductListFieldProperty
+ // 鍟嗗搧浠锋牸
+ price: ProductListFieldProperty
+ }
+ // 瑙掓爣
+ badge: {
+ // 鏄惁鏄剧ず
+ show: boolean
+ // 瑙掓爣鍥剧墖
+ imgUrl: string
+ }
+ // 涓婂渾瑙�
+ borderRadiusTop: number
+ // 涓嬪渾瑙�
+ borderRadiusBottom: number
+ // 闂磋窛
+ space: number
+ // 鍟嗗搧缂栧彿鍒楄〃
+ spuIds: number[]
+ // 缁勪欢鏍峰紡
+ style: ComponentStyle
+}
+// 鍟嗗搧瀛楁
+export interface ProductListFieldProperty {
+ // 鏄惁鏄剧ず
+ show: boolean
+ // 棰滆壊
+ color: string
+}
+
+// 瀹氫箟缁勪欢
+export const component = {
+ id: 'ProductList',
+ name: '鍟嗗搧鏍�',
+ icon: 'fluent:text-column-two-24-filled',
+ property: {
+ layoutType: 'twoCol',
+ fields: {
+ name: { show: true, color: '#000' },
+ price: { show: true, color: '#ff3000' }
+ },
+ badge: { show: false, imgUrl: '' },
+ borderRadiusTop: 8,
+ borderRadiusBottom: 8,
+ space: 8,
+ spuIds: [],
+ style: {
+ bgType: 'color',
+ bgColor: '',
+ marginLeft: 8,
+ marginRight: 8,
+ marginBottom: 8
+ } as ComponentStyle
+ }
+} as DiyComponent<ProductListProperty>
--
Gitblit v1.8.0