Fixed button loading animation

pull/1088/head
Cagatay Civici 2021-04-16 14:51:20 +03:00
parent deaf7367da
commit c99e242eb7
35 changed files with 70 additions and 69 deletions

View File

@ -1698,10 +1698,10 @@
.p-button.p-button-lg .p-button-icon { .p-button.p-button-lg .p-button-icon {
font-size: 1.25rem; font-size: 1.25rem;
} }
.p-button.p-button-loading .p-button-label { .p-button.p-button-loading-label-only .p-button-label {
margin-left: 0.5rem; margin-left: 0.5rem;
} }
.p-button.p-button-loading .p-button-icon { .p-button.p-button-loading-label-only .p-button-loading-icon {
margin-right: 0; margin-right: 0;
} }

View File

@ -1698,10 +1698,10 @@
.p-button.p-button-lg .p-button-icon { .p-button.p-button-lg .p-button-icon {
font-size: 1.25rem; font-size: 1.25rem;
} }
.p-button.p-button-loading .p-button-label { .p-button.p-button-loading-label-only .p-button-label {
margin-left: 0.5rem; margin-left: 0.5rem;
} }
.p-button.p-button-loading .p-button-icon { .p-button.p-button-loading-label-only .p-button-loading-icon {
margin-right: 0; margin-right: 0;
} }

View File

@ -1698,10 +1698,10 @@
.p-button.p-button-lg .p-button-icon { .p-button.p-button-lg .p-button-icon {
font-size: 1.25rem; font-size: 1.25rem;
} }
.p-button.p-button-loading .p-button-label { .p-button.p-button-loading-label-only .p-button-label {
margin-left: 0.5rem; margin-left: 0.5rem;
} }
.p-button.p-button-loading .p-button-icon { .p-button.p-button-loading-label-only .p-button-loading-icon {
margin-right: 0; margin-right: 0;
} }

View File

@ -1698,10 +1698,10 @@
.p-button.p-button-lg .p-button-icon { .p-button.p-button-lg .p-button-icon {
font-size: 1.25rem; font-size: 1.25rem;
} }
.p-button.p-button-loading .p-button-label { .p-button.p-button-loading-label-only .p-button-label {
margin-left: 0.5rem; margin-left: 0.5rem;
} }
.p-button.p-button-loading .p-button-icon { .p-button.p-button-loading-label-only .p-button-loading-icon {
margin-right: 0; margin-right: 0;
} }

View File

@ -1710,10 +1710,10 @@
.p-button.p-button-lg .p-button-icon { .p-button.p-button-lg .p-button-icon {
font-size: 1.25rem; font-size: 1.25rem;
} }
.p-button.p-button-loading .p-button-label { .p-button.p-button-loading-label-only .p-button-label {
margin-left: 0.5rem; margin-left: 0.5rem;
} }
.p-button.p-button-loading .p-button-icon { .p-button.p-button-loading-label-only .p-button-loading-icon {
margin-right: 0; margin-right: 0;
} }

View File

@ -1710,10 +1710,10 @@
.p-button.p-button-lg .p-button-icon { .p-button.p-button-lg .p-button-icon {
font-size: 1.25rem; font-size: 1.25rem;
} }
.p-button.p-button-loading .p-button-label { .p-button.p-button-loading-label-only .p-button-label {
margin-left: 0.5rem; margin-left: 0.5rem;
} }
.p-button.p-button-loading .p-button-icon { .p-button.p-button-loading-label-only .p-button-loading-icon {
margin-right: 0; margin-right: 0;
} }

View File

@ -1710,10 +1710,10 @@
.p-button.p-button-lg .p-button-icon { .p-button.p-button-lg .p-button-icon {
font-size: 1.25rem; font-size: 1.25rem;
} }
.p-button.p-button-loading .p-button-label { .p-button.p-button-loading-label-only .p-button-label {
margin-left: 0.5rem; margin-left: 0.5rem;
} }
.p-button.p-button-loading .p-button-icon { .p-button.p-button-loading-label-only .p-button-loading-icon {
margin-right: 0; margin-right: 0;
} }

View File

@ -1710,10 +1710,10 @@
.p-button.p-button-lg .p-button-icon { .p-button.p-button-lg .p-button-icon {
font-size: 1.25rem; font-size: 1.25rem;
} }
.p-button.p-button-loading .p-button-label { .p-button.p-button-loading-label-only .p-button-label {
margin-left: 0.5rem; margin-left: 0.5rem;
} }
.p-button.p-button-loading .p-button-icon { .p-button.p-button-loading-label-only .p-button-loading-icon {
margin-right: 0; margin-right: 0;
} }

View File

@ -1698,10 +1698,10 @@
.p-button.p-button-lg .p-button-icon { .p-button.p-button-lg .p-button-icon {
font-size: 1.25rem; font-size: 1.25rem;
} }
.p-button.p-button-loading .p-button-label { .p-button.p-button-loading-label-only .p-button-label {
margin-left: 0.5rem; margin-left: 0.5rem;
} }
.p-button.p-button-loading .p-button-icon { .p-button.p-button-loading-label-only .p-button-loading-icon {
margin-right: 0; margin-right: 0;
} }

View File

@ -1710,10 +1710,10 @@
.p-button.p-button-lg .p-button-icon { .p-button.p-button-lg .p-button-icon {
font-size: 1.25rem; font-size: 1.25rem;
} }
.p-button.p-button-loading .p-button-label { .p-button.p-button-loading-label-only .p-button-label {
margin-left: 0.5rem; margin-left: 0.5rem;
} }
.p-button.p-button-loading .p-button-icon { .p-button.p-button-loading-label-only .p-button-loading-icon {
margin-right: 0; margin-right: 0;
} }

View File

@ -1710,10 +1710,10 @@
.p-button.p-button-lg .p-button-icon { .p-button.p-button-lg .p-button-icon {
font-size: 1.25rem; font-size: 1.25rem;
} }
.p-button.p-button-loading .p-button-label { .p-button.p-button-loading-label-only .p-button-label {
margin-left: 0.5rem; margin-left: 0.5rem;
} }
.p-button.p-button-loading .p-button-icon { .p-button.p-button-loading-label-only .p-button-loading-icon {
margin-right: 0; margin-right: 0;
} }

View File

@ -1710,10 +1710,10 @@
.p-button.p-button-lg .p-button-icon { .p-button.p-button-lg .p-button-icon {
font-size: 1.25rem; font-size: 1.25rem;
} }
.p-button.p-button-loading .p-button-label { .p-button.p-button-loading-label-only .p-button-label {
margin-left: 0.5rem; margin-left: 0.5rem;
} }
.p-button.p-button-loading .p-button-icon { .p-button.p-button-loading-label-only .p-button-loading-icon {
margin-right: 0; margin-right: 0;
} }

View File

@ -1710,10 +1710,10 @@
.p-button.p-button-lg .p-button-icon { .p-button.p-button-lg .p-button-icon {
font-size: 1.25rem; font-size: 1.25rem;
} }
.p-button.p-button-loading .p-button-label { .p-button.p-button-loading-label-only .p-button-label {
margin-left: 0.5rem; margin-left: 0.5rem;
} }
.p-button.p-button-loading .p-button-icon { .p-button.p-button-loading-label-only .p-button-loading-icon {
margin-right: 0; margin-right: 0;
} }

View File

@ -1722,10 +1722,10 @@
.p-button.p-button-lg .p-button-icon { .p-button.p-button-lg .p-button-icon {
font-size: 1.25rem; font-size: 1.25rem;
} }
.p-button.p-button-loading .p-button-label { .p-button.p-button-loading-label-only .p-button-label {
margin-left: 0.5rem; margin-left: 0.5rem;
} }
.p-button.p-button-loading .p-button-icon { .p-button.p-button-loading-label-only .p-button-loading-icon {
margin-right: 0; margin-right: 0;
} }

View File

@ -1722,10 +1722,10 @@
.p-button.p-button-lg .p-button-icon { .p-button.p-button-lg .p-button-icon {
font-size: 1.25rem; font-size: 1.25rem;
} }
.p-button.p-button-loading .p-button-label { .p-button.p-button-loading-label-only .p-button-label {
margin-left: 0.5rem; margin-left: 0.5rem;
} }
.p-button.p-button-loading .p-button-icon { .p-button.p-button-loading-label-only .p-button-loading-icon {
margin-right: 0; margin-right: 0;
} }

View File

@ -1722,10 +1722,10 @@
.p-button.p-button-lg .p-button-icon { .p-button.p-button-lg .p-button-icon {
font-size: 1.25rem; font-size: 1.25rem;
} }
.p-button.p-button-loading .p-button-label { .p-button.p-button-loading-label-only .p-button-label {
margin-left: 0.5rem; margin-left: 0.5rem;
} }
.p-button.p-button-loading .p-button-icon { .p-button.p-button-loading-label-only .p-button-loading-icon {
margin-right: 0; margin-right: 0;
} }

View File

@ -1722,10 +1722,10 @@
.p-button.p-button-lg .p-button-icon { .p-button.p-button-lg .p-button-icon {
font-size: 1.25rem; font-size: 1.25rem;
} }
.p-button.p-button-loading .p-button-label { .p-button.p-button-loading-label-only .p-button-label {
margin-left: 0.5rem; margin-left: 0.5rem;
} }
.p-button.p-button-loading .p-button-icon { .p-button.p-button-loading-label-only .p-button-loading-icon {
margin-right: 0; margin-right: 0;
} }

View File

@ -1722,10 +1722,10 @@
.p-button.p-button-lg .p-button-icon { .p-button.p-button-lg .p-button-icon {
font-size: 1.25rem; font-size: 1.25rem;
} }
.p-button.p-button-loading .p-button-label { .p-button.p-button-loading-label-only .p-button-label {
margin-left: 0.5rem; margin-left: 0.5rem;
} }
.p-button.p-button-loading .p-button-icon { .p-button.p-button-loading-label-only .p-button-loading-icon {
margin-right: 0; margin-right: 0;
} }

View File

@ -1722,10 +1722,10 @@
.p-button.p-button-lg .p-button-icon { .p-button.p-button-lg .p-button-icon {
font-size: 1.25rem; font-size: 1.25rem;
} }
.p-button.p-button-loading .p-button-label { .p-button.p-button-loading-label-only .p-button-label {
margin-left: 0.5rem; margin-left: 0.5rem;
} }
.p-button.p-button-loading .p-button-icon { .p-button.p-button-loading-label-only .p-button-loading-icon {
margin-right: 0; margin-right: 0;
} }

View File

@ -1722,10 +1722,10 @@
.p-button.p-button-lg .p-button-icon { .p-button.p-button-lg .p-button-icon {
font-size: 1.25rem; font-size: 1.25rem;
} }
.p-button.p-button-loading .p-button-label { .p-button.p-button-loading-label-only .p-button-label {
margin-left: 0.5rem; margin-left: 0.5rem;
} }
.p-button.p-button-loading .p-button-icon { .p-button.p-button-loading-label-only .p-button-loading-icon {
margin-right: 0; margin-right: 0;
} }

View File

@ -1722,10 +1722,10 @@
.p-button.p-button-lg .p-button-icon { .p-button.p-button-lg .p-button-icon {
font-size: 1.25rem; font-size: 1.25rem;
} }
.p-button.p-button-loading .p-button-label { .p-button.p-button-loading-label-only .p-button-label {
margin-left: 0.5rem; margin-left: 0.5rem;
} }
.p-button.p-button-loading .p-button-icon { .p-button.p-button-loading-label-only .p-button-loading-icon {
margin-right: 0; margin-right: 0;
} }

View File

@ -1698,10 +1698,10 @@
.p-button.p-button-lg .p-button-icon { .p-button.p-button-lg .p-button-icon {
font-size: 1.25rem; font-size: 1.25rem;
} }
.p-button.p-button-loading .p-button-label { .p-button.p-button-loading-label-only .p-button-label {
margin-left: 0.5rem; margin-left: 0.5rem;
} }
.p-button.p-button-loading .p-button-icon { .p-button.p-button-loading-label-only .p-button-loading-icon {
margin-right: 0; margin-right: 0;
} }

View File

@ -1710,10 +1710,10 @@
.p-button.p-button-lg .p-button-icon { .p-button.p-button-lg .p-button-icon {
font-size: 1.25rem; font-size: 1.25rem;
} }
.p-button.p-button-loading .p-button-label { .p-button.p-button-loading-label-only .p-button-label {
margin-left: 0.5rem; margin-left: 0.5rem;
} }
.p-button.p-button-loading .p-button-icon { .p-button.p-button-loading-label-only .p-button-loading-icon {
margin-right: 0; margin-right: 0;
} }

View File

@ -1710,10 +1710,10 @@
.p-button.p-button-lg .p-button-icon { .p-button.p-button-lg .p-button-icon {
font-size: 1.25rem; font-size: 1.25rem;
} }
.p-button.p-button-loading .p-button-label { .p-button.p-button-loading-label-only .p-button-label {
margin-left: 0.5rem; margin-left: 0.5rem;
} }
.p-button.p-button-loading .p-button-icon { .p-button.p-button-loading-label-only .p-button-loading-icon {
margin-right: 0; margin-right: 0;
} }

View File

@ -1710,10 +1710,10 @@
.p-button.p-button-lg .p-button-icon { .p-button.p-button-lg .p-button-icon {
font-size: 1.25rem; font-size: 1.25rem;
} }
.p-button.p-button-loading .p-button-label { .p-button.p-button-loading-label-only .p-button-label {
margin-left: 0.5rem; margin-left: 0.5rem;
} }
.p-button.p-button-loading .p-button-icon { .p-button.p-button-loading-label-only .p-button-loading-icon {
margin-right: 0; margin-right: 0;
} }

View File

@ -1698,10 +1698,10 @@
.p-button.p-button-lg .p-button-icon { .p-button.p-button-lg .p-button-icon {
font-size: 1.25rem; font-size: 1.25rem;
} }
.p-button.p-button-loading .p-button-label { .p-button.p-button-loading-label-only .p-button-label {
margin-left: 0.5rem; margin-left: 0.5rem;
} }
.p-button.p-button-loading .p-button-icon { .p-button.p-button-loading-label-only .p-button-loading-icon {
margin-right: 0; margin-right: 0;
} }

View File

@ -1698,10 +1698,10 @@
.p-button.p-button-lg .p-button-icon { .p-button.p-button-lg .p-button-icon {
font-size: 1.25rem; font-size: 1.25rem;
} }
.p-button.p-button-loading .p-button-label { .p-button.p-button-loading-label-only .p-button-label {
margin-left: 0.5rem; margin-left: 0.5rem;
} }
.p-button.p-button-loading .p-button-icon { .p-button.p-button-loading-label-only .p-button-loading-icon {
margin-right: 0; margin-right: 0;
} }

View File

@ -1698,10 +1698,10 @@
.p-button.p-button-lg .p-button-icon { .p-button.p-button-lg .p-button-icon {
font-size: 1.25rem; font-size: 1.25rem;
} }
.p-button.p-button-loading .p-button-label { .p-button.p-button-loading-label-only .p-button-label {
margin-left: 0.5rem; margin-left: 0.5rem;
} }
.p-button.p-button-loading .p-button-icon { .p-button.p-button-loading-label-only .p-button-loading-icon {
margin-right: 0; margin-right: 0;
} }

View File

@ -1698,10 +1698,10 @@
.p-button.p-button-lg .p-button-icon { .p-button.p-button-lg .p-button-icon {
font-size: 1.25rem; font-size: 1.25rem;
} }
.p-button.p-button-loading .p-button-label { .p-button.p-button-loading-label-only .p-button-label {
margin-left: 0.5rem; margin-left: 0.5rem;
} }
.p-button.p-button-loading .p-button-icon { .p-button.p-button-loading-label-only .p-button-loading-icon {
margin-right: 0; margin-right: 0;
} }

View File

@ -1698,10 +1698,10 @@
.p-button.p-button-lg .p-button-icon { .p-button.p-button-lg .p-button-icon {
font-size: 1.25rem; font-size: 1.25rem;
} }
.p-button.p-button-loading .p-button-label { .p-button.p-button-loading-label-only .p-button-label {
margin-left: 0.5rem; margin-left: 0.5rem;
} }
.p-button.p-button-loading .p-button-icon { .p-button.p-button-loading-label-only .p-button-loading-icon {
margin-right: 0; margin-right: 0;
} }

View File

@ -1698,10 +1698,10 @@
.p-button.p-button-lg .p-button-icon { .p-button.p-button-lg .p-button-icon {
font-size: 1.25rem; font-size: 1.25rem;
} }
.p-button.p-button-loading .p-button-label { .p-button.p-button-loading-label-only .p-button-label {
margin-left: 0.5rem; margin-left: 0.5rem;
} }
.p-button.p-button-loading .p-button-icon { .p-button.p-button-loading-label-only .p-button-loading-icon {
margin-right: 0; margin-right: 0;
} }

View File

@ -1698,10 +1698,10 @@
.p-button.p-button-lg .p-button-icon { .p-button.p-button-lg .p-button-icon {
font-size: 1.25rem; font-size: 1.25rem;
} }
.p-button.p-button-loading .p-button-label { .p-button.p-button-loading-label-only .p-button-label {
margin-left: 0.5rem; margin-left: 0.5rem;
} }
.p-button.p-button-loading .p-button-icon { .p-button.p-button-loading-label-only .p-button-loading-icon {
margin-right: 0; margin-right: 0;
} }

View File

@ -1698,10 +1698,10 @@
.p-button.p-button-lg .p-button-icon { .p-button.p-button-lg .p-button-icon {
font-size: 1.25rem; font-size: 1.25rem;
} }
.p-button.p-button-loading .p-button-label { .p-button.p-button-loading-label-only .p-button-label {
margin-left: 0.5rem; margin-left: 0.5rem;
} }
.p-button.p-button-loading .p-button-icon { .p-button.p-button-loading-label-only .p-button-loading-icon {
margin-right: 0; margin-right: 0;
} }

View File

@ -1698,10 +1698,10 @@
.p-button.p-button-lg .p-button-icon { .p-button.p-button-lg .p-button-icon {
font-size: 1.25rem; font-size: 1.25rem;
} }
.p-button.p-button-loading .p-button-label { .p-button.p-button-loading-label-only .p-button-label {
margin-left: 0.5rem; margin-left: 0.5rem;
} }
.p-button.p-button-loading .p-button-icon { .p-button.p-button-loading-label-only .p-button-loading-icon {
margin-right: 0; margin-right: 0;
} }

View File

@ -47,7 +47,8 @@ export default {
'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.$attrs.disabled || this.loading, 'p-disabled': this.$attrs.disabled || this.loading,
'p-button-loading': this.loading 'p-button-loading': this.loading,
'p-button-loading-label-only': this.loading && !this.icon && this.label
} }
}, },
iconClass() { iconClass() {