schlechtenburg/packages/image/lib/index.ts

11 lines
312 B
TypeScript
Raw Normal View History

2020-12-27 21:32:43 +00:00
import { defineAsyncComponent } from 'vue';
import { getDefaultData } from './util';
export default {
name: 'sb-image',
getDefaultData,
edit: defineAsyncComponent(() => import('./edit')),
display: defineAsyncComponent(() => import('./display')),
2021-02-22 23:12:06 +00:00
getChildren: (block) => [ block.data.description ],
2020-12-27 21:32:43 +00:00
};