mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
27 lines
462 B
TypeScript
27 lines
462 B
TypeScript
import { VantComponent } from '../common/component';
|
|
|
|
VantComponent({
|
|
classes: [
|
|
'icon-class'
|
|
],
|
|
|
|
props: {
|
|
url: String,
|
|
text: String,
|
|
info: String,
|
|
icon: String,
|
|
bindClickEventName: String,
|
|
replace: {
|
|
type: Boolean,
|
|
value: false
|
|
}
|
|
},
|
|
|
|
methods: {
|
|
onClick(event: Weapp.Event) {
|
|
const { bindClickEventName } = this.data;
|
|
this.$emit('click', {...event.detail, bindClickEventName});
|
|
}
|
|
}
|
|
});
|