We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
⚠️ 重要 ⚠️ 在进一步操作之前,请检查下列选项。如果您忽视此模板或者没有提供关键信息,您的 Issue 将直接被关闭
一次性上传多张图,上传完成后点击保存,在点开预览,然后删除其中一张图片,导致所有图片被清空
我在form中使用了resultField
schemas: [{ component: 'Upload', componentProps: { maxNumber: 3, resultField: 'url', }, }]
调试发现 UploadPreviewModal组件中的参数 urlKey 可能有问题
// 删除 function handleRemove(record: PreviewFileItem | Record<string, any>, urlKey = 'url') { console.log(urlKey); // 输入的是点击事件对象 const index = fileListRef.value.findIndex((item) => item[urlKey] === record[urlKey]); console.log(index); // 输出0 if (index !== -1) { const removed = fileListRef.value.splice(index, 1); emit('delete', removed[0][urlKey]); emit( 'list-change', fileListRef.value.map((item) => item[urlKey]), //urlKey的问题 导致所有图片清空 ); } }
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
描述 Bug
一次性上传多张图,上传完成后点击保存,在点开预览,然后删除其中一张图片,导致所有图片被清空
复现 Bug
我在form中使用了resultField
调试发现 UploadPreviewModal组件中的参数 urlKey 可能有问题
系统信息
The text was updated successfully, but these errors were encountered: