import { IColorConfigType, INumberConfigType, ITextConfigType, TColorDefaultType, TNumberDefaultType, TTextDefaultType, } from 'editorCore/FormComponents/types'; export type TWhiteTplEditData = Array; export interface IWhiteTplConfig { bgColor: TColorDefaultType; text: TTextDefaultType; fontSize: TNumberDefaultType; color: TColorDefaultType; height: TNumberDefaultType; width: TNumberDefaultType; } export interface IWhiteTplSchema { editData: TWhiteTplEditData; config: IWhiteTplConfig; } const WhiteTpl: IWhiteTplSchema = { editData: [ { key: 'bgColor', name: '背景色', type: 'Color', }, { key: 'width', name: '宽度', type: 'Number', }, { key: 'height', name: '高度', type: 'Number', }, { key: 'text', name: '文字', type: 'Text', }, { key: 'color', name: '文字颜色', type: 'Color', }, { key: 'fontSize', name: '文字大小', type: 'Number', }, ], config: { bgColor: 'rgba(255,255,255,1)', text: '', fontSize: 16, color: 'rgba(210,210,210,1)', height: 30, width: 375 }, }; export default WhiteTpl;