2019-04-30 11:11:25 +08:00
|
|
|
export default {
|
2019-11-07 10:41:14 +08:00
|
|
|
title: 'Table 全键盘操作示例',
|
|
|
|
remark: 'bla bla bla',
|
|
|
|
body: [
|
|
|
|
{
|
|
|
|
type: 'plain',
|
|
|
|
className: 'text-danger',
|
|
|
|
text:
|
|
|
|
'请通过上下左右键切换单元格,按 `Space` 键进入编辑模式,按 `Enter` 提交编辑,并最后点左上角的全部保存完成操作。'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type: 'crud',
|
|
|
|
className: 'm-t',
|
|
|
|
api: '/api/sample',
|
|
|
|
quickSaveApi: '/api/sample/bulkUpdate',
|
|
|
|
quickSaveItemApi: '/api/sample/$id',
|
|
|
|
columns: [
|
2019-04-30 11:11:25 +08:00
|
|
|
{
|
2019-11-07 10:41:14 +08:00
|
|
|
name: 'id',
|
|
|
|
label: 'ID',
|
|
|
|
width: 20,
|
|
|
|
sortable: true,
|
|
|
|
type: 'text',
|
|
|
|
toggled: true
|
2019-04-30 11:11:25 +08:00
|
|
|
},
|
|
|
|
{
|
2019-11-07 10:41:14 +08:00
|
|
|
name: 'engine',
|
|
|
|
label: 'Rendering engine',
|
|
|
|
sortable: true,
|
|
|
|
quickEdit: {
|
2021-06-07 10:09:55 +08:00
|
|
|
type: 'input-text',
|
2019-11-07 10:41:14 +08:00
|
|
|
required: true,
|
|
|
|
mode: 'inline'
|
|
|
|
},
|
|
|
|
type: 'text',
|
|
|
|
toggled: true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'browser',
|
|
|
|
label: 'Browser',
|
|
|
|
sortable: true,
|
|
|
|
quickEdit: {
|
2021-06-07 10:09:55 +08:00
|
|
|
type: 'input-text',
|
2019-11-07 10:41:14 +08:00
|
|
|
required: true
|
|
|
|
},
|
|
|
|
type: 'text',
|
|
|
|
toggled: true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'platform',
|
|
|
|
label: 'Platform(s)',
|
|
|
|
sortable: true,
|
|
|
|
quickEdit: true,
|
|
|
|
type: 'text',
|
|
|
|
toggled: true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'version',
|
|
|
|
label: 'Engine version',
|
|
|
|
quickEdit: true,
|
|
|
|
type: 'text',
|
|
|
|
toggled: true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'grade',
|
|
|
|
label: 'CSS grade',
|
|
|
|
quickEdit: {
|
|
|
|
type: 'select',
|
|
|
|
options: ['A', 'B', 'C', 'D', 'X']
|
|
|
|
},
|
|
|
|
type: 'text',
|
|
|
|
toggled: true
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
2019-11-07 10:41:14 +08:00
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
};
|