Browse Source

Pull request #1328: KERNEL-4058 refactor: fineui中添加NodeButton的声明

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

* commit '910095144b5b77debaf22fdefc2e500b1835fffc':
  KERNEL-4058 refactor: fineui中添加NodeButton的声明
es6
Guyi 5 years ago
parent
commit
a6b26b0508
  1. 11
      typescript/base/single/button/button.node.ts
  2. 2
      typescript/index.ts

11
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;
}

2
typescript/index.ts

@ -3,6 +3,7 @@ import { _ButtonGroup, _ButtonGroupChooseType, _ButtonGroupStatic } from "./base
import { _Tab, _TabStatic } from "./base/combination/tab"; import { _Tab, _TabStatic } from "./base/combination/tab";
import { _Pane, _PaneStatic } from "./base/pane"; import { _Pane, _PaneStatic } from "./base/pane";
import { _BasicButton, _BasicButtonStatic } from "./base/single/button/button.basic"; 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 { _Button, _ButtonStatic } from "./base/single/button/buttons/button";
import { _TextButton, _TextButtonStatic } from "./base/single/button/buttons/button.text"; import { _TextButton, _TextButtonStatic } from "./base/single/button/buttons/button.text";
import { _IconTextItem, _IconTextItemStatic } from "./base/single/button/listitem/icontextitem"; import { _IconTextItem, _IconTextItemStatic } from "./base/single/button/listitem/icontextitem";
@ -49,6 +50,7 @@ export interface BI extends _func, _i18n, _base {
Widget: ClassConstructor<_Widget> & _WidgetStatic; Widget: ClassConstructor<_Widget> & _WidgetStatic;
Single: ClassConstructor<_Single>; Single: ClassConstructor<_Single>;
BasicButton: ClassConstructor<_BasicButton> & _BasicButtonStatic; BasicButton: ClassConstructor<_BasicButton> & _BasicButtonStatic;
NodeButton: ClassConstructor<_NodeButton>;
Checkbox: ClassConstructor<_Checkbox> & _CheckboxStatic; Checkbox: ClassConstructor<_Checkbox> & _CheckboxStatic;
Button: ClassConstructor<_Button> & _ButtonStatic; Button: ClassConstructor<_Button> & _ButtonStatic;
TextButton: ClassConstructor<_TextButton> & _TextButtonStatic; TextButton: ClassConstructor<_TextButton> & _TextButtonStatic;

Loading…
Cancel
Save