|
@@ -17,8 +17,14 @@
|
|
|
:class="group.name === activedGroup ? 'active' : ''"
|
|
|
@click="groupChange(group.name)"
|
|
|
>
|
|
|
- <t-icon :name="group.icon" />
|
|
|
- {{ group.name }}
|
|
|
+ <template v-if="group.type === 'iconfont'">
|
|
|
+ <i class="l-icon" :class="group.icon"> </i>
|
|
|
+ {{ group.name }}
|
|
|
+ </template>
|
|
|
+ <template v-else>
|
|
|
+ <t-icon :name="group.icon" />
|
|
|
+ {{ group.name }}
|
|
|
+ </template>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="list" :class="groupType ? 'two-columns' : ''">
|
|
@@ -357,9 +363,10 @@ const userGroups = [
|
|
|
key: '',
|
|
|
},
|
|
|
{
|
|
|
- icon: 'app',
|
|
|
+ icon: 'l-zujian',
|
|
|
name: '组件',
|
|
|
key: 'chart',
|
|
|
+ type: 'iconfont',
|
|
|
},
|
|
|
{
|
|
|
icon: 'image',
|
|
@@ -1926,7 +1933,10 @@ onUnmounted(() => {
|
|
|
font-size: 20px;
|
|
|
margin-bottom: 8px;
|
|
|
}
|
|
|
-
|
|
|
+ .l-icon {
|
|
|
+ font-size: 24px;
|
|
|
+ margin-bottom: 8px;
|
|
|
+ }
|
|
|
&:hover {
|
|
|
color: var(--color-primary);
|
|
|
}
|