/
githubmirror
/
ionic-framework
Обзор
Документация
Войти
/
githubmirror
/
ionic-framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/vue/src/ionic-vue.ts
20 строк
636 B
Christian Bromann
fix(vue): update output target and properly emit events (#30227)
11 мар 2025, 23:39
Не верифицирован
11 мар 2025, 23:39
11554a5
Код
Авторство
О чём код?
import type { IonicConfig } from "@ionic/core/components"; import { initialize } from "@ionic/core/components"; import type { App, Plugin } from "vue"; export const IonicVue: Plugin<[IonicConfig?]> = { async install(_: App, config: IonicConfig = {}) { /** * By default Ionic Framework hides elements that * are not hydrated, but in the CE build there is no * hydration. * TODO FW-2797: Remove when all integrations have been * migrated to CE build. */ if (typeof (document as any) !== "undefined") { document.documentElement.classList.add("ion-ce"); } initialize(config); }, };