Browse Source

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

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

* commit '2d3ba29be2b1e961362e94aa60b082eba955754e':
  补充事件类型定义
  补充类型
  KERNEL-6431 类型补充
es6
alan 4 years ago
parent
commit
3b38b36458
  1. 2
      typescript/base/single/button/button.basic.ts
  2. 17
      typescript/base/single/button/buttons/button.text.ts
  3. 1
      typescript/base/single/button/listitem/icontexticonitem.ts
  4. 13
      typescript/case/button/icon/icon.change.ts
  5. 9
      typescript/index.ts
  6. 17
      typescript/widget/downlist/combo.downlist.ts

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

@ -41,6 +41,8 @@ export interface _BasicButtonStatic {
}
export declare class BasicButton extends Single {
static EVENT_CHANGE: string;
_createShadow(): void;
bindEvent(): void;

17
typescript/base/single/button/buttons/button.text.ts

@ -1,4 +1,4 @@
import { _BasicButton } from "../button.basic";
import { BasicButton, _BasicButton } from "../button.basic";
export interface _TextButton extends _BasicButton {
setStyle(style: any): void;
@ -15,3 +15,18 @@ export interface _TextButton extends _BasicButton {
export interface _TextButtonStatic {
EVENT_CHANGE: string;
}
export declare class TextButton extends BasicButton {
static xtype: string;
static EVENT_CHANGE: string;
setStyle(style: any): void;
doRedMark(...args: any[]): void;
unRedMark(...args: any[]): void;
doHighLight(...args: any[]): void;
unHighLight(...args: any[]): void;
}

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

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

13
typescript/case/button/icon/icon.change.ts

@ -1,4 +1,4 @@
import { _Single } from "../../../base/single/single";
import { Single, _Single } from "../../../base/single/single";
export interface _IconChangeButton extends _Single {
isSelected(): boolean;
@ -11,3 +11,14 @@ export interface _IconChangeButton extends _Single {
export interface _IconChangeButtonStatic {
EVENT_CHANGE: string;
}
export declare class IconChangeButton extends Single {
static xtype: string;
static EVENT_CHANGE: string;
isSelected(): boolean;
setSelected(v: boolean): void;
setIcon(cls: string): void;
}

9
typescript/index.ts

@ -5,7 +5,7 @@ import { _Pane, _PaneStatic } from "./base/pane";
import { _BasicButton, _BasicButtonStatic, BasicButton } 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 { TextButton, _TextButton, _TextButtonStatic } from "./base/single/button/buttons/button.text";
import { _IconTextItem, _IconTextItemStatic } from "./base/single/button/listitem/icontextitem";
import { _Editor, _EditorStatic } from "./base/single/editor/editor";
import { _Iframe } from "./base/single/iframe/iframe";
@ -16,7 +16,7 @@ import { _Label, Label } from "./base/single/label/label";
import { _Single, Single } from "./base/single/single";
import { _Text } from "./base/single/text";
import { _Trigger } from "./base/single/trigger/trigger";
import { _IconChangeButton, _IconChangeButtonStatic } from "./case/button/icon/icon.change";
import { IconChangeButton, _IconChangeButton, _IconChangeButtonStatic } from "./case/button/icon/icon.change";
import { _MultiSelectItem, _MultiSelectItemStatic } from "./case/button/item.multiselect";
import { _BubbleCombo, _BubbleComboStatic } from "./case/combo/bubblecombo/combo.bubble";
import { _TextValueCombo, _TextValueComboStatic } from "./case/combo/combo.textvalue";
@ -44,7 +44,7 @@ import { _AbsoluteLayout } from "./core/wrapper/layout/layout.absolute";
import { _HTapeLayout, _VTapeLayout } from "./core/wrapper/layout/layout.tape";
import { _VerticalLayout } from "./core/wrapper/layout/layout.vertical";
import { _DefaultLayout } from "./core/wrapper/layout/layout.default";
import { _DownListCombo, _DownListComboStatic } from "./widget/downlist/combo.downlist";
import { DownListCombo, _DownListCombo, _DownListComboStatic } from "./widget/downlist/combo.downlist";
import { Icon } from "./base/single/icon/icon";
import { _LeftVerticalAdapt } from "./core/wrapper/layout/adapt/adapt.leftvertical";
import { LeftRightVerticalAdaptLayout, RightVerticalAdaptLayout } from "./core/wrapper/layout/adapt/adapt.leftrightvertical";
@ -137,4 +137,7 @@ export {
IconButton,
AbstractLabel,
Label,
TextButton,
DownListCombo,
IconChangeButton,
};

17
typescript/widget/downlist/combo.downlist.ts

@ -1,4 +1,4 @@
import { _Widget } from "../../core/widget";
import { Widget, _Widget } from "../../core/widget";
export interface _DownListCombo extends _Widget {
hideView: () => void;
@ -12,4 +12,17 @@ export interface _DownListComboStatic {
EVENT_CHANGE: string;
EVENT_SON_VALUE_CHANGE: string;
EVENT_BEFORE_POPUPVIEW: string;
}
}
export declare class DownListCombo extends Widget {
static xtype: string;
static EVENT_CHANGE: string;
static EVENT_SON_VALUE_CHANGE: string;
static EVENT_BEFORE_POPUPVIEW: string;
hideView: () => void;
showView: (e?: any) => void;
populate: (items?: any) => void;
}

Loading…
Cancel
Save