From 01354ee8859564e7c710f374b7119c247d74be42 Mon Sep 17 00:00:00 2001 From: "Jimmy.Chai" Date: Sat, 20 Feb 2021 14:30:21 +0800 Subject: [PATCH] =?UTF-8?q?BI-81353=20chore=EF=BC=9A=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../single/button/buttons/button.image.ts | 24 +++++++++++++++++++ typescript/index.ts | 3 +++ 2 files changed, 27 insertions(+) create mode 100644 typescript/base/single/button/buttons/button.image.ts diff --git a/typescript/base/single/button/buttons/button.image.ts b/typescript/base/single/button/buttons/button.image.ts new file mode 100644 index 000000000..997153a11 --- /dev/null +++ b/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; +} diff --git a/typescript/index.ts b/typescript/index.ts index 009f99f01..b35966288 100644 --- a/typescript/index.ts +++ b/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, };