text 字段渲染一个单行文本框。 如果没有指定类型,则这是使用的默认类型。
blog_title:
type: text
label: Blog Title以下 字段属性 常用。
| Property | Description |
|---|---|
| label | a name when displaying the form field to the user. |
| placeholder | text to display in the field when it is empty. |
| default | specifies a default string value, optional. |
| comment | places a descriptive comment below the field. |
你可以使用 default 属性来设置一个默认值。
quote_content:
type: text
label: Details
default: I like turtles使用 placeholder 属性来指定一些占位文本。
point_summary:
type: text
label: Point
placeholder: Type some key points are you trying to make