From 1f18b84f45cd2286047937984c47878c5c91f2e0 Mon Sep 17 00:00:00 2001 From: iapyang Date: Wed, 28 Aug 2019 18:21:58 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0Trigger?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- typescript/base/single/trigger/trigger.ts | 7 +++++++ typescript/index.ts | 2 ++ 2 files changed, 9 insertions(+) create mode 100644 typescript/base/single/trigger/trigger.ts diff --git a/typescript/base/single/trigger/trigger.ts b/typescript/base/single/trigger/trigger.ts new file mode 100644 index 0000000000..48f2a055ac --- /dev/null +++ b/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; +} \ No newline at end of file diff --git a/typescript/index.ts b/typescript/index.ts index df407ad874..995273d230 100644 --- a/typescript/index.ts +++ b/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 & { 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>; }