amis/examples/components/Page/Form.jsx
RickCole 0f6d72a8ab
feat: 单个表单项支持后端校验 (#2127)
* fix: 1.2.x 修复 File disabled 失效问题

* feat: 单个表单项支持后端校验

* update snapshot

* fix snapshot

* fix

* update error

* 补一下用例

* fix test
2021-06-24 17:31:44 +08:00

26 lines
443 B
JavaScript

export default {
type: 'page',
title: '表单页面',
body: [
{
type: 'form',
mode: 'horizontal',
api: '/api/mock2/form/saveForm',
body: [
{
label: 'Name',
type: 'input-text',
name: 'name'
},
{
label: 'Email',
type: 'input-email',
placeholder: '请输入邮箱地址',
name: 'email'
}
]
}
]
};