feat: menu
parent
ed85e3f55f
commit
30b9556714
|
@ -11,10 +11,18 @@ export const columns: BasicColumn[] = [
|
||||||
width: 250,
|
width: 250,
|
||||||
align: 'left'
|
align: 'left'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '菜单类型',
|
||||||
|
dataIndex: 'type',
|
||||||
|
width: 80,
|
||||||
|
customRender: ({ text }) => {
|
||||||
|
return useRender.renderDict(text, DICT_TYPE.SYSTEM_MENU_TYPE)
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '图标',
|
title: '图标',
|
||||||
dataIndex: 'icon',
|
dataIndex: 'icon',
|
||||||
width: 100,
|
width: 60,
|
||||||
customRender: ({ record }) => {
|
customRender: ({ record }) => {
|
||||||
return h(Icon, { icon: record.icon })
|
return h(Icon, { icon: record.icon })
|
||||||
}
|
}
|
||||||
|
@ -27,17 +35,17 @@ export const columns: BasicColumn[] = [
|
||||||
{
|
{
|
||||||
title: '权限标识',
|
title: '权限标识',
|
||||||
dataIndex: 'permission',
|
dataIndex: 'permission',
|
||||||
width: 120
|
width: 140
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '组件路径',
|
title: '组件路径',
|
||||||
dataIndex: 'component',
|
dataIndex: 'component',
|
||||||
width: 120
|
width: 140
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '状态',
|
title: '状态',
|
||||||
dataIndex: 'status',
|
dataIndex: 'status',
|
||||||
width: 180,
|
width: 80,
|
||||||
customRender: ({ text }) => {
|
customRender: ({ text }) => {
|
||||||
return useRender.renderDict(text, DICT_TYPE.COMMON_STATUS)
|
return useRender.renderDict(text, DICT_TYPE.COMMON_STATUS)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue