修复已知bug

This commit is contained in:
2024-07-23 16:41:29 +08:00
parent e0b85aae8f
commit 717c89a58e
12 changed files with 92 additions and 36 deletions

View File

@@ -41,8 +41,9 @@
>
</template>
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'icon'">
<a-avatar :src="record.icon" :width="50" />
<template v-if="column.key === 'avatar'">
<a-avatar v-if="record.avatar" :src="record.avatar" />
<!-- <component v-if="record.icon" :is="record.icon" />-->
</template>
<template v-if="column.key === 'path'">
<span class="ele-text-placeholder">{{ record.path }}</span>
@@ -185,8 +186,8 @@
},
{
title: '菜单图标',
dataIndex: 'icon',
key: 'icon',
dataIndex: 'avatar',
key: 'avatar',
align: 'center',
width: 90
},
@@ -341,8 +342,10 @@
</script>
<script lang="ts">
import * as MenuIcons from '@/layout/menu-icons';
export default {
name: 'MpMenuHome'
name: 'MpMenuHome',
components: MenuIcons
};
</script>