Files
mixtape/zero.Backoffice.UI/app/editor/_new/plugin.ts
T
2021-12-21 00:53:17 +01:00

11 lines
288 B
TypeScript

import { defineAsyncComponent } from 'vue';
import { ZeroPlugin, ZeroPluginOptions } from '../../core';
export default {
name: "zero.editor",
install(app: ZeroPluginOptions)
{
app.fieldType('text', defineAsyncComponent(() => import('./fields/text.vue')));
}
} as ZeroPlugin;