ant-design/components/input/demo/search-input-loading.md
骗你是小猫咪 5cd01d0470 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
2019-09-12 22:32:29 +08:00

762 B

order title
5
zh-CN en-US
搜索框 loading Search box with loading

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,
);