index.js 427 B

12345678910111213141516171819202122
  1. 'use strict';
  2. Object.defineProperty(exports, '__esModule', { value: true });
  3. const component = require('../common/component');
  4. component.VantComponent({
  5. classes: [
  6. 'custom-class',
  7. 'thumb-class'
  8. ],
  9. props: {
  10. thumb: String,
  11. lazyLoad: Boolean,
  12. thumbMode: {
  13. type: String,
  14. value: 'scaleToFill'
  15. }
  16. },
  17. methods: {
  18. onClickThumb: function() {
  19. this.$emit('thumbClick');
  20. }
  21. }
  22. });