epic-designer
Version:
基于vue3的设计器,可视化开发页面表单
24 lines (23 loc) • 634 B
TypeScript
export interface MessageApi {
error: (text: string) => void;
info: (text: string) => void;
success: (text: string) => void;
warning: (text: string) => void;
}
export interface InitialGlobal {
[key: string]: any;
}
export interface Global extends InitialGlobal {
$message: MessageApi;
}
export declare function useGlobal(initialGlobal?: InitialGlobal): {
global: {
[x: string]: any;
$message: {
error: (text: string) => void;
info: (text: string) => void;
success: (text: string) => void;
warning: (text: string) => void;
};
};
};