import { BasicProps, BasicState, EditSetting } from '../type' export class Props extends BasicProps { public editSetting: EditSetting = { key: 'gaea-text', name: '文本框', isContainer: false, editors: [ { field: 'title', type: 'string', text: '文案' }, { field: 'style.fontSize', type: 'number', text: '字体大小' }, { field: 'style.color', type: 'color', text: '字体颜色' }, { field: 'style.background', type: 'color', text: '背景颜色' }, { field: 'style.textAlign', text: '对齐方式', type: 'select', data: [{ text: '居左', value: 'left' }, { text: '居中', value: 'center' }, { text: '居右', value: 'right' }] }, ] }; public title = '我是标题'; public style = { color: 'red', textAlign: 'left', } } export class State extends BasicState { }