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

upload 文件上传组件 #3861

Closed
DoneLyGit opened this issue Oct 13, 2022 · 2 comments
Closed

upload 文件上传组件 #3861

DoneLyGit opened this issue Oct 13, 2022 · 2 comments
Labels
feature request New feature or request

Comments

@DoneLyGit
Copy link

TuSimple/naive-ui version (版本)

2.33.5

Vue version (Vue 版本)

3.2.40

Browser and its version (浏览器及其版本)

Chrome 106.0.5249.103 arm64

System and its version (系统及其版本)

MacOS 12.6

Node version (Node 版本)

16.8

Reappearance link (重现链接)

https://codesandbox.io/s/3l3ru8

Reappearance steps (重现步骤)

设置upload list-type="image-card" 并手动设置文件预览缩略图,文件为非图片文件(视频文件)

Expected results (期望的结果)

拖拽上传文件时触发上传操作,非图片文件上传成功后可以手动设置预览缩略图

Actual results (实际的结果)

拖拽上传文件时无响应 ,上传非图片文件(视频文件)时,文件上传成功后设置文件的thumbnailUrl属性后无法展示相关图片;
设置文件缩略图在on-finish 方法和 create-thumbnail-url 方法都进行过尝试,无法成功

Remarks (补充说明)

@github-actions github-actions bot added the untriaged need to sort label Oct 13, 2022
@07akioni
Copy link
Collaborator

目前确实只有图片才支持缩略图,这个不太合理

@07akioni 07akioni added feature request New feature or request and removed untriaged need to sort labels Nov 12, 2022
@unrjjlmn20185
Copy link

@07akioni 升级版本至 2.34.x ,发现自定义上传 image-card2.34.x之前的版本上传后会默认显示预览缩略图,现在不显示了。这是否是期望的?这会对之前的不兼容。demo 地址

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

No branches or pull requests

3 participants