Browse Source

BI-81353 chore:类型

es6
Jimmy.Chai 4 years ago
parent
commit
01354ee885
  1. 24
      typescript/base/single/button/buttons/button.image.ts
  2. 3
      typescript/index.ts

24
typescript/base/single/button/buttons/button.image.ts

@ -0,0 +1,24 @@
import { BasicButton } from "../button.basic";
export declare class ImageButton extends BasicButton {
static xtype: string;
static EVENT_CHANGE: string;
setWidth(w: number): void;
setHeight(h: number): void;
setImageWidth(w: number): void;
setImageHeight(h: number): void;
getImageWidth(): number;
getImageHeight(): number;
setSrc(src: string): void;
getSrc(): string;
doClick(): void;
}

3
typescript/index.ts

@ -151,6 +151,7 @@ import { DateCalendarPopup } from "./widget/date/calendar/popup.calendar.date";
import { Tree, Node } from "./core/utils/tree";
import { TextNode } from "./base/single/button/node/textnode";
import { TextValueCheckComboPopup } from "./case/combo/textvaluecheckcombo/popup.textvaluecheck";
import { ImageButton } from './base/single/button/buttons/button.image';
export interface BI extends _func, _i18n, _base, _inject, _var, _web, _utils {
@ -307,6 +308,7 @@ export interface BI extends _func, _i18n, _base, _inject, _var, _web, _utils {
DateCalendarPopup: typeof DateCalendarPopup;
TextNode: typeof TextNode;
TextValueCheckComboPopup: typeof TextValueCheckComboPopup;
ImageButton: typeof ImageButton;
}
export default {
@ -465,4 +467,5 @@ export {
Node,
TextNode,
TextValueCheckComboPopup,
ImageButton,
};

Loading…
Cancel
Save