UNPKG

@vant/cli

Version:

Vant CLI is a tool for building vue component library. You can quickly build a full-featured Vue component library with vant-cli.

13 lines (10 loc) 309 B
import { createApp } from 'vue'; import App from './App.vue'; import DemoPlayground from './components/DemoPlayground.vue'; import { router } from './router'; window.app = createApp(App) .use(router) .component(DemoPlayground.name, DemoPlayground); setTimeout(() => { window.app.mount('#app'); }, 0);