vendor: amis 6.13.0 base (fork root)
This commit is contained in:
34
examples/components/Linkage/FormSubmit.jsx
Normal file
34
examples/components/Linkage/FormSubmit.jsx
Normal file
@@ -0,0 +1,34 @@
|
||||
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: []
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user