-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Closed
Labels
Description
- 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
ant-design-vue/components/form/FormItem.jsx
Line 461 in 3995f25
| <Row class={classNames(itemClassName)} key="row"> |
Steps to reproduce
- 使用定制主题更改
ant-prefix变量
// vue.config.js
module.exports = {
css: {
loaderOptions: {
less: {
modifyVars: {
'ant-prefix': 'ant1'
},
javascriptEnabled: true,
},
},
},
};
- 给Form、FormItem等标签添加
prefixCls=ant1-form属性
<FormItem
:label-col="formItemLayout.labelCol"
:wrapper-col="formItemLayout.wrapperCol"
label="原始密码"
prefixCls="ant1-form">
...
- 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"
ant-design-vue/components/form/FormItem.jsx
Line 461 in 3995f25
| <Row class={classNames(itemClassName)} key="row"> |
FormItem这一行的Row组件使用,为什么没有指定设置props?