Browse Source

Pull request #1551: 无jira任务 refactor: 改下描述

Merge in VISUAL/fineui from ~KIRA/fineui:master to master

* commit '9cd399a67f181338b36e3d59d58444344fbb4f60':
  refactor: 改下描述
  refactor: 改下描述
  refactor: 改下描述
es6
Kira 4 years ago
parent
commit
165d6f5e6d
  1. 2
      typescript/core/base.ts
  2. 8
      typescript/core/plugin.ts

2
typescript/core/base.ts

@ -263,7 +263,7 @@ export interface _base {
isDeepMatch: (object: any, attrs: any) => boolean;
contains: (obj: any[], target: any, fromIndex?: number) => number;
contains: (obj: any[], target: any, fromIndex?: number) => boolean;
deepContains: (obj: any[], copy: any) => number;

8
typescript/core/plugin.ts

@ -1,13 +1,13 @@
import { _Widget } from "./widget";
type configWidgetFn = (options: object) => object
type configObjectFn = (widget: _Widget) => void
type configWidgetFn = (type: string, options: Obj) => void
type configObjectFn = (type: string, widget: _Widget) => void
export type _config = (widgetFunction: configWidgetFn | configWidgetFn[], objectFunction: configObjectFn | configObjectFn[]) => void
export type _configWidget = (shorcut: string, widgetFunction: configWidgetFn) => void
export type _configWidget = (shortcut: string, widgetFunction: configWidgetFn) => void
export type _registerObject = (shorcut: string, objectFunction: configObjectFn) => void
export type _registerObject = (shortcut: string, objectFunction: configObjectFn) => void
export type _Plugin = {
config: _config;

Loading…
Cancel
Save