mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 09:24:25 +00:00
[bugfix] Tabbar: info not work when use icon slot (#1705)
This commit is contained in:
@@ -4,17 +4,22 @@
|
||||
:href="url"
|
||||
@click="onClick"
|
||||
>
|
||||
<div v-if="isDef(info)" :class="b('info')">{{ info }}</div>
|
||||
<van-info :info="info" :class="b('info')" />
|
||||
{{ title }}
|
||||
</a>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Info from '../info';
|
||||
import create from '../utils/create';
|
||||
|
||||
export default create({
|
||||
name: 'badge',
|
||||
|
||||
components: {
|
||||
[Info.name]: Info
|
||||
},
|
||||
|
||||
props: {
|
||||
url: String,
|
||||
info: [String, Number],
|
||||
|
Reference in New Issue
Block a user