Skip to content

The behavior of ARow ACol in 2.0 and ARow ACol in 1.7 is different, causing migration problems #3758

@cloud0072

Description

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

Version

2.0.1

Environment

win10 chrome 版本 88.0.4324.190 64 位 vue3.0.5/vue2.6.5

Reproduction link

http://localhost:3000/抱歉没有外网链接

Steps to reproduce

分别在 antd 1. 7 和 2.0中使用如下代码
< a-row :gutter="24">
< div>
< a-col :span="6">1
< a-col :span="6">2
< a-col :span="6">3
< a-col :span="6">4
< /div>
< /a-row>

What is expected?

能够正确的分割为四段

What is actually happening?

1.7版的ant是可以正常分割的,但是2.0版这段代码会失效


a-row的子节点中加入div会导致a-col无效

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions