公共组件、公共样式集合
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
322 B

import Vue from 'vue'
// 创建全局事件总线
const EventBus = new Vue()
// 封装常用方法
export const $on = EventBus.$on.bind(EventBus)
export const $once = EventBus.$once.bind(EventBus)
export const $off = EventBus.$off.bind(EventBus)
export const $emit = EventBus.$emit.bind(EventBus)
export default EventBus