更新 snapshot

This commit is contained in:
2betop 2020-05-11 16:55:54 +08:00
parent 2a988428ff
commit 1bd1b43ef5
1 changed files with 20 additions and 51 deletions

View File

@ -1,54 +1,23 @@
export default { export default {
definitions: {
aa: {
type: 'text',
name: 'jack',
value: 'ref value',
remark: '通过<code>\\$ref</code>引入的组件'
},
bb: {
type: 'combo',
multiple: true,
multiLine: true,
remark: '<code>combo</code>中的子项引入自身,实现嵌套的效果',
controls: [
{
label: 'combo 1',
type: 'text',
name: 'key'
},
{
label: 'combo 2',
name: 'value',
$ref: 'aa'
},
{
name: 'children',
label: 'children',
$ref: 'bb'
}
]
}
},
type: 'page', type: 'page',
title: '引用', title: '表单页面',
body: [ body: {
{ type: 'form',
type: 'form', mode: 'horizontal',
api: 'api/xxx', title: '',
actions: [], api: '/api/mock2/form/saveForm',
controls: [ controls: [
{ {
label: 'text2', label: 'Name',
$ref: 'aa', type: 'text',
name: 'ref1' name: 'name'
}, },
{
label: 'combo', {
$ref: 'bb', label: 'Email',
name: 'ref2' type: 'email',
} name: 'email'
] }
} ]
] }
}; };