mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-05 10:22:44 +08:00
27 lines
562 B
TypeScript
27 lines
562 B
TypeScript
import { VantComponent } from '../common/component';
|
|
import { link } from '../mixins/link';
|
|
import { button } from '../mixins/button';
|
|
import { openType } from '../mixins/open-type';
|
|
import { Weapp } from 'definitions/weapp';
|
|
|
|
VantComponent({
|
|
classes: ['icon-class', 'text-class'],
|
|
|
|
mixins: [link, button, openType],
|
|
|
|
props: {
|
|
text: String,
|
|
info: String,
|
|
icon: String,
|
|
disabled: Boolean,
|
|
loading: Boolean
|
|
},
|
|
|
|
methods: {
|
|
onClick(event: Weapp.Event) {
|
|
this.$emit('click', event.detail);
|
|
this.jumpLink();
|
|
}
|
|
}
|
|
});
|