mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-05-31 05:49:39 +08:00
🔨 Refactor: upgrade vue2 -> vue3
This commit is contained in:
@@ -1,2 +1,20 @@
|
||||
import Vue from 'vue'
|
||||
export default new Vue()
|
||||
import mitt from 'mitt'
|
||||
import {
|
||||
SHOW_INPUT_BOX,
|
||||
SHOW_INPUT_BOX_RESPONSE,
|
||||
FORCE_UPDATE
|
||||
} from '~/universal/events/constants'
|
||||
|
||||
type IEvent ={
|
||||
[SHOW_INPUT_BOX_RESPONSE]: string
|
||||
[SHOW_INPUT_BOX]: {
|
||||
value: string
|
||||
title: string
|
||||
placeholder: string
|
||||
},
|
||||
[FORCE_UPDATE]: void
|
||||
}
|
||||
|
||||
const emitter = mitt<IEvent>()
|
||||
|
||||
export default emitter
|
||||
|
||||
Reference in New Issue
Block a user