Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Input.Search): add loading prop (#18771)
* feat(Input.Search): add loading prop * fix: review change * optimize input search loading prop doc * fix: ci fail and onSearch disabled when loading
- Loading branch information
1 parent
f659d23
commit 5cd01d0
Showing
10 changed files
with
770 additions
and
452 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
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 /> | ||
<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, | ||
); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.