Browse Source

feat: 增加Trigger

master
iapyang 5 years ago
parent
commit
1f18b84f45
  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