潘志宝
2025-02-05 3e5f6c444a32a66a6111aacd3a4c5212c32bdf9e
提交 | 用户 | 时间
820397 1 import { ComponentStyle, DiyComponent } from '@/components/DiyEditor/util'
H 2
3 /** 营销文章属性 */
4 export interface PromotionArticleProperty {
5   // 文章编号
6   id: number
7   // 组件样式
8   style: ComponentStyle
9 }
10
11 // 定义组件
12 export const component = {
13   id: 'PromotionArticle',
14   name: '营销文章',
15   icon: 'ph:article-medium',
16   property: {
17     style: {
18       bgType: 'color',
19       bgColor: '',
20       marginLeft: 8,
21       marginRight: 8,
22       marginBottom: 8
23     } as ComponentStyle
24   }
25 } as DiyComponent<PromotionArticleProperty>