index.js 769 B

1234567891011121314151617181920212223242526272829303132333435
  1. 'use strict';
  2. Object.defineProperty(exports, '__esModule', { value: true });
  3. var component_1 = require('../common/component');
  4. var color_1 = require('../common/color');
  5. component_1.VantComponent({
  6. classes: ['desc-class'],
  7. props: {
  8. icon: String,
  9. steps: Array,
  10. active: Number,
  11. direction: {
  12. type: String,
  13. value: 'horizontal',
  14. },
  15. activeColor: {
  16. type: String,
  17. value: color_1.GREEN,
  18. },
  19. inactiveColor: {
  20. type: String,
  21. value: color_1.GRAY_DARK,
  22. },
  23. activeIcon: {
  24. type: String,
  25. value: 'checked',
  26. },
  27. inactiveIcon: String,
  28. },
  29. methods: {
  30. onClick: function (event) {
  31. var index = event.currentTarget.dataset.index;
  32. this.$emit('click-step', index);
  33. },
  34. },
  35. });