2019-09-12 22:32:29 +08:00
|
|
|
---
|
|
|
|
order: 5
|
|
|
|
title:
|
|
|
|
zh-CN: 搜索框 loading
|
|
|
|
en-US: Search box with loading
|
|
|
|
---
|
|
|
|
|
|
|
|
## zh-CN
|
|
|
|
|
|
|
|
用于 `onSearch` 的时候展示 `loading`。
|
|
|
|
|
|
|
|
## en-US
|
|
|
|
|
|
|
|
Search loading when onSearch.
|
|
|
|
|
|
|
|
```jsx
|
|
|
|
import { Input } from 'antd';
|
|
|
|
|
|
|
|
const { Search } = Input;
|
|
|
|
|
|
|
|
ReactDOM.render(
|
|
|
|
<div>
|
|
|
|
<Search placeholder="input search loading deault" loading />
|
|
|
|
<br />
|
|
|
|
<br />
|
2019-10-22 21:29:17 +08:00
|
|
|
<Search placeholder="input search loading with suffix" loading />
|
2019-09-12 22:32:29 +08:00
|
|
|
<br />
|
|
|
|
<br />
|
|
|
|
<Search placeholder="input search loading with enterButton" loading enterButton />
|
|
|
|
<br />
|
|
|
|
<br />
|
|
|
|
<Search
|
|
|
|
placeholder="input search loading with enterButton and addonAfter"
|
|
|
|
loading
|
|
|
|
enterButton
|
|
|
|
/>
|
|
|
|
</div>,
|
|
|
|
mountNode,
|
|
|
|
);
|
|
|
|
```
|