index.js 521B

12345678910111213141516171819202122
  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. disabled: Boolean,
  13. loading: Boolean,
  14. },
  15. methods: {
  16. onClick(event) {
  17. this.$emit('click', event.detail);
  18. this.jumpLink();
  19. },
  20. },
  21. });