文件域

属性说明

参数名 含义 是否必须 说明
disabled 是否禁用控件 N
g-case 大小写转换处理 N 值:upper:小写转大写,lower:大写转小写
g-dbc 全角转半角处理 N
g-height 设置文本框高度 N 值:单位有%:百分比;in:英寸;cm:厘米;mm:毫米;pt:磅数;pc:12点活字;ex:字母高度的一半;em:字体高度;px:像素(默认)
g-trim 去空格 N 值:ltrim:去除左边空格;rtrim:去除右边空格;trim(默认值):去除左右空格。
g-width 设置文本框宽度 N 值:单位有%:百分比;in:英寸;cm:厘米;mm:毫米;pt:磅数;pc:12点活字;ex:字母高度的一半;em:字体高度;px:像素(默认)
ng-model 双向绑定 N
ng-show 显示隐藏 N 值:true:显示,false:隐藏
placeholder 输入提示 N

使用方式

 <textarea
       ng-model="text.value"
       g-width="500"
       g-height="100"
       g-dbc
       g-case="upper"
       g-trim="trim"
       ng-show="true"
       placeholder="输入提示"
       >
  </textarea>