chore: mitt demo

This commit is contained in:
dap
2024-09-24 20:52:31 +08:00
parent 7c4e03f751
commit d01b74a5b8
3 changed files with 30 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
import { mitt } from '@vben/utils';
/**
* dictType: string
*/
type Events = {
rowClick: string;
};
export const emitter = mitt<Events>();