upload new version

This commit is contained in:
Warunee Tamkoo 2023-11-07 11:17:13 +07:00
parent dd5a007ac1
commit ab5bc54f6a
47 changed files with 1881 additions and 0 deletions

52
src/components/PopUp.vue Normal file
View file

@ -0,0 +1,52 @@
<script setup lang="ts">
import { ref, defineProps, watch } from "vue";
import HeaderPopup from "@/components/HeaderPopup.vue";
import FormTime from "@/components/FormTime.vue";
const props = defineProps({
modal: {
type: Boolean,
default: false,
},
title: {
type: String,
default: "",
},
clickClose: {
type: Function,
default: null,
},
dataById: {
type: Object,
default: null,
},
});
// -
const data = ref<any>();
function clickClosePopup() {
props.clickClose();
}
watch(props, () => {
if (props.modal === true) {
data.value = props.dataById;
}
});
</script>
<template>
<!-- <q-dialog v-model="props.modal" full-height>
<q-card class="column full-height" style="width: 300px">
<HeaderPopup :title="props.title" :clickClose="clickClosePopup" />
<FormTime :dataById="data" />
</q-card>
</q-dialog> -->
<q-dialog v-model="props.modal" full-height>
<q-card class="column full-height" style="width: 350px">
<HeaderPopup :title="props.title" :clickClose="clickClosePopup" />
<FormTime :dataById="data" />
</q-card>
</q-dialog>
</template>
<style scoped></style>