Update Form.jsx

This commit is contained in:
ls 2023-05-31 19:32:58 +08:00 committed by GitHub
parent 2d0aba9545
commit 2727ab7eac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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'
}
]
}
]
};