mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 19:50:05 +08:00
5cd01d0470
* feat(Input.Search): add loading prop * fix: review change * optimize input search loading prop doc * fix: ci fail and onSearch disabled when loading
762 B
762 B
order | title | ||||
---|---|---|---|---|---|
5 |
|
zh-CN
用于 onSearch
的时候展示 loading
。
en-US
Search loading when onSearch.
import { Input } from 'antd';
const { Search } = Input;
ReactDOM.render(
<div>
<Search placeholder="input search loading deault" loading />
<br />
<br />
<Search placeholder="input search loading with suffix" loading suffix="suffix" />
<br />
<br />
<Search placeholder="input search loading with enterButton" loading enterButton />
<br />
<br />
<Search
placeholder="input search loading with enterButton and addonAfter"
loading
enterButton
addonAfter="addonAfter"
/>
</div>,
mountNode,
);