neverland 853b28e048
[improvement] GoodsAction: add disabled and loading props (#790)
[improvement] GoodsAction: add disabled and loading props
2018-10-19 14:15:59 +08:00

24 lines
393 B
TypeScript

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(event: Weapp.Event) {
this.$emit('click', event.detail);
this.jumpLink();
}
}
});