element-plus/website/bus.js

7 lines
151 B
JavaScript
Raw Normal View History

import mitt from 'mitt'
const emitter = mitt()
emitter.$off = emitter.off
emitter.$on = emitter.on
emitter.$emit = emitter.emit
export default emitter