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