# textarea

# Schema类静态属性

Schema类静态属性请访问 Schema.js类静态属性值逻辑与事件逻辑关系

{
  widget: 'textarea',
  title: '多行文本',
  preview: '',
  type: 'string',
  validators: ['string', 'email', 'url', 'pattern'],
  logic: {
    value: ['=', '!=', '<>', '><'],
    event: []
  }
}
1
2
3
4
5
6
7
8
9
10
11

# schema.default

默认''

# schema.option定义

schema完整定义请访问schema

{
  "rows": 3  // 文本域默认行数
}
1
2
3

TIP

textarea 规则部分与input一致,规则示例请参考 input规则配置

# 示例展示

  • schema
{
  "key": "k0CyR0gy5",
  "widget": "textarea",
  "hidden": false,
  "option": {
    "rows": 2
  },
  "name": "desc",
  "type": "string",
  "label": "多行文本",
  "description": "",
  "help": "",
  "disabled": false,
  "rules": [
    {
      "required": false,
      "message": "必填",
      "type": "string",
      "trigger": "blur"
    }
  ],
  "placeholder": "请输入..."
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
更新: 3/22/2021, 6:03:54 PM