Skip to content

FormItem这一行的Row组件使用,为什么没有指定设置props? #2123

@loocao

Description

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

Version

1.5.1

Environment

macOS 10.15.5, Chrome 81.0.4044.113, Vue 2.6.11

Reproduction link

<Row class={classNames(itemClassName)} key="row">

Steps to reproduce

  1. 使用定制主题更改ant-prefix变量
// vue.config.js
module.exports = {
css: {
loaderOptions: {
less: {
modifyVars: {
'ant-prefix': 'ant1'
},
javascriptEnabled: true,
},
},
},
};
  1. 给Form、FormItem等标签添加prefixCls=ant1-form属性
<FormItem
:label-col="formItemLayout.labelCol"
:wrapper-col="formItemLayout.wrapperCol"
label="原始密码"
prefixCls="ant1-form">
...
  1. FormItem生成的div标签class样式为
class="ant-row ant1-form-item"

What is expected?

FormItem生成的div标签正确的class样式应该为:

class="ant1-row ant1-form-item"

What is actually happening?

FormItem生成的div标签class样式为

class="ant-row ant1-form-item"

<Row class={classNames(itemClassName)} key="row">

FormItem这一行的Row组件使用,为什么没有指定设置props?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions