mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
21 lines
337 B
TypeScript
21 lines
337 B
TypeScript
import { VantComponent } from '../common/component';
|
|
|
|
VantComponent({
|
|
classes: [
|
|
'icon-class'
|
|
],
|
|
|
|
props: {
|
|
btnList: Array
|
|
},
|
|
|
|
methods: {
|
|
onClick(event: Weapp.Event) {
|
|
const { bindClickEventName } = event.detail;
|
|
if (bindClickEventName) {
|
|
this.$emit('click', event.detail);
|
|
}
|
|
}
|
|
}
|
|
});
|