Browse Source

KERNEL-6431补充类型定义

es6
alan 4 years ago
parent
commit
9575cf4c5d
  1. 14
      typescript/base/single/iframe/iframe.ts
  2. 36
      typescript/core/wrapper/layout/layout.card.ts
  3. 12
      typescript/index.ts
  4. 13
      typescript/widget/time/time.combo.ts
  5. 14
      typescript/widget/yearmonth/combo.yearmonth.ts

14
typescript/base/single/iframe/iframe.ts

@ -1,4 +1,4 @@
import { _Single } from "../single";
import { Single, _Single } from "../single";
export interface _Iframe extends _Single {
setSrc(v: string): void;
@ -9,3 +9,15 @@ export interface _Iframe extends _Single {
getName(): string;
}
export declare class iframe extends Single {
static xtype: string;
setSrc(v: string): void;
getSrc(): string;
setNam(v: string): void;
getName(): string;
}

36
typescript/core/wrapper/layout/layout.card.ts

@ -0,0 +1,36 @@
import { Widget } from "../../widget";
import { Layout } from "../layout";
export declare class CardLayout extends Layout {
static xtype: string;
empty(): void;
isCardExisted(cardName: string): boolean;
getCardByName<T>(name: string):T;
deleteCardByName(cardName: string): void;
addCardByName(cardName: string, cardItem: any): Widget
showCardByName(cardName: string, action: any, callback: () => void): void;
showLastCard(): void;
setDefaultShowName(name: string): void;
getDefaultShowName(): string;
getAllCardNames(): string[];
getShowingCard<T>(): T;
deleteAllCard(): void;
hideAllCard(): void;
isAllCardHide(): boolean;
removeWidget(nameOrWidget: string | Widget): void;
}

12
typescript/index.ts

@ -8,7 +8,7 @@ import { _Button, _ButtonStatic, Button } from "./base/single/button/buttons/but
import { TextButton, _TextButton, _TextButtonStatic } from "./base/single/button/buttons/button.text";
import { _IconTextItem, _IconTextItemStatic } from "./base/single/button/listitem/icontextitem";
import { _Editor, _EditorStatic, Editor } from "./base/single/editor/editor";
import { _Iframe } from "./base/single/iframe/iframe";
import { iframe, _Iframe } from "./base/single/iframe/iframe";
import { _Checkbox, _CheckboxStatic } from "./base/single/input/checkbox";
import { _Input, _InputStatic } from "./base/single/input/input";
import { _AbstractLabel, AbstractLabel } from "./base/single/label/abstract.label";
@ -102,6 +102,9 @@ import { MultiTreePopup } from "./widget/multitree/multi.tree.popup";
import { SingleSelectRadioItem } from "./case/button/item.singleselect.radio";
import { SingleSelectInsertCombo } from "./widget/singleselect/singleselect.insert.combo";
import { SingleSelectCombo } from "./widget/singleselect/singleselect.combo";
import { CardLayout } from "./core/wrapper/layout/layout.card";
import { DynamicYearMonthCombo } from "./widget/yearmonth/combo.yearmonth";
import { TimeCombo } from "./widget/time/time.combo";
type ClassConstructor<T extends {}> = T & {
@ -217,6 +220,9 @@ export interface BI extends _func, _i18n, _base, _inject {
SingleSelectRadioItem: typeof SingleSelectRadioItem;
SingleSelectInsertCombo: typeof SingleSelectInsertCombo;
SingleSelectCombo: typeof SingleSelectCombo;
CardLayout: typeof CardLayout;
DynamicYearMonthCombo: typeof DynamicYearMonthCombo;
TimeCombo: typeof TimeCombo;
}
export default {
@ -309,4 +315,8 @@ export {
SingleSelectRadioItem,
SingleSelectInsertCombo,
SingleSelectCombo,
CardLayout,
DynamicYearMonthCombo,
TimeCombo,
iframe,
};

13
typescript/widget/time/time.combo.ts

@ -0,0 +1,13 @@
import { Single } from "../../base/single/single";
export declare class TimeCombo extends Single {
static xtype: string;
static EVENT_KEY_DOWN: string;
static EVENT_CONFIRM: string;
static EVENT_CHANGE: string;
static EVENT_VALID: string;
static EVENT_ERROR: string;
static EVENT_BEFORE_POPUPVIEW: string;
hidePopupView(): void;
}

14
typescript/widget/yearmonth/combo.yearmonth.ts

@ -0,0 +1,14 @@
import { Single } from "../../base/single/single";
export declare class DynamicYearMonthCombo extends Single {
static xtype: string;
static EVENT_ERROR: string;
static EVENT_VALID: string;
static EVENT_FOCUS: string;
static EVENT_CONFIRM: string;
static EVENT_BEFORE_POPUPVIEW: string;
hideView(): void;
getKey(): string;
}
Loading…
Cancel
Save