Browse Source

KERNEL-7499 refactor:类型补充

es6
Tangjinxia 4 years ago
parent
commit
83ac5daeca
  1. 20
      typescript/base/single/button/listitem/blankicontextitem.ts
  2. 13
      typescript/case/colorchooser/colorchooser.popup.hex.ts
  3. 6
      typescript/index.ts

20
typescript/base/single/button/listitem/blankicontextitem.ts

@ -0,0 +1,20 @@
import { BasicButton } from "../button.basic";
export declare class BlankIconTextItem extends BasicButton {
static xtype: string;
static EVENT_CHANGE: string;
doClick(): void;
setValue(): void;
getValue(): string;
doRedMark(...args: any[]): void;
unRedMark(...args: any[]): void;
doHighLight(...args: any[]): void;
unHighLight(...args: any[]): void;
}

13
typescript/case/colorchooser/colorchooser.popup.hex.ts

@ -0,0 +1,13 @@
import { Widget } from '../../core/widget';
export declare class HexColorChooserPopup extends Widget {
static xtype: string;
static EVENT_CHANGE: string;
static EVENT_VALUE_CHANGE: string;
setStoreColors(v: string): void;
setValue(v: string): void;
getValue(): string;
}

6
typescript/index.ts

@ -156,6 +156,8 @@ import { History, Router } from "./router/router";
import { DateTimeCombo } from './widget/datetime/datetime.combo';
import { FloatHorizontalLayout } from "./core/wrapper/layout/adapt/float.horizontal";
import { AdaptiveLayout } from "./core/wrapper/layout/layout.adaptive";
import { HexColorChooserPopup } from './case/colorchooser/colorchooser.popup.hex';
import { BlankIconTextItem } from './base/single/button/listitem/blankicontextitem';
export interface BI extends _func, _i18n, _base, _inject, _var, _web, _utils {
@ -318,6 +320,8 @@ export interface BI extends _func, _i18n, _base, _inject, _var, _web, _utils {
DateTimeCombo: typeof DateTimeCombo;
FloatHorizontalLayout: typeof FloatHorizontalLayout;
AdaptiveLayout: typeof AdaptiveLayout;
HexColorChooserPopup: typeof HexColorChooserPopup;
BlankIconTextItem: typeof BlankIconTextItem;
}
export default {
@ -482,4 +486,6 @@ export {
DateTimeCombo,
FloatHorizontalLayout,
AdaptiveLayout,
HexColorChooserPopup,
BlankIconTextItem,
};

Loading…
Cancel
Save