index.js 846 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. '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. titleStyle: String,
  33. },
  34. methods: {
  35. onClick: function (event) {
  36. this.$emit('click', event.detail);
  37. this.jumpLink();
  38. },
  39. },
  40. });