fix(SwipeCell): compatible with desktop scenario (#5077)

This commit is contained in:
neverland
2019-11-22 10:32:17 +08:00
committed by GitHub
parent aba9e3f009
commit b889ab09e8
4 changed files with 18 additions and 22 deletions
@@ -3,11 +3,6 @@
exports[`renders demo correctly 1`] = `
<div>
<div>
<div role="alert" class="van-notice-bar">
<div role="marquee" class="van-notice-bar__wrap">
<div class="van-notice-bar__content" style="padding-left: 0px; animation-delay: 1s; animation-duration: 0s;">建议在手机模式下浏览本示例</div>
</div>
</div>
<div>
<div class="van-swipe-cell">
<div class="van-swipe-cell__wrapper" style="transform: translate3d(0px, 0, 0); transition-duration: .6s;">
+1 -1
View File
@@ -59,7 +59,7 @@ it('on-close prop', () => {
wrapper.trigger('click');
expect(position).toEqual(undefined);
wrapper.setData({ offset: 100 });
wrapper.vm.open('left');
wrapper.trigger('click');
expect(position).toEqual('cell');