nhanh-pure-function 3.0.6-beta.14 → 3.0.6-beta.15
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.
- package/dist/Element/index.d.ts +2 -2
- package/dist/index.cjs.js +2 -2
- package/dist/index.es.js +101 -97
- package/package.json +1 -1
package/dist/Element/index.d.ts
CHANGED
|
@@ -58,7 +58,7 @@ export declare function _Element_IsFullscreen(element?: HTMLElement | string): b
|
|
|
58
58
|
* @param {HTMLElement} content - 需要进入全屏的元素
|
|
59
59
|
* 该函数通过检查不同浏览器的特定方法来实现全屏切换
|
|
60
60
|
*/
|
|
61
|
-
export declare function _Element_Fullscreen(element?: HTMLElement | string): () => void;
|
|
61
|
+
export declare function _Element_Fullscreen(element?: HTMLElement | string): (() => void) | undefined;
|
|
62
62
|
/**
|
|
63
63
|
* 元素全屏状态观察器
|
|
64
64
|
* 监听元素的全屏状态变化,并通过回调函数通知状态改变
|
|
@@ -66,7 +66,7 @@ export declare function _Element_Fullscreen(element?: HTMLElement | string): ()
|
|
|
66
66
|
* @param selectors - 要观察的元素或元素选择器,默认为document.documentElement
|
|
67
67
|
* @returns 返回一个清理函数,调用后可移除所有事件监听器
|
|
68
68
|
*/
|
|
69
|
-
export declare function _Element_FullscreenObserver(notify: (isFull: boolean) => void, selectors?: HTMLElement | string): () => void;
|
|
69
|
+
export declare function _Element_FullscreenObserver(notify: (isFull: boolean) => void, selectors?: HTMLElement | string): (() => void) | undefined;
|
|
70
70
|
/**
|
|
71
71
|
* 单位转换 12** -> **px
|
|
72
72
|
* @param {string} width
|