import * as React from 'react'; import Event from './event'; export default class Application { event: Event; /** * 头部栏高度 */ headerHeight: number; /** * 侧边栏宽度 */ sidebarWidth: number; /** * 底部栏高度 */ footerHeight: number; /** * 编辑区域宽度百分比 1~100 */ viewportWidth: number; setViewportWidth(width: number): void; /** * 设置侧边栏宽度 */ setSidebarWidth(value: number): void; /** * 设置侧边栏是否在移动状态 */ setSidebarMoving(isMoving: boolean): void; /** * 是否正在移动侧边栏 */ isSidebarMoving: boolean; /** * 是否在预览状态 */ isPreview: boolean; /** * 修改预览状态 */ setPreview(isPreview: boolean): void; /** * 标题名称 */ title: string; /** * 页面默认编辑信息 */ defaultValue: { [mapUniqueKey: string]: FitGaea.ViewportComponentInfo; }; /** * 页面高度 */ height: number; /** * 是不是 reactNative */ isReactNative: boolean; /** * 将接收到的 props 赋值到 application 中 */ setInitPropsToApplication(props: { title: string; baseComponents: Array>; customComponents: Array>; isHideCustomComponents: boolean; height: number; defaultValue: { [mapUniqueKey: string]: FitGaea.ViewportComponentInfo; }; isReactNative: boolean; }): void; /** * 基础组件 */ baseComponents: Array>; /** * 定制组件 */ customComponents: Array>; /** * 设置定制组件 */ setCustomComponents(customComponents: Array>): void; /** * 组合组件 */ comboComponents: Array; /** * 添加一个组合 */ addComboComponent(comboComponent: FitGaea.ComboComponentInfo): void; /** * 根据 uniqueKey 获取组件 */ getComponentByUniqueKey(uniqueKey: string): React.ComponentClass; /** * 是否隐藏通用组件 */ isHideCustomComponents: boolean; }