index.js 1.07 KB
"use strict";var _require=require("../common/helper"),extractComponentId=_require.extractComponentId;function resolveCancelClick(n){var e=n.componentId;console.info("[zan:actionsheet:cancel]"),this.handleZanActionsheetCancel?this.handleZanActionsheetCancel({componentId:e}):console.warn("页面缺少 handleZanActionsheetCancel 回调函数")}module.exports={_handleZanActionsheetMaskClick:function(n){var e=n.currentTarget,t=(void 0===e?{}:e).dataset||{},o=t.componentId;t.closeOnClickOverlay&&resolveCancelClick.call(this,{componentId:o})},_handleZanActionsheetCancelBtnClick:function(n){var e=extractComponentId(n);resolveCancelClick.call(this,{componentId:e})},_handleZanActionsheetBtnClick:function(n){var e=n.currentTarget,t=(void 0===e?{}:e).dataset||{},o=t.componentId,c=t.index;this.handleZanActionsheetClick?this.handleZanActionsheetClick({componentId:o,index:c}):console.warn("页面缺少 handleZanActionsheetClick 回调函数")},_handlerJumpByUrl:function(n){this.handlerJumpToUnionUrl?this.handlerJumpToUnionUrl():console.warn("页面缺少 handlerJumpToUnionUrl 回调函数")}};