feat(vant-cli): 增加用于 demo 组件展示的 playground 组件

This commit is contained in:
HaoChuan9421
2021-03-12 17:58:53 +08:00
parent f1d72cb016
commit c2ac641ec1
4 changed files with 220 additions and 1 deletions

View File

@@ -1,6 +1,11 @@
import { createApp } from 'vue';
import { packageEntry } from 'site-desktop-shared';
import App from './App';
import DemoPlayground from './components/DemoPlayground';
import { router } from './router';
window.app = createApp(App).use(router).use(packageEntry).mount('#app');
window.app = createApp(App)
.use(router)
.use(packageEntry)
.component(DemoPlayground.name, DemoPlayground)
.mount('#app');