From f0aeba3b8ac3cbae39613b43a8f41e748deb4f44 Mon Sep 17 00:00:00 2001 From: alan Date: Fri, 11 Dec 2020 17:20:10 +0800 Subject: [PATCH] =?UTF-8?q?IconButton=20=E7=B1=BB=E5=9E=8B=E8=A1=A5?= =?UTF-8?q?=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- typescript/base/single/button/buttons/button.icon.ts | 5 +++++ typescript/index.ts | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 typescript/base/single/button/buttons/button.icon.ts diff --git a/typescript/base/single/button/buttons/button.icon.ts b/typescript/base/single/button/buttons/button.icon.ts new file mode 100644 index 0000000000..c4e6c5da7d --- /dev/null +++ b/typescript/base/single/button/buttons/button.icon.ts @@ -0,0 +1,5 @@ +import { BasicButton } from "../button.basic"; + +export declare class IconButton extends BasicButton { + static xtype: string; +} diff --git a/typescript/index.ts b/typescript/index.ts index 2b331d5ce9..7a89678b3b 100644 --- a/typescript/index.ts +++ b/typescript/index.ts @@ -49,6 +49,7 @@ import { Icon } from "./base/single/icon/icon"; import { _LeftVerticalAdapt } from "./core/wrapper/layout/adapt/adapt.leftvertical"; import { LeftRightVerticalAdaptLayout } from "./core/wrapper/layout/adapt/adapt.leftrightvertical"; import { IconTextIconItem } from "./base/single/button/listitem/icontexticonitem"; +import { IconButton } from "./base/single/button/buttons/button.icon"; type ClassConstructor = T & { @@ -109,6 +110,7 @@ export interface BI extends _func, _i18n, _base, _inject { LeftVerticalAdaptLayout: ClassConstructor<_LeftVerticalAdapt>; LeftRightVerticalAdaptLayout: typeof LeftRightVerticalAdaptLayout; IconTextIconItem: typeof IconTextIconItem; + IconButton: typeof IconButton; } export default { @@ -121,4 +123,5 @@ export { Icon, LeftRightVerticalAdaptLayout, IconTextIconItem, + IconButton, };