mixlea-utils-js 0.1.19 → 0.1.21
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/mixlea-utils-js.js +408 -382
- package/dist/mixlea-utils-js.umd.js +2 -2
- package/dist/types/index.d.ts +4 -0
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -468,6 +468,8 @@ export declare function findHtmlElementById(id: string, defaultValue?: HTMLEleme
|
|
|
468
468
|
|
|
469
469
|
export declare function findHtmlElementUpward(start: Element | null, callback: (element: Element) => boolean, defaultElement?: Element): Element | null;
|
|
470
470
|
|
|
471
|
+
export declare function findNodeClosest(from: HTMLElement | null | undefined, callback: (node: HTMLElement) => boolean, end: HTMLElement | null | undefined): HTMLElement | null;
|
|
472
|
+
|
|
471
473
|
/**
|
|
472
474
|
* 将扁平数组转换成树结构
|
|
473
475
|
* @param list 扁平数组
|
|
@@ -704,6 +706,8 @@ export declare function isMobileBrowser(): boolean;
|
|
|
704
706
|
|
|
705
707
|
export declare function isMoreThanZero(val: any): boolean;
|
|
706
708
|
|
|
709
|
+
export declare function isNodeContains(container: HTMLElement | null | undefined, target?: HTMLElement | null | undefined): boolean;
|
|
710
|
+
|
|
707
711
|
/**
|
|
708
712
|
* 判断数据是否不为[null, undefind], 数组不为空, 字符串不为空, 对象不为空
|
|
709
713
|
* @param input
|