fix: 🐛 修复wd-upload 关闭按钮受项目行高影响的问题 (#576)

This commit is contained in:
hzbnb~ 2024-09-04 22:20:01 +08:00 committed by GitHub
parent 049f0bf0d7
commit feb64ea7be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 19 additions and 18 deletions

View File

@ -135,8 +135,8 @@ const beforePreview = ({ file, resolve }) => {
}) })
} }
function handleChange({ files }) { function handleChange({ fileList }) {
fileList.value = files fileList.value = fileList
} }
``` ```
@ -178,8 +178,8 @@ const beforeUpload = ({ files, resolve }) => {
}) })
} }
function handleChange({ files }) { function handleChange({ fileList }) {
fileList.value = files fileList.value = fileList
} }
``` ```
@ -222,8 +222,8 @@ const beforeRemove = ({ file, fileList, resolve }) => {
}) })
} }
function handleChange({ files }) { function handleChange({ fileList }) {
fileList.value = files fileList.value = fileList
} }
``` ```
@ -251,7 +251,7 @@ const fileList = ref<any[]>([
} }
]) ])
const beforeChoose = (file, resolve) => { const beforeChoose = ({fileList, resolve}) => {
messageBox messageBox
.confirm({ .confirm({
msg: '是否选择', msg: '是否选择',
@ -265,8 +265,8 @@ const beforeChoose = (file, resolve) => {
}) })
} }
function handleChange({ files }) { function handleChange({ fileList }) {
fileList.value = files fileList.value = fileList
} }
``` ```
@ -443,8 +443,8 @@ const action = ref<string>('https://mockapi.eolink.com/zhTuw2P8c29bc981a741931bd
const fileList = ref([]) const fileList = ref([])
function handleChange({ files }) { function handleChange({ fileList }) {
fileList.value = files fileList.value = fileList
} }
``` ```
@ -461,8 +461,8 @@ const action = ref<string>('https://mockapi.eolink.com/zhTuw2P8c29bc981a741931bd
const fileList = ref([]) const fileList = ref([])
function handleChange({ files }) { function handleChange({ fileList }) {
fileList.value = files fileList.value = fileList
} }
``` ```
@ -479,8 +479,8 @@ const action = ref<string>('https://mockapi.eolink.com/zhTuw2P8c29bc981a741931bd
const fileList = ref([]) const fileList = ref([])
function handleChange({ files }) { function handleChange({ fileList }) {
fileList.value = files fileList.value = fileList
} }
``` ```
@ -497,8 +497,8 @@ const action = ref<string>('https://mockapi.eolink.com/zhTuw2P8c29bc981a741931bd
const fileList = ref([]) const fileList = ref([])
function handleChange({ files }) { function handleChange({ fileList }) {
fileList.value = files fileList.value = fileList
} }
``` ```

View File

@ -131,6 +131,7 @@
color: $-upload-close-icon-color; color: $-upload-close-icon-color;
width: $-upload-close-icon-size; width: $-upload-close-icon-size;
height: $-upload-close-icon-size; height: $-upload-close-icon-size;
line-height: $-upload-close-icon-size;
&::after { &::after {
position: absolute; position: absolute;