mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 03:58:07 +08:00
Update Form.jsx
This commit is contained in:
parent
2d0aba9545
commit
2727ab7eac
@ -1,18 +1,24 @@
|
||||
export default {
|
||||
type: 'page',
|
||||
body: {
|
||||
type: 'form',
|
||||
body: [
|
||||
{
|
||||
label: '多选',
|
||||
type: 'select',
|
||||
name: 'select2',
|
||||
searchable: true,
|
||||
checkAll: true,
|
||||
multiple: true,
|
||||
clearable: true,
|
||||
source: '/api/mock2/form/getOptions'
|
||||
}
|
||||
]
|
||||
}
|
||||
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'
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user