Browse Source

Pull request #1636: KERNEL-6431 补充类型

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

* commit 'bb0c375901cc1e3f86621996649fbdb8fdf22228':
  添加 IconTextIconItem 类型
  KERNEL-6431 补充类型
es6
alan 4 years ago
parent
commit
4aa9592ec5
  1. 38
      typescript/base/single/button/button.basic.ts
  2. 5
      typescript/base/single/button/listitem/icontexticonitem.ts
  3. 6
      typescript/index.ts

38
typescript/base/single/button/button.basic.ts

@ -1,4 +1,4 @@
import { _Single } from "../single"; import { Single, _Single } from "../single";
export interface _BasicButton extends _Single { export interface _BasicButton extends _Single {
_createShadow(): void; _createShadow(): void;
@ -39,3 +39,39 @@ export interface _BasicButton extends _Single {
export interface _BasicButtonStatic { export interface _BasicButtonStatic {
EVENT_CHANGE: string; EVENT_CHANGE: string;
} }
export declare class BasicButton extends Single {
_createShadow(): void;
bindEvent(): void;
_trigger(e: Event): void;
_doClick(e: Event): void;
beforeClick(): void;
doClick(): void;
handle(): BasicButton;
hover(): void;
dishover(): void;
setSelected(b: boolean): void;
isSelected(): boolean;
isOnce(): boolean;
isForceSelected(): boolean;
isForceNotSelected(): boolean;
isDisableSelected(): boolean;
setText(v: string): void;
getText(): string;
}

5
typescript/base/single/button/listitem/icontexticonitem.ts

@ -0,0 +1,5 @@
import { BasicButton } from "../button.basic";
export declare class IconTextIconItem extends BasicButton {
static xtype: string;
}

6
typescript/index.ts

@ -2,7 +2,7 @@ import { _Combo, _ComboStatic } from "./base/combination/combo";
import { _ButtonGroup, _ButtonGroupChooseType, _ButtonGroupStatic } from "./base/combination/group.button"; import { _ButtonGroup, _ButtonGroupChooseType, _ButtonGroupStatic } from "./base/combination/group.button";
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, BasicButton } from "./base/single/button/button.basic";
import { _NodeButton } from "./base/single/button/button.node"; 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";
@ -48,6 +48,7 @@ import { _DownListCombo, _DownListComboStatic } from "./widget/downlist/combo.do
import { Icon } from "./base/single/icon/icon"; import { Icon } from "./base/single/icon/icon";
import { _LeftVerticalAdapt } from "./core/wrapper/layout/adapt/adapt.leftvertical"; import { _LeftVerticalAdapt } from "./core/wrapper/layout/adapt/adapt.leftvertical";
import { LeftRightVerticalAdapt } from "./core/wrapper/layout/adapt/adapt.leftrightvertical"; import { LeftRightVerticalAdapt } from "./core/wrapper/layout/adapt/adapt.leftrightvertical";
import { IconTextIconItem } from "./base/single/button/listitem/icontexticonitem";
type ClassConstructor<T extends {}> = T & { type ClassConstructor<T extends {}> = T & {
@ -107,6 +108,7 @@ export interface BI extends _func, _i18n, _base, _inject {
Icon: typeof Icon; Icon: typeof Icon;
LeftVerticalAdaptLayout: ClassConstructor<_LeftVerticalAdapt>; LeftVerticalAdaptLayout: ClassConstructor<_LeftVerticalAdapt>;
LeftRightVerticalAdapt: typeof LeftRightVerticalAdapt; LeftRightVerticalAdapt: typeof LeftRightVerticalAdapt;
IconTextIconItem: typeof IconTextIconItem;
} }
export default { export default {
@ -115,6 +117,8 @@ export default {
export { export {
Widget, Widget,
Single, Single,
BasicButton,
Icon, Icon,
IconTextIconItem,
LeftRightVerticalAdapt, LeftRightVerticalAdapt,
}; };

Loading…
Cancel
Save