index.js 824 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. import { link } from '../mixins/link';
  2. import { VantComponent } from '../common/component';
  3. VantComponent({
  4. classes: [
  5. 'num-class',
  6. 'desc-class',
  7. 'thumb-class',
  8. 'title-class',
  9. 'price-class',
  10. 'origin-price-class',
  11. ],
  12. mixins: [link],
  13. props: {
  14. tag: String,
  15. num: String,
  16. desc: String,
  17. thumb: String,
  18. title: String,
  19. price: String,
  20. centered: Boolean,
  21. lazyLoad: Boolean,
  22. thumbLink: String,
  23. originPrice: String,
  24. thumbMode: {
  25. type: String,
  26. value: 'aspectFit'
  27. },
  28. currency: {
  29. type: String,
  30. value: '¥'
  31. }
  32. },
  33. methods: {
  34. onClickThumb() {
  35. this.jumpLink('thumbLink');
  36. }
  37. }
  38. });