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

@ -66,3 +66,7 @@
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,