Skip to content

Commit 102c06c

Browse files
feat(vue): emit loading event
1 parent 7bc4904 commit 102c06c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/vue/src/components/result/ReactiveList.jsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,11 @@ const ReactiveList = {
318318
this.setPage(newVal >= 0 ? newVal : 0);
319319
}
320320
},
321+
isLoading(newVal, oldVal) {
322+
if (newVal !== oldVal) {
323+
this.$emit('loading', newVal);
324+
}
325+
},
321326
},
322327
mounted() {
323328
if (this.defaultPage < 0 && this.currentPage > 0) {

0 commit comments

Comments
 (0)