fix(sidenav): 修复侧边栏折叠时版本号前显示 false 问题 (#294)

This commit is contained in:
zengqiu 2022-09-06 11:28:41 +08:00 committed by GitHub
parent 4949f5d8be
commit 88e358bfc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,7 @@
</template>
<menu-content :nav-data="menu" />
<template #operations>
<span class="version-container"> {{ !collapsed && 'TDesign Starter' }} {{ pgk.version }} </span>
<span class="version-container"> {{ !collapsed ? 'TDesign Starter' : '' }} {{ pgk.version }} </span>
</template>
</t-menu>
<div :class="`${prefix}-side-nav-placeholder${collapsed ? '-hidden' : ''}`"></div>