跳到主要内容

💥 textarea

多行文本控件

场景用例

<!-- HTML 代码 -->

属性

属性(Attribute)说明(Description)值(Value)
name--
autocomplete--
disabled--
readonly--
required--
maxlength--
minlength--
rowsNumber of lines to showValid non-negative integer greater than zero
colsMaximum number of characters per lineValid non-negative integer greater than zero
placeholder--
dirname--
form--
wrapHow the value of the form control is to be wrapped for form submission"soft"; "hard"

事件

事件属性(Attribute)说明(Description)事件(Event)目标对象(target)接口(Interface)
onchange-changeForm controlsEvent
onselect-selectForm controlsEvent
oninvalid-invalidForm controlsEvent
onbeforeinput-beforeinputinputInputEvent
oninput-inputinputInputEvent
onblur-blurinputFocusEvent
onfocus-focusinputFocusEvent
--focusininputFocusEvent
--focusoutinputFocusEvent

参考