diff --git a/components/input/demo/autosize-textarea.md b/components/input/demo/autosize-textarea.md index cc064cc548..5810f73c38 100644 --- a/components/input/demo/autosize-textarea.md +++ b/components/input/demo/autosize-textarea.md @@ -9,10 +9,14 @@ title: `autoSize` 属性适用于 `textarea` 节点,并且只有高度会自动变化。另外 `autoSize` 可以设定为一个对象,指定最小行数和最大行数。 +> `3.24.0` 后 `autosize` 被废弃,请使用 `autoSize`。 + ## 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` is deprecated after `3.24.0`, please use `autoSize`. + ```jsx import { Input } from 'antd'; diff --git a/components/input/index.en-US.md b/components/input/index.en-US.md index 6380230c37..e7e55b9833 100644 --- a/components/input/index.en-US.md +++ b/components/input/index.en-US.md @@ -41,7 +41,7 @@ The rest of the props of Input are exactly the same as the original [input](http | Property | Description | Type | Default | Version | | --- | --- | --- | --- | --- | -| autoSize | Height autosize feature, can be set to `true|false` or an object `{ minRows: 2, maxRows: 6 }` | boolean\|object | false | | +| autoSize | Height autosize feature, can be set to `true|false` or an object `{ minRows: 2, maxRows: 6 }`. `autosize` is deprecated after `3.24.0`, please use `autoSize`. | boolean\|object | false | 3.24.0 | | defaultValue | The initial input content | string | | | | value | The input content value | string | | | | onPressEnter | The callback function that is triggered when Enter key is pressed. | function(e) | | | diff --git a/components/input/index.zh-CN.md b/components/input/index.zh-CN.md index 7840915b9b..ad7aaa94e3 100644 --- a/components/input/index.zh-CN.md +++ b/components/input/index.zh-CN.md @@ -42,7 +42,7 @@ Input 的其他属性和 React 自带的 [input](https://facebook.github.io/reac | 参数 | 说明 | 类型 | 默认值 | 版本 | | --- | --- | --- | --- | --- | -| autoSize | 自适应内容高度,可设置为 `true|false` 或对象:`{ minRows: 2, maxRows: 6 }` | boolean\|object | false | | +| autoSize | 自适应内容高度,可设置为 `true|false` 或对象:`{ minRows: 2, maxRows: 6 }`。`3.24.0` 后 `autosize` 被废弃,请使用 `autoSize`。 | boolean\|object | false | 3.24.0 | | defaultValue | 输入框默认内容 | string | | | | value | 输入框内容 | string | | | | onPressEnter | 按下回车的回调 | function(e) | | |