index.js 554B

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