index.js 663 B

123456789101112131415161718192021222324252627282930
  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'],
  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. border: {
  20. type: Boolean,
  21. value: true
  22. }
  23. },
  24. methods: {
  25. onClick: function onClick(event) {
  26. this.$emit('click', event.detail);
  27. this.jumpLink();
  28. }
  29. }
  30. });