12345678910111213141516171819
  1. import { VantComponent } from '../common/component';
  2. import { link } from '../mixins/link';
  3. import { button } from '../mixins/button';
  4. import { openType } from '../mixins/open-type';
  5. VantComponent({
  6. classes: ['icon-class', 'text-class'],
  7. mixins: [link, button, openType],
  8. props: {
  9. text: String,
  10. info: String,
  11. icon: String
  12. },
  13. methods: {
  14. onClick(event) {
  15. this.$emit('click', event.detail);
  16. this.jumpLink();
  17. }
  18. }
  19. });