From 400cabe01fc083017a0feadb43c3e5627f31f828 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Wed, 31 Aug 2022 11:42:27 +0300 Subject: [PATCH] Fixed #2911 - New iconClass property for Button component --- api-generator/components/button.js | 6 ++++++ src/components/button/Button.d.ts | 4 ++++ src/components/button/Button.vue | 12 ++++++++---- src/views/button/ButtonDoc.vue | 6 ++++++ 4 files changed, 24 insertions(+), 4 deletions(-) diff --git a/api-generator/components/button.js b/api-generator/components/button.js index 76098a6ad..167aa9bbf 100644 --- a/api-generator/components/button.js +++ b/api-generator/components/button.js @@ -17,6 +17,12 @@ const ButtonProps = [ default: "left", description: 'Position of the icon, valid values are "left", "right", "bottom" and "top".' }, + { + name: "iconClass", + type: "string", + default: "null", + description: "Style class of the icon." + }, { name: "badge", type: "string", diff --git a/src/components/button/Button.d.ts b/src/components/button/Button.d.ts index 992b4c166..f9d6669aa 100755 --- a/src/components/button/Button.d.ts +++ b/src/components/button/Button.d.ts @@ -25,6 +25,10 @@ export interface ButtonProps extends ButtonHTMLAttributes { * Default value is 'left'. */ iconPos?: ButtonIconPosType; + /** + * Style class of the icon. + */ + iconClass?: string | undefined; /** * Value of the badge. */ diff --git a/src/components/button/Button.vue b/src/components/button/Button.vue index cfa39fe8a..bf825e5fe 100755 --- a/src/components/button/Button.vue +++ b/src/components/button/Button.vue @@ -1,8 +1,8 @@