Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

123456789101112131415161718192021222324252627282930313233
  1. const pidMixin = {
  2. props: {
  3. pid: {
  4. type: Number,
  5. required: true,
  6. validator: prop => typeof prop === 'number' || prop === null,
  7. },
  8. },
  9. }
  10. const cardMixin = {
  11. data: () => ({
  12. cards: [],
  13. matches: [],
  14. loading: true,
  15. }),
  16. watch: {
  17. /** Fetch the queue if pid changes */
  18. pid() {
  19. this.getCards()
  20. },
  21. },
  22. async created() {
  23. await this.getCards()
  24. },
  25. methods: {
  26. _reformat(data, mapCb) {
  27. return data.map(mapCb)
  28. },
  29. },
  30. }
  31. export { pidMixin, cardMixin }