Browse Source

KERNEL-6431 补充类型

es6
alan 4 years ago
parent
commit
8faf4677a9
  1. 38
      typescript/base/single/button/button.basic.ts
  2. 5
      typescript/base/single/button/listitem/icontexticonitem.ts
  3. 5
      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;
}

5
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 & {
@ -115,6 +116,8 @@ export default {
export { export {
Widget, Widget,
Single, Single,
BasicButton,
Icon, Icon,
IconTextIconItem,
LeftRightVerticalAdapt, LeftRightVerticalAdapt,
}; };

Loading…
Cancel
Save