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
1.3.8
vue2.6.6
https://vue.ant.design/components/form-cn/#components-form-demo-other-form-controls
v-decorator="['dragger', { valuePropName: 'fileList', getValueFromEvent: normFile, }]"
修复
此情况下源码
reBeforeUpload(file, fileList) { if (!this.beforeUpload) { return true; } const result = this.beforeUpload(file, fileList); if (result === false) { this.onChange({ file, fileList: uniqBy(this.sFileList.concat(fileList.map(fileToObject)), item => item.uid), }); return false; } else if (result && result.then) { return result; } return true; },
中concat处报错。
原因是 form.resetFields() 将 fileList 置为 undefined, 而源码中又watch了 fileList,从而导致 sFileList 变为 undefined
The text was updated successfully, but these errors were encountered:
form.resetFields()
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Sorry, something went wrong.
No branches or pull requests
Version
1.3.8
Environment
vue2.6.6
Reproduction link
https://vue.ant.design/components/form-cn/#components-form-demo-other-form-controls
Steps to reproduce
v-decorator="['dragger', { valuePropName: 'fileList', getValueFromEvent: normFile, }]"
What is expected?
修复
What is actually happening?
此情况下源码
中concat处报错。
原因是 form.resetFields() 将 fileList 置为 undefined, 而源码中又watch了 fileList,从而导致 sFileList 变为 undefined
The text was updated successfully, but these errors were encountered: