Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复wd-upload 在小程序中关闭图片偏移的情况 #576

Merged
merged 2 commits into from
Sep 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 17 additions & 17 deletions docs/component/upload.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ const beforePreview = ({ file, resolve }) => {
})
}

function handleChange({ files }) {
fileList.value = files
function handleChange({ fileList }) {
fileList.value = fileList
}
```

Expand Down Expand Up @@ -178,8 +178,8 @@ const beforeUpload = ({ files, resolve }) => {
})
}

function handleChange({ files }) {
fileList.value = files
function handleChange({ fileList }) {
fileList.value = fileList
}
```

Expand Down Expand Up @@ -222,8 +222,8 @@ const beforeRemove = ({ file, fileList, resolve }) => {
})
}

function handleChange({ files }) {
fileList.value = files
function handleChange({ fileList }) {
fileList.value = fileList
}
```

Expand Down Expand Up @@ -251,7 +251,7 @@ const fileList = ref<any[]>([
}
])

const beforeChoose = (file, resolve) => {
const beforeChoose = ({fileList, resolve}) => {
messageBox
.confirm({
msg: '是否选择',
Expand All @@ -265,8 +265,8 @@ const beforeChoose = (file, resolve) => {
})
}

function handleChange({ files }) {
fileList.value = files
function handleChange({ fileList }) {
fileList.value = fileList
}
```

Expand Down Expand Up @@ -443,8 +443,8 @@ const action = ref<string>('https://mockapi.eolink.com/zhTuw2P8c29bc981a741931bd

const fileList = ref([])

function handleChange({ files }) {
fileList.value = files
function handleChange({ fileList }) {
fileList.value = fileList
}
```

Expand All @@ -461,8 +461,8 @@ const action = ref<string>('https://mockapi.eolink.com/zhTuw2P8c29bc981a741931bd

const fileList = ref([])

function handleChange({ files }) {
fileList.value = files
function handleChange({ fileList }) {
fileList.value = fileList
}
```

Expand All @@ -479,8 +479,8 @@ const action = ref<string>('https://mockapi.eolink.com/zhTuw2P8c29bc981a741931bd

const fileList = ref([])

function handleChange({ files }) {
fileList.value = files
function handleChange({ fileList }) {
fileList.value = fileList
}
```

Expand All @@ -497,8 +497,8 @@ const action = ref<string>('https://mockapi.eolink.com/zhTuw2P8c29bc981a741931bd

const fileList = ref([])

function handleChange({ files }) {
fileList.value = files
function handleChange({ fileList }) {
fileList.value = fileList
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -171,4 +172,4 @@
width: 100%;
height: 100%;
}
}
}