Skip to content

The input-passworrd component props merged with prefixCls is fixed #4278

@lllianreg

Description

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

Version

1.7.3

Environment

5.0 (Windows NT 10.0; Win64; x64) Chrome/91.0.4472.114 Vue/2.6.10

Reproduction link

http://小BUG

Steps to reproduce

更改项目的全局配置的prefixCls属性为erp-ant 想达到样式隔离效果 但是input-passworrd 组价 claasName 还是原来的 ant-input

What is expected?

应该返回erp-ant-input

What is actually happening?

实际为ant-input


读源码发现 ant-design-vue\es\input\Password.js 下的 props属性对象合并时inputProps被放在前面,导致一直固定为ant-input and ant-input-password
目前仅发现input-passworrd组件存在这问题,尚不知其他小功能组件是否有类似问题。

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