Browse Source

无jira任务 refactor: 类型补充

es6
Tangjinxia 3 years ago
parent
commit
46fee5de78
  1. 3
      typescript/base/combination/combo.ts
  2. 40
      typescript/base/combination/expander.ts
  3. 3
      typescript/index.ts

3
typescript/base/combination/combo.ts

@ -38,6 +38,9 @@ export declare class Combo extends Widget {
hoverClass: string; hoverClass: string;
belowMouse: boolean; belowMouse: boolean;
} }
resetListHeight(h: number): void;
resetListWidth(w: number): void;
populate(...args: any[]): void; populate(...args: any[]): void;

40
typescript/base/combination/expander.ts

@ -0,0 +1,40 @@
import { Widget } from "../../core/widget";
export declare class Expander extends Widget {
static xtype: string;
static EVENT_EXPAND: number;
static EVENT_COLLAPSE: number;
static EVENT_TRIGGER_CHANGE: number;
static EVENT_CHANGE: number;
static EVENT_AFTER_INIT: number;
static EVENT_BEFORE_POPUPVIEW: string;
static EVENT_AFTER_POPUPVIEW: string;
static EVENT_BEFORE_HIDEVIEW: string;
static EVENT_AFTER_HIDEVIEW: string;
populate(items?: any, ...args: any[]): void;
setValue(v: string): void;
getValue(): string;
isViewVisible(): boolean;
isExpanded(): boolean;
showView(): void;
hideView(): void;
getView(): any;
getAllLeaves<T>(): T[];
getNodeById<T>(id: string): T;
getNodeByValue<T>(v: string): T;
destroy(): void;
}

3
typescript/index.ts

@ -82,6 +82,7 @@ import { SimpleColorChooser } from "./case/colorchooser/colorchooser.simple";
import { A } from "./base/a/a"; import { A } from "./base/a/a";
import { Html } from "./base/single/html/html"; import { Html } from "./base/single/html/html";
import { Switcher } from "./base/combination/switcher"; import { Switcher } from "./base/combination/switcher";
import { Expander } from './base/combination/expander';
import { Loader } from "./base/combination/loader"; import { Loader } from "./base/combination/loader";
import { ListPane } from "./case/layer/pane.list"; import { ListPane } from "./case/layer/pane.list";
import { MultiPopupView } from './case/layer/layer.multipopup'; import { MultiPopupView } from './case/layer/layer.multipopup';
@ -267,6 +268,7 @@ export interface BI extends _func, _i18n, _base, _inject, _var, _web, _utils {
A: typeof A; A: typeof A;
Html: typeof Html; Html: typeof Html;
Switcher: typeof Switcher; Switcher: typeof Switcher;
Expander: typeof Expander;
Loader: typeof Loader; Loader: typeof Loader;
ListPane: typeof ListPane; ListPane: typeof ListPane;
MultiPopupView: typeof MultiPopupView; MultiPopupView: typeof MultiPopupView;
@ -415,6 +417,7 @@ export {
A, A,
Html, Html,
Switcher, Switcher,
Expander,
BubbleCombo, BubbleCombo,
Loader, Loader,
ListPane, ListPane,

Loading…
Cancel
Save