2019-04-30 11:11:25 +08:00
|
|
|
export default {
|
2019-11-07 10:41:14 +08:00
|
|
|
type: 'page',
|
|
|
|
title: '动态加载页面',
|
|
|
|
body: [
|
|
|
|
'<span class="text-danger">可以通过 <code>service</code>的<code>schemaApi</code> 动态控制内容。</span>',
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2019-11-07 10:41:14 +08:00
|
|
|
{
|
|
|
|
type: 'form',
|
|
|
|
title: '条件输入',
|
|
|
|
panelClassName: 'panel-info m-t',
|
|
|
|
target: 'service1',
|
|
|
|
mode: 'inline',
|
|
|
|
submitOnInit: true,
|
2021-06-07 10:09:55 +08:00
|
|
|
body: [
|
2019-04-30 11:11:25 +08:00
|
|
|
{
|
2019-11-07 10:41:14 +08:00
|
|
|
label: '加载页面类型',
|
|
|
|
required: true,
|
2021-06-07 10:09:55 +08:00
|
|
|
type: 'button-group-select',
|
2019-11-07 10:41:14 +08:00
|
|
|
submitOnChange: true,
|
|
|
|
value: 'crud',
|
|
|
|
name: 'type',
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
label: 'Crud',
|
|
|
|
value: 'crud'
|
|
|
|
},
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2019-11-07 10:41:14 +08:00
|
|
|
{
|
|
|
|
label: 'Form',
|
|
|
|
value: 'form'
|
|
|
|
},
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2019-11-07 10:41:14 +08:00
|
|
|
{
|
|
|
|
label: 'Tabs',
|
|
|
|
value: 'tabs'
|
|
|
|
}
|
|
|
|
]
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
2019-11-07 10:41:14 +08:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'service1',
|
|
|
|
type: 'service',
|
|
|
|
className: 'm-t',
|
|
|
|
initFetchSchema: false,
|
|
|
|
schemaApi: '/api/mock2/service/schema?type=$type'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
};
|