[Improvement] Popup: add click-overlay event (#647)

This commit is contained in:
neverland
2018-02-24 15:22:41 +08:00
committed by GitHub
parent c0f870ceb9
commit 5d25d7aff9
5 changed files with 45 additions and 45 deletions

View File

@@ -100,9 +100,8 @@ describe('Popup', () => {
expect(wrapper.hasClass('van-popup')).to.be.true;
const modal = document.querySelector('.van-modal');
setTimeout(() => {
const modal = document.querySelector('.van-modal');
triggerTouch(modal, 'touchstart', 0, 0);
triggerTouch(modal, 'touchmove', 0, 10);
triggerTouch(modal, 'touchmove', 0, 30);