From 910095144b5b77debaf22fdefc2e500b1835fffc Mon Sep 17 00:00:00 2001 From: Guyi Date: Thu, 14 May 2020 14:34:25 +0800 Subject: [PATCH] =?UTF-8?q?KERNEL-4058=20refactor:=20fineui=E4=B8=AD?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0NodeButton=E7=9A=84=E5=A3=B0=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- typescript/base/single/button/button.node.ts | 11 +++++++++++ typescript/index.ts | 2 ++ 2 files changed, 13 insertions(+) create mode 100644 typescript/base/single/button/button.node.ts diff --git a/typescript/base/single/button/button.node.ts b/typescript/base/single/button/button.node.ts new file mode 100644 index 0000000000..5fcc4b5d54 --- /dev/null +++ b/typescript/base/single/button/button.node.ts @@ -0,0 +1,11 @@ +import { _BasicButton } from "./button.basic"; + +export interface _NodeButton extends _BasicButton { + isOpened: () => void; + + setOpened: (b: boolean) => void; + + triggerCollapse: () => void; + + triggerExpand: () => void; +} diff --git a/typescript/index.ts b/typescript/index.ts index b5dff7b9ce..533b2e1ff3 100644 --- a/typescript/index.ts +++ b/typescript/index.ts @@ -3,6 +3,7 @@ import { _ButtonGroup, _ButtonGroupChooseType, _ButtonGroupStatic } from "./base import { _Tab, _TabStatic } from "./base/combination/tab"; import { _Pane, _PaneStatic } from "./base/pane"; import { _BasicButton, _BasicButtonStatic } from "./base/single/button/button.basic"; +import { _NodeButton } from "./base/single/button/button.node"; import { _Button, _ButtonStatic } from "./base/single/button/buttons/button"; import { _TextButton, _TextButtonStatic } from "./base/single/button/buttons/button.text"; import { _IconTextItem, _IconTextItemStatic } from "./base/single/button/listitem/icontextitem"; @@ -49,6 +50,7 @@ export interface BI extends _func, _i18n, _base { Widget: ClassConstructor<_Widget> & _WidgetStatic; Single: ClassConstructor<_Single>; BasicButton: ClassConstructor<_BasicButton> & _BasicButtonStatic; + NodeButton: ClassConstructor<_NodeButton>; Checkbox: ClassConstructor<_Checkbox> & _CheckboxStatic; Button: ClassConstructor<_Button> & _ButtonStatic; TextButton: ClassConstructor<_TextButton> & _TextButtonStatic;