feat: migrate Dialog component

This commit is contained in:
chenjiahan
2020-07-26 16:35:08 +08:00
parent 47ad40794e
commit f3ff931ebf
9 changed files with 86 additions and 299 deletions
+1 -3
View File
@@ -1,7 +1,6 @@
@import '../style/var';
.van-dialog {
position: fixed;
top: 45%;
left: 50%;
width: @dialog-width;
@@ -9,7 +8,6 @@
font-size: @dialog-font-size;
background-color: @dialog-background-color;
border-radius: @dialog-border-radius;
transform: translate3d(-50%, -50%, 0);
backface-visibility: hidden; // avoid blurry text after scale animation
transition: @dialog-transition;
transition-property: transform, opacity;
@@ -80,7 +78,7 @@
}
}
&-bounce-enter {
&-bounce-enter-from {
transform: translate3d(-50%, -50%, 0) scale(0.7);
opacity: 0;
}