Files
pure-admin-thin/src/utils/mitt.ts
2022-08-22 21:34:55 +08:00

22 lines
393 B
TypeScript

import type { Emitter } from "mitt";
import mitt from "mitt";
type Events = {
resize: {
detail: {
width: number;
height: number;
};
};
openPanel: string;
tagViewsChange: string;
tagViewsShowModel: string;
logoChange: boolean;
changLayoutRoute: {
indexPath: string;
parentPath: string;
};
};
export const emitter: Emitter<Events> = mitt<Events>();