index.js 871 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. titleStyle: String,
  31. },
  32. methods: {
  33. onClick(event) {
  34. this.$emit('click', event.detail);
  35. this.jumpLink();
  36. },
  37. },
  38. });