feat(Skeleton): add round prop (#6441)

This commit is contained in:
neverland
2020-06-02 22:14:19 +08:00
committed by GitHub
parent 9a4b09bcc1
commit 4d731a3fa8
6 changed files with 37 additions and 3 deletions
+8 -1
View File
@@ -10,7 +10,7 @@
background-color: @skeleton-avatar-background-color;
&--round {
border-radius: 100%;
border-radius: @border-radius-max;
}
}
@@ -46,6 +46,13 @@
animation: van-skeleton-blink @skeleton-animation-duration ease-in-out
infinite;
}
&--round {
.van-skeleton__row,
.van-skeleton__title {
border-radius: @border-radius-max;
}
}
}
@keyframes van-skeleton-blink {