Upravy UI, refaktoring, davkove upravy a mazani fotek

This commit is contained in:
Michal Kváček
2023-08-28 22:02:24 +02:00
parent dcc3230cbe
commit dd248d4432
53 changed files with 636 additions and 357 deletions
+1 -10
View File
@@ -7,11 +7,6 @@ const props = defineProps({
modelValue: {
type: Object,
},
resetAfterSubmit: {
type: Boolean,
required: false,
default: false
},
isRequestPending,
saveButton: {
type: [Object, Boolean],
@@ -27,10 +22,6 @@ const props = defineProps({
const emits = defineEmits(["save"]);
const saveForm = () => {
emits("save", props.modelValue);
if (props.resetAfterSubmit) {
console.error("Not implemented")
}
}
const $q = useQuasar();
@@ -47,7 +38,7 @@ const fullwidthBtn = computed(() => $q.screen.width <= $q.screen.sizes.md);
color="primary"
type="submit"
size="lg"
:class="{'q-my-lg': true, 'q-mx-lg': !fullwidthBtn, 'btn--fullwidth': fullwidthBtn}"
:class="{'q-my-lg': true, 'btn--fullwidth': fullwidthBtn}"
v-if="saveButton"
:icon="props.saveButton.icon"
:loading="props.isRequestPending"