Browse Source

Merge pull request #1112 in VISUAL/fineui from ~TELLER/fineui:master to master

* commit '1f18b84f45cd2286047937984c47878c5c91f2e0':
  feat: 增加Trigger
master
Teller 5 years ago
parent
commit
b36c366dfc
  1. 7
      typescript/base/single/trigger/trigger.ts
  2. 2
      typescript/index.ts

7
typescript/base/single/trigger/trigger.ts

@ -0,0 +1,7 @@
import { _Single } from "../single";
export interface _Trigger extends _Single {
setKey(..._args: any[]): void;
getKey(): string;
}

2
typescript/index.ts

@ -5,6 +5,7 @@ import { _Widget, _WidgetStatic } from "./core/widget";
import { _Single } from "./base/single/single";
import { _base } from "./core/base";
import { _BasicButton } from "./base/single/button/button.basic";
import { _Trigger } from "./base/single/trigger/trigger";
type Constructor<T extends {}> = T & {
new(config: any): T;
@ -17,4 +18,5 @@ export interface _BI extends _func, _i18n, _base {
Widget: Constructor<_Widget> & _WidgetStatic;
Single: Constructor<_Single>;
BasicButton: Constructor<_BasicButton>;
Trigger: Constructor<_Trigger>;
}

Loading…
Cancel
Save