[bugfix] Tabbar: info not work when use icon slot (#1705)

This commit is contained in:
neverland
2018-08-27 21:06:18 +08:00
committed by GitHub
parent fe3eb10bd3
commit 30b3fad696
16 changed files with 78 additions and 61 deletions

View File

@@ -1,16 +1,21 @@
<template>
<i :class="[classPrefix, `${classPrefix}-${name}`]" :style="style" v-on="$listeners">
<slot />
<div v-if="isDef(info)" :class="b('info')">{{ info }}</div>
<van-info :info="info" />
</i>
</template>
<script>
import Info from '../info';
import create from '../utils/create-basic';
export default create({
name: 'icon',
components: {
[Info.name]: Info
},
props: {
name: String,
info: [String, Number],