Skip to content

The problem of preview failure in upload component #4651

@CenGinHong

Description

@CenGinHong
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

2.2.7

Environment

os: windons 19042.1165, browser:Google Chrome 93.0.4577.63, Vue: 3.2.6

Reproduction link

Edit on CodeSandbox

Steps to reproduce

在upload组件中,fileList设为v-model,然后按照文档中的示例可以进行图片预览,但是有时候可能需要对上传的图片进行操作(例如裁剪),然后在赋值进去fileList,当希望手动控制filelist(取消v-model),并在beforeUpload获取图片文件进行裁剪后再手动赋进fileList时预览图片失败了。(在提供的reproduction中仅仅是在beforeUpload中进行fileList的赋值貌似就已经不能预览了)

What is expected?

有无方法解决上述的手动控制flieList预览问题

What is actually happening?

手动控制fileList时图片预览失败

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions