Skip to content

pantoken-root / 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