UNPKG

antd-mini

Version:

antd-mini 是支付宝小程序 UI 组件库,遵循 Ant Design 规范。

28 lines (27 loc) 655 B
import { Component, triggerCatchEvent, triggerEventOnly, } from '../../_util/simply'; Component({ props: { image: '', title: '', brief: '', arrow: false, extra: '', extraBrief: '', disabled: false, showDivider: true, }, methods: { onTap: function (e) { if (this.props.disabled) { return; } triggerEventOnly(this, 'tap', e); }, catchTap: function (e) { if (this.props.disabled) { return; } triggerCatchEvent(this, 'catchTap', e); }, }, });