From 294a85abc5986594ba99fd92d7fba8e403a8ae17 Mon Sep 17 00:00:00 2001
From: jlzhou <12020042@qq.com>
Date: Thu, 14 Nov 2024 09:19:36 +0800
Subject: [PATCH] =?UTF-8?q?update=20=E5=A2=9E=E5=BC=BA=E5=9B=BE=E7=89=87?=
=?UTF-8?q?=E6=96=87=E4=BB=B6=E4=B8=8A=E4=BC=A0=E5=8A=9F=E8=83=BD=E4=BF=AE?=
=?UTF-8?q?=E5=A4=8D=E5=9B=BE=E7=89=87=E5=88=A0=E9=99=A4bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/auto/components/WImageUploader.vue | 14 +---
admin-ui/src/views/demo/file/index.vue | 7 +-
.../resources/application-local.yml.template | 2 +-
.../java/com/ruoyi/test/XFileStorageTest.java | 81 +++++++++++++------
.../main/java/com/ruoyi/file/FileService.java | 63 +++++++++++++++
.../com/ruoyi/file/impl/FileServiceImpl.java | 31 +++++--
6 files changed, 155 insertions(+), 43 deletions(-)
diff --git a/admin-ui/src/auto/components/WImageUploader.vue b/admin-ui/src/auto/components/WImageUploader.vue
index 2633830..a9555ea 100644
--- a/admin-ui/src/auto/components/WImageUploader.vue
+++ b/admin-ui/src/auto/components/WImageUploader.vue
@@ -38,7 +38,7 @@
-
@@ -213,11 +214,6 @@ onMounted(async () => {
data.value = mv.value.map(a => ({ url: a }))
}
}
- for (let one of data.value) {
- one.remove = () => {
- remove(one)
- }
- }
console.debug(proxy.$refs.imgRef)
})
@@ -338,7 +334,7 @@ const uploadFiles = async () => {
console.debug('end')
}).finally(() => {
data.value = data.value.filter(a => !a.error && !a.abort)
- console.debug('finally')
+ console.debug('finally',data.value)
doing.value = false
uploading.value = false
})
@@ -370,10 +366,6 @@ const uploadFile = async (index, retry = 0) => {
one.uploading.controller.abort()
}
- one.remove = () => {
- remove(one)
- }
-
let formData = new FormData()
diff --git a/admin-ui/src/views/demo/file/index.vue b/admin-ui/src/views/demo/file/index.vue
index 667de97..e9cb509 100644
--- a/admin-ui/src/views/demo/file/index.vue
+++ b/admin-ui/src/views/demo/file/index.vue
@@ -36,7 +36,12 @@ const getUploadKey =async () => {
属性(saveSrc):是否保存图片原文件,如果true,则下载时下载原图zip文件,否则下载大图片,默认:false
属性(saveMin):是否保存缩略图,如果true,则列表时显示缩略图,否则显示大图,默认:true
属性(watermark):是否添加水印,默认:true
+ 属性(noEffect):是否无效果,本质设置css属性,默认:false
css属性(--image-size):图片显示大小,默认: 10em
+ css属性(--image-border-radius):图片显示圆角,默认: .4em
+ css属性(--image-margin):图片外边距,默认: .5em .5em 0 0
+ css属性(--image-border):图片边框,默认: #FFF solid 2px
+ css属性(--image-box-shadow):图片阴影,默认: 0 0 .2em #0005
插槽(button):上传按钮插槽
插槽(default):图片列表插槽,作用域:list,不建议定义
事件(change):modelValue发送了变化
@@ -146,7 +151,7 @@ const { proxy } = getCurrentInstance()
const data = ref(['/files/default/2024/10/24/2nhdirb2ujey/5mb.txt'])
const uploading = ref(false)
-const imgs = ref(['/files/default/2024/10/24/f99pkzpyc0bt.webp'])
+const imgs = ref(['/files/default/2024/10/24/d0wt3m3j4tud.webp'])
const imging = ref(false)