feat: add drop image product mgmt
This commit is contained in:
parent
bd3a7bc9a4
commit
3eda26bbf7
3 changed files with 126 additions and 21 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue