[bugfix] SwipeCell: missing transform css prefix (#944)

This commit is contained in:
neverland 2018-11-23 23:39:42 +08:00 committed by GitHub
parent 559dde9616
commit 6ce435c171
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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};
`;
}
},