码迷,mamicode.com
首页 > Web开发 > 详细

vuejs-no-side-effects-in-computed-properties

时间:2018-04-07 20:04:13      阅读:1219      评论:0      收藏:0      [点我收藏+]

标签:refresh   style   play   sid   com   watch   display   return   cli   

watch: {
totalCount: function() {
if (!this.totalCount) {
this.fold = false;
return false;
}
},
fold: function(totalCount) {
let show = this.fold;
if (show) {
this.$nextTick(() => {
if (!this.scroll) {
this.scroll = new BScroll(this.$refs.listContent, {
click: true
});
} else {
this.scroll.refresh();
}
});
}
return show;
}
},

vuejs-no-side-effects-in-computed-properties

标签:refresh   style   play   sid   com   watch   display   return   cli   

原文地址:https://www.cnblogs.com/x-4k/p/8734277.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!