bunny-admin-element-thin-i18n/src/utils/mitt.ts

14 lines
319 B
TypeScript
Raw Normal View History

2024-05-11 14:48:02 +08:00
import type { Emitter } from "mitt";
import mitt from "mitt";
/** 全局公共事件需要在此处添加类型 */
type Events = {
openPanel: string;
tagViewsChange: string;
tagViewsShowModel: string;
logoChange: boolean;
changLayoutRoute: string;
};
export const emitter: Emitter<Events> = mitt<Events>();