提交
This commit is contained in:
14
甲情_甲意/miniprogram/node_modules/antd-mini/less/ActionSheet/index.js
generated
vendored
Normal file
14
甲情_甲意/miniprogram/node_modules/antd-mini/less/ActionSheet/index.js
generated
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
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);
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user