Leanote's Blog
I love Leanote!
Toggle navigation
Leanote's Blog
Home
Chrome
Git
Linux
Windows
Others
工具大全
VsCode
Expo
Html
JavaScript
Npm
Node
Mock
React-Native
React
TypeScript
小程序
插件
正则
Dva
Ant-Design-React
Umi
Vue
Vux
Ant-Design-Vue
Http
Java
flutter
开发小工具
About Me
Archives
Tags
Upload上传限制一张图片的时候会有抖动动画
2024-05-08 06:26:25
2
0
0
admin
## 原因 使用了 `listType="picture-card"` 后, 删除/上传图片父元素 `.ant-upload-list-picture-card` 下面会同时存在两个元素, 一个为上传触发元素, 另一个为显示图片的元素 ## 解决 父元素设置 `overflow: hidden` 来隐藏多余的元素 ```tsx .ant-upload-list-picture-card { overflow: hidden; height: 300px; // 自行设置合适的高度 .ant-upload-select, .ant-upload-list-item-container { width: 100% !important; height: 100% !important; } } ```
Pre:
antd Form.Item如何依赖另一个Form.Item的值联动
Next:
vue2模仿外卖平台电梯效果
0
likes
2
Weibo
Wechat
Tencent Weibo
QQ Zone
RenRen
Submit
Sign in
to leave a comment.
No Leanote account?
Sign up now.
0
comments
More...
Table of content
No Leanote account? Sign up now.