Editace fotek v modalu, lepsi datetime picker

This commit is contained in:
Michal Kváček
2023-07-10 08:12:48 +02:00
parent 3d88397d21
commit bbb21278fd
18 changed files with 274 additions and 103 deletions
+2 -4
View File
@@ -6,7 +6,6 @@ import {useSlots} from "vue";
const props = defineProps({
modelValue: {
type: Object,
required: true
},
resetAfterSubmit: {
type: Boolean,
@@ -14,9 +13,8 @@ const props = defineProps({
default: false
},
isRequestPending,
saveButton: {
type: Object,
type: [Object, Boolean],
required: false,
default: () => ({
label: "Save",
@@ -42,7 +40,7 @@ const saveForm = () => {
<slot name="saveButton" />
<q-btn type="submit" color="primary" :icon="props.saveButton.icon" :loading="props.isRequestPending">
<q-btn type="submit" color="primary" v-if="saveButton" :icon="props.saveButton.icon" :loading="props.isRequestPending">
{{ props.saveButton.label }}
<template v-slot:loading>
Loading...