diff --git a/web/src/components/selectImage/selectImage.vue b/web/src/components/selectImage/selectImage.vue index b5176016..5958e0a2 100644 --- a/web/src/components/selectImage/selectImage.vue +++ b/web/src/components/selectImage/selectImage.vue @@ -2,9 +2,27 @@
- + + + @@ -140,6 +158,7 @@ import { ElMessage, ElMessageBox } from 'element-plus' import { ArrowLeftBold, CloseBold, + Menu, MoreFilled, Picture as IconPicture, Plus, @@ -149,6 +168,7 @@ import selectComponent from '@/components/selectImage/selectComponent.vue' import { addCategory, deleteCategory, getCategoryList } from '@/api/attachmentCategory' import CropperImage from "@/components/upload/cropper.vue"; import QRCodeUpload from "@/components/upload/QR-code.vue"; +import draggable from 'vuedraggable' const imageUrl = ref('') const imageCommon = ref('') @@ -424,6 +444,20 @@ const useSelectedImages = () => { selectedImages.value = [] } +const onDragStart = () => { + // 拖拽开始时的处理 + document.body.style.cursor = 'grabbing' +} + +const onDragEnd = () => { + // 拖拽结束时的处理 + document.body.style.cursor = 'default' + // 确保model是数组类型 + if (!Array.isArray(model.value)) { + model.value = [] + } +} +