import { BasePlugin } from 'amis-designer-core'; import { Schema } from 'amis-core'; export default class CRUDPlugin extends BasePlugin { rendererName: string; name: string; description: string; groups: string[]; icon: string; scaffold: { type: string; columns: Schema[]; filter: { body: Schema[]; actions: Schema[]; mode: string; }; }; previewSchema: { type: string; data: { items: { a: number; b: number; }[]; }; source: string; filter: { wrapWithPanel: boolean; body: ({ type: string; name: string; label: string; mode: string; placeholder: string; align?: undefined; className?: undefined; buttons?: undefined; } | { type: string; align: string; className: string; buttons: ({ type: string; label: string; className: string; primary?: undefined; } | { type: string; className: string; label: string; primary: boolean; })[]; name?: undefined; label?: undefined; mode?: undefined; placeholder?: undefined; })[]; }; columns: ({ label: string; name: string; type?: undefined; buttons?: undefined; } | { type: string; label: string; buttons: { type: string; icon: string; }[]; name?: undefined; })[]; }; panelTitle: string; panelBodyCreator: () => any; transferToolbar: (type: string) => string; filterProps: (props: any) => any; }