mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-26 03:16:35 +08:00
fix(List): sync loading state
This commit is contained in:
parent
756ac37e6a
commit
7cfbbb0589
@ -49,6 +49,10 @@ export default createComponent({
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
updated() {
|
||||||
|
this.innerLoading = this.loading;
|
||||||
|
},
|
||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
if (this.immediateCheck) {
|
if (this.immediateCheck) {
|
||||||
this.check();
|
this.check();
|
||||||
@ -56,11 +60,8 @@ export default createComponent({
|
|||||||
},
|
},
|
||||||
|
|
||||||
watch: {
|
watch: {
|
||||||
finished: 'check',
|
loading: 'check',
|
||||||
loading(val) {
|
finished: 'check'
|
||||||
this.innerLoading = val;
|
|
||||||
this.check();
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user