You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
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
}
// 定义组件
// TODO @疯狂: idea 有告警
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 >