UNPKG

form-designer-xinyi

Version:

基于vue3的设计器,可视化开发页面表单

48 lines (46 loc) 1.15 kB
import { ComponentSchema } from '../../core/types/epic-designer'; import { Ref } from 'vue'; /** 历史记录模型 */ export interface RecordModel { type: string; componentSchema: string; } /** 撤销重做功能 */ export declare function useRevoke(): { recordList: Ref<Array<{ type: string; componentSchema: string; }>>; undoList: Ref<Array<{ type: string; componentSchema: string; }>>; currentRecord: Ref<{ type: string; componentSchema: string; } | null>; push: (componentSchema: ComponentSchema[], type?: string) => void; undo: () => RecordModel | false; redo: () => RecordModel | false; }; export declare const revoke: { recordList: Ref<Array<{ type: string; componentSchema: string; }>>; undoList: Ref<Array<{ type: string; componentSchema: string; }>>; currentRecord: Ref<{ type: string; componentSchema: string; } | null>; push: (componentSchema: ComponentSchema[], type?: string) => void; undo: () => RecordModel | false; redo: () => RecordModel | false; };