From 30b9556714a09a58daa4d462f991887ce0953af1 Mon Sep 17 00:00:00 2001 From: xingyuv Date: Tue, 21 Mar 2023 15:28:50 +0800 Subject: [PATCH] feat: menu --- src/views/system/menu/menu.data.ts | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/views/system/menu/menu.data.ts b/src/views/system/menu/menu.data.ts index 8fc5a5b..a7500fc 100644 --- a/src/views/system/menu/menu.data.ts +++ b/src/views/system/menu/menu.data.ts @@ -11,10 +11,18 @@ export const columns: BasicColumn[] = [ width: 250, align: 'left' }, + { + title: '菜单类型', + dataIndex: 'type', + width: 80, + customRender: ({ text }) => { + return useRender.renderDict(text, DICT_TYPE.SYSTEM_MENU_TYPE) + } + }, { title: '图标', dataIndex: 'icon', - width: 100, + width: 60, customRender: ({ record }) => { return h(Icon, { icon: record.icon }) } @@ -27,17 +35,17 @@ export const columns: BasicColumn[] = [ { title: '权限标识', dataIndex: 'permission', - width: 120 + width: 140 }, { title: '组件路径', dataIndex: 'component', - width: 120 + width: 140 }, { title: '状态', dataIndex: 'status', - width: 180, + width: 80, customRender: ({ text }) => { return useRender.renderDict(text, DICT_TYPE.COMMON_STATUS) }