Browse Source

Pull request #1674: KERNEL-6431补充类型定义

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

* commit 'df4b959530a70fbb12ebe4821e5402e8dcbf5c28':
  修改写错的方法名
  KERNEL-6431补充类型定义
es6
Teller 4 years ago
parent
commit
4b8483b94a
  1. 16
      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

16
typescript/base/single/iframe/iframe.ts

@ -1,11 +1,23 @@
import { _Single } from "../single"; import { Single, _Single } from "../single";
export interface _Iframe extends _Single { export interface _Iframe extends _Single {
setSrc(v: string): void; setSrc(v: string): void;
getSrc(): string; getSrc(): string;
setNam(v: string): void; setName(v: string): void;
getName(): string;
}
export declare class iframe extends Single {
static xtype: string;
setSrc(v: string): void;
getSrc(): string;
setName(v: string): void;
getName(): string; 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 { 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, Editor } from "./base/single/editor/editor"; 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 { _Checkbox, _CheckboxStatic } from "./base/single/input/checkbox";
import { _Input, _InputStatic } from "./base/single/input/input"; import { _Input, _InputStatic } from "./base/single/input/input";
import { _AbstractLabel, AbstractLabel } from "./base/single/label/abstract.label"; import { _AbstractLabel, AbstractLabel } from "./base/single/label/abstract.label";
@ -105,6 +105,9 @@ import { MultiTreePopup } from "./widget/multitree/multi.tree.popup";
import { SingleSelectRadioItem } from "./case/button/item.singleselect.radio"; import { SingleSelectRadioItem } from "./case/button/item.singleselect.radio";
import { SingleSelectInsertCombo } from "./widget/singleselect/singleselect.insert.combo"; import { SingleSelectInsertCombo } from "./widget/singleselect/singleselect.insert.combo";
import { SingleSelectCombo } from "./widget/singleselect/singleselect.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";
import { ListTreeView } from "./base/tree/ztree/list/listtreeview"; import { ListTreeView } from "./base/tree/ztree/list/listtreeview";
import { ListAsyncTree } from "./base/tree/ztree/list/listasynctree"; import { ListAsyncTree } from "./base/tree/ztree/list/listasynctree";
import { AsyncTree } from "./base/tree/ztree/asynctree"; import { AsyncTree } from "./base/tree/ztree/asynctree";
@ -229,6 +232,9 @@ export interface BI extends _func, _i18n, _base, _inject {
SingleSelectRadioItem: typeof SingleSelectRadioItem; SingleSelectRadioItem: typeof SingleSelectRadioItem;
SingleSelectInsertCombo: typeof SingleSelectInsertCombo; SingleSelectInsertCombo: typeof SingleSelectInsertCombo;
SingleSelectCombo: typeof SingleSelectCombo; SingleSelectCombo: typeof SingleSelectCombo;
CardLayout: typeof CardLayout;
DynamicYearMonthCombo: typeof DynamicYearMonthCombo;
TimeCombo: typeof TimeCombo;
} }
export default { export default {
@ -327,4 +333,8 @@ export {
SingleSelectRadioItem, SingleSelectRadioItem,
SingleSelectInsertCombo, SingleSelectInsertCombo,
SingleSelectCombo, 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