11 lines
288 B
TypeScript
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; |