@bagelink/vue 0.0.1165 → 0.0.1167
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/index.cjs +3 -3
- package/dist/index.mjs +3 -3
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/src/components/ModalForm.vue +3 -3
package/dist/index.cjs
CHANGED
|
@@ -38245,7 +38245,7 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
|
|
|
38245
38245
|
}
|
|
38246
38246
|
function runDelete() {
|
|
38247
38247
|
var _a2;
|
|
38248
|
-
(_a2 = props2.onDelete) == null ? void 0 : _a2.call(props2, formData.value
|
|
38248
|
+
(_a2 = props2.onDelete) == null ? void 0 : _a2.call(props2, formData.value);
|
|
38249
38249
|
closeModal();
|
|
38250
38250
|
}
|
|
38251
38251
|
function setFormValues(values3) {
|
|
@@ -38286,7 +38286,7 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
|
|
|
38286
38286
|
value: _ctx.cancelText || "Cancel",
|
|
38287
38287
|
onClick: closeModal
|
|
38288
38288
|
}, null, 8, ["value"]),
|
|
38289
|
-
_ctx.onDelete
|
|
38289
|
+
_ctx.onDelete ? (vue.openBlock(), vue.createBlock(vue.unref(Btn), {
|
|
38290
38290
|
key: 0,
|
|
38291
38291
|
thin: "",
|
|
38292
38292
|
icon: "delete",
|
|
@@ -38319,7 +38319,7 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
|
|
|
38319
38319
|
};
|
|
38320
38320
|
}
|
|
38321
38321
|
});
|
|
38322
|
-
const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-
|
|
38322
|
+
const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-7a736620"]]);
|
|
38323
38323
|
const _hoisted_1$5 = { class: "full-nav" };
|
|
38324
38324
|
const _hoisted_2$3 = { class: "nav-scroll" };
|
|
38325
38325
|
const _hoisted_3$2 = { class: "nav-links-wrapper" };
|
package/dist/index.mjs
CHANGED
|
@@ -38243,7 +38243,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
38243
38243
|
}
|
|
38244
38244
|
function runDelete() {
|
|
38245
38245
|
var _a2;
|
|
38246
|
-
(_a2 = props2.onDelete) == null ? void 0 : _a2.call(props2, formData.value
|
|
38246
|
+
(_a2 = props2.onDelete) == null ? void 0 : _a2.call(props2, formData.value);
|
|
38247
38247
|
closeModal();
|
|
38248
38248
|
}
|
|
38249
38249
|
function setFormValues(values3) {
|
|
@@ -38284,7 +38284,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
38284
38284
|
value: _ctx.cancelText || "Cancel",
|
|
38285
38285
|
onClick: closeModal
|
|
38286
38286
|
}, null, 8, ["value"]),
|
|
38287
|
-
_ctx.onDelete
|
|
38287
|
+
_ctx.onDelete ? (openBlock(), createBlock(unref(Btn), {
|
|
38288
38288
|
key: 0,
|
|
38289
38289
|
thin: "",
|
|
38290
38290
|
icon: "delete",
|
|
@@ -38317,7 +38317,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
38317
38317
|
};
|
|
38318
38318
|
}
|
|
38319
38319
|
});
|
|
38320
|
-
const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-
|
|
38320
|
+
const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-7a736620"]]);
|
|
38321
38321
|
const _hoisted_1$5 = { class: "full-nav" };
|
|
38322
38322
|
const _hoisted_2$3 = { class: "nav-scroll" };
|
|
38323
38323
|
const _hoisted_3$2 = { class: "nav-links-wrapper" };
|
package/dist/style.css
CHANGED
|
@@ -3437,11 +3437,11 @@ body:has(.bg-dark.is-active) {
|
|
|
3437
3437
|
border-radius: var(--card-border-radius);
|
|
3438
3438
|
}
|
|
3439
3439
|
|
|
3440
|
-
.modal-title[data-v-
|
|
3440
|
+
.modal-title[data-v-7a736620] {
|
|
3441
3441
|
margin-top: 0.5rem;
|
|
3442
3442
|
}
|
|
3443
3443
|
@media screen and (max-width: 910px) {
|
|
3444
|
-
.modal-title[data-v-
|
|
3444
|
+
.modal-title[data-v-7a736620] {
|
|
3445
3445
|
margin-top: 1rem;
|
|
3446
3446
|
}
|
|
3447
3447
|
}
|
package/package.json
CHANGED
|
@@ -16,7 +16,7 @@ const props = defineProps<{
|
|
|
16
16
|
cancelText?: string
|
|
17
17
|
deleteText?: string
|
|
18
18
|
duplicateText?: string
|
|
19
|
-
onDelete?: (
|
|
19
|
+
onDelete?: (formData: any) => void
|
|
20
20
|
visible?: boolean
|
|
21
21
|
onError?: (err: any) => void
|
|
22
22
|
modelValue?: { [key: string]: any }
|
|
@@ -56,7 +56,7 @@ async function runSubmit() {
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
function runDelete() {
|
|
59
|
-
props.onDelete?.(formData.value
|
|
59
|
+
props.onDelete?.(formData.value)
|
|
60
60
|
closeModal()
|
|
61
61
|
}
|
|
62
62
|
|
|
@@ -88,7 +88,7 @@ defineExpose({ setFormValues })
|
|
|
88
88
|
<div class="flex gap-0">
|
|
89
89
|
<Btn thin flat :value="cancelText || 'Cancel'" @click="closeModal" />
|
|
90
90
|
<Btn
|
|
91
|
-
v-if="onDelete
|
|
91
|
+
v-if="onDelete"
|
|
92
92
|
thin
|
|
93
93
|
icon="delete"
|
|
94
94
|
flat
|