index.js 498 B

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