jiaqingjiayi-xiaochengxu/甲情_甲意/miniprogram/node_modules/antd-mini/less/Icon/index.js
2024-11-10 15:01:22 +08:00

20 lines
628 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var props_1 = require("./props");
var fmtEvent_1 = tslib_1.__importDefault(require("../_util/fmtEvent"));
Component({
props: props_1.IconDefaultProps,
methods: {
onTap: function (e) {
if (this.props.onTap) {
this.props.onTap((0, fmtEvent_1.default)(this.props, e));
}
},
catchTap: function (e) {
if (this.props.catchTap) {
this.props.catchTap((0, fmtEvent_1.default)(this.props, e));
}
},
},
});