import { Schema } from 'amis-core'; import { BasePlugin, IRegionConfig } from 'amis-designer-core'; export default class CardPlugin extends BasePlugin { rendererName: string; name: string; description: string; groups: string[]; icon: string; scaffold: { type: string; title: string; body: Schema[]; actions: Schema[]; }; previewSchema: { type: string; title: string; body: Schema[]; actions: Schema[]; } & { body: string; actions: { type: string; label: string; }[]; }; regions: ({ key: string; label: string; renderMethod: string; mode?: undefined; renderMethodOverride?: undefined; wrapperResolve?: undefined; } | { key: string; label: string; mode: string; renderMethod: string; renderMethodOverride: (regions: Array, insertRegion: Function) => () => any; wrapperResolve: (dom: any) => any; })[]; panelTitle: string; panelBodyCreator: (e: any) => any[]; }