UNPKG

antd-mini

Version:

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

34 lines (32 loc) 590 B
import { Component, triggerCatchEvent, triggerEventOnly, } from '../../_util/simply'; import { IListItemProps } from './props'; Component<IListItemProps>({ props: { image: '', title: '', brief: '', arrow: false, extra: '', extraBrief: '', disabled: false, showDivider: true, }, methods: { onTap(e) { if (this.props.disabled) { return; } triggerEventOnly(this, 'tap', e); }, catchTap(e) { if (this.props.disabled) { return; } triggerCatchEvent(this, 'catchTap', e); }, }, });