mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-02 07:39:36 +08:00
d2c541b4e2
* 🎬 improve Input demo code * style: fix Input.Search height stretched by suffix close #23523 * fix react key warning * ✅ fix demo snapshot
31 lines
472 B
Markdown
31 lines
472 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;
|
|
|
|
ReactDOM.render(
|
|
<>
|
|
<Search placeholder="input search loading deault" loading />
|
|
<br />
|
|
<br />
|
|
<Search placeholder="input search loading with enterButton" loading enterButton />
|
|
</>,
|
|
mountNode,
|
|
);
|
|
```
|