Fixed #3836 - Button: icon only support for default templating

pull/3841/head
Tuğçe Küçükoğlu 2023-04-04 15:47:09 +03:00
parent d3c5ef8228
commit e0b2b1d34a
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ export default {
return [
'p-button p-component',
{
'p-button-icon-only': this.icon && !this.label,
'p-button-icon-only': (this.icon && !this.label) || this.$slots.default,
'p-button-vertical': (this.iconPos === 'top' || this.iconPos === 'bottom') && this.label,
'p-disabled': this.$attrs.disabled || this.loading,
'p-button-loading': this.loading,