Files
mixtape/zero.Backoffice.UI/app/modules/media/plugin.ts
T
2021-12-19 01:16:02 +01:00

17 lines
707 B
TypeScript

import { ZeroPlugin, ZeroPluginOptions } from '../../core';
import { defineAsyncComponent } from 'vue';
export default {
name: "zero.countries",
install(app: ZeroPluginOptions)
{
//app.vue.component('ui-countrypicker', defineAsyncComponent(() => import('./ui-countrypicker.vue')));
app.route({ name: 'media', path: '/media/:parentId?', component: () => import('./pages/overview/overview.vue'), props: true });
app.route({ name: 'media-edit', path: '/media/edit/:id?', component: () => import('./pages/detail/detail.vue'), props: true });
//app.schema('countries', () => import('./schemas/list'));
app.schema('media:edit', () => import('./schemas/editor'));
}
} as ZeroPlugin;