API
Props
| name | type | default | description | required version |
| title | string | label text | v2.1.1-rc.8 | |
| inline-desc | string | description text below title | v2.1.1-rc.8 | |
| show-counter | boolean | true | if show the text length counter | -- |
| max | number | 0 | maxlength limit | -- |
| value | string | textarea's value, use v-model for binding | -- | |
| name | string | textarea's name | -- | |
| placeholder | string | placeholder | -- | |
| rows | number | 3 | textarea's rows attribute | -- |
| cols | number | 30 | textarea's cols attribute | -- |
| height | number | 0 | height | -- |
| readonly | boolean | false | textarea's readonly attribute | -- |
| disabled | boolean | false | textarea's disabled attribute | -- |
| autosize | boolean | false | whether set auto height for textarea | v2.2.1-rc.6 |
Events
| name | params | description | required version |
| @on-change | (value) | triggers when value changes | -- |
| @on-focus | -- | focus event | v2.1.1-rc.11 |
| @on-blur | -- | blur event | v2.1.1-rc.11 |
Slots
| name | description | required version |
| label | v2.1.1-rc.8 | |
| restricted-label | v2.1.1-rc.8 |
Functions
| name | params | description | required version |
| updateAutosize | reset autosize, if value is not empty initially, you should call this function to update size | v2.5.1 |
Contributors
Contributors
Total commits quantity: 27,Total contributors quantity: 6
airyland万刚zss007PlortinusgreedyinglinhaobinChangelog
Releases
- v2.8.0 [feature] add prop:disabled #2522
- v2.5.1 [feature] Add method:updateAutosize
- v2.2.1-rc.6 [enhance] set label align to flex-start
- v2.2.1-rc.6 [feature] Support prop:autosize
- v2.1.1-rc.12 [enhance] trigger focus event of x-textarea when click counter
- v2.1.1-rc.11 [feature] Add on-focus on-blur event #1082 @zeusLeeJh
- v2.1.1-rc.8 [feature] support title prop