antd-mini
Version:
antd-mini 是支付宝小程序 UI 组件库,遵循 Ant Design 规范。
25 lines (24 loc) • 538 B
JavaScript
import { Component, triggerEventOnly, triggerCatchEvent, } from '../../_util/simply';
Component({
image: '',
title: '',
brief: '',
arrow: false,
extra: '',
extraBrief: '',
disabled: false,
showDivider: true,
}, {
onTap: function (e) {
if (this.props.disabled) {
return;
}
triggerEventOnly(this, 'tap', e);
},
catchTap: function (e) {
if (this.props.disabled) {
return;
}
triggerCatchEvent(this, 'catchTap', e);
},
});