vue3: 非同期コンポーネント読み込みの移行 (#6580)

* migrate async components

* routerとwidgetsも
This commit is contained in:
Xeltica
2020-07-24 18:24:41 +09:00
committed by GitHub
parent f9e350b041
commit 0bf4c5cb29
13 changed files with 48 additions and 50 deletions

View File

@@ -1,17 +1,17 @@
import { App } from 'vue';
import { App, defineAsyncComponent } from 'vue';
export default function(app: App) {
app.component('mkw-welcome', () => import('./welcome.vue').then(m => m.default));
app.component('mkw-memo', () => import('./memo.vue').then(m => m.default));
app.component('mkw-notifications', () => import('./notifications.vue').then(m => m.default));
app.component('mkw-timeline', () => import('./timeline.vue').then(m => m.default));
app.component('mkw-calendar', () => import('./calendar.vue').then(m => m.default));
app.component('mkw-rss', () => import('./rss.vue').then(m => m.default));
app.component('mkw-trends', () => import('./trends.vue').then(m => m.default));
app.component('mkw-clock', () => import('./clock.vue').then(m => m.default));
app.component('mkw-activity', () => import('./activity.vue').then(m => m.default));
app.component('mkw-photos', () => import('./photos.vue').then(m => m.default));
app.component('mkw-digitalClock', () => import('./digital-clock.vue').then(m => m.default));
app.component('mkw-welcome', defineAsyncComponent(() => import('./welcome.vue').then(m => m.default)));
app.component('mkw-memo', defineAsyncComponent(() => import('./memo.vue').then(m => m.default)));
app.component('mkw-notifications', defineAsyncComponent(() => import('./notifications.vue').then(m => m.default)));
app.component('mkw-timeline', defineAsyncComponent(() => import('./timeline.vue').then(m => m.default)));
app.component('mkw-calendar', defineAsyncComponent(() => import('./calendar.vue').then(m => m.default)));
app.component('mkw-rss', defineAsyncComponent(() => import('./rss.vue').then(m => m.default)));
app.component('mkw-trends', defineAsyncComponent(() => import('./trends.vue').then(m => m.default)));
app.component('mkw-clock', defineAsyncComponent(() => import('./clock.vue').then(m => m.default)));
app.component('mkw-activity', defineAsyncComponent(() => import('./activity.vue').then(m => m.default)));
app.component('mkw-photos', defineAsyncComponent(() => import('./photos.vue').then(m => m.default)));
app.component('mkw-digitalClock', defineAsyncComponent(() => import('./digital-clock.vue').then(m => m.default)));
}
export const widgets = [