chore: mitt demo
This commit is contained in:
10
apps/web-antd/src/views/system/dict/mitt.ts
Normal file
10
apps/web-antd/src/views/system/dict/mitt.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { mitt } from '@vben/utils';
|
||||
|
||||
/**
|
||||
* dictType: string
|
||||
*/
|
||||
type Events = {
|
||||
rowClick: string;
|
||||
};
|
||||
|
||||
export const emitter = mitt<Events>();
|
Reference in New Issue
Block a user