fix(List): sync loading state

This commit is contained in:
陈嘉涵
2019-11-28 16:19:09 +08:00
parent 756ac37e6a
commit 7cfbbb0589
+6 -5
View File
@@ -49,6 +49,10 @@ export default createComponent({
};
},
updated() {
this.innerLoading = this.loading;
},
mounted() {
if (this.immediateCheck) {
this.check();
@@ -56,11 +60,8 @@ export default createComponent({
},
watch: {
finished: 'check',
loading(val) {
this.innerLoading = val;
this.check();
}
loading: 'check',
finished: 'check'
},
methods: {