mixlea-utils-js 0.1.18 → 0.1.20

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.
@@ -704,6 +704,8 @@ export declare function isMobileBrowser(): boolean;
704
704
 
705
705
  export declare function isMoreThanZero(val: any): boolean;
706
706
 
707
+ export declare function isNodeContains(container: HTMLElement | null | undefined, target?: HTMLElement | null | undefined): boolean;
708
+
707
709
  /**
708
710
  * 判断数据是否不为[null, undefind], 数组不为空, 字符串不为空, 对象不为空
709
711
  * @param input
@@ -902,6 +904,8 @@ export declare function multiplyBy(val: Record<string, any>, fields: string[], o
902
904
 
903
905
  declare type NextFunction<T> = (state: T) => T;
904
906
 
907
+ export declare function nodeClosest(from: HTMLElement | null | undefined, callback: (node: HTMLElement) => boolean, end: HTMLElement | null | undefined): HTMLElement | null;
908
+
905
909
  declare type NotVoidLike = object | Map<any, any> | Set<any> | string | number | boolean;
906
910
 
907
911
  declare type NotVoidLike_2 = object | Map<any, any> | Set<any> | string | number | boolean;
@@ -928,6 +932,7 @@ export declare function numberFormateThousandth(value: any): string;
928
932
  * @param allowRound 四舍五入, 默认 true
929
933
  * @param precision 小数位, 默认 2
930
934
  * @param precisionPad 小数位填充, 默认 true
935
+ * @param multiply 小数位填充, 默认 1
931
936
  */
932
937
  export declare function numberFormatter<T = unknown>(value: T, options?: {
933
938
  allowDecimal?: boolean;
@@ -936,6 +941,7 @@ export declare function numberFormatter<T = unknown>(value: T, options?: {
936
941
  allowRound?: boolean;
937
942
  precision?: number;
938
943
  precisionPad?: boolean;
944
+ multiply?: number;
939
945
  }): string;
940
946
 
941
947
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mixlea-utils-js",
3
3
  "type": "module",
4
- "version": "0.1.18",
4
+ "version": "0.1.20",
5
5
  "private": false,
6
6
  "license": "Apache-2.0",
7
7
  "exports": {