import { BasicProps, BasicState, EditSetting } from '../type' export class Props extends BasicProps { public editSetting: EditSetting = { key: 'gaea-lofterbounty', name: 'lofter津贴模块', isContainer: false, isAutoHeight: true, defaultPosition: { top: '0', left: '0' }, type: ['common', 'lofter'], editors: [ { field: 'title', text: '模块标题', type: 'string', }, { 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: 'bounties', type: 'bountySearch' }, { field: 'marginTop', text: '模块上间距', type: 'number' }, ] }; styleColor: string = '#FF9E4C'; fontColor: string = 'white'; title: string; type: number = 1; coupons: object[]; marginTop = .16; } export class State extends BasicState { btnStatusMap = new Map(); //默认1 已领取2 已领完3 }