chore: menu

This commit is contained in:
dap
2024-10-05 21:04:44 +08:00
parent a7aeb5ae63
commit 69b1a133b1
3 changed files with 17 additions and 3 deletions

View File

@@ -82,7 +82,15 @@ export const columns: VxeGridProps['columns'] = [
slots: {
default: ({ row }) => {
const current = menuTypes[row.menuType as 'C' | 'F' | 'M'];
return current as any;
if (!current) {
return '未知';
}
return (
<span class={['flex', 'items-center', 'justify-center']}>
{renderIcon(current.icon)}
<span style={{ marginLeft: '2px' }}>{current.value}</span>
</span>
);
},
},
},