Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task
lllianreg opened this issue Jun 27, 2021 · 1 comment
Closed
1 task
Labels
1.x version 1.x outdated

Comments

@lllianreg
Copy link

  • 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组件存在这问题,尚不知其他小功能组件是否有类似问题。

@github-actions github-actions bot changed the title input-passworrd组件props合并prefixCls被固定 The input-passworrd component props merged with prefixCls is fixed Jun 27, 2021
@zkwolf zkwolf added the 1.x version 1.x label Jun 28, 2021
@github-actions
Copy link

github-actions bot commented Jul 9, 2022

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
1.x version 1.x outdated
Projects
None yet
Development

No branches or pull requests

3 participants