Get disabled from $attrs
parent
f5d283be4e
commit
fb356b7694
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue