feat: migrate SwipeCell component

This commit is contained in:
chenjiahan
2020-07-12 15:07:32 +08:00
parent ccf2c7da31
commit 8c4c51fea1
10 changed files with 1068 additions and 10 deletions
+29
View File
@@ -0,0 +1,29 @@
@import '../style/var';
.van-swipe-cell {
position: relative;
overflow: hidden;
cursor: grab;
&__wrapper {
transition-timing-function: cubic-bezier(0.18, 0.89, 0.32, 1);
transition-property: transform;
}
&__left,
&__right {
position: absolute;
top: 0;
height: 100%;
}
&__left {
left: 0;
transform: translate3d(-100%, 0, 0);
}
&__right {
right: 0;
transform: translate3d(100%, 0, 0);
}
}