mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 01:17:15 +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:
@@ -28,7 +28,7 @@
|
||||
|
||||
<script>
|
||||
import Loading from '../loading';
|
||||
import Utils from '../utils/scroll';
|
||||
import scrollUtils from '../utils/scroll';
|
||||
|
||||
export default {
|
||||
name: 'van-pull-refresh',
|
||||
@@ -81,6 +81,10 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
mounted() {
|
||||
this.scrollEl = scrollUtils.getScrollEventTarget(this.$el);
|
||||
},
|
||||
|
||||
watch: {
|
||||
value(val) {
|
||||
if (!val) {
|
||||
@@ -141,7 +145,7 @@ export default {
|
||||
},
|
||||
|
||||
getCeiling() {
|
||||
this.ceiling = Utils.getScrollTop(Utils.getScrollEventTarget(this.$el)) === 0;
|
||||
this.ceiling = scrollUtils.getScrollTop(this.scrollEl) === 0;
|
||||
return this.ceiling;
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user