@hi-ui/form 4.1.4 → 4.1.6

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/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # @hi-ui/form
2
2
 
3
+ ## 4.1.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [#2761](https://github.com/XiaoMi/hiui/pull/2761) [`7fc7e2c1a`](https://github.com/XiaoMi/hiui/commit/7fc7e2c1a8c0daa6df77bf01864c262a14df3cc6) Thanks [@zyprepare](https://github.com/zyprepare)! - fix: 修复横向表单错误提示样式问题
8
+
9
+ ## 4.1.5
10
+
11
+ ### Patch Changes
12
+
13
+ - build: rollup2 构建
14
+ - Updated dependencies
15
+ - @hi-ui/core@4.0.8
16
+ - @hi-ui/use-latest@4.0.4
17
+ - @hi-ui/button@4.0.9
18
+ - @hi-ui/array-utils@4.0.4
19
+ - @hi-ui/classname@4.0.4
20
+ - @hi-ui/dom-utils@4.0.7
21
+ - @hi-ui/env@4.0.4
22
+ - @hi-ui/func-utils@4.0.4
23
+ - @hi-ui/object-utils@4.0.4
24
+ - @hi-ui/type-assertion@4.0.4
25
+
3
26
  ## 4.1.4
4
27
 
5
28
  ### Patch Changes
@@ -63,7 +63,7 @@ var FormLabel = /*#__PURE__*/React.forwardRef(function (props, ref) {
63
63
  var labelWidth = typeAssertion.isNumeric(labelWidthProp) ? Number(labelWidthProp) : labelWidthProp;
64
64
  return {
65
65
  labelWidth: labelWidth,
66
- controlWidth: "calc(100% - " + labelWidth + "px)"
66
+ controlWidth: typeAssertion.isNumeric(labelWidth) ? "calc(100% - " + labelWidth + "px)" : "calc(100% - " + labelWidth + ")"
67
67
  };
68
68
  }, [labelPlacement, labelWidthProp]),
69
69
  labelWidth = _useMemo.labelWidth,
@@ -51,7 +51,7 @@ var FormLabel = /*#__PURE__*/forwardRef(function (props, ref) {
51
51
  var labelWidth = isNumeric(labelWidthProp) ? Number(labelWidthProp) : labelWidthProp;
52
52
  return {
53
53
  labelWidth: labelWidth,
54
- controlWidth: "calc(100% - " + labelWidth + "px)"
54
+ controlWidth: isNumeric(labelWidth) ? "calc(100% - " + labelWidth + "px)" : "calc(100% - " + labelWidth + ")"
55
55
  };
56
56
  }, [labelPlacement, labelWidthProp]),
57
57
  labelWidth = _useMemo.labelWidth,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hi-ui/form",
3
- "version": "4.1.4",
3
+ "version": "4.1.6",
4
4
  "description": "A sub-package for @hi-ui/hiui.",
5
5
  "keywords": [],
6
6
  "author": "HiUI <mi-hiui@xiaomi.com>",
@@ -43,25 +43,25 @@
43
43
  "url": "https://github.com/XiaoMi/hiui/issues"
44
44
  },
45
45
  "dependencies": {
46
- "@hi-ui/array-utils": "^4.0.3",
47
- "@hi-ui/button": "^4.0.8",
48
- "@hi-ui/classname": "^4.0.3",
49
- "@hi-ui/dom-utils": "^4.0.6",
50
- "@hi-ui/env": "^4.0.3",
51
- "@hi-ui/func-utils": "^4.0.3",
52
- "@hi-ui/object-utils": "^4.0.3",
53
- "@hi-ui/type-assertion": "^4.0.3",
54
- "@hi-ui/use-latest": "^4.0.3",
46
+ "@hi-ui/array-utils": "^4.0.4",
47
+ "@hi-ui/button": "^4.0.9",
48
+ "@hi-ui/classname": "^4.0.4",
49
+ "@hi-ui/dom-utils": "^4.0.7",
50
+ "@hi-ui/env": "^4.0.4",
51
+ "@hi-ui/func-utils": "^4.0.4",
52
+ "@hi-ui/object-utils": "^4.0.4",
53
+ "@hi-ui/type-assertion": "^4.0.4",
54
+ "@hi-ui/use-latest": "^4.0.4",
55
55
  "async-validator": "^4.0.7"
56
56
  },
57
57
  "peerDependencies": {
58
- "@hi-ui/core": ">=4.0.7",
58
+ "@hi-ui/core": ">=4.0.8",
59
59
  "react": ">=16.8.6",
60
60
  "react-dom": ">=16.8.6"
61
61
  },
62
62
  "devDependencies": {
63
- "@hi-ui/core": "^4.0.7",
64
- "@hi-ui/core-css": "^4.1.4",
63
+ "@hi-ui/core": "^4.0.8",
64
+ "@hi-ui/core-css": "^4.1.5",
65
65
  "react": "^17.0.1",
66
66
  "react-dom": "^17.0.1"
67
67
  }