mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
33 lines
415 B
Vue
33 lines
415 B
Vue
<template>
|
|
<div :class="b()" class="van-hairline--top-bottom">
|
|
<slot />
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import create from '../utils/create';
|
|
|
|
export default create({
|
|
name: 'badge-group',
|
|
|
|
props: {
|
|
activeKey: {
|
|
type: [Number, String],
|
|
default: 0
|
|
}
|
|
},
|
|
|
|
provide() {
|
|
return {
|
|
vanBadgeGroup: this
|
|
};
|
|
},
|
|
|
|
data() {
|
|
return {
|
|
badges: []
|
|
};
|
|
}
|
|
});
|
|
</script>
|