index.js 548B

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. mixins: [link, button, openType],
  7. props: {
  8. text: String,
  9. loading: Boolean,
  10. disabled: Boolean,
  11. type: {
  12. type: String,
  13. value: 'danger'
  14. }
  15. },
  16. methods: {
  17. onClick(event) {
  18. this.$emit('click', event.detail);
  19. this.jumpLink();
  20. }
  21. }
  22. });