UNPKG

antd-mini

Version:

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

15 lines (14 loc) 564 B
import { Component, triggerEventOnly, triggerEventValues, } from '../_util/simply'; import { ActionSheetDefaultProps } from './props'; Component(ActionSheetDefaultProps, { onAction: function (e) { var _a = e.currentTarget.dataset, item = _a.item, index = _a.index; if (item === null || item === void 0 ? void 0 : item.disabled) return; triggerEventOnly(this, 'close', e); triggerEventValues(this, 'action', [item, index], e); }, onClose: function (e) { triggerEventOnly(this, 'close', e); }, });