index.js 405 B

12345678910111213141516171819202122232425262728
  1. import { use } from '../utils';
  2. const [sfc, bem] = use('badge-group');
  3. export default sfc({
  4. props: {
  5. activeKey: {
  6. type: [Number, String],
  7. default: 0
  8. }
  9. },
  10. provide() {
  11. return {
  12. vanBadgeGroup: this
  13. };
  14. },
  15. data() {
  16. return {
  17. badges: []
  18. };
  19. },
  20. render(h) {
  21. return <div class={[bem(), 'van-hairline--top-bottom']}>{this.slots()}</div>;
  22. }
  23. });