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
3.6.3
自定义手动上传组件,想在basicForm返回时获取fileList,但似乎把List转成了Stirng? 若直接用fileList.value的话,form获取到的是[File,Object],[File,Object] 若使用JSON.stringify(fileList.value),获取后再转回来却不是原本哪个fileList对象,请问怎么解决呢
The text was updated successfully, but these errors were encountered:
使用await validate();获取的值不是文件对象,目前的解决方法只能通过子组件调用父组件方法传值
Sorry, something went wrong.
zy
你用的是那个组件,贴一下代码
就是自己定义了一个组件MUpload 在basicForm组件里引用 field: 'fileList', component: 'MUpload', 子组件里的实现上传,目的是想上传后获得一个fileList,和其他参数再统一提交传到后端 <a-upload :file-list="fileList" v-model="fileList" :before-upload="beforeUpload" :max-count="maxFileCount" :multiple="multipleFlag" @remove="handleRemove"
但是basicForm 里面封装的方法await validate();只能拿到String字符串,无法拿fileList对象数组
No branches or pull requests
版本号:
3.6.3
问题描述:
自定义手动上传组件,想在basicForm返回时获取fileList,但似乎把List转成了Stirng?
若直接用fileList.value的话,form获取到的是[File,Object],[File,Object]
若使用JSON.stringify(fileList.value),获取后再转回来却不是原本哪个fileList对象,请问怎么解决呢
错误截图:
友情提示:
The text was updated successfully, but these errors were encountered: