ant-design / compatible

https://compatible.now.sh
MIT License
89 stars 23 forks source link

CSS样式显示不正确 #115

Open Qiuhang817385 opened 3 years ago

Qiuhang817385 commented 3 years ago

Reproduction link

Edit on CodeSandbox

Steps to reproduce

  1. 下载@ant-design/compatible 依赖包
  2. 从包中导出Form, 写一个最简单的antd3的表单
  3. 为表单项上 .ant-legacy-form-item-control-wrapper 当前元素添加 css: flex: 1 1 0% 4.关于ant-legacy-form-item-control-wrapper 线上包括源码当中是默认有 flex: 1 1 0% 这个样式的,不知道为什么本地复现并没有这个样式,只能手动加上,线上是出现了问题

5.Input 表单项宽度丢失

What is expected?

表单正常显示

What is actually happening?

Input宽度丢失

image

Environment Info
antd 4.12.2
React 16.8
System windows
Browser chrome 88