index.js 838 B

12345678910111213141516171819202122232425262728293031323334353637
  1. import { link } from '../mixins/link';
  2. import { VantComponent } from '../common/component';
  3. VantComponent({
  4. classes: [
  5. 'title-class',
  6. 'label-class',
  7. 'value-class',
  8. 'right-icon-class',
  9. 'hover-class'
  10. ],
  11. mixins: [link],
  12. props: {
  13. title: null,
  14. value: null,
  15. icon: String,
  16. size: String,
  17. label: String,
  18. center: Boolean,
  19. isLink: Boolean,
  20. required: Boolean,
  21. clickable: Boolean,
  22. titleWidth: String,
  23. customStyle: String,
  24. arrowDirection: String,
  25. useLabelSlot: Boolean,
  26. border: {
  27. type: Boolean,
  28. value: true
  29. }
  30. },
  31. methods: {
  32. onClick(event) {
  33. this.$emit('click', event.detail);
  34. this.jumpLink();
  35. }
  36. }
  37. });