index.js 635 B

1234567891011121314151617181920212223242526
  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. color: String,
  13. classPrefix: {
  14. type: String,
  15. value: 'van-icon',
  16. },
  17. disabled: Boolean,
  18. loading: Boolean,
  19. },
  20. methods: {
  21. onClick(event) {
  22. this.$emit('click', event.detail);
  23. this.jumpLink();
  24. },
  25. },
  26. });