cosey 0.4.47 → 0.4.48
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.
|
@@ -342,6 +342,20 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
342
342
|
await execute();
|
|
343
343
|
}
|
|
344
344
|
};
|
|
345
|
+
const submit = async () => {
|
|
346
|
+
if (props.formProps) {
|
|
347
|
+
return tableQueryRef.value?.submit();
|
|
348
|
+
} else {
|
|
349
|
+
return onSubmit();
|
|
350
|
+
}
|
|
351
|
+
};
|
|
352
|
+
const reset = async () => {
|
|
353
|
+
if (props.formProps) {
|
|
354
|
+
return tableQueryRef.value?.reset();
|
|
355
|
+
} else {
|
|
356
|
+
return onReset();
|
|
357
|
+
}
|
|
358
|
+
};
|
|
345
359
|
const statsColumns = computed(() => unref(props.statsColumns));
|
|
346
360
|
const statsData = computed(() => unref(props.statsData));
|
|
347
361
|
const isStatsVisible = computed(() => statsColumns.value && statsColumns.value.length > 0);
|
|
@@ -356,7 +370,9 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
356
370
|
setData,
|
|
357
371
|
getData,
|
|
358
372
|
getRootEl,
|
|
359
|
-
getPagination
|
|
373
|
+
getPagination,
|
|
374
|
+
submit,
|
|
375
|
+
reset
|
|
360
376
|
}, () => tableQueryRef.value);
|
|
361
377
|
watch(() => props.getExpose, () => {
|
|
362
378
|
props.getExpose?.(expose);
|