epic-designer-cjh
Version:
基于vue3的设计器,可视化开发页面表单
47 lines (46 loc) • 1.05 kB
TypeScript
import { type NodeItem } from '../../core/types/epic-designer';
import { type Ref } from 'vue';
/**
历史记录模型
*/
export interface RecordModel {
type: string;
record: string;
}
/**
撤销重做功能
*/
export declare function useRevoke(): {
recordList: Ref<Array<{
type: string;
record: string;
}>>;
undoList: Ref<Array<{
type: string;
record: string;
}>>;
currentRecord: Ref<{
type: string;
record: string;
} | null>;
push: (record: NodeItem[], type?: string) => void;
undo: () => RecordModel | false;
redo: () => RecordModel | false;
};
export declare const revoke: {
recordList: Ref<Array<{
type: string;
record: string;
}>>;
undoList: Ref<Array<{
type: string;
record: string;
}>>;
currentRecord: Ref<{
type: string;
record: string;
} | null>;
push: (record: NodeItem[], type?: string) => void;
undo: () => RecordModel | false;
redo: () => RecordModel | false;
};