atom-nuxt 1.3.7 → 1.4.1
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.
package/dist/module.json
CHANGED
|
@@ -221,7 +221,8 @@ const dialogTransition = computed(() => {
|
|
|
221
221
|
<v-progress-circular indeterminate color="primary"></v-progress-circular>
|
|
222
222
|
</div>
|
|
223
223
|
</template>
|
|
224
|
-
<slot
|
|
224
|
+
<slot
|
|
225
|
+
:action="action"
|
|
225
226
|
:readonly="readonly"
|
|
226
227
|
:item="item"
|
|
227
228
|
:errors="formErrors">
|
|
@@ -338,7 +338,7 @@ const createForm = () => {
|
|
|
338
338
|
};
|
|
339
339
|
const saveAction = async () => {
|
|
340
340
|
formPending.value = true;
|
|
341
|
-
let itemToSave =
|
|
341
|
+
let itemToSave = structuredClone(item.value);
|
|
342
342
|
if (props.beforeSave != null) {
|
|
343
343
|
itemToSave = await props.beforeSave(itemToSave);
|
|
344
344
|
}
|
|
@@ -508,6 +508,9 @@ const exportAction = async () => {
|
|
|
508
508
|
:errors="formErrors">
|
|
509
509
|
|
|
510
510
|
</slot>
|
|
511
|
+
<template #beforeActions="{action, item, pending, formPending, errors}">
|
|
512
|
+
<slot name="beforeActions" :action="action" :item="item" :pending="pending" :formPending="formPending" :errors="errors"></slot>
|
|
513
|
+
</template>
|
|
511
514
|
</crud-form-dialog>
|
|
512
515
|
|
|
513
516
|
</div>
|