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 +}