import { BasicProps, BasicState, EditSetting } from '../type' export class Props extends BasicProps { public editSetting: EditSetting = { key: 'gaea-loftercoupon', name: 'lofter优惠券模块', isContainer: false, isAutoHeight: true, defaultPosition: { top: '0', left: '0' }, type: ['common', 'lofter'], editors: [ { field: 'title', text: '模块标题', type: 'string', }, { field: 'activeType', text: '业务类型', type: 'select', data: [{ text: '其他', value: 1 }, { text: '新人礼包', value: 2 }] }, { field: 'styleColor', text: '风格颜色', type: 'color' }, { field: 'fontColor', text: '字体颜色', type: 'color' }, { field: 'type', text: '模块类型', type: 'select', data: [{ text: '1列', value: 1 }, { text: '2列', value: 2 }, { text: '3列', value: 3 }] }, { field: 'coupons', type: 'couponSearch' }, { field: 'marginTop', text: '模块上间距', type: 'number' }, ] }; title: string type: number = 1 coupons: object[] marginTop = .16 styleColor: string = 'red'; fontColor: string = 'white'; activeType: number = 1 } export class State extends BasicState { btnStatusMap = new Map(); //默认1 已领取2 已领完3 couponsList: any[] = [] }