index.js 943 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. 'title-class',
  8. 'label-class',
  9. 'value-class',
  10. 'right-icon-class',
  11. 'hover-class'
  12. ],
  13. mixins: [link_1.link],
  14. props: {
  15. title: null,
  16. value: null,
  17. icon: String,
  18. size: String,
  19. label: String,
  20. center: Boolean,
  21. isLink: Boolean,
  22. required: Boolean,
  23. clickable: Boolean,
  24. titleWidth: String,
  25. customStyle: String,
  26. arrowDirection: String,
  27. useLabelSlot: Boolean,
  28. border: {
  29. type: Boolean,
  30. value: true
  31. }
  32. },
  33. methods: {
  34. onClick: function (event) {
  35. this.$emit('click', event.detail);
  36. this.jumpLink();
  37. }
  38. }
  39. });