2023-07-03 17:08:16 +08:00

32 lines
622 B
TypeScript

import { VantComponent } from '../common/component';
import { button } from '../mixins/button';
import { link } from '../mixins/link';
VantComponent({
classes: ['icon-class', 'text-class', 'info-class'],
mixins: [link, button],
props: {
text: String,
dot: Boolean,
info: String,
icon: String,
size: String,
color: String,
classPrefix: {
type: String,
value: 'van-icon',
},
disabled: Boolean,
loading: Boolean,
},
methods: {
onClick(event: WechatMiniprogram.CustomEvent) {
this.$emit('click', event.detail);
this.jumpLink();
},
},
});