Animation for button loading

pull/1088/head
Cagatay Civici 2021-04-16 11:36:04 +03:00
parent 3e29cec8f3
commit 3e9cf7b746
36 changed files with 210 additions and 2 deletions

View File

@ -1698,6 +1698,12 @@
.p-button.p-button-lg .p-button-icon {
font-size: 1.25rem;
}
.p-button.p-button-loading .p-button-label {
margin-left: 0.5rem;
}
.p-button.p-button-loading .p-button-icon {
margin-right: 0;
}
.p-fluid .p-button {
width: 100%;

View File

@ -1698,6 +1698,12 @@
.p-button.p-button-lg .p-button-icon {
font-size: 1.25rem;
}
.p-button.p-button-loading .p-button-label {
margin-left: 0.5rem;
}
.p-button.p-button-loading .p-button-icon {
margin-right: 0;
}
.p-fluid .p-button {
width: 100%;

View File

@ -1698,6 +1698,12 @@
.p-button.p-button-lg .p-button-icon {
font-size: 1.25rem;
}
.p-button.p-button-loading .p-button-label {
margin-left: 0.5rem;
}
.p-button.p-button-loading .p-button-icon {
margin-right: 0;
}
.p-fluid .p-button {
width: 100%;

View File

@ -1698,6 +1698,12 @@
.p-button.p-button-lg .p-button-icon {
font-size: 1.25rem;
}
.p-button.p-button-loading .p-button-label {
margin-left: 0.5rem;
}
.p-button.p-button-loading .p-button-icon {
margin-right: 0;
}
.p-fluid .p-button {
width: 100%;

View File

@ -1710,6 +1710,12 @@
.p-button.p-button-lg .p-button-icon {
font-size: 1.25rem;
}
.p-button.p-button-loading .p-button-label {
margin-left: 0.5rem;
}
.p-button.p-button-loading .p-button-icon {
margin-right: 0;
}
.p-fluid .p-button {
width: 100%;

View File

@ -1710,6 +1710,12 @@
.p-button.p-button-lg .p-button-icon {
font-size: 1.25rem;
}
.p-button.p-button-loading .p-button-label {
margin-left: 0.5rem;
}
.p-button.p-button-loading .p-button-icon {
margin-right: 0;
}
.p-fluid .p-button {
width: 100%;

View File

@ -1710,6 +1710,12 @@
.p-button.p-button-lg .p-button-icon {
font-size: 1.25rem;
}
.p-button.p-button-loading .p-button-label {
margin-left: 0.5rem;
}
.p-button.p-button-loading .p-button-icon {
margin-right: 0;
}
.p-fluid .p-button {
width: 100%;

View File

@ -1710,6 +1710,12 @@
.p-button.p-button-lg .p-button-icon {
font-size: 1.25rem;
}
.p-button.p-button-loading .p-button-label {
margin-left: 0.5rem;
}
.p-button.p-button-loading .p-button-icon {
margin-right: 0;
}
.p-fluid .p-button {
width: 100%;

View File

@ -1698,6 +1698,12 @@
.p-button.p-button-lg .p-button-icon {
font-size: 1.25rem;
}
.p-button.p-button-loading .p-button-label {
margin-left: 0.5rem;
}
.p-button.p-button-loading .p-button-icon {
margin-right: 0;
}
.p-fluid .p-button {
width: 100%;

View File

@ -1710,6 +1710,12 @@
.p-button.p-button-lg .p-button-icon {
font-size: 1.25rem;
}
.p-button.p-button-loading .p-button-label {
margin-left: 0.5rem;
}
.p-button.p-button-loading .p-button-icon {
margin-right: 0;
}
.p-fluid .p-button {
width: 100%;

View File

@ -1710,6 +1710,12 @@
.p-button.p-button-lg .p-button-icon {
font-size: 1.25rem;
}
.p-button.p-button-loading .p-button-label {
margin-left: 0.5rem;
}
.p-button.p-button-loading .p-button-icon {
margin-right: 0;
}
.p-fluid .p-button {
width: 100%;

View File

@ -1710,6 +1710,12 @@
.p-button.p-button-lg .p-button-icon {
font-size: 1.25rem;
}
.p-button.p-button-loading .p-button-label {
margin-left: 0.5rem;
}
.p-button.p-button-loading .p-button-icon {
margin-right: 0;
}
.p-fluid .p-button {
width: 100%;

View File

@ -1710,6 +1710,12 @@
.p-button.p-button-lg .p-button-icon {
font-size: 1.25rem;
}
.p-button.p-button-loading .p-button-label {
margin-left: 0.5rem;
}
.p-button.p-button-loading .p-button-icon {
margin-right: 0;
}
.p-fluid .p-button {
width: 100%;

View File

@ -1722,6 +1722,12 @@
.p-button.p-button-lg .p-button-icon {
font-size: 1.25rem;
}
.p-button.p-button-loading .p-button-label {
margin-left: 0.5rem;
}
.p-button.p-button-loading .p-button-icon {
margin-right: 0;
}
.p-fluid .p-button {
width: 100%;

View File

@ -1722,6 +1722,12 @@
.p-button.p-button-lg .p-button-icon {
font-size: 1.25rem;
}
.p-button.p-button-loading .p-button-label {
margin-left: 0.5rem;
}
.p-button.p-button-loading .p-button-icon {
margin-right: 0;
}
.p-fluid .p-button {
width: 100%;

View File

@ -1722,6 +1722,12 @@
.p-button.p-button-lg .p-button-icon {
font-size: 1.25rem;
}
.p-button.p-button-loading .p-button-label {
margin-left: 0.5rem;
}
.p-button.p-button-loading .p-button-icon {
margin-right: 0;
}
.p-fluid .p-button {
width: 100%;

View File

@ -1722,6 +1722,12 @@
.p-button.p-button-lg .p-button-icon {
font-size: 1.25rem;
}
.p-button.p-button-loading .p-button-label {
margin-left: 0.5rem;
}
.p-button.p-button-loading .p-button-icon {
margin-right: 0;
}
.p-fluid .p-button {
width: 100%;

View File

@ -1722,6 +1722,12 @@
.p-button.p-button-lg .p-button-icon {
font-size: 1.25rem;
}
.p-button.p-button-loading .p-button-label {
margin-left: 0.5rem;
}
.p-button.p-button-loading .p-button-icon {
margin-right: 0;
}
.p-fluid .p-button {
width: 100%;

View File

@ -1722,6 +1722,12 @@
.p-button.p-button-lg .p-button-icon {
font-size: 1.25rem;
}
.p-button.p-button-loading .p-button-label {
margin-left: 0.5rem;
}
.p-button.p-button-loading .p-button-icon {
margin-right: 0;
}
.p-fluid .p-button {
width: 100%;

View File

@ -1722,6 +1722,12 @@
.p-button.p-button-lg .p-button-icon {
font-size: 1.25rem;
}
.p-button.p-button-loading .p-button-label {
margin-left: 0.5rem;
}
.p-button.p-button-loading .p-button-icon {
margin-right: 0;
}
.p-fluid .p-button {
width: 100%;

View File

@ -1722,6 +1722,12 @@
.p-button.p-button-lg .p-button-icon {
font-size: 1.25rem;
}
.p-button.p-button-loading .p-button-label {
margin-left: 0.5rem;
}
.p-button.p-button-loading .p-button-icon {
margin-right: 0;
}
.p-fluid .p-button {
width: 100%;

View File

@ -1698,6 +1698,12 @@
.p-button.p-button-lg .p-button-icon {
font-size: 1.25rem;
}
.p-button.p-button-loading .p-button-label {
margin-left: 0.5rem;
}
.p-button.p-button-loading .p-button-icon {
margin-right: 0;
}
.p-fluid .p-button {
width: 100%;

View File

@ -1710,6 +1710,12 @@
.p-button.p-button-lg .p-button-icon {
font-size: 1.25rem;
}
.p-button.p-button-loading .p-button-label {
margin-left: 0.5rem;
}
.p-button.p-button-loading .p-button-icon {
margin-right: 0;
}
.p-fluid .p-button {
width: 100%;

View File

@ -1710,6 +1710,12 @@
.p-button.p-button-lg .p-button-icon {
font-size: 1.25rem;
}
.p-button.p-button-loading .p-button-label {
margin-left: 0.5rem;
}
.p-button.p-button-loading .p-button-icon {
margin-right: 0;
}
.p-fluid .p-button {
width: 100%;

View File

@ -1710,6 +1710,12 @@
.p-button.p-button-lg .p-button-icon {
font-size: 1.25rem;
}
.p-button.p-button-loading .p-button-label {
margin-left: 0.5rem;
}
.p-button.p-button-loading .p-button-icon {
margin-right: 0;
}
.p-fluid .p-button {
width: 100%;

View File

@ -1698,6 +1698,12 @@
.p-button.p-button-lg .p-button-icon {
font-size: 1.25rem;
}
.p-button.p-button-loading .p-button-label {
margin-left: 0.5rem;
}
.p-button.p-button-loading .p-button-icon {
margin-right: 0;
}
.p-fluid .p-button {
width: 100%;

View File

@ -1698,6 +1698,12 @@
.p-button.p-button-lg .p-button-icon {
font-size: 1.25rem;
}
.p-button.p-button-loading .p-button-label {
margin-left: 0.5rem;
}
.p-button.p-button-loading .p-button-icon {
margin-right: 0;
}
.p-fluid .p-button {
width: 100%;

View File

@ -1698,6 +1698,12 @@
.p-button.p-button-lg .p-button-icon {
font-size: 1.25rem;
}
.p-button.p-button-loading .p-button-label {
margin-left: 0.5rem;
}
.p-button.p-button-loading .p-button-icon {
margin-right: 0;
}
.p-fluid .p-button {
width: 100%;

View File

@ -1698,6 +1698,12 @@
.p-button.p-button-lg .p-button-icon {
font-size: 1.25rem;
}
.p-button.p-button-loading .p-button-label {
margin-left: 0.5rem;
}
.p-button.p-button-loading .p-button-icon {
margin-right: 0;
}
.p-fluid .p-button {
width: 100%;

View File

@ -1698,6 +1698,12 @@
.p-button.p-button-lg .p-button-icon {
font-size: 1.25rem;
}
.p-button.p-button-loading .p-button-label {
margin-left: 0.5rem;
}
.p-button.p-button-loading .p-button-icon {
margin-right: 0;
}
.p-fluid .p-button {
width: 100%;

View File

@ -1698,6 +1698,12 @@
.p-button.p-button-lg .p-button-icon {
font-size: 1.25rem;
}
.p-button.p-button-loading .p-button-label {
margin-left: 0.5rem;
}
.p-button.p-button-loading .p-button-icon {
margin-right: 0;
}
.p-fluid .p-button {
width: 100%;

View File

@ -1698,6 +1698,12 @@
.p-button.p-button-lg .p-button-icon {
font-size: 1.25rem;
}
.p-button.p-button-loading .p-button-label {
margin-left: 0.5rem;
}
.p-button.p-button-loading .p-button-icon {
margin-right: 0;
}
.p-fluid .p-button {
width: 100%;

View File

@ -1698,6 +1698,12 @@
.p-button.p-button-lg .p-button-icon {
font-size: 1.25rem;
}
.p-button.p-button-loading .p-button-label {
margin-left: 0.5rem;
}
.p-button.p-button-loading .p-button-icon {
margin-right: 0;
}
.p-fluid .p-button {
width: 100%;

View File

@ -1698,6 +1698,12 @@
.p-button.p-button-lg .p-button-icon {
font-size: 1.25rem;
}
.p-button.p-button-loading .p-button-label {
margin-left: 0.5rem;
}
.p-button.p-button-loading .p-button-icon {
margin-right: 0;
}
.p-fluid .p-button {
width: 100%;

View File

@ -65,4 +65,8 @@
.p-buttonset .p-button:focus {
position: relative;
z-index: 1;
}
.p-button-label {
transition: all .2s;
}

View File

@ -52,7 +52,7 @@ export default {
},
iconClass() {
return [
this.loading ? this.loadingIcon : this.icon,
this.loading ? 'p-button-loading-icon ' + this.loadingIcon : this.icon,
'p-button-icon',
{
'p-button-icon-left': this.iconPos === 'left' && this.label,
@ -65,7 +65,7 @@ export default {
badgeStyleClass() {
return [
'p-badge p-component', this.badgeClass, {
'p-badge-no-gutter': this.badge && String(this.badge).length === 1
'p-badge-no-gutter': this.badge && String(this.badge).length === 1
}]
},
disabled() {