antd-mini
Version:
antd-mini 是支付宝小程序 UI 组件库,遵循 Ant Design 规范。
19 lines (18 loc) • 499 B
JavaScript
import { IconDefaultProps } from './props';
import fmtEvent from '../_util/fmtEvent';
import '../_util/assert-component2';
Component({
props: IconDefaultProps,
methods: {
onTap: function (e) {
if (this.props.onTap) {
this.props.onTap(fmtEvent(this.props, e));
}
},
catchTap: function (e) {
if (this.props.catchTap) {
this.props.catchTap(fmtEvent(this.props, e));
}
},
},
});