From feb64ea7be1eada01782bb1fa0d5b848acb4fa64 Mon Sep 17 00:00:00 2001 From: hzbnb~ <61189185+hzbnb@users.noreply.github.com> Date: Wed, 4 Sep 2024 22:20:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8Dwd-uplo?= =?UTF-8?q?ad=20=E5=85=B3=E9=97=AD=E6=8C=89=E9=92=AE=E5=8F=97=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E8=A1=8C=E9=AB=98=E5=BD=B1=E5=93=8D=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20(#576)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/component/upload.md | 34 +++++++++---------- .../components/wd-upload/index.scss | 3 +- 2 files changed, 19 insertions(+), 18 deletions(-) diff --git a/docs/component/upload.md b/docs/component/upload.md index 07605eed..c9fa518e 100644 --- a/docs/component/upload.md +++ b/docs/component/upload.md @@ -135,8 +135,8 @@ const beforePreview = ({ file, resolve }) => { }) } -function handleChange({ files }) { - fileList.value = files +function handleChange({ fileList }) { + fileList.value = fileList } ``` @@ -178,8 +178,8 @@ const beforeUpload = ({ files, resolve }) => { }) } -function handleChange({ files }) { - fileList.value = files +function handleChange({ fileList }) { + fileList.value = fileList } ``` @@ -222,8 +222,8 @@ const beforeRemove = ({ file, fileList, resolve }) => { }) } -function handleChange({ files }) { - fileList.value = files +function handleChange({ fileList }) { + fileList.value = fileList } ``` @@ -251,7 +251,7 @@ const fileList = ref([ } ]) -const beforeChoose = (file, resolve) => { +const beforeChoose = ({fileList, resolve}) => { messageBox .confirm({ msg: '是否选择', @@ -265,8 +265,8 @@ const beforeChoose = (file, resolve) => { }) } -function handleChange({ files }) { - fileList.value = files +function handleChange({ fileList }) { + fileList.value = fileList } ``` @@ -443,8 +443,8 @@ const action = ref('https://mockapi.eolink.com/zhTuw2P8c29bc981a741931bd const fileList = ref([]) -function handleChange({ files }) { - fileList.value = files +function handleChange({ fileList }) { + fileList.value = fileList } ``` @@ -461,8 +461,8 @@ const action = ref('https://mockapi.eolink.com/zhTuw2P8c29bc981a741931bd const fileList = ref([]) -function handleChange({ files }) { - fileList.value = files +function handleChange({ fileList }) { + fileList.value = fileList } ``` @@ -479,8 +479,8 @@ const action = ref('https://mockapi.eolink.com/zhTuw2P8c29bc981a741931bd const fileList = ref([]) -function handleChange({ files }) { - fileList.value = files +function handleChange({ fileList }) { + fileList.value = fileList } ``` @@ -497,8 +497,8 @@ const action = ref('https://mockapi.eolink.com/zhTuw2P8c29bc981a741931bd const fileList = ref([]) -function handleChange({ files }) { - fileList.value = files +function handleChange({ fileList }) { + fileList.value = fileList } ``` diff --git a/src/uni_modules/wot-design-uni/components/wd-upload/index.scss b/src/uni_modules/wot-design-uni/components/wd-upload/index.scss index c4f8e8a2..14cec12a 100644 --- a/src/uni_modules/wot-design-uni/components/wd-upload/index.scss +++ b/src/uni_modules/wot-design-uni/components/wd-upload/index.scss @@ -131,6 +131,7 @@ color: $-upload-close-icon-color; width: $-upload-close-icon-size; height: $-upload-close-icon-size; + line-height: $-upload-close-icon-size; &::after { position: absolute; @@ -171,4 +172,4 @@ width: 100%; height: 100%; } -} \ No newline at end of file +}