index.js 929 B

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