import * as Component from "./component"; export type UID = "string"; export type Platform = "pc" | "h5" | "pad" | "auto"; export type Mode = "edit" | "preview"; /** * 页面参数 */ export interface Options { uid: UID; // 唯一ID key: string; // 页面标记 name: string; // 页面名称 mode: Mode; // PC or H5 platform: Platform; // PC or H5 components: Array; // 页面的组件 source: Array; // 数据源 } export enum HookType { beforeCreate = "beforeCreate", // 创建实体对象前 // created = "created", // 创建实体对象后 beforeMount = "beforeMount", mounted = "mounted", // 渲染 // hidden = "hidden", // 隐藏 // show = "show", // 激活 beforeDestroy = "beforeDestroy", destroyed = "destroyed" }