zsmj 2 years ago
parent
commit
33acbc035b
  1. 8
      packages/fineui/typescript/core/plugin.ts

8
packages/fineui/typescript/core/plugin.ts

@ -3,8 +3,10 @@ import { Widget } from "./widget";
type configWidgetFn = (type: string, options: Obj) => void
type configObjectFn = (type: string, widget: Widget) => void
export declare function config(widgetFunction: configWidgetFn | configWidgetFn[], objectFunction: configObjectFn | configObjectFn[]): void
export declare namespace Plugin {
function config(widgetFunction: configWidgetFn | configWidgetFn[], objectFunction: configObjectFn | configObjectFn[]): void
export declare function configWidget(shortcut: string, widgetFunction: configWidgetFn): void
function configWidget(shortcut: string, widgetFunction: configWidgetFn): void
export declare function registerObject(shortcut: string, objectFunction: configObjectFn): void
function registerObject(shortcut: string, objectFunction: configObjectFn): void
}

Loading…
Cancel
Save