Skip to content

pantoken / renderers/vue/src / PantokenVue

变量: PantokenVue

const PantokenVue: object

实验性

pantoken Vue 插件:app.use(PantokenVue)app.use(PantokenVue, { locale: "hu" })

Type Declaration

install()

install(app, options?): void

参数

app

VueAppLike

options?
locale?

string | LocaleBundle

返回值

void

示例

ts
import { createApp } from "vue";
import { PantokenVue } from "@pantoken/vue";
import "@pantoken/css";

createApp(App).use(PantokenVue).mount("#app");
createApp(App).use(PantokenVue, { locale: "hu" }).mount("#app"); // localized