-
Notifications
You must be signed in to change notification settings - Fork 201
Open
Labels
🐞 bugSomething isn't workingSomething isn't working🧐 unconfirmedwaiting to be confirmedwaiting to be confirmed
Description
tdesign-mobile-vue 版本
1.10.2
重现链接
https://stackblitz.com/edit/cqchxb3x?file=src%2Fdemo.vue
重现步骤
No response
期望结果
重点是这三个属性:
:files="images" // 只有1张图
:multiple="false"
:max="1"
实际结果

可能与此有关(file组件不允许以编程方式指定value值,唯一可以指定的是空字串):
tdesign-mobile-vue/src/upload/upload.tsx
Line 153 in 036ba41
value={props.files} |
框架版本
No response
浏览器版本
No response
系统版本
No response
Node版本
No response
补充说明
单文件模式,比如身份证上传场景,当选定文件之后期望不要再展示添加按钮。若用户需要则可以删除文件重新上传即可。如此版面会更干净。
但现在无论如何添加按钮都无法隐藏。
Metadata
Metadata
Assignees
Labels
🐞 bugSomething isn't workingSomething isn't working🧐 unconfirmedwaiting to be confirmedwaiting to be confirmed