XTextarea
Install

Install


API

Props

nametypedefaultdescriptionrequired version
titlestringlabel textv2.1.1-rc.8
inline-descstringdescription text below titlev2.1.1-rc.8
show-counterbooleantrueif show the text length counter--
maxnumber0maxlength limit--
valuestringtextarea's value, use v-model for binding--
namestringtextarea's name--
placeholderstringplaceholder--
rowsnumber3textarea's rows attribute--
colsnumber30textarea's cols attribute--
heightnumber0height--
readonlybooleanfalsetextarea's readonly attribute--
disabledbooleanfalsetextarea's disabled attribute--
autosizebooleanfalsewhether set auto height for textareav2.2.1-rc.6

Events

nameparamsdescriptionrequired version
@on-change(value)triggers when value changes--
@on-focus--focus eventv2.1.1-rc.11
@on-blur--blur eventv2.1.1-rc.11

Slots

namedescriptionrequired version
labelv2.1.1-rc.8
restricted-labelv2.1.1-rc.8

Functions

nameparamsdescriptionrequired version
updateAutosizereset autosize, if value is not empty initially, you should call this function to update sizev2.5.1


Contributors

Contributors

Total commits quantity: 27,Total contributors quantity: 6

airyland万刚zss007Plortinusgreedyinglinhaobin

Changelog

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