import { BasicProps, BasicState, EditSetting } from '../type' export class Props extends BasicProps { public editSetting: EditSetting = { key: 'gaea-lofterShelf', name: 'lofter货架页模块', isContainer: false, isAutoHeight: true, defaultPosition: { top: '0', left: '0' }, type: ['common', 'lofter'], editors: [ { field: 'type', text: '货架页个数', type: 'select', data: [{ text: '1个', value: 1 }, { text: '2个', value: 2 }, { text: '3个', value: 3 }] }, { field: 'shelfData', text: '货架页配置', type: 'array', data: [ { field: 'link', type: 'string', text: '链接:' }, { field: 'text1', type: 'string', text: '文案一:' }, { field: 'text2', type: 'string', text: '文案二:' }, { field: 'image', type: 'image', text: '图片:' }, { field: 'backgroundImage', type: 'image', text: '底图:' }, { field: 'backgroundColor', type: 'color', text: '背景颜色:' } ] }, { field: 'marginTop', text: '模块上间距', type: 'number' } ] }; type: string = '1' shelfData: Array = [] marginTop = .1 } export class State extends BasicState { }