mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-07 08:57:19 +08:00
22 lines
392 B
TypeScript
22 lines
392 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: string;
|
|
changLayoutRoute: {
|
|
indexPath: string;
|
|
parentPath: string;
|
|
};
|
|
};
|
|
|
|
export const emitter: Emitter<Events> = mitt<Events>();
|