海鲜小程序

index.js 523B

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