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

[Bug Report] Uploader has not changed: the object of file-list binding. #12080

Closed
git8023 opened this issue Jul 21, 2018 · 5 comments
Closed

Comments

@git8023
Copy link

git8023 commented Jul 21, 2018

Element UI version

2.4.4

OS/Browsers version

Win10 / Google Chrome 67.0.3396.99(正式版本) (64 位)

Vue version

2.5.16

Reproduction Link

https://jsfiddle.net/mmx38qxw/4033/

Steps to reproduce

上传任意文件

Vue version: 3.0.0-rc.3
NodeJs version: 5.6.0

elementUI 官方示例:
http://element-cn.eleme.io/#/zh-CN/component/upload
https://jsfiddle.net/api/post/library/pure/

What is Expected?

同步更新被引用对象

What is actually happening?

被引用无变化

@element-bot element-bot changed the title [Bug Report] Uploader 并没有修改 :file-list 绑定的对象 [Bug Report] Uploader has not changed: the object of file-list binding. Jul 21, 2018
@element-bot
Copy link
Member

Translation of this issue:

Element UI version
2.4.4

OS/Browsers version
Win10 / Google Chrome 67.0.3396.99 (official version) (64 bits)

Vue version
2.5.16

Reproduction Link
https://jsfiddle.net/mmx38qxw/4033/

Steps to reproduce
Uploading any file


Vue version: 3.0.0-rc.3

NodeJs version: 5.6.0
ElementUI official example:

Http://element-cn.eleme.io/#/zh-CN/component/upload
Https://jsfiddle.net/api/post/library/pure/

What is Expected?
Synchronizing updates to the referenced object

What is actually happening?
Being quoted without change

@element-bot
Copy link
Member

Hi, your JSFiddle page is blank because it seems you forgot to click the Save button. Please save your fiddle and then edit this issue with the new link.

@git8023
Copy link
Author

git8023 commented Jul 21, 2018

@jikkai
Copy link
Contributor

jikkai commented Jul 21, 2018

fileList 是由用户传入的 props,父子传参遵循单项数据流,具体请参照 Vue 的官方文档

@jikkai jikkai closed this as completed Jul 21, 2018
@git8023
Copy link
Author

git8023 commented Jul 22, 2018

image

如果不是Vue官方弄错了, 那就是 uploader 组件刻意回避了这个修改.

image


或者期望在组件初始化完成后得到一个同步的文件列表引用.
就个人而言, 使用该组件的目的就在于修改传递过去的数组.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants