index.js 671 B

123456789101112131415161718192021222324252627
  1. import { VantComponent } from '../common/component';
  2. import { button } from '../mixins/button';
  3. import { link } from '../mixins/link';
  4. VantComponent({
  5. classes: ['icon-class', 'text-class', 'info-class'],
  6. mixins: [link, button],
  7. props: {
  8. text: String,
  9. dot: Boolean,
  10. info: String,
  11. icon: String,
  12. size: String,
  13. color: String,
  14. classPrefix: {
  15. type: String,
  16. value: 'van-icon',
  17. },
  18. disabled: Boolean,
  19. loading: Boolean,
  20. },
  21. methods: {
  22. onClick(event) {
  23. this.$emit('click', event.detail);
  24. this.jumpLink();
  25. },
  26. },
  27. });