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.
- package/dist/mixlea-utils-js.js +505 -478
- package/dist/mixlea-utils-js.umd.js +2 -2
- package/dist/types/index.d.ts +6 -0
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -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
|
/**
|