6 lines
356 B
TypeScript
6 lines
356 B
TypeScript
/**
|
|
* Close if click on the window.
|
|
* Return the function that click on the Popup element.
|
|
*/
|
|
export default function useWinClick(open: boolean, clickToHide: boolean, targetEle: HTMLElement, popupEle: HTMLElement, mask: boolean, maskClosable: boolean, inPopupOrChild: (target: EventTarget) => boolean, triggerOpen: (open: boolean) => void): () => void;
|