ant-design/components/input/demo/autosize-textarea.md

8 lines
439 B
Markdown
Raw Normal View History

## zh-CN
2019-10-11 18:12:28 +08:00
`autoSize` 属性适用于 `textarea` 节点,并且只有高度会自动变化。另外 `autoSize` 可以设定为一个对象,指定最小行数和最大行数。
## en-US
2020-06-17 10:58:24 +08:00
`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.