Browse Source

Pull request #1773: BI-81353 chore:类型

Merge in VISUAL/fineui from ~JIMMY.CHAI/fineui:master to master

* commit '01354ee8859564e7c710f374b7119c247d74be42':
  BI-81353 chore:类型
es6
Jimmy.Chai 4 years ago
parent
commit
c7996ebf4e
  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 { Tree, Node } from "./core/utils/tree";
import { TextNode } from "./base/single/button/node/textnode"; import { TextNode } from "./base/single/button/node/textnode";
import { TextValueCheckComboPopup } from "./case/combo/textvaluecheckcombo/popup.textvaluecheck"; 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 { 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; DateCalendarPopup: typeof DateCalendarPopup;
TextNode: typeof TextNode; TextNode: typeof TextNode;
TextValueCheckComboPopup: typeof TextValueCheckComboPopup; TextValueCheckComboPopup: typeof TextValueCheckComboPopup;
ImageButton: typeof ImageButton;
} }
export default { export default {
@ -465,4 +467,5 @@ export {
Node, Node,
TextNode, TextNode,
TextValueCheckComboPopup, TextValueCheckComboPopup,
ImageButton,
}; };

Loading…
Cancel
Save