@titaui/pc 1.9.16 → 1.9.17

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.
@@ -315,7 +315,7 @@ function CreateOkrModal(_ref, ref) {
315
315
  return total += Number(kr.krWeight);
316
316
  }); //权重未自定义过或总计为100为合法权重
317
317
 
318
- var krWeightValid = !isCustomWeight || total == 100 || krDatas.length == 0 || !openKrWeight;
318
+ var krWeightValid = !isCustomWeight || Number(total.toFixed(2)) == 100 || krDatas.length == 0 || !openKrWeight;
319
319
  var allKrHasName = krDatas.filter(function (kr) {
320
320
  return !kr.mileStoneName.trim().length;
321
321
  }).length == 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.9.16",
3
+ "version": "1.9.17",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "src/index.js",
@@ -156,7 +156,7 @@ function CreateOkrModal(
156
156
 
157
157
  //权重未自定义过或总计为100为合法权重
158
158
  const krWeightValid =
159
- !isCustomWeight || total == 100 || krDatas.length == 0 || !openKrWeight;
159
+ !isCustomWeight || Number(total.toFixed(2)) == 100 || krDatas.length == 0 || !openKrWeight;
160
160
  const allKrHasName =
161
161
  krDatas.filter((kr) => !kr.mileStoneName.trim().length).length == 0;
162
162