mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-05 21:39:53 +08:00
35 lines
672 B
JavaScript
35 lines
672 B
JavaScript
export default {
|
|
type: 'page',
|
|
title: '表单提交后显示结果',
|
|
body: {
|
|
type: 'form',
|
|
api: '/api/mock2/form/saveForm',
|
|
title: '查询用户 ID',
|
|
body: [
|
|
{
|
|
type: 'input-group',
|
|
name: 'input-group',
|
|
body: [
|
|
{
|
|
type: 'input-text',
|
|
name: 'name',
|
|
label: '姓名'
|
|
},
|
|
{
|
|
type: 'submit',
|
|
label: '查询',
|
|
level: 'primary'
|
|
}
|
|
]
|
|
},
|
|
{
|
|
type: 'static',
|
|
name: 'id',
|
|
visibleOn: "typeof data.id !== 'undefined'",
|
|
label: '返回 ID'
|
|
}
|
|
],
|
|
actions: []
|
|
}
|
|
};
|