mirror of
https://github.com/kevin-DL/vue-audio-recorder.git
synced 2026-01-21 06:55:02 +00:00
25 lines
488 B
JavaScript
25 lines
488 B
JavaScript
import AudioPlayer from '@/components/player.vue'
|
|
import AudioRecorder from '@/components/recorder.vue'
|
|
|
|
const components = {
|
|
AudioPlayer,
|
|
AudioRecorder,
|
|
|
|
install (Vue) {
|
|
if (this.installed) {
|
|
return
|
|
}
|
|
|
|
this.installed = true
|
|
|
|
Vue.prototype.$eventBus = Vue.prototype.$eventBus || new Vue
|
|
|
|
Vue.component('audio-player', AudioPlayer)
|
|
Vue.component('audio-recorder', AudioRecorder)
|
|
}
|
|
}
|
|
|
|
export default components
|
|
|
|
export { AudioPlayer, AudioRecorder }
|