From 7261f2377e04f3953082a1b13ff7c4ee1cd5beb4 Mon Sep 17 00:00:00 2001 From: alan Date: Mon, 21 Dec 2020 11:17:32 +0800 Subject: [PATCH] =?UTF-8?q?KERNEL-6537=20=E8=A1=A5=E5=85=85=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- typescript/base/single/img/img.ts | 8 ++++++++ typescript/index.ts | 3 +++ 2 files changed, 11 insertions(+) create mode 100644 typescript/base/single/img/img.ts diff --git a/typescript/base/single/img/img.ts b/typescript/base/single/img/img.ts new file mode 100644 index 000000000..30adc8151 --- /dev/null +++ b/typescript/base/single/img/img.ts @@ -0,0 +1,8 @@ +import { Single } from "../single"; + +export declare class Img extends Single { + static xtype: string; + + setSrc(src: string): void; + getSrc(): string; +} diff --git a/typescript/index.ts b/typescript/index.ts index 639ffbba4..c706c1944 100644 --- a/typescript/index.ts +++ b/typescript/index.ts @@ -135,6 +135,7 @@ import { YearMonthInterval } from "./widget/yearmonthinterval/yearmonthinterval" import { NumberEditor } from "./widget/numbereditor/numbereditor"; import { TextValueCheckCombo } from "./case/combo/textvaluecheckcombo/combo.textvaluecheck"; import { LinearSegment } from "./case/linersegment/linear.segment"; +import { Img } from "./base/single/img/img"; type ClassConstructor = T & { @@ -285,6 +286,7 @@ export interface BI extends _func, _i18n, _base, _inject { TextValueCheckCombo: typeof TextValueCheckCombo; NumberEditor: typeof NumberEditor; LinearSegment: typeof LinearSegment; + Img: typeof Img; } export default { @@ -429,4 +431,5 @@ export { TextValueCheckCombo, NumberEditor, LinearSegment, + Img, };