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 @@