feat: add product dialog

This commit is contained in:
oat_dev 2024-06-14 14:45:17 +07:00
parent d4ddabcf0e
commit 4ad9d4c274
5 changed files with 246 additions and 0 deletions

View file

@ -5,6 +5,10 @@ const urlProfile = defineModel('urlProfile', {
const profileSubmit = defineModel('profileSubmit');
const statusToggle = defineModel('statusToggle');
defineProps<{
isProduct?: boolean;
}>();
defineEmits<{
(e: 'inputFile'): void;
}>();
@ -18,6 +22,11 @@ defineEmits<{
:src="urlProfile"
style="object-fit: cover; width: 100%; height: 100%"
/>
<q-img
v-else-if="isProduct"
src="shop-add-image.png"
style="object-fit: cover; width: 100%; height: 100%"
/>
<q-icon
v-else
name="mdi-account full-height"