fix: apollo components should have emits (#1504)

This commit is contained in:
forgottencsc
2023-09-12 15:29:09 +08:00
committed by GitHub
parent 6f2cf309b9
commit ca0bd28f4b
2 changed files with 4 additions and 0 deletions
@@ -52,6 +52,8 @@ export default {
}
},
emits: [ 'loading', 'done', 'error' ],
watch: {
loading (value) {
this.$emit('loading', value)
@@ -15,6 +15,8 @@ export default {
}
},
emits: [ 'loading', 'result', 'error' ],
props: {
query: {
type: [Function, Object],