/
staskobzar
/
vue-audio-visual
Обзор
Документация
Войти
/
staskobzar
/
vue-audio-visual
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/plugin.ts
35 строк
943 B
Stas Kobzar
upgrade with Vue3 composable API
11 ноя 2022, 04:41
Не верифицирован
11 ноя 2022, 04:41
225b447
Код
Авторство
О чём код?
import type { App } from 'vue' import AVBars from '@/components/AVBars.vue' import AVCircle from '@/components/AVCircle.vue' import AVLine from '@/components/AVLine.vue' import AVWaveform from '@/components/AVWaveform.vue' import AVMedia from '@/components/AVMedia.vue' import { useAVBars } from '@/composables/useAVBars' import { useAVCircle } from '@/composables/useAVCircle' import { useAVLine } from '@/composables/useAVLine' import { useAVWaveform } from '@/composables/useAVWaveform' import { useAVMedia } from '@/composables/useAVMedia' const AVPlugin = { install(app: App) { app.component('av-bars', AVBars) app.component('av-circle', AVCircle) app.component('av-line', AVLine) app.component('av-waveform', AVWaveform) app.component('av-media', AVMedia) } } export { AVBars, AVCircle, AVLine, AVWaveform, AVMedia, useAVBars, useAVCircle, useAVLine, useAVWaveform, useAVMedia, AVPlugin }