mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 21:19:37 +08:00
refactor: refine some typos (#25036)
This commit is contained in:
parent
8dc16037d0
commit
39fe6fdcb6
@ -109,7 +109,7 @@ describe('Input.Password', () => {
|
||||
});
|
||||
|
||||
// https://github.com/ant-design/ant-design/pull/20544#issuecomment-569861679
|
||||
it('should not contain value attribute in input element with defautValue', async () => {
|
||||
it('should not contain value attribute in input element with defaultValue', async () => {
|
||||
const wrapper = mount(<Input.Password defaultValue="value" />);
|
||||
await sleep();
|
||||
expect(wrapper.find('input').at('0').getDOMNode().getAttribute('value')).toBeFalsy();
|
||||
|
@ -2299,7 +2299,7 @@ Array [
|
||||
>
|
||||
<input
|
||||
class="ant-input"
|
||||
placeholder="input search loading deault"
|
||||
placeholder="input search loading default"
|
||||
type="text"
|
||||
value=""
|
||||
/>
|
||||
|
@ -11,7 +11,7 @@ title:
|
||||
|
||||
## en-US
|
||||
|
||||
`autoSize` prop for a `textarea` type of `Input` makes the height to automatically adjust based on the content. An options object can be provided to `autoSize` to specify the minimum and maximum number of lines the textarea will automatically adjust.
|
||||
`autoSize` prop for a `textarea` type of `Input` makes the height to automatically adjust based on the content. An option object can be provided to `autoSize` to specify the minimum and maximum number of lines the textarea will automatically adjust.
|
||||
|
||||
```jsx
|
||||
import { Input } from 'antd';
|
||||
|
@ -13,7 +13,7 @@ title:
|
||||
|
||||
## en-US
|
||||
|
||||
Input.Group example
|
||||
Input.Group example.
|
||||
|
||||
Note: You don't need `Col` to control the width in the `compact` mode.
|
||||
|
||||
|
@ -11,7 +11,7 @@ title:
|
||||
|
||||
## en-US
|
||||
|
||||
Add prefix or suffix icons inside input.
|
||||
Add a prefix or suffix icons inside input.
|
||||
|
||||
```jsx
|
||||
import { Input, Tooltip } from 'antd';
|
||||
|
@ -20,7 +20,7 @@ const { Search } = Input;
|
||||
|
||||
ReactDOM.render(
|
||||
<>
|
||||
<Search placeholder="input search loading deault" loading />
|
||||
<Search placeholder="input search loading default" loading />
|
||||
<br />
|
||||
<br />
|
||||
<Search placeholder="input search loading with enterButton" loading enterButton />
|
||||
|
Loading…
Reference in New Issue
Block a user