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

fix(components): [upload] fileList prop should sync uploadFiles #6492

Merged
merged 3 commits into from
Mar 10, 2022

Conversation

exherb
Copy link
Contributor

@exherb exherb commented Mar 9, 2022

Please make sure these boxes are checked before submitting your PR, thank you!

  • Make sure you follow contributing guide English | (中文 | Español | Français).
  • Make sure you are merging your commits to dev branch.
  • Add some descriptions and refer to relative issues for your PR.

https://togithub.com/element-plus/element-plus/issues/6014 removed this sync logic, any reason?

@github-actions
Copy link

github-actions bot commented Mar 9, 2022

@exherb
Copy link
Contributor Author

exherb commented Mar 9, 2022

got time to review this? @emojiiii

@sxzz sxzz self-assigned this Mar 9, 2022
@sxzz
Copy link
Collaborator

sxzz commented Mar 10, 2022

Could you please provide a minimum reproduction link?

@jw-foss
Copy link
Member

jw-foss commented Mar 10, 2022

@exherb Can we hold this for a minute because we have a PR #6508 for refactoring this, I will notify you once that was done! 🙇

@jw-foss jw-foss self-assigned this Mar 10, 2022
@jw-foss jw-foss self-requested a review March 10, 2022 07:44
@jw-foss jw-foss added Contribution::Community 1st contribution Their very first contribution labels Mar 10, 2022
@sxzz
Copy link
Collaborator

sxzz commented Mar 10, 2022

PTAL @JeremyWuuuuu

@jw-foss jw-foss merged commit 428893f into element-plus:dev Mar 10, 2022
@element-bot element-bot mentioned this pull request Mar 10, 2022
3 tasks
@exherb
Copy link
Contributor Author

exherb commented Mar 10, 2022

sorry, just saw the replys. Thank you

file.status ||= 'success'
}
uploadFiles.value = fileList as UploadFiles
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Force type is not a good idea
  • Why watch deep? The main usage case is restore previous uploaded files from api returns.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1st contribution Their very first contribution Contribution::Community
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug Report] [Component] [upload] The component Upload attributes file-list is not reactive
3 participants