free-fe-core-modules 0.0.11 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref, unref, getCurrentInstance, watch, watchEffect } from "vue";
|
|
2
2
|
|
|
3
3
|
export const objectDataProps = {
|
|
4
|
-
GetData: Function,
|
|
4
|
+
GetData: [Function, Object, Array],
|
|
5
5
|
Bus: Object,
|
|
6
6
|
modelValue: {},
|
|
7
7
|
autoGet: { type: Boolean, default: true },
|
|
@@ -22,9 +22,9 @@ export function useObjectData(props, ctx) {
|
|
|
22
22
|
})
|
|
23
23
|
|
|
24
24
|
// call after refresh when all function got called
|
|
25
|
-
|
|
26
|
-
if (vm.afterRefresh && callsLeft.value <= 0) {
|
|
27
|
-
vm.afterRefresh(
|
|
25
|
+
watch(() => callsLeft.value, () => {
|
|
26
|
+
if (typeof vm.afterRefresh === 'function' && callsLeft.value <= 0) {
|
|
27
|
+
vm.afterRefresh();
|
|
28
28
|
}
|
|
29
29
|
})
|
|
30
30
|
|