index.js 658 B

12345678910111213141516171819202122232425262728293031323334353637
  1. Component({
  2. externalClasses: ['title-class', 'icon-class', 'number-class'],
  3. options: {
  4. multipleSlots: true,
  5. },
  6. properties: {
  7. orderTagInfos: {
  8. type: Array,
  9. value: [],
  10. },
  11. title: {
  12. type: String,
  13. value: '我的订单',
  14. },
  15. desc: {
  16. type: String,
  17. value: '全部订单',
  18. },
  19. isTop: {
  20. type: Boolean,
  21. value: true,
  22. },
  23. classPrefix: {
  24. type: String,
  25. value: 'wr',
  26. },
  27. },
  28. methods: {
  29. onClickItem(e) {
  30. this.triggerEvent('onClickItem', e.currentTarget.dataset.item);
  31. },
  32. onClickTop() {
  33. this.triggerEvent('onClickTop', {});
  34. },
  35. },
  36. });