-
-
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
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);
}