fix(ImagePreview): avoid Vue 2.6 event bubble issues

This commit is contained in:
陈嘉涵
2019-12-31 14:23:53 +08:00
committed by neverland
parent b844a038fa
commit b66597621c
2 changed files with 31 additions and 9 deletions
+2
View File
@@ -25,6 +25,8 @@ test('render image', async () => {
expect(wrapper).toMatchSnapshot();
await later();
const swipe = wrapper.find('.van-swipe__track');
triggerDrag(swipe, 500, 0);
expect(wrapper.emitted('input')).toBeFalsy();