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

3.0.0-beta.11 upload listType is 'picture-card' fileList async style error #5298

Closed
1 task done
qingyuun opened this issue Mar 2, 2022 · 2 comments
Closed
1 task done
Labels

Comments

@qingyuun
Copy link

qingyuun commented Mar 2, 2022

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

3.0.0-beta.11

Environment

chrome 98.0.^ vue 3.2.31 antd-design-vue 3.0.0-beta.11

Reproduction link

Edit on CodeSandbox

Steps to reproduce

filelist 默认值为 空数组时,通过 异步延时赋值后 , listType 为 'picture-card' 时样式不正确渲染 ,

What is expected?

在 listType 为 'picture-card' 时 fileList 异步渲染 时 渲染区域 class 为 ant-upload-list-picture-card-container 的div 元素上, 去除 行内 style "height: 20px; opacity: 1;"

What is actually happening?

在 listType 为 'picture-card' 时 fileList 异步渲染 时 渲染区域 class 为 ant-upload-list-picture-card-container 的div 元素上, 添加了 行内 style "height: 20px; opacity: 1;"

@hzgotb
Copy link
Contributor

hzgotb commented Mar 2, 2022

node.style.height = `${node.scrollHeight}px`;

这个位置赋值了。
我试了一下官网的实例,上传一张新的图片,也出现这个问题。

@github-actions
Copy link

github-actions bot commented Mar 3, 2023

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants