mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(List): sync loading state
This commit is contained in:
parent
f7dea4836c
commit
5975117ac5
@ -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: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user