mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 22:36:31 +08:00
remove unused ant-select-show-search className, close #4859
This commit is contained in:
parent
a0c1d22d92
commit
c296d1a918
@ -126,7 +126,7 @@ exports[`test renders ./components/locale-provider/demo/all.md correctly 1`] = `
|
||||
<div
|
||||
class="example">
|
||||
<div
|
||||
class="ant-select-show-search ant-select ant-select-enabled"
|
||||
class="ant-select ant-select-enabled"
|
||||
style="width:200px;">
|
||||
<div
|
||||
aria-autocomplete="list"
|
||||
|
@ -323,7 +323,7 @@ exports[`test renders ./components/select/demo/optgroup.md correctly 1`] = `
|
||||
|
||||
exports[`test renders ./components/select/demo/search.md correctly 1`] = `
|
||||
<div
|
||||
class="ant-select-show-search ant-select ant-select-enabled"
|
||||
class="ant-select ant-select-enabled"
|
||||
style="width:200px;">
|
||||
<div
|
||||
aria-autocomplete="list"
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
order: 5
|
||||
title:
|
||||
title:
|
||||
zh-CN: 分组
|
||||
en-US: Option Group
|
||||
---
|
||||
@ -23,9 +23,9 @@ function handleChange(value) {
|
||||
}
|
||||
|
||||
ReactDOM.render(
|
||||
<Select defaultValue="lucy"
|
||||
<Select
|
||||
defaultValue="lucy"
|
||||
style={{ width: 200 }}
|
||||
showSearch={false}
|
||||
onChange={handleChange}
|
||||
>
|
||||
<OptGroup label="Manager">
|
||||
|
@ -92,7 +92,6 @@ export default class Select extends React.Component<SelectProps, any> {
|
||||
className = '',
|
||||
size,
|
||||
combobox,
|
||||
showSearch,
|
||||
} = this.props;
|
||||
|
||||
let { notFoundContent = 'Not Found', optionLabelProp } = this.props;
|
||||
@ -100,7 +99,6 @@ export default class Select extends React.Component<SelectProps, any> {
|
||||
const cls = classNames({
|
||||
[`${prefixCls}-lg`]: size === 'large',
|
||||
[`${prefixCls}-sm`]: size === 'small',
|
||||
[`${prefixCls}-show-search`]: showSearch,
|
||||
}, className);
|
||||
|
||||
const { antLocale } = this.context;
|
||||
|
Loading…
Reference in New Issue
Block a user