mirror of
https://github.com/youzan/vant.git
synced 2025-10-17 16:44:21 +00:00
[new feature] Notice bar support more props (#254)
* [bugfix] CouponList always show empty info * [bugfix] add click feedback of buttons in components * [Doc] add custom theme document * [new feature] Notice bar support more props * [bugfix] PullRefresh test cases * [bugfix] unused NoticeBar style
This commit is contained in:
@@ -102,7 +102,7 @@ describe('PullRefresh', () => {
|
||||
}
|
||||
});
|
||||
|
||||
window.scrollY = 100;
|
||||
window.scrollTop = 100;
|
||||
|
||||
// ignore touch event when not at page top
|
||||
triggerTouch(wrapper, 'touchstart', 0, 0);
|
||||
@@ -110,7 +110,7 @@ describe('PullRefresh', () => {
|
||||
triggerTouch(wrapper, 'touchend', 0, 100);
|
||||
expect(wrapper.vm.ceiling).to.be.false;
|
||||
|
||||
window.scrollY = 0;
|
||||
window.scrollTop = 0;
|
||||
triggerTouch(wrapper, 'touchmove', 0, 100);
|
||||
expect(wrapper.vm.ceiling).to.be.true;
|
||||
});
|
||||
|
Reference in New Issue
Block a user