2019-04-30 11:11:25 +08:00
|
|
|
|
export default {
|
2020-12-29 14:51:47 +08:00
|
|
|
|
title: '表格编辑',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
body: {
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'form',
|
|
|
|
|
mode: 'horizontal',
|
|
|
|
|
api: '/api/mock2/form/saveForm?waitSeconds=2',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
actions: [
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'submit',
|
|
|
|
|
label: '提交',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
primary: true
|
|
|
|
|
}
|
|
|
|
|
],
|
2021-06-07 10:09:55 +08:00
|
|
|
|
body: [
|
2020-12-29 14:51:47 +08:00
|
|
|
|
'<p>常规模式</p>',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'picker',
|
|
|
|
|
name: 'type',
|
|
|
|
|
label: '单选',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
value: 1,
|
|
|
|
|
inline: true,
|
|
|
|
|
options: [
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
label: '选项1',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
value: 1
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
label: '选项2',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
value: 2
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
label: '选项3',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
value: 3
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
label: '选项4',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
value: 4
|
|
|
|
|
}
|
2022-09-29 12:43:19 +08:00
|
|
|
|
],
|
2022-10-12 15:09:03 +08:00
|
|
|
|
onEvent: {
|
|
|
|
|
itemclick: {
|
|
|
|
|
actions: [
|
2022-09-29 12:43:19 +08:00
|
|
|
|
{
|
2022-10-12 15:09:03 +08:00
|
|
|
|
actionType: 'alert',
|
|
|
|
|
args: {
|
|
|
|
|
msg: '${item.label}~${item.value}</a>'
|
2022-09-29 12:43:19 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'picker',
|
|
|
|
|
name: 'type2',
|
|
|
|
|
label: '多选',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
multiple: true,
|
|
|
|
|
options: [
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
label: '选项1',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
value: 1
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
label: '选项2',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
value: 2
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
label: '选项3',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
value: 3
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
label: '选项4',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
value: 4
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
|
2020-12-29 14:51:47 +08:00
|
|
|
|
'<p>Table 渲染类型</p>',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'picker',
|
|
|
|
|
name: 'type3',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
joinValues: true,
|
2020-12-29 14:51:47 +08:00
|
|
|
|
valueField: 'id',
|
|
|
|
|
labelField: 'engine',
|
|
|
|
|
label: '单选',
|
|
|
|
|
source: '/api/sample',
|
|
|
|
|
size: 'lg',
|
|
|
|
|
value: '4',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
pickerSchema: {
|
2020-12-29 14:51:47 +08:00
|
|
|
|
mode: 'table',
|
|
|
|
|
name: 'thelist',
|
|
|
|
|
quickSaveApi: '/api/sample/bulkUpdate',
|
|
|
|
|
quickSaveItemApi: '/api/sample/$id',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
draggable: true,
|
|
|
|
|
headerToolbar: {
|
|
|
|
|
wrapWithPanel: false,
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'form',
|
|
|
|
|
className: 'text-right',
|
|
|
|
|
target: 'thelist',
|
|
|
|
|
mode: 'inline',
|
2021-06-07 10:09:55 +08:00
|
|
|
|
body: [
|
2019-11-07 10:41:14 +08:00
|
|
|
|
{
|
2021-06-07 10:09:55 +08:00
|
|
|
|
type: 'input-text',
|
2020-12-29 14:51:47 +08:00
|
|
|
|
name: 'keywords',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
addOn: {
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'submit',
|
|
|
|
|
label: '搜索',
|
|
|
|
|
level: 'primary',
|
|
|
|
|
icon: 'fa fa-search pull-left'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
columns: [
|
2019-04-30 11:11:25 +08:00
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
name: 'engine',
|
|
|
|
|
label: 'Rendering engine',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
sortable: true,
|
|
|
|
|
searchable: true,
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'text',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
toggled: true
|
2019-04-30 11:11:25 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
name: 'browser',
|
|
|
|
|
label: 'Browser',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
sortable: true,
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'text',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
toggled: true
|
2019-04-30 11:11:25 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
name: 'platform',
|
|
|
|
|
label: 'Platform(s)',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
sortable: true,
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'text',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
toggled: true
|
2019-04-30 11:11:25 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
name: 'version',
|
|
|
|
|
label: 'Engine version',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
quickEdit: true,
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'text',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
toggled: true
|
2019-04-30 11:11:25 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
name: 'grade',
|
|
|
|
|
label: 'CSS grade',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
quickEdit: {
|
2020-12-29 14:51:47 +08:00
|
|
|
|
mode: 'inline',
|
|
|
|
|
type: 'select',
|
|
|
|
|
options: ['A', 'B', 'C', 'D', 'X'],
|
2019-11-07 10:41:14 +08:00
|
|
|
|
saveImmediately: true
|
|
|
|
|
},
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'text',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
toggled: true
|
2019-04-30 11:11:25 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'operation',
|
|
|
|
|
label: '操作',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
width: 100,
|
|
|
|
|
buttons: [
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'button',
|
|
|
|
|
icon: 'fa fa-eye',
|
|
|
|
|
actionType: 'dialog',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
dialog: {
|
2020-12-29 14:51:47 +08:00
|
|
|
|
title: '查看',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
body: {
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'form',
|
2021-06-07 10:09:55 +08:00
|
|
|
|
body: [
|
2019-11-07 10:41:14 +08:00
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'static',
|
|
|
|
|
name: 'engine',
|
|
|
|
|
label: 'Engine'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
2019-04-30 11:11:25 +08:00
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-04-30 11:11:25 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'static',
|
|
|
|
|
name: 'browser',
|
|
|
|
|
label: 'Browser'
|
2019-04-30 11:11:25 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-04-30 11:11:25 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'static',
|
|
|
|
|
name: 'platform',
|
|
|
|
|
label: 'Platform(s)'
|
2019-04-30 11:11:25 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'static',
|
|
|
|
|
name: 'version',
|
|
|
|
|
label: 'Engine version'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'static',
|
|
|
|
|
name: 'grade',
|
|
|
|
|
label: 'CSS grade'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'html',
|
2022-10-12 15:09:03 +08:00
|
|
|
|
html: '<p>添加其他 <span>Html 片段</span> 需要支持变量替换(todo).</p>'
|
2019-04-30 11:11:25 +08:00
|
|
|
|
}
|
2019-11-07 10:41:14 +08:00
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'button',
|
|
|
|
|
icon: 'fa fa-pencil',
|
|
|
|
|
actionType: 'dialog',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
dialog: {
|
2020-12-29 14:51:47 +08:00
|
|
|
|
position: 'left',
|
|
|
|
|
size: 'lg',
|
|
|
|
|
title: '编辑',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
body: {
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'form',
|
|
|
|
|
name: 'sample-edit-form',
|
|
|
|
|
api: '/api/sample/$id',
|
2021-06-07 10:09:55 +08:00
|
|
|
|
body: [
|
2019-04-30 11:11:25 +08:00
|
|
|
|
{
|
2021-06-07 10:09:55 +08:00
|
|
|
|
type: 'input-text',
|
2020-12-29 14:51:47 +08:00
|
|
|
|
name: 'engine',
|
|
|
|
|
label: 'Engine',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
required: true
|
2019-04-30 11:11:25 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-04-30 11:11:25 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2021-06-07 10:09:55 +08:00
|
|
|
|
type: 'input-text',
|
2020-12-29 14:51:47 +08:00
|
|
|
|
name: 'browser',
|
|
|
|
|
label: 'Browser',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
required: true
|
2019-04-30 11:11:25 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-04-30 11:11:25 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2021-06-07 10:09:55 +08:00
|
|
|
|
type: 'input-text',
|
2020-12-29 14:51:47 +08:00
|
|
|
|
name: 'platform',
|
|
|
|
|
label: 'Platform(s)',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
required: true
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2021-06-07 10:09:55 +08:00
|
|
|
|
type: 'input-text',
|
2020-12-29 14:51:47 +08:00
|
|
|
|
name: 'version',
|
|
|
|
|
label: 'Engine version'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'select',
|
|
|
|
|
name: 'grade',
|
|
|
|
|
label: 'CSS grade',
|
|
|
|
|
options: ['A', 'B', 'C', 'D', 'X']
|
2019-04-30 11:11:25 +08:00
|
|
|
|
}
|
2019-11-07 10:41:14 +08:00
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'button',
|
|
|
|
|
icon: 'fa fa-times text-danger',
|
|
|
|
|
actionType: 'ajax',
|
|
|
|
|
confirmText: '您确认要删除?',
|
|
|
|
|
api: 'delete:/api/sample/$id'
|
2019-04-30 11:11:25 +08:00
|
|
|
|
}
|
2019-11-07 10:41:14 +08:00
|
|
|
|
],
|
|
|
|
|
toggled: true
|
|
|
|
|
}
|
|
|
|
|
]
|
2022-09-29 12:43:19 +08:00
|
|
|
|
},
|
2022-10-12 15:09:03 +08:00
|
|
|
|
onEvent: {
|
|
|
|
|
itemclick: {
|
|
|
|
|
actions: [
|
2022-09-29 12:43:19 +08:00
|
|
|
|
{
|
2022-10-12 15:09:03 +08:00
|
|
|
|
actionType: 'alert',
|
|
|
|
|
args: {
|
|
|
|
|
msg: '${item|json}</a>'
|
2022-09-29 12:43:19 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
2019-11-07 10:41:14 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2019-04-30 11:11:25 +08:00
|
|
|
|
|
2019-11-07 10:41:14 +08:00
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'picker',
|
|
|
|
|
name: 'type4',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
joinValues: true,
|
2020-12-29 14:51:47 +08:00
|
|
|
|
valueField: 'id',
|
|
|
|
|
labelField: 'engine',
|
|
|
|
|
label: '多选',
|
|
|
|
|
source: '/api/sample',
|
|
|
|
|
size: 'lg',
|
|
|
|
|
value: '4,5',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
multiple: true,
|
|
|
|
|
pickerSchema: {
|
2020-12-29 14:51:47 +08:00
|
|
|
|
mode: 'table',
|
|
|
|
|
name: 'thelist',
|
|
|
|
|
quickSaveApi: '/api/sample/bulkUpdate',
|
|
|
|
|
quickSaveItemApi: '/api/sample/$id',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
draggable: true,
|
|
|
|
|
headerToolbar: {
|
|
|
|
|
wrapWithPanel: false,
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'form',
|
|
|
|
|
className: 'text-right',
|
|
|
|
|
target: 'thelist',
|
|
|
|
|
mode: 'inline',
|
2021-06-07 10:09:55 +08:00
|
|
|
|
body: [
|
2019-11-07 10:41:14 +08:00
|
|
|
|
{
|
2021-06-07 10:09:55 +08:00
|
|
|
|
type: 'input-text',
|
2020-12-29 14:51:47 +08:00
|
|
|
|
name: 'keywords',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
addOn: {
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'submit',
|
|
|
|
|
label: '搜索',
|
|
|
|
|
level: 'primary',
|
|
|
|
|
icon: 'fa fa-search pull-left'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
columns: [
|
2019-04-30 11:11:25 +08:00
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
name: 'engine',
|
|
|
|
|
label: 'Rendering engine',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
sortable: true,
|
|
|
|
|
searchable: true,
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'text',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
toggled: true
|
2019-04-30 11:11:25 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
name: 'browser',
|
|
|
|
|
label: 'Browser',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
sortable: true,
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'text',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
toggled: true
|
2019-04-30 11:11:25 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
name: 'platform',
|
|
|
|
|
label: 'Platform(s)',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
sortable: true,
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'text',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
toggled: true
|
2019-04-30 11:11:25 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
name: 'version',
|
|
|
|
|
label: 'Engine version',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
quickEdit: true,
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'text',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
toggled: true
|
2019-04-30 11:11:25 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
name: 'grade',
|
|
|
|
|
label: 'CSS grade',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
quickEdit: {
|
2020-12-29 14:51:47 +08:00
|
|
|
|
mode: 'inline',
|
|
|
|
|
type: 'select',
|
|
|
|
|
options: ['A', 'B', 'C', 'D', 'X'],
|
2019-11-07 10:41:14 +08:00
|
|
|
|
saveImmediately: true
|
|
|
|
|
},
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'text',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
toggled: true
|
2019-04-30 11:11:25 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'operation',
|
|
|
|
|
label: '操作',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
width: 100,
|
|
|
|
|
buttons: [
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'button',
|
|
|
|
|
icon: 'fa fa-eye',
|
|
|
|
|
actionType: 'dialog',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
dialog: {
|
2020-12-29 14:51:47 +08:00
|
|
|
|
title: '查看',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
body: {
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'form',
|
2021-06-07 10:09:55 +08:00
|
|
|
|
body: [
|
2019-11-07 10:41:14 +08:00
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'static',
|
|
|
|
|
name: 'engine',
|
|
|
|
|
label: 'Engine'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'static',
|
|
|
|
|
name: 'browser',
|
|
|
|
|
label: 'Browser'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'static',
|
|
|
|
|
name: 'platform',
|
|
|
|
|
label: 'Platform(s)'
|
2019-04-30 11:11:25 +08:00
|
|
|
|
},
|
2019-11-07 10:41:14 +08:00
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'static',
|
|
|
|
|
name: 'version',
|
|
|
|
|
label: 'Engine version'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'static',
|
|
|
|
|
name: 'grade',
|
|
|
|
|
label: 'CSS grade'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'html',
|
2022-10-12 15:09:03 +08:00
|
|
|
|
html: '<p>添加其他 <span>Html 片段</span> 需要支持变量替换(todo).</p>'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'button',
|
|
|
|
|
icon: 'fa fa-pencil',
|
|
|
|
|
actionType: 'dialog',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
dialog: {
|
2020-12-29 14:51:47 +08:00
|
|
|
|
position: 'left',
|
|
|
|
|
size: 'lg',
|
|
|
|
|
title: '编辑',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
body: {
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'form',
|
|
|
|
|
name: 'sample-edit-form',
|
|
|
|
|
api: '/api/sample/$id',
|
2021-06-07 10:09:55 +08:00
|
|
|
|
body: [
|
2019-11-07 10:41:14 +08:00
|
|
|
|
{
|
2021-06-07 10:09:55 +08:00
|
|
|
|
type: 'input-text',
|
2020-12-29 14:51:47 +08:00
|
|
|
|
name: 'engine',
|
|
|
|
|
label: 'Engine',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
required: true
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2021-06-07 10:09:55 +08:00
|
|
|
|
type: 'input-text',
|
2020-12-29 14:51:47 +08:00
|
|
|
|
name: 'browser',
|
|
|
|
|
label: 'Browser',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
required: true
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2021-06-07 10:09:55 +08:00
|
|
|
|
type: 'input-text',
|
2020-12-29 14:51:47 +08:00
|
|
|
|
name: 'platform',
|
|
|
|
|
label: 'Platform(s)',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
required: true
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2021-06-07 10:09:55 +08:00
|
|
|
|
type: 'input-text',
|
2020-12-29 14:51:47 +08:00
|
|
|
|
name: 'version',
|
|
|
|
|
label: 'Engine version'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'select',
|
|
|
|
|
name: 'grade',
|
|
|
|
|
label: 'CSS grade',
|
|
|
|
|
options: ['A', 'B', 'C', 'D', 'X']
|
2019-11-07 10:41:14 +08:00
|
|
|
|
}
|
|
|
|
|
]
|
2019-04-30 11:11:25 +08:00
|
|
|
|
}
|
2019-11-07 10:41:14 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'button',
|
|
|
|
|
icon: 'fa fa-times text-danger',
|
|
|
|
|
actionType: 'ajax',
|
|
|
|
|
confirmText: '您确认要删除?',
|
|
|
|
|
api: 'delete:/api/sample/$id'
|
2019-04-30 11:11:25 +08:00
|
|
|
|
}
|
2019-11-07 10:41:14 +08:00
|
|
|
|
],
|
|
|
|
|
toggled: true
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
|
2020-12-29 14:51:47 +08:00
|
|
|
|
'<p>List 渲染类型</p>',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'picker',
|
|
|
|
|
name: 'type5',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
joinValues: true,
|
2020-12-29 14:51:47 +08:00
|
|
|
|
valueField: 'id',
|
|
|
|
|
labelField: 'engine',
|
|
|
|
|
label: '单选',
|
|
|
|
|
source: '/api/sample',
|
|
|
|
|
size: 'lg',
|
|
|
|
|
value: '4',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
pickerSchema: {
|
2020-12-29 14:51:47 +08:00
|
|
|
|
mode: 'list',
|
|
|
|
|
name: 'thelist',
|
|
|
|
|
quickSaveApi: '/api/sample/bulkUpdate',
|
|
|
|
|
quickSaveItemApi: '/api/sample/$id',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
draggable: true,
|
|
|
|
|
headerToolbar: {
|
|
|
|
|
wrapWithPanel: false,
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'form',
|
|
|
|
|
className: 'text-right',
|
|
|
|
|
target: 'thelist',
|
|
|
|
|
mode: 'inline',
|
2021-06-07 10:09:55 +08:00
|
|
|
|
body: [
|
2019-11-07 10:41:14 +08:00
|
|
|
|
{
|
2021-06-07 10:09:55 +08:00
|
|
|
|
type: 'input-text',
|
2020-12-29 14:51:47 +08:00
|
|
|
|
name: 'keywords',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
addOn: {
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'submit',
|
|
|
|
|
label: '搜索',
|
|
|
|
|
level: 'primary',
|
|
|
|
|
icon: 'fa fa-search pull-left'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
listItem: {
|
|
|
|
|
actions: [
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'button',
|
|
|
|
|
icon: 'fa fa-eye',
|
|
|
|
|
actionType: 'dialog',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
dialog: {
|
2020-12-29 14:51:47 +08:00
|
|
|
|
title: '查看',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
body: {
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'form',
|
2021-06-07 10:09:55 +08:00
|
|
|
|
body: [
|
2019-11-07 10:41:14 +08:00
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'static',
|
|
|
|
|
name: 'engine',
|
|
|
|
|
label: 'Engine'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'static',
|
|
|
|
|
name: 'browser',
|
|
|
|
|
label: 'Browser'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'static',
|
|
|
|
|
name: 'platform',
|
|
|
|
|
label: 'Platform(s)'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'static',
|
|
|
|
|
name: 'version',
|
|
|
|
|
label: 'Engine version'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'static',
|
|
|
|
|
name: 'grade',
|
|
|
|
|
label: 'CSS grade'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'html',
|
2022-10-12 15:09:03 +08:00
|
|
|
|
html: '<p>添加其他 <span>Html 片段</span> 需要支持变量替换(todo).</p>'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'button',
|
|
|
|
|
icon: 'fa fa-pencil',
|
|
|
|
|
actionType: 'dialog',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
dialog: {
|
2020-12-29 14:51:47 +08:00
|
|
|
|
title: '编辑',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
body: {
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'form',
|
|
|
|
|
name: 'sample-edit-form',
|
|
|
|
|
api: '/api/sample/$id',
|
2021-06-07 10:09:55 +08:00
|
|
|
|
body: [
|
2019-11-07 10:41:14 +08:00
|
|
|
|
{
|
2021-06-07 10:09:55 +08:00
|
|
|
|
type: 'input-text',
|
2020-12-29 14:51:47 +08:00
|
|
|
|
name: 'engine',
|
|
|
|
|
label: 'Engine',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
required: true
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2021-06-07 10:09:55 +08:00
|
|
|
|
type: 'input-text',
|
2020-12-29 14:51:47 +08:00
|
|
|
|
name: 'browser',
|
|
|
|
|
label: 'Browser',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
required: true
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2021-06-07 10:09:55 +08:00
|
|
|
|
type: 'input-text',
|
2020-12-29 14:51:47 +08:00
|
|
|
|
name: 'platform',
|
|
|
|
|
label: 'Platform(s)',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
required: true
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2021-06-07 10:09:55 +08:00
|
|
|
|
type: 'input-text',
|
2020-12-29 14:51:47 +08:00
|
|
|
|
name: 'version',
|
|
|
|
|
label: 'Engine version'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2021-06-07 10:09:55 +08:00
|
|
|
|
type: 'input-text',
|
2020-12-29 14:51:47 +08:00
|
|
|
|
name: 'grade',
|
|
|
|
|
label: 'CSS grade'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'button',
|
|
|
|
|
icon: 'fa fa-times text-danger',
|
|
|
|
|
actionType: 'ajax',
|
|
|
|
|
confirmText: '您确认要删除?',
|
|
|
|
|
api: 'delete:/api/sample/$id'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
body: [
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
name: 'engine',
|
|
|
|
|
label: 'Rendering engine',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
sortable: true,
|
|
|
|
|
quickEdit: true,
|
2020-12-29 14:51:47 +08:00
|
|
|
|
labelClassName: 'w-sm'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
2021-06-07 10:09:55 +08:00
|
|
|
|
{
|
|
|
|
|
type: 'hbox',
|
|
|
|
|
columns: [
|
|
|
|
|
{
|
|
|
|
|
name: 'browser',
|
|
|
|
|
label: 'Browser',
|
|
|
|
|
labelClassName: 'w-sm'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'platform',
|
|
|
|
|
label: 'Platform(s)',
|
|
|
|
|
labelClassName: 'w-sm'
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
2019-11-07 10:41:14 +08:00
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
name: 'version',
|
|
|
|
|
label: 'Engine version',
|
|
|
|
|
labelClassName: 'w-sm'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'picker',
|
|
|
|
|
name: 'type6',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
joinValues: true,
|
2020-12-29 14:51:47 +08:00
|
|
|
|
valueField: 'id',
|
|
|
|
|
labelField: 'engine',
|
|
|
|
|
label: '多选',
|
|
|
|
|
source: '/api/sample',
|
|
|
|
|
size: 'lg',
|
|
|
|
|
value: '4,5',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
multiple: true,
|
|
|
|
|
pickerSchema: {
|
2020-12-29 14:51:47 +08:00
|
|
|
|
mode: 'list',
|
|
|
|
|
name: 'thelist',
|
|
|
|
|
quickSaveApi: '/api/sample/bulkUpdate',
|
|
|
|
|
quickSaveItemApi: '/api/sample/$id',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
draggable: true,
|
|
|
|
|
headerToolbar: {
|
|
|
|
|
wrapWithPanel: false,
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'form',
|
|
|
|
|
className: 'text-right',
|
|
|
|
|
target: 'thelist',
|
|
|
|
|
mode: 'inline',
|
2021-06-07 10:09:55 +08:00
|
|
|
|
body: [
|
2019-11-07 10:41:14 +08:00
|
|
|
|
{
|
2021-06-07 10:09:55 +08:00
|
|
|
|
type: 'input-text',
|
2020-12-29 14:51:47 +08:00
|
|
|
|
name: 'keywords',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
addOn: {
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'submit',
|
|
|
|
|
label: '搜索',
|
|
|
|
|
level: 'primary',
|
|
|
|
|
icon: 'fa fa-search pull-left'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
listItem: {
|
|
|
|
|
actions: [
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'button',
|
|
|
|
|
icon: 'fa fa-eye',
|
|
|
|
|
actionType: 'dialog',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
dialog: {
|
2020-12-29 14:51:47 +08:00
|
|
|
|
title: '查看',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
body: {
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'form',
|
2021-06-07 10:09:55 +08:00
|
|
|
|
body: [
|
2019-11-07 10:41:14 +08:00
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'static',
|
|
|
|
|
name: 'engine',
|
|
|
|
|
label: 'Engine'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'static',
|
|
|
|
|
name: 'browser',
|
|
|
|
|
label: 'Browser'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'static',
|
|
|
|
|
name: 'platform',
|
|
|
|
|
label: 'Platform(s)'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'static',
|
|
|
|
|
name: 'version',
|
|
|
|
|
label: 'Engine version'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'static',
|
|
|
|
|
name: 'grade',
|
|
|
|
|
label: 'CSS grade'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'html',
|
2022-10-12 15:09:03 +08:00
|
|
|
|
html: '<p>添加其他 <span>Html 片段</span> 需要支持变量替换(todo).</p>'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'button',
|
|
|
|
|
icon: 'fa fa-pencil',
|
|
|
|
|
actionType: 'dialog',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
dialog: {
|
2020-12-29 14:51:47 +08:00
|
|
|
|
title: '编辑',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
body: {
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'form',
|
|
|
|
|
name: 'sample-edit-form',
|
|
|
|
|
api: '/api/sample/$id',
|
2021-06-07 10:09:55 +08:00
|
|
|
|
body: [
|
2019-11-07 10:41:14 +08:00
|
|
|
|
{
|
2021-06-07 10:09:55 +08:00
|
|
|
|
type: 'input-text',
|
2020-12-29 14:51:47 +08:00
|
|
|
|
name: 'engine',
|
|
|
|
|
label: 'Engine',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
required: true
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2021-06-07 10:09:55 +08:00
|
|
|
|
type: 'input-text',
|
2020-12-29 14:51:47 +08:00
|
|
|
|
name: 'browser',
|
|
|
|
|
label: 'Browser',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
required: true
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2021-06-07 10:09:55 +08:00
|
|
|
|
type: 'input-text',
|
2020-12-29 14:51:47 +08:00
|
|
|
|
name: 'platform',
|
|
|
|
|
label: 'Platform(s)',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
required: true
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2021-06-07 10:09:55 +08:00
|
|
|
|
type: 'input-text',
|
2020-12-29 14:51:47 +08:00
|
|
|
|
name: 'version',
|
|
|
|
|
label: 'Engine version'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2021-06-07 10:09:55 +08:00
|
|
|
|
type: 'input-text',
|
2020-12-29 14:51:47 +08:00
|
|
|
|
name: 'grade',
|
|
|
|
|
label: 'CSS grade'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'button',
|
|
|
|
|
icon: 'fa fa-times text-danger',
|
|
|
|
|
actionType: 'ajax',
|
|
|
|
|
confirmText: '您确认要删除?',
|
|
|
|
|
api: 'delete:/api/sample/$id'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
body: [
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
name: 'engine',
|
|
|
|
|
label: 'Rendering engine',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
sortable: true,
|
|
|
|
|
quickEdit: true,
|
2020-12-29 14:51:47 +08:00
|
|
|
|
labelClassName: 'w-sm'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
2021-06-07 10:09:55 +08:00
|
|
|
|
{
|
|
|
|
|
type: 'hbox',
|
|
|
|
|
columns: [
|
|
|
|
|
{
|
|
|
|
|
name: 'browser',
|
|
|
|
|
label: 'Browser',
|
|
|
|
|
labelClassName: 'w-sm'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'platform',
|
|
|
|
|
label: 'Platform(s)',
|
|
|
|
|
labelClassName: 'w-sm'
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
2019-11-07 10:41:14 +08:00
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
name: 'version',
|
|
|
|
|
label: 'Engine version',
|
|
|
|
|
labelClassName: 'w-sm'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
|
2020-12-29 14:51:47 +08:00
|
|
|
|
'<p>Cards 渲染类型</p>',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'picker',
|
|
|
|
|
name: 'type7',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
joinValues: true,
|
2020-12-29 14:51:47 +08:00
|
|
|
|
valueField: 'id',
|
|
|
|
|
labelField: 'engine',
|
|
|
|
|
label: '单选',
|
|
|
|
|
source: '/api/sample',
|
|
|
|
|
size: 'lg',
|
|
|
|
|
value: '4',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
pickerSchema: {
|
2020-12-29 14:51:47 +08:00
|
|
|
|
mode: 'cards',
|
|
|
|
|
name: 'thelist',
|
|
|
|
|
quickSaveApi: '/api/sample/bulkUpdate',
|
|
|
|
|
quickSaveItemApi: '/api/sample/$id',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
draggable: true,
|
|
|
|
|
headerToolbar: {
|
|
|
|
|
wrapWithPanel: false,
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'form',
|
|
|
|
|
className: 'text-right',
|
|
|
|
|
target: 'thelist',
|
|
|
|
|
mode: 'inline',
|
2021-06-07 10:09:55 +08:00
|
|
|
|
body: [
|
2019-11-07 10:41:14 +08:00
|
|
|
|
{
|
2021-06-07 10:09:55 +08:00
|
|
|
|
type: 'input-text',
|
2020-12-29 14:51:47 +08:00
|
|
|
|
name: 'keywords',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
addOn: {
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'submit',
|
|
|
|
|
label: '搜索',
|
|
|
|
|
level: 'primary',
|
|
|
|
|
icon: 'fa fa-search pull-left'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
card: {
|
|
|
|
|
header: {
|
2020-12-29 14:51:47 +08:00
|
|
|
|
title: '$engine',
|
|
|
|
|
subTitle: '$platform',
|
|
|
|
|
subTitlePlaceholder: '暂无说明',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
avatar:
|
2019-12-24 11:25:55 +08:00
|
|
|
|
'<%= data.avatar || "https://internal-amis-res.cdn.bcebos.com/images/2019-12/1575350573496/4873dbfaf6a5.png" %>',
|
2020-12-29 14:51:47 +08:00
|
|
|
|
avatarClassName: 'pull-left thumb b-3x m-r'
|
2019-04-30 11:11:25 +08:00
|
|
|
|
},
|
2019-11-07 10:41:14 +08:00
|
|
|
|
actions: [
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'button',
|
|
|
|
|
label: '查看',
|
|
|
|
|
actionType: 'dialog',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
dialog: {
|
2020-12-29 14:51:47 +08:00
|
|
|
|
title: '查看',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
body: {
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'form',
|
2021-06-07 10:09:55 +08:00
|
|
|
|
body: [
|
2019-11-07 10:41:14 +08:00
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'static',
|
|
|
|
|
name: 'engine',
|
|
|
|
|
label: 'Engine'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'static',
|
|
|
|
|
name: 'browser',
|
|
|
|
|
label: 'Browser'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'static',
|
|
|
|
|
name: 'platform',
|
|
|
|
|
label: 'Platform(s)'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'static',
|
|
|
|
|
name: 'version',
|
|
|
|
|
label: 'Engine version'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'static',
|
|
|
|
|
name: 'grade',
|
|
|
|
|
label: 'CSS grade'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'html',
|
2022-10-12 15:09:03 +08:00
|
|
|
|
html: '<p>添加其他 <span>Html 片段</span> 需要支持变量替换(todo).</p>'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'button',
|
|
|
|
|
label: '编辑',
|
|
|
|
|
actionType: 'dialog',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
dialog: {
|
2020-12-29 14:51:47 +08:00
|
|
|
|
title: '编辑',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
body: {
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'form',
|
|
|
|
|
name: 'sample-edit-form',
|
|
|
|
|
api: '/api/sample/$id',
|
2021-06-07 10:09:55 +08:00
|
|
|
|
body: [
|
2019-11-07 10:41:14 +08:00
|
|
|
|
{
|
2021-06-07 10:09:55 +08:00
|
|
|
|
type: 'input-text',
|
2020-12-29 14:51:47 +08:00
|
|
|
|
name: 'engine',
|
|
|
|
|
label: 'Engine',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
required: true
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2021-06-07 10:09:55 +08:00
|
|
|
|
type: 'input-text',
|
2020-12-29 14:51:47 +08:00
|
|
|
|
name: 'browser',
|
|
|
|
|
label: 'Browser',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
required: true
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2021-06-07 10:09:55 +08:00
|
|
|
|
type: 'input-text',
|
2020-12-29 14:51:47 +08:00
|
|
|
|
name: 'platform',
|
|
|
|
|
label: 'Platform(s)',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
required: true
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2021-06-07 10:09:55 +08:00
|
|
|
|
type: 'input-text',
|
2020-12-29 14:51:47 +08:00
|
|
|
|
name: 'version',
|
|
|
|
|
label: 'Engine version'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2021-06-07 10:09:55 +08:00
|
|
|
|
type: 'input-text',
|
2020-12-29 14:51:47 +08:00
|
|
|
|
name: 'grade',
|
|
|
|
|
label: 'CSS grade'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'button',
|
|
|
|
|
label: '删除',
|
|
|
|
|
actionType: 'ajax',
|
|
|
|
|
confirmText: '您确认要删除?',
|
|
|
|
|
api: 'delete:/api/sample/$id'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
body: [
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
name: 'engine',
|
|
|
|
|
label: 'engine',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
sortable: true,
|
|
|
|
|
quickEdit: true
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
name: 'browser',
|
|
|
|
|
label: 'Browser'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
name: 'platform',
|
|
|
|
|
label: 'Platform'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
name: 'version',
|
|
|
|
|
label: 'version'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2019-04-30 11:11:25 +08:00
|
|
|
|
|
2019-11-07 10:41:14 +08:00
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'picker',
|
|
|
|
|
name: 'type8',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
joinValues: true,
|
2020-12-29 14:51:47 +08:00
|
|
|
|
valueField: 'id',
|
|
|
|
|
labelField: 'engine',
|
|
|
|
|
label: '多选',
|
|
|
|
|
source: '/api/sample',
|
|
|
|
|
size: 'lg',
|
|
|
|
|
value: '4,5',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
multiple: true,
|
|
|
|
|
pickerSchema: {
|
2020-12-29 14:51:47 +08:00
|
|
|
|
mode: 'cards',
|
|
|
|
|
name: 'thelist',
|
|
|
|
|
quickSaveApi: '/api/sample/bulkUpdate',
|
|
|
|
|
quickSaveItemApi: '/api/sample/$id',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
draggable: true,
|
|
|
|
|
headerToolbar: {
|
|
|
|
|
wrapWithPanel: false,
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'form',
|
|
|
|
|
className: 'text-right',
|
|
|
|
|
target: 'thelist',
|
|
|
|
|
mode: 'inline',
|
2021-06-07 10:09:55 +08:00
|
|
|
|
body: [
|
2019-11-07 10:41:14 +08:00
|
|
|
|
{
|
2021-06-07 10:09:55 +08:00
|
|
|
|
type: 'input-text',
|
2020-12-29 14:51:47 +08:00
|
|
|
|
name: 'keywords',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
addOn: {
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'submit',
|
|
|
|
|
label: '搜索',
|
|
|
|
|
level: 'primary',
|
|
|
|
|
icon: 'fa fa-search pull-left'
|
2019-04-30 11:11:25 +08:00
|
|
|
|
}
|
2019-11-07 10:41:14 +08:00
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
card: {
|
|
|
|
|
header: {
|
2020-12-29 14:51:47 +08:00
|
|
|
|
title: '$engine',
|
|
|
|
|
subTitle: '$platform',
|
|
|
|
|
subTitlePlaceholder: '暂无说明',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
avatar:
|
2019-12-24 11:25:55 +08:00
|
|
|
|
'<%= data.avatar || "https://internal-amis-res.cdn.bcebos.com/images/2019-12/1575350573496/4873dbfaf6a5.png" %>',
|
2020-12-29 14:51:47 +08:00
|
|
|
|
avatarClassName: 'pull-left thumb b-3x m-r'
|
2019-04-30 11:11:25 +08:00
|
|
|
|
},
|
2019-11-07 10:41:14 +08:00
|
|
|
|
actions: [
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'button',
|
|
|
|
|
label: '查看',
|
|
|
|
|
actionType: 'dialog',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
dialog: {
|
2020-12-29 14:51:47 +08:00
|
|
|
|
title: '查看',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
body: {
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'form',
|
2021-06-07 10:09:55 +08:00
|
|
|
|
body: [
|
2019-11-07 10:41:14 +08:00
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'static',
|
|
|
|
|
name: 'engine',
|
|
|
|
|
label: 'Engine'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'static',
|
|
|
|
|
name: 'browser',
|
|
|
|
|
label: 'Browser'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'static',
|
|
|
|
|
name: 'platform',
|
|
|
|
|
label: 'Platform(s)'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'static',
|
|
|
|
|
name: 'version',
|
|
|
|
|
label: 'Engine version'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'static',
|
|
|
|
|
name: 'grade',
|
|
|
|
|
label: 'CSS grade'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'html',
|
2022-10-12 15:09:03 +08:00
|
|
|
|
html: '<p>添加其他 <span>Html 片段</span> 需要支持变量替换(todo).</p>'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'button',
|
|
|
|
|
label: '编辑',
|
|
|
|
|
actionType: 'dialog',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
dialog: {
|
2020-12-29 14:51:47 +08:00
|
|
|
|
title: '编辑',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
body: {
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'form',
|
|
|
|
|
name: 'sample-edit-form',
|
|
|
|
|
api: '/api/sample/$id',
|
2021-06-07 10:09:55 +08:00
|
|
|
|
body: [
|
2019-11-07 10:41:14 +08:00
|
|
|
|
{
|
2021-06-07 10:09:55 +08:00
|
|
|
|
type: 'input-text',
|
2020-12-29 14:51:47 +08:00
|
|
|
|
name: 'engine',
|
|
|
|
|
label: 'Engine',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
required: true
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2021-06-07 10:09:55 +08:00
|
|
|
|
type: 'input-text',
|
2020-12-29 14:51:47 +08:00
|
|
|
|
name: 'browser',
|
|
|
|
|
label: 'Browser',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
required: true
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2021-06-07 10:09:55 +08:00
|
|
|
|
type: 'input-text',
|
2020-12-29 14:51:47 +08:00
|
|
|
|
name: 'platform',
|
|
|
|
|
label: 'Platform(s)',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
required: true
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2021-06-07 10:09:55 +08:00
|
|
|
|
type: 'input-text',
|
2020-12-29 14:51:47 +08:00
|
|
|
|
name: 'version',
|
|
|
|
|
label: 'Engine version'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'divider'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2021-06-07 10:09:55 +08:00
|
|
|
|
type: 'input-text',
|
2020-12-29 14:51:47 +08:00
|
|
|
|
name: 'grade',
|
|
|
|
|
label: 'CSS grade'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
type: 'button',
|
|
|
|
|
label: '删除',
|
|
|
|
|
actionType: 'ajax',
|
|
|
|
|
confirmText: '您确认要删除?',
|
|
|
|
|
api: 'delete:/api/sample/$id'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
body: [
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
name: 'engine',
|
|
|
|
|
label: 'engine',
|
2019-11-07 10:41:14 +08:00
|
|
|
|
sortable: true,
|
|
|
|
|
quickEdit: true
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
name: 'browser',
|
|
|
|
|
label: 'Browser'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
name: 'platform',
|
|
|
|
|
label: 'Platform'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-29 14:51:47 +08:00
|
|
|
|
name: 'version',
|
|
|
|
|
label: 'version'
|
2019-11-07 10:41:14 +08:00
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
};
|