Badege: hidden when no value, fixed #2733

pull/2764/head
qingwei.li 2017-02-09 15:45:23 +08:00 committed by 杨奕
parent 474084e63d
commit 54793283ad
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
<slot></slot> <slot></slot>
<transition name="el-zoom-in-center"> <transition name="el-zoom-in-center">
<sup <sup
v-show="!hidden" v-show="!hidden && content"
v-text="content" v-text="content"
class="el-badge__content" class="el-badge__content"
:class="{ 'is-fixed': $slots.default, 'is-dot': isDot }"> :class="{ 'is-fixed': $slots.default, 'is-dot': isDot }">