Tencent / Tencent/tdesign-miniprogram

[Upload 上传] originFiles: [] 选择照片后,显示不出来,原因没有内部字段

Open
#3,015 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Skyline
Dominant language
Vue
Stars
1.8k
Forks
337
Avg merge
1d 21h
Merged PRs (30d)
19

Description

tdesign-miniprogram 版本

当前最新

重现链接

No response

重现步骤

就复制你们上传图片代码,把originFiles初始化的改成originFiles: [],然后运行,选择多张图片,就会显示不了,再次选择,会把之前也显示。包括其他带数组的都有这种问题。

期望结果

No response

实际结果

No response

基础库版本

No response

补充说明

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the upload image example and trace how originFiles is handled when initialized as an empty array. Reproduce the issue by selecting multiple photos, then confirm that the initial selection renders and later selections do not duplicate or reveal previously hidden files; check whether other array-valued inputs show the same behavior.

Written by the indexing model from the issue text.

Assessment

Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.