index.js 523 Bytes
Newer Older
李嘉林 committed
1 2
import { VantComponent } from '../common/component';
import { button } from '../mixins/button';
程默 committed
3
import { link } from '../mixins/link';
李嘉林 committed
4 5
import { openType } from '../mixins/open-type';
VantComponent({
程默 committed
6 7 8 9 10 11 12 13 14 15 16 17 18 19
  classes: ['icon-class', 'text-class'],
  mixins: [link, button, openType],
  props: {
    text: String,
    dot: Boolean,
    info: String,
    icon: String,
    disabled: Boolean,
    loading: Boolean,
  },
  methods: {
    onClick(event) {
      this.$emit('click', event.detail);
      this.jumpLink();
李嘉林 committed
20
    },
程默 committed
21
  },
李嘉林 committed
22
});