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. 15
      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 { export declare class BasicButton extends Single {
static EVENT_CHANGE: string;
_createShadow(): void; _createShadow(): void;
bindEvent(): 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 { export interface _TextButton extends _BasicButton {
setStyle(style: any): void; setStyle(style: any): void;
@ -15,3 +15,18 @@ export interface _TextButton extends _BasicButton {
export interface _TextButtonStatic { export interface _TextButtonStatic {
EVENT_CHANGE: string; 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 { export declare class IconTextIconItem extends BasicButton {
static xtype: string; 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 { export interface _IconChangeButton extends _Single {
isSelected(): boolean; isSelected(): boolean;
@ -11,3 +11,14 @@ export interface _IconChangeButton extends _Single {
export interface _IconChangeButtonStatic { export interface _IconChangeButtonStatic {
EVENT_CHANGE: string; 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 { _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, _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";
import { _Editor, _EditorStatic } from "./base/single/editor/editor"; import { _Editor, _EditorStatic } from "./base/single/editor/editor";
import { _Iframe } from "./base/single/iframe/iframe"; 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 { _Single, Single } from "./base/single/single";
import { _Text } from "./base/single/text"; import { _Text } from "./base/single/text";
import { _Trigger } from "./base/single/trigger/trigger"; 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 { _MultiSelectItem, _MultiSelectItemStatic } from "./case/button/item.multiselect";
import { _BubbleCombo, _BubbleComboStatic } from "./case/combo/bubblecombo/combo.bubble"; import { _BubbleCombo, _BubbleComboStatic } from "./case/combo/bubblecombo/combo.bubble";
import { _TextValueCombo, _TextValueComboStatic } from "./case/combo/combo.textvalue"; 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 { _HTapeLayout, _VTapeLayout } from "./core/wrapper/layout/layout.tape";
import { _VerticalLayout } from "./core/wrapper/layout/layout.vertical"; import { _VerticalLayout } from "./core/wrapper/layout/layout.vertical";
import { _DefaultLayout } from "./core/wrapper/layout/layout.default"; 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 { 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 { LeftRightVerticalAdaptLayout, RightVerticalAdaptLayout } from "./core/wrapper/layout/adapt/adapt.leftrightvertical"; import { LeftRightVerticalAdaptLayout, RightVerticalAdaptLayout } from "./core/wrapper/layout/adapt/adapt.leftrightvertical";
@ -137,4 +137,7 @@ export {
IconButton, IconButton,
AbstractLabel, AbstractLabel,
Label, Label,
TextButton,
DownListCombo,
IconChangeButton,
}; };

15
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 { export interface _DownListCombo extends _Widget {
hideView: () => void; hideView: () => void;
@ -13,3 +13,16 @@ export interface _DownListComboStatic {
EVENT_SON_VALUE_CHANGE: string; EVENT_SON_VALUE_CHANGE: string;
EVENT_BEFORE_POPUPVIEW: 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