mirror of
https://github.com/pure-admin/pure-admin-thin.git
synced 2025-12-15 14:50:48 +08:00
15 lines
341 B
TypeScript
15 lines
341 B
TypeScript
import type { Emitter } from "mitt";
|
|
import mitt from "mitt";
|
|
|
|
/** 全局公共事件需要在此处添加类型 */
|
|
type Events = {
|
|
openPanel: string;
|
|
tagOnClick: string;
|
|
logoChange: boolean;
|
|
tagViewsChange: string;
|
|
changLayoutRoute: string;
|
|
tagViewsShowModel: string;
|
|
};
|
|
|
|
export const emitter: Emitter<Events> = mitt<Events>();
|