Skip to content
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

Input.Search指定class无效 #3539

Closed
jackhe16 opened this issue Jan 14, 2021 · 2 comments
Closed

Input.Search指定class无效 #3539

jackhe16 opened this issue Jan 14, 2021 · 2 comments
Labels

Comments

@jackhe16
Copy link
Contributor

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

Version

2.0.0-rc.8

Environment

  • mac os 10.15.6
  • chrome 87.0.4280.141
  • vue 3.0.5

Reproduction link

https://github.com/jackhe16/antdv-input-search-class-demo

Steps to reproduce

在vue3使用2.0.8版本ant-design-vue时, Input.Search组件传递class props无效

What is expected?

Input.Search组件传递class属性生效

What is actually happening?

Input.Search组件传递class属性无效

Additional

https://github.com/vueComponent/ant-design-vue/blob/next/components/input/Search.tsx#L170

if (enterButton) {
  inputClassName = classNames(prefixCls, className, {
    [`${prefixCls}-enter-button`]: !!enterButton,
    [`${prefixCls}-${size}`]: !!size,
  });
} else {
  inputClassName = prefixCls;
}
if (enterButton) {
  inputClassName = classNames(prefixCls, className, {
    [`${prefixCls}-enter-button`]: !!enterButton,
    [`${prefixCls}-${size}`]: !!size,
  });
} else {
  inputClassName = classNames(prefixCls, className);
}
@zkwolf
Copy link
Member

zkwolf commented Jan 14, 2021

welcome pr

@github-actions
Copy link

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 Jan 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants