declare namespace FitGaea { /** * 组件信息 */ export interface ComponentProps extends __React.HTMLProps { /** * 唯一的 key,用来唯一标识这个组件,所有盖亚内部组件都以 gaea- 为前缀 */ gaeaUniqueKey: string /** * 组件的中文名 */ gaeaName: string /** * 组件图标,为 fontAwesome */ gaeaIcon?: string gaeaEdit?: Array [x: string]: any } /** * 组件配置中数组配置 */ export interface ComponentPropsOptionsArray extends ComponentPropsGaeaEdit { key: string } /** * 组件配置中数组配置的值 */ export interface ComponentPropsOptionsArrayValue { /** * ComponentPropsOptionsArray 设置的 key */ key: string /** * 用户填入的值 */ value: number|string } /** * 组件配置 选择器配置 */ export interface ComponentPropsOptionsSelector { key: number|string value: number|string } /** * 组件的值 */ export type ComponentPropsOptionValue = number|string|boolean|Array|any /** * 组件配置 */ export interface ComponentPropsGaeaEdit { /** * 对应字段名 */ field: string /** * 选项名称 */ label: string /** * 编辑器类型 text array(暂时不支持) selector switch */ editor: string /** * 是否可被编辑 */ editable: boolean /** * 当 editor 为 array 时的数组配置 * 数组中的 key,和填入的值,会作为 Array 填入到 value 中 */ array?: Array /** * 当 editor 为 selector 时的数组配置 */ selector?: Array /** * 值类型, 默认为字符串 */ type?: string /** * 是否为 null */ isNull?: boolean /** * 能否被设置为 null */ canNull?: boolean /** * 暂存这个字段非 null 时候的值, 为了在设置 null 后可以还原 */ notNullValue?: any } /** * 保存信息 */ export interface SaveInfo { /** * 保存时间 */ date: Date, /** * 页面组件构成信息 */ pageInfo: any, /** * 唯一标识 */ id: string, /** * 是否已发布 */ isPublished?: boolean, /** * 发布的版本号 */ publishCode?: string /** * 发布的备注 */ remarks?: string } /** * 资源文件 */ export interface SourceFile { // 文件类型 type: string // 文件名 name: string // 序号,排在第几 order: number } /** * 上线信息 */ export interface OnlineVersion { key: string, value: string } /** * 组合信息 */ export interface ComboComponentInfo extends ViewportComponentFullInfo { // 组合名 name: string } }