123456789 |
- // see https://v3-migration.vuejs.org/breaking-changes/events-api.html#_3-x-update
- import emitter from 'tiny-emitter/instance'
- export default {
- $on: (...args) => emitter.on(...args),
- $once: (...args) => emitter.once(...args),
- $off: (...args) => emitter.off(...args),
- $emit: (...args) => emitter.emit(...args)
- }
|