Textarea
Multi-line text input, with auto height and a character count.
Examples
0/100
API
Props
| 属性 | 说明 | 类型 | 默认值 |
|---|---|---|---|
value | Current value | string | - |
placeholder | Placeholder text | string | - |
maxlength | Max length; -1 for unlimited | number | -1 |
disabled | Whether disabled | boolean | false |
auto-height | Auto-grow height | boolean | false |
focus | Auto-focus | boolean | false |
Events
| 属性 | 说明 | 类型 | 默认值 |
|---|---|---|---|
input | Fired on input | { value, cursor } | - |
focus | Fired on focus | { value } | - |
blur | Fired on blur | { value } | - |
confirm | Fired on Enter | { value } | - |
linechange | Fired when line count changes (with auto-height) | { height, lineCount } | - |