Fixed for zero numeric value
parent
78ce1c62d5
commit
eb4523a934
|
@ -2,7 +2,7 @@
|
||||||
<span :class="cx('root')" v-bind="ptmi('root')">
|
<span :class="cx('root')" v-bind="ptmi('root')">
|
||||||
<component v-if="$slots.icon" :is="$slots.icon" :class="cx('icon')" v-bind="ptm('icon')" />
|
<component v-if="$slots.icon" :is="$slots.icon" :class="cx('icon')" v-bind="ptm('icon')" />
|
||||||
<span v-else-if="icon" :class="[cx('icon'), icon]" v-bind="ptm('icon')"></span>
|
<span v-else-if="icon" :class="[cx('icon'), icon]" v-bind="ptm('icon')"></span>
|
||||||
<slot v-if="value || $slots.default">
|
<slot v-if="value != null || $slots.default">
|
||||||
<span :class="cx('label')" v-bind="ptm('label')">{{ value }}</span>
|
<span :class="cx('label')" v-bind="ptm('label')">{{ value }}</span>
|
||||||
</slot>
|
</slot>
|
||||||
</span>
|
</span>
|
||||||
|
|
Loading…
Reference in New Issue