侧边栏新增isNew标记

This commit is contained in:
不做码农 2023-08-17 17:28:33 +08:00
parent b378aca3ab
commit 61a842b0cd
2 changed files with 3 additions and 0 deletions

View File

@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1692263225130" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4039" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M245.76 286.72h552.96c124.928 0 225.28 100.352 225.28 225.28s-100.352 225.28-225.28 225.28H0V532.48c0-135.168 110.592-245.76 245.76-245.76z m133.12 348.16V401.408H348.16v178.176l-112.64-178.176H204.8V634.88h30.72v-178.176L348.16 634.88h30.72z m182.272-108.544v-24.576h-96.256v-75.776h110.592v-24.576h-141.312V634.88h143.36v-24.576h-112.64v-83.968h96.256z m100.352 28.672l-34.816-151.552h-34.816l55.296 233.472H675.84l47.104-161.792 4.096-20.48 4.096 20.48 47.104 161.792h28.672l57.344-233.472h-34.816l-32.768 151.552-4.096 30.72-6.144-30.72-40.96-151.552h-30.72l-40.96 151.552-6.144 30.72-6.144-30.72z" fill="#EE502F" p-id="4040"></path></svg>

After

Width:  |  Height:  |  Size: 976 B

View File

@ -8,6 +8,8 @@
<span v-if="props.isCollapse && !onlyOneChild.meta.icon">{{ hasTitle2(onlyOneChild.meta.title) }}</span> <span v-if="props.isCollapse && !onlyOneChild.meta.icon">{{ hasTitle2(onlyOneChild.meta.title) }}</span>
<template v-if="onlyOneChild.meta.titleKey" #title> <template v-if="onlyOneChild.meta.titleKey" #title>
{{ $t(onlyOneChild.meta.titleKey) }} {{ $t(onlyOneChild.meta.titleKey) }}
<svg-icon name="new" color="#fff" style="width: 60px; height: 30px" v-if="onlyOneChild.meta.isNew == 1" />
</template> </template>
<template v-else-if="onlyOneChild.meta.title" #title> <template v-else-if="onlyOneChild.meta.title" #title>
{{ onlyOneChild.meta.title }} {{ onlyOneChild.meta.title }}