Browse Source

KERNEL-6431 类型补充

master
alan 4 years ago
parent
commit
6a23b9f414
  1. 14
      typescript/base/single/button/buttons/button.text.ts
  2. 10
      typescript/case/button/icon/icon.change.ts
  3. 9
      typescript/index.ts
  4. 12
      typescript/widget/downlist/combo.downlist.ts

14
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,15 @@ export interface _TextButton extends _BasicButton {
export interface _TextButtonStatic { export interface _TextButtonStatic {
EVENT_CHANGE: string; EVENT_CHANGE: string;
} }
export declare class TextButton extends BasicButton {
setStyle(style: any): void;
doRedMark(...args: any[]): void;
unRedMark(...args: any[]): void;
doHighLight(...args: any[]): void;
unHighLight(...args: any[]): void;
}

10
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,11 @@ export interface _IconChangeButton extends _Single {
export interface _IconChangeButtonStatic { export interface _IconChangeButtonStatic {
EVENT_CHANGE: string; EVENT_CHANGE: string;
} }
export declare class IconChangeButton extends Single {
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,
}; };

12
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;
@ -12,4 +12,12 @@ export interface _DownListComboStatic {
EVENT_CHANGE: string; EVENT_CHANGE: string;
EVENT_SON_VALUE_CHANGE: string; EVENT_SON_VALUE_CHANGE: string;
EVENT_BEFORE_POPUPVIEW: string; EVENT_BEFORE_POPUPVIEW: string;
} }
export declare class DownListCombo extends Widget {
hideView: () => void;
showView: (e?: any) => void;
populate: (items?: any) => void;
}

Loading…
Cancel
Save