schlechtenburg/packages/image/lib/index.ts

11 lines
312 B
TypeScript

import { defineAsyncComponent } from 'vue';
import { getDefaultData } from './util';
export default {
name: 'sb-image',
getDefaultData,
edit: defineAsyncComponent(() => import('./edit')),
display: defineAsyncComponent(() => import('./display')),
getChildren: (block) => [ block.data.description ],
};