1
This commit is contained in:
15
admin/node_modules/element-plus/es/utils/dom/event.mjs
generated
vendored
Normal file
15
admin/node_modules/element-plus/es/utils/dom/event.mjs
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
const composeEventHandlers = (theirsHandler, oursHandler, { checkForDefaultPrevented = true } = {}) => {
|
||||
const handleEvent = (event) => {
|
||||
const shouldPrevent = theirsHandler == null ? void 0 : theirsHandler(event);
|
||||
if (checkForDefaultPrevented === false || !shouldPrevent) {
|
||||
return oursHandler == null ? void 0 : oursHandler(event);
|
||||
}
|
||||
};
|
||||
return handleEvent;
|
||||
};
|
||||
const whenMouse = (handler) => {
|
||||
return (e) => e.pointerType === "mouse" ? handler(e) : void 0;
|
||||
};
|
||||
|
||||
export { composeEventHandlers, whenMouse };
|
||||
//# sourceMappingURL=event.mjs.map
|
||||
Reference in New Issue
Block a user