@opendesign-plus-test/components 0.0.1-rc.90 → 0.0.1-rc.91
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.
|
@@ -107,20 +107,28 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
107
107
|
eventsData.value = [];
|
|
108
108
|
}
|
|
109
109
|
};
|
|
110
|
+
const datesLoadedStatus = ref([false, false, false]);
|
|
111
|
+
const allDatesLoaded = computed(() => datesLoadedStatus.value.every((v) => !!v));
|
|
110
112
|
const getDateList = async (date) => {
|
|
111
113
|
if (props.getDateListRequest) {
|
|
112
114
|
props.getDateListRequest(date, group.value || "").then((res) => {
|
|
113
115
|
dateList.value = res;
|
|
116
|
+
}).finally(() => {
|
|
117
|
+
datesLoadedStatus.value[0] = true;
|
|
114
118
|
});
|
|
115
119
|
}
|
|
116
120
|
if (props.getEventsDatesRequest) {
|
|
117
121
|
props.getEventsDatesRequest(date).then((res) => {
|
|
118
122
|
eventsDates.value = res;
|
|
123
|
+
}).finally(() => {
|
|
124
|
+
datesLoadedStatus.value[1] = true;
|
|
119
125
|
});
|
|
120
126
|
}
|
|
121
127
|
if (props.getSummitDatesRequest) {
|
|
122
128
|
props.getSummitDatesRequest(date).then((res) => {
|
|
123
129
|
summitDates.value = res;
|
|
130
|
+
}).finally(() => {
|
|
131
|
+
datesLoadedStatus.value[2] = true;
|
|
124
132
|
});
|
|
125
133
|
}
|
|
126
134
|
};
|
|
@@ -173,6 +181,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
173
181
|
});
|
|
174
182
|
};
|
|
175
183
|
const allDates = computed(() => {
|
|
184
|
+
if (!allDatesLoaded.value) {
|
|
185
|
+
return [];
|
|
186
|
+
}
|
|
176
187
|
console.log("dateList", dateList.value);
|
|
177
188
|
console.log("summitDates", dateList.value);
|
|
178
189
|
console.log("eventsDates", dateList.value);
|