feat: add drop image product mgmt

This commit is contained in:
Methapon2001 2024-12-23 17:17:39 +07:00
parent bd3a7bc9a4
commit 3eda26bbf7
3 changed files with 126 additions and 21 deletions

View file

@ -1,6 +1,7 @@
<script setup lang="ts">
import { QSelect } from 'quasar';
import useOptionStore from 'src/stores/options';
import { createEditorImageDrop } from 'src/utils/ui';
import { selectFilterOptionRefMod } from 'stores/utils';
import { ref, onMounted, watch } from 'vue';
import { useI18n } from 'vue-i18n';
@ -66,6 +67,8 @@ watch(
);
},
);
const detailEditorImageDrop = createEditorImageDrop(detail);
</script>
<template>
@ -209,6 +212,7 @@ watch(
@update:model-value="
(v) => (typeof v === 'string' ? (detail = v) : '')
"
@drop="detailEditorImageDrop"
min-height="5rem"
class="q-mt-sm q-mb-xs"
:flat="!readonly"