textarea 字段渲染一个多行文本框。
blog_contents:
type: textarea
label: Contents以下 字段属性 受支持且常用。
| Property | Description |
|---|---|
| title | title for the form field. |
| default | specifies a default string value, optional. |
| placeholder | text to display when the field is empty. |
| comment | places a descriptive comment below the field. |
| size | the field size in height. Supported values: tiny, small, large, huge, giant. Default: large. |
您可以使用 size 属性来指定字段的大小。
blog_contents:
type: textarea
label: Contents
size: large您可以使用 default 属性来设置一个默认值。
quote_content:
type: textarea
label: Details
default: I like turtles使用 placeholder 属性来指定一些占位文本。
point_summary:
type: textarea
label: Point
placeholder: Type some key points are you trying to make