mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
[bugfix] SwipeCell: missing transform css prefix (#944)
This commit is contained in:
parent
559dde9616
commit
6ce435c171
@ -27,9 +27,13 @@ VantComponent({
|
||||
computed: {
|
||||
wrapperStyle() {
|
||||
const { offset, draging } = this.data;
|
||||
const transform = `translate3d(${offset}px, 0, 0)`;
|
||||
const transition = draging ? 'none' : '.6s cubic-bezier(0.18, 0.89, 0.32, 1)';
|
||||
return `
|
||||
transform: translate3d(${offset}px, 0, 0);
|
||||
transition: ${draging ? 'none' : '.6s cubic-bezier(0.18, 0.89, 0.32, 1)'};
|
||||
-webkit-transform: ${transform};
|
||||
-webkit-transition: ${transition};
|
||||
transform: ${transform};
|
||||
transition: ${transition};
|
||||
`;
|
||||
}
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user