修复已知bug
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user