textarea组件

  textarea组件:多行输入框;(文本域)

  textarea组件属性:

    value:类型  字符串  输入框的内容

    placeholder:类型  字符串  输入框为空时的占位符

    placeholder-style:类型  字符串  指定 placeholder 的样式,目前仅支持 color,font-size,font-weight

    placeholder-class:类型  字符串  指定 placeholder 的样式类

    disabled:类型  布尔  是否禁用

    maxlength:类型  数字  最大的输入长度,默认值140,设置为-1时,不限制最大长度

    auto-focus:类型  布尔  自动聚焦,拉起键盘

    focus:类型  布尔  获取焦点

    cursor-spacing:类型  数字  指定光标与键盘的距离

    cursor:类型  数字  指定 focus 时,光标的位置;

    show-confirm-bar:类型  布尔  是否显示键盘上方带有完成那一栏

    selection-start:类型  数字  光标的起始位置,自动聚焦时有效

    selection-end:类型  数字  光标的结束位置,自动聚焦时有效

    adjust-position:类型  布尔  键盘抬起时,是否自动上推页面

  事件:

    bindfocus:类型  输入框聚焦时触发

    bindblur:类型  输入框失去焦点时触发

    bindlinechange:类型  输入框行数变化时,调用

    bindinput:类型  当键盘输入时,触发input事件

    bindconfirm:类型  点击完成时,触发comfirm事件

  

猜你喜欢

转载自www.cnblogs.com/shangjun6/p/10932653.html