mirror of
https://gitee.com/fantastic-admin/basic.git
synced 2024-12-05 21:47:55 +08:00
eventBus 类型完善
This commit is contained in:
parent
870f25b5c7
commit
05e1da7678
@ -1,3 +1,15 @@
|
||||
import mitt from 'mitt'
|
||||
|
||||
export default mitt()
|
||||
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
|
||||
type Events = {
|
||||
// 应用设置弹窗
|
||||
'global-app-setting-toggle': undefined
|
||||
// 系统信息弹窗
|
||||
'global-system-info-toggle': undefined
|
||||
// 快捷键弹窗
|
||||
'global-hotkeys-intro-toggle': undefined
|
||||
// 搜索框弹窗
|
||||
'global-search-toggle': undefined
|
||||
}
|
||||
|
||||
export default mitt<Events>()
|
||||
|
Loading…
Reference in New Issue
Block a user