import { BasicProps, BasicState, EditSetting } from '../type' export class Props extends BasicProps { public editSetting: EditSetting = { key: 'gaea-lofterProductCoupon', name: 'lofter新人礼包-商品优惠券', type: 'business', isContainer: false, isAutoHeight: true, defaultPosition: { top: '0', left: '0' }, editors: [ { field: 'title', text: '模块标题', type: 'string', }, { field: 'type', text: '业务类型', type: 'select', data: [{ text: '其他', value: 1 }, { text: '新人礼包', value: 2 }] }, { field: 'shelfData', text: '商品优惠券配置', type: 'array', data: [ { field: 'couponsId', type: 'string', text: '优惠券ID' }, { field: 'productId', type: 'string', text: '商品ID' }, { field: 'attrGroupId', type: 'string', text: '商品属性ID' }, { field: 'productImage', text: '商品图片', type: 'image' }, { field: 'name', type: 'string', text: '商品名称' }, { field: 'reciveColor', text: '按钮背景', type: 'color' }, { field: 'link', type: 'string', text: '链接:', placeholder: '默认商品下单页' }, // { // field: 'backgroundColor', // type: 'color', // text: '背景颜色:' // } ] }, { field: 'marginTop', text: '模块上间距', type: 'number' }, ] }; title: string type: number = 1 marginTop = .32 shelfData: Array = [] } export class State extends BasicState { statusList: any = [] }