index.js 612 B

12345678910111213141516171819202122232425
  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'],
  6. mixins: [link, button],
  7. props: {
  8. text: String,
  9. dot: Boolean,
  10. info: String,
  11. icon: String,
  12. classPrefix: {
  13. type: String,
  14. value: 'van-icon',
  15. },
  16. disabled: Boolean,
  17. loading: Boolean,
  18. },
  19. methods: {
  20. onClick(event) {
  21. this.$emit('click', event.detail);
  22. this.jumpLink();
  23. },
  24. },
  25. });