From b4f0454f9d0e2fa885a8659a4239d426db48a83a Mon Sep 17 00:00:00 2001
From: wangting <wangting@vci-tech.com>
Date: 星期一, 30 十二月 2024 18:35:36 +0800
Subject: [PATCH] Action增加图标
---
Source/plt-web/plt-web-ui/src/page/index/sidebar/sidebarItem.vue | 17 ++++++++---------
1 files changed, 8 insertions(+), 9 deletions(-)
diff --git a/Source/plt-web/plt-web-ui/src/page/index/sidebar/sidebarItem.vue b/Source/plt-web/plt-web-ui/src/page/index/sidebar/sidebarItem.vue
index fcb31d0..e6e5ba1 100644
--- a/Source/plt-web/plt-web-ui/src/page/index/sidebar/sidebarItem.vue
+++ b/Source/plt-web/plt-web-ui/src/page/index/sidebar/sidebarItem.vue
@@ -14,11 +14,12 @@
:key="item[labelKey]"
:index="item[pathKey]">
<template slot="title">
- <div style="display: flex">
- <icon-show :name="item[iconKey]" class="iconShowSpan" :style="{ height: iconSize, width: iconSize }"></icon-show>
- <span slot="title"
- :class="{'el-menu--display':collapse && first}">{{ generateTitle(item) }}</span>
- </div>
+ <div style="display: flex">
+ <icon-show v-if="item[iconKey]" :name="item[iconKey]" class="iconShowSpan" :style="{ height: iconSize, width: iconSize }"></icon-show>
+ <i v-else class="el-icon-setting" :font-size="iconSize"></i>
+ <span slot="title"
+ :class="{'el-menu--display':collapse && first}">{{ generateTitle(item) }}</span>
+ </div>
</template>
<template v-for="(child,cindex) in item[childrenKey]">
<el-menu-item v-if="validatenull(child[childrenKey])"
@@ -27,7 +28,8 @@
:index="child[pathKey],cindex"
@click="open(child)">
<div style="display: flex">
- <icon-show :name="child[iconKey]" class="iconShowSpan" :style="{ height: iconSize, width: iconSize }"></icon-show>
+ <icon-show v-if="child[iconKey]" :name="child[iconKey]" class="iconShowSpan" :style="{ height: iconSize, width: iconSize }"></icon-show>
+ <i v-else class="el-icon-setting" :font-size="iconSize"></i>
<span slot="title">{{ generateTitle(child) }}</span>
</div>
</el-menu-item>
@@ -166,9 +168,6 @@
margin-right: 10px;
color: #eeeeea;
}
-::v-deep .el-icon-arrow-right:before {
- content: "" !important;
-}
</style>
--
Gitblit v1.10.0