iv-npm 1.7.22 → 1.7.24
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/package.json +1 -1
- package/packages/shared/dist/utils/index.d.ts +1 -1
- package/packages/shared/dist/utils/index.mjs +1 -1
- package/packages/ui/dist/index.cjs.js +1 -1
- package/packages/ui/dist/index.cjs.js.map +1 -1
- package/packages/ui/dist/index.esm.js +1 -1
- package/packages/ui/dist/index.esm.js.map +1 -1
- package/packages/ui/dist/index.umd.js +1 -1
- package/packages/ui/dist/index.umd.js.map +1 -1
- package/packages/ui/dist/shared/utils/arr/digitalComp.d.ts +1 -1
- package/packages/ui/dist/ui/src/business-ui/component/IVMeterageSelector.d.ts +2 -2
package/package.json
CHANGED
|
@@ -37,7 +37,7 @@ declare const arraySum: (arr: number[]) => number;
|
|
|
37
37
|
* @param {object[]} object[]
|
|
38
38
|
* @return {Number}
|
|
39
39
|
*/
|
|
40
|
-
declare const arraySumByKey: (arr: any[], key: string) =>
|
|
40
|
+
declare const arraySumByKey: (arr: any[], key: string) => number;
|
|
41
41
|
/**
|
|
42
42
|
* @description 对比两个数组某个字段之和是否相同
|
|
43
43
|
* @param {object[]} object1[]
|
|
@@ -71,7 +71,7 @@ var arraySumByKey = (arr, key) => {
|
|
|
71
71
|
if (len === 1) {
|
|
72
72
|
if (!isKeyInObject(arr[0], key))
|
|
73
73
|
throw new Error(`could not find it '${key}' in arraySumByKey function`);
|
|
74
|
-
return arr[0][key] ?? 0;
|
|
74
|
+
return Number(arr[0][key]) ?? 0;
|
|
75
75
|
}
|
|
76
76
|
const tempArr = [];
|
|
77
77
|
arr.forEach((_e) => {
|