index.js 820 B

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