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.
@@ -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
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mixlea-utils-js",
3
3
  "type": "module",
4
- "version": "0.1.19",
4
+ "version": "0.1.21",
5
5
  "private": false,
6
6
  "license": "Apache-2.0",
7
7
  "exports": {