2018-10-19 19:29:03 +08:00

20 lines
394 B
JavaScript

import { link } from '../mixins/link';
import { VantComponent } from '../common/component';
VantComponent({
mixins: [link],
props: {
text: String,
loading: Boolean,
disabled: Boolean,
type: {
type: String,
value: 'danger'
}
},
methods: {
onClick: function onClick(event) {
this.$emit('click', event.detail);
this.jumpLink();
}
}
});