2019-01-05 15:44:27 +08:00

33 lines
438 B
JavaScript

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: []
};
},
render(h) {
return (
<div class={['van-hairline--top-bottom', this.b()]}>
{this.$slots.default}
</div>
);
}
});