import { Schema } from 'amis-core'; import { BasePlugin, PluginEvent, EventContext } from 'amis-designer-core'; export default class TabsPlugin extends BasePlugin { rendererName: string; name: string; description: string; groups: string[]; icon: string; scaffold: { type: string; tabs: { title: string; body: Schema[]; }[]; }; previewSchema: { type: string; tabs: { title: string; body: { type: string; tpl: string; }[]; }[]; }; panelTitle: string; panelBody: any[]; filterProps: (props: any) => any; /** * 是否阻止默认事件 * * 返回 false,不阻止,返回 true,阻止 * @param e event * @returns boolean */ onPreventClick: (e: PluginEvent) => boolean; }