[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:
neverland
2017-10-26 02:37:14 -05:00
committed by Yao
parent e006f1402e
commit 3c12a426ca
6 changed files with 72 additions and 20 deletions

View File

@@ -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;
},