index.js 521 B

123456789101112131415161718192021
  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. });