From d8f1f6d2695d67cba296b8654882de78cd3d3cfb Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Tue, 1 Oct 2024 15:02:29 +0300 Subject: [PATCH] Class type updates --- packages/primevue/src/button/BaseButton.vue | 4 ++-- packages/primevue/src/button/Button.d.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/primevue/src/button/BaseButton.vue b/packages/primevue/src/button/BaseButton.vue index 407da43d0..3a5535b35 100644 --- a/packages/primevue/src/button/BaseButton.vue +++ b/packages/primevue/src/button/BaseButton.vue @@ -19,7 +19,7 @@ export default { default: 'left' }, iconClass: { - type: String, + type: [String, Object], default: null }, badge: { @@ -27,7 +27,7 @@ export default { default: null }, badgeClass: { - type: String, + type: [String, Object], default: null }, badgeSeverity: { diff --git a/packages/primevue/src/button/Button.d.ts b/packages/primevue/src/button/Button.d.ts index c5b1f30da..c481550ec 100755 --- a/packages/primevue/src/button/Button.d.ts +++ b/packages/primevue/src/button/Button.d.ts @@ -107,7 +107,7 @@ export interface ButtonProps extends ButtonHTMLAttributes { /** * Style class of the icon. */ - iconClass?: string | undefined; + iconClass?: string | object | undefined; /** * Value of the badge. */ @@ -115,7 +115,7 @@ export interface ButtonProps extends ButtonHTMLAttributes { /** * Style class of the badge. */ - badgeClass?: string | undefined; + badgeClass?: string | object | undefined; /** * Severity type of the badge. */