@whitesev/pops 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -20,9 +20,12 @@ export interface PopsRightClickMenuDataDetails {
|
|
|
20
20
|
* @param clickEvent 点击菜单的click事件
|
|
21
21
|
* @param contextMenuEvent 触发的contextmenu事件
|
|
22
22
|
* @param liElement <li>元素
|
|
23
|
+
* @returns
|
|
24
|
+
* + true(默认) 关闭菜单
|
|
25
|
+
* + false 不关闭菜单
|
|
23
26
|
*
|
|
24
27
|
*/
|
|
25
|
-
callback?: (clickEvent: PointerEvent, contextMenuEvent: PointerEvent, liElement: HTMLLIElement) => boolean | void
|
|
28
|
+
callback?: (clickEvent: PointerEvent, contextMenuEvent: PointerEvent, liElement: HTMLLIElement) => boolean | void | Promise<boolean | void>;
|
|
26
29
|
/**
|
|
27
30
|
* 子项配置
|
|
28
31
|
*/
|