@titaui/pc 1.7.69 → 1.7.70

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.
@@ -54,7 +54,7 @@ var WeightInput = function WeightInput(props) {
54
54
  onChange({
55
55
  workId: workId,
56
56
  value: currentValue,
57
- error: error
57
+ isError: error
58
58
  });
59
59
  };
60
60
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.7.69",
3
+ "version": "1.7.70",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "src/index.js",
@@ -18,7 +18,7 @@ const WeightInput = (props: IProps) => {
18
18
  const currentValue = e.currentTarget.value;
19
19
  const error = !/^(\d{1,2}(\.\d{1})?|100)$/g.test(currentValue);
20
20
  setIsError(error);
21
- onChange({ workId, value: currentValue, error });
21
+ onChange({ workId, value: currentValue, isError: error });
22
22
  };
23
23
 
24
24
  const onBlurHandler = (e) => {