Browse Source

KERNEL-6533 refactor: 补充描述

es6
Kira 4 years ago
parent
commit
c8ab6bda5a
  1. 18
      typescript/index.ts
  2. 22
      typescript/widget/intervalslider/intervalslider.ts
  3. 12
      typescript/widget/multiselectlist/multiselectlist.insert.ts
  4. 27
      typescript/widget/numberinterval/numberinterval.ts
  5. 7
      typescript/widget/year/combo.year.ts
  6. 14
      typescript/widget/yearmonthinterval/yearmonthinterval.ts
  7. 7
      typescript/widget/yearquarter/combo.yearquarter.ts

18
typescript/index.ts

@ -126,6 +126,12 @@ import { AllCountPager } from "./case/pager/pager.all.count";
import { PopupView } from "./base/layer/layer.popup";
import { BubblePopupView, BubblePopupBarView, TextBubblePopupBarView } from "./case/combo/bubblecombo/popup.bubble";
import { ArrowTreeGroupNodeCheckbox } from "./case/checkbox/check.arrownode";
import { NumberInterval } from "./widget/numberinterval/numberinterval";
import { DynamicYearQuarterCombo } from "./widget/yearquarter/combo.yearquarter";
import { DynamicYearCombo } from "./widget/year/combo.year";
import { IntervalSlider } from "./widget/intervalslider/intervalslider";
import { MultiSelectInsertList } from "./widget/multiselectlist/multiselectlist.insert";
import { YearMonthInterval } from "./widget/yearmonthinterval/yearmonthinterval";
type ClassConstructor<T extends {}> = T & {
@ -267,6 +273,12 @@ export interface BI extends _func, _i18n, _base, _inject {
BubblePopupBarView: typeof BubblePopupBarView;
TextBubblePopupBarView: typeof TextBubblePopupBarView;
ArrowTreeGroupNodeCheckbox: typeof ArrowTreeGroupNodeCheckbox;
NumberInterval: typeof NumberInterval;
DynamicYearQuarterCombo: typeof DynamicYearQuarterCombo;
DynamicYearCombo: typeof DynamicYearCombo;
IntervalSlider: typeof IntervalSlider;
MultiSelectInsertList: typeof MultiSelectInsertList;
YearMonthInterval: typeof YearMonthInterval;
}
export default {
@ -402,4 +414,10 @@ export {
BubblePopupBarView,
TextBubblePopupBarView,
ArrowTreeGroupNodeCheckbox,
NumberInterval,
DynamicYearQuarterCombo,
DynamicYearCombo,
IntervalSlider,
MultiSelectInsertList,
YearMonthInterval,
};

22
typescript/widget/intervalslider/intervalslider.ts

@ -0,0 +1,22 @@
import { Single } from '../../base/single/single';
export declare class IntervalSlider extends Single {
static xtype: string;
static EVENT_CHANGE: string;
max: number;
min: number;
getValue(): {
min: number;
max: number;
}
setMinAndMax(v: {
min: number;
max: number;
}): void;
reset(): void
}

12
typescript/widget/multiselectlist/multiselectlist.insert.ts

@ -0,0 +1,12 @@
import { Single } from '../../base/single/single';
export declare class MultiSelectInsertList extends Single {
static xtype: string;
static REQ_GET_DATA_LENGTH: 1;
static REQ_GET_ALL_DATA: -1;
static EVENT_CHANGE: string;
isAllSelected(): boolean;
resize(): void;
}

27
typescript/widget/numberinterval/numberinterval.ts

@ -0,0 +1,27 @@
import { Single } from '../../base/single/single';
export declare class NumberInterval extends Single {
static xtype: string;
static EVENT_CHANGE: string;
static EVENT_CONFIRM: string;
static EVENT_VALID: string;
static EVENT_ERROR: string;
isStateValid(): boolean;
setMinEnable(v: boolean): void;
setCloseMinEnable(v: boolean): void;
setMaxEnable(v: boolean): void;
setCloseMaxEnable(v: boolean): void;
showNumTip(): void;
hideNumTip(): void;
setNumTip(v: string): void;
getNumTip(): void;
}

7
typescript/widget/year/combo.year.ts

@ -0,0 +1,7 @@
import { Widget } from "../../core/widget";
export declare class DynamicYearCombo extends Widget {
static xtype: string;
static EVENT_CONFIRM: string;
static EVENT_BEFORE_POPUPVIEW: string;
}

14
typescript/widget/yearmonthinterval/yearmonthinterval.ts

@ -0,0 +1,14 @@
import { Single } from '../../base/single/single';
export declare class YearMonthInterval extends Single {
static xtype: string;
static EVENT_VALID: string;
static EVENT_ERROR: string;
static EVENT_CHANGE: string;
static EVENT_BEFORE_POPUPVIEW: string;
getValue(): {
start: number;
end: number;
};
}

7
typescript/widget/yearquarter/combo.yearquarter.ts

@ -0,0 +1,7 @@
import { Widget } from "../../core/widget";
export declare class DynamicYearQuarterCombo extends Widget {
static xtype: string;
static EVENT_CONFIRM: string;
static EVENT_BEFORE_POPUPVIEW: string;
}
Loading…
Cancel
Save