element icon indicating copy to clipboard operation
element copied to clipboard

[Bug, Report] upload component file-list bug

Open stanNo1 opened this issue 9 years ago • 2 comments

Element UI version

1.3.7

OS/Browsers version

chrome

Vue version

2.4.1

Reproduction Link

https://jsfiddle.net/stanzhou/2Ljwug4h/

Steps to reproduce

1、设置:show-file-list=true 2、上传文件 3、提示vue.js:465 [Vue warn]: Avoid using non-primitive value as key, use string/number value instead

What is Expected?

上传无异常

What is actually happening?

提示 vue.js:465 [Vue warn]: Avoid using non-primitive value as key, use string/number value instead 初步定为是由于file-list引起的,如果未定义file-list或show-file-list=false,不会出现此问题。这个问题应该是vue新的版本引起的。

stanNo1 avatar Jul 17 '17 02:07 stanNo1

Translation of this issue:

Element UI version

1.3.7

OS/Browsers version

Chrome

Vue version

2.4.1

Reproduction Link

https://jsfiddle.net/stanzhou/2Ljwug4h/

Steps to reproduce

1 settings: show-file-list=true

2, upload files , vue.js:465, [Vue, warn], Avoid, non-primitive, value, as, key, use, string/number, value, instead, using

What is Expected?

Upload without exception

What is actually happening?

Prompt

Vue.js:465 [Vue warn]: Avoid, using, non-primitive, value, as, key, use, string/number, value, instead This is tentatively determined to be due to file-list, and this problem will not occur if file-list or show-file-list=false is not defined. This problem should have been caused by the new version of vue.

element-bot avatar Jul 17 '17 02:07 element-bot

Duplicate of #5876

Leopoldthecoder avatar Jul 17 '17 02:07 Leopoldthecoder