You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
133 lines
2.8 KiB
133 lines
2.8 KiB
|
5 years ago
|
export default {
|
||
|
|
default: [
|
||
|
|
{
|
||
|
|
key: 'barKey',
|
||
|
|
title: 'Key',
|
||
|
|
display: ['formA', 'formU', 'table', 'model'],
|
||
|
|
fixed: false,
|
||
|
|
block: true,
|
||
|
|
width: 80
|
||
|
|
},
|
||
|
|
{
|
||
|
|
key: 'barName',
|
||
|
|
title: '导航栏名称',
|
||
|
|
display: ['formA', 'formU', 'table', 'model'],
|
||
|
|
fixed: false,
|
||
|
|
block: true,
|
||
|
|
width: 80
|
||
|
|
},
|
||
|
|
{
|
||
|
|
key: 'pageTitle',
|
||
|
|
title: '页面标题',
|
||
|
|
display: ['formA', 'formU', 'table', 'model'],
|
||
|
|
fixed: false,
|
||
|
|
block: true,
|
||
|
|
width: 120
|
||
|
|
},
|
||
|
|
{
|
||
|
|
key: 'iconPath',
|
||
|
|
title: '图标',
|
||
|
|
display: ['formA', 'formU', 'table', 'model'],
|
||
|
|
fixed: false,
|
||
|
|
block: 100,
|
||
|
|
width: 120,
|
||
|
|
tableType: 'image',
|
||
|
|
imgWidth: '50px',
|
||
|
|
imgHeight: '50px'
|
||
|
|
},
|
||
|
|
{
|
||
|
|
key: 'selectedIconPath',
|
||
|
|
title: '选中图标',
|
||
|
|
display: ['formA', 'formU', 'table', 'model'],
|
||
|
|
fixed: false,
|
||
|
|
block: true,
|
||
|
|
width: 100,
|
||
|
|
tableType: 'image',
|
||
|
|
imgWidth: '50px',
|
||
|
|
imgHeight: '50px'
|
||
|
|
},
|
||
|
|
{
|
||
|
|
key: 'display',
|
||
|
|
title: '状态',
|
||
|
|
display: ['formA', 'formU', 'table', 'model'],
|
||
|
|
fixed: false,
|
||
|
|
block: true,
|
||
|
|
width: 80,
|
||
|
|
format: (cellValue, index) => {
|
||
|
|
if (cellValue === 0) {
|
||
|
|
return '隐藏'
|
||
|
|
} else if (cellValue === 1) {
|
||
|
|
return '显示'
|
||
|
|
} else {
|
||
|
|
return '未知'
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
],
|
||
|
|
customize: [
|
||
|
|
{
|
||
|
|
key: 'defaultName',
|
||
|
|
title: '默认导航栏名称',
|
||
|
|
display: ['formA', 'formU', 'table', 'model'],
|
||
|
|
fixed: false,
|
||
|
|
block: true,
|
||
|
|
width: 80
|
||
|
|
},
|
||
|
|
{
|
||
|
|
key: 'barName',
|
||
|
|
title: '导航栏名称',
|
||
|
|
display: ['formA', 'formU', 'table', 'model'],
|
||
|
|
fixed: false,
|
||
|
|
block: true,
|
||
|
|
width: 80
|
||
|
|
},
|
||
|
|
{
|
||
|
|
key: 'pageTitle',
|
||
|
|
title: '页面标题',
|
||
|
|
display: ['formA', 'formU', 'table', 'model'],
|
||
|
|
fixed: false,
|
||
|
|
block: true,
|
||
|
|
width: 120
|
||
|
|
},
|
||
|
|
{
|
||
|
|
key: 'iconPath',
|
||
|
|
title: '图标',
|
||
|
|
display: ['formA', 'formU', 'table', 'model'],
|
||
|
|
fixed: false,
|
||
|
|
block: 100,
|
||
|
|
width: 120,
|
||
|
|
tableType: 'image',
|
||
|
|
imgWidth: '50px',
|
||
|
|
imgHeight: '50px'
|
||
|
|
},
|
||
|
|
{
|
||
|
|
key: 'selectedIconPath',
|
||
|
|
title: '选中图标',
|
||
|
|
display: ['formA', 'formU', 'table', 'model'],
|
||
|
|
fixed: false,
|
||
|
|
block: true,
|
||
|
|
width: 100,
|
||
|
|
tableType: 'image',
|
||
|
|
imgWidth: '50px',
|
||
|
|
imgHeight: '50px'
|
||
|
|
},
|
||
|
|
{
|
||
|
|
key: 'display',
|
||
|
|
title: '状态',
|
||
|
|
display: ['formA', 'formU', 'table', 'model'],
|
||
|
|
fixed: false,
|
||
|
|
block: true,
|
||
|
|
width: 80,
|
||
|
|
format: (cellValue, index) => {
|
||
|
|
if (cellValue === 0) {
|
||
|
|
return '隐藏'
|
||
|
|
} else if (cellValue === 1) {
|
||
|
|
return '显示'
|
||
|
|
} else {
|
||
|
|
return '未知'
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|