Get disabled from $attrs

pull/496/head
Cagatay Civici 2020-09-17 22:23:32 +03:00
parent f5d283be4e
commit fb356b7694
1 changed files with 1 additions and 5 deletions

View File

@ -29,10 +29,6 @@ export default {
badgeClass: { badgeClass: {
type: String, type: String,
default: null default: null
},
disabled: {
type: Boolean,
default: null
} }
}, },
computed: { computed: {
@ -41,7 +37,7 @@ export default {
'p-button p-component': true, 'p-button p-component': true,
'p-button-icon-only': this.icon && !this.label, 'p-button-icon-only': this.icon && !this.label,
'p-button-vertical': (this.iconPos === 'top' || this.iconPos === 'bottom') && this.label, 'p-button-vertical': (this.iconPos === 'top' || this.iconPos === 'bottom') && this.label,
'p-disabled': this.disabled 'p-disabled': this.$attrs.disabled
} }
}, },
iconClass() { iconClass() {