Skip to content

pantoken-root / renderers/vue/src / PantokenVue

變數: PantokenVue ​

const PantokenVue: object

實驗性

The pantoken Vue plugin: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