import type { IListener, IResource } from './common'; import type { IDataSource } from './datasource'; import type { IBaseComponent } from './component'; export interface IApp { /** * 必填, 应用名称, 标识 * @maxLength 214 * @minLength 1 * @pattern ^(?:\x40[a-z0-9-*~][a-z0-9-*._~]*\x47)?[a-z0-9-~][a-z0-9-._~]*$ */ name?: string; /** * 选填, 应用别名 */ label?: string; /** * 选填, 应用版本 * version 值应该能够被 node-semver 解析 * * @default 0.1.0 */ version?: string; /** * 协议版本 (格式semver version) * * @example x.x.x | latest */ schemaVersion?: string; /** * 选填, 应用简介 */ description?: string; /** * 选填, 应用的入口组件 * * @default "home" */ main?: string; /** * 选填, 应用的作者 */ author?: string; /** * 可选, 应用的控制属性 */ attributes?: { [key: string]: any; }; /** * 可选, 应用事件信息 */ events?: any; /** * 必填, 应用的组件集合 */ items: IBaseComponent[]; /** * 可选, 数据源集合 */ dataSources?: IDataSource[]; /** * 可选, 应用的资源集合 * * 例如, 代码片段、组件库、静态资源 */ resources?: IResource[]; /** * 可选, 应用绑定的监听器 */ listeners?: IListener[]; /** * 可选, 扩展字段, 尽量避免用 */ extra?: any; } //# sourceMappingURL=app.d.ts.map