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