mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-05 01:19:45 +08:00
6776bb8916
* docs: update demo * chore: add script * test: fix demo test * docs: convert demos * chore: move script * test: remove react-dom import * chore: update deps * docs: update riddle js * test: fix image test * docs: fix riddle demo
33 lines
576 B
Markdown
33 lines
576 B
Markdown
---
|
|
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;
|
|
|
|
export default () => (
|
|
<>
|
|
<Search placeholder="input search loading default" loading />
|
|
<br />
|
|
<br />
|
|
<Search placeholder="input search loading with enterButton" loading enterButton />
|
|
<br />
|
|
<br />
|
|
<Search placeholder="input search text" enterButton="Search" size="large" loading />
|
|
</>
|
|
);
|
|
```
|