@hw-component/form 1.1.3 → 1.1.5

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/es/index.css CHANGED
@@ -32,12 +32,11 @@
32
32
  }
33
33
  .ant-hw-form-base-item-top-left .ant-hw-form-item-required {
34
34
  position: absolute;
35
- left: 0px;
35
+ left: -10px;
36
36
  top: 0px;
37
37
  }
38
38
  .ant-hw-form-base-item-top-left .ant-hw-form-label-item {
39
39
  position: relative;
40
- padding-left: 10px;
41
40
  }
42
41
  .ant-hw-form-base-item-top-right .ant-form-item-label > label {
43
42
  height: auto;
@@ -56,12 +55,11 @@
56
55
  }
57
56
  .ant-hw-form-base-item-left .ant-hw-form-item-required {
58
57
  position: absolute;
59
- left: 0px;
58
+ left: -10px;
60
59
  top: 0px;
61
60
  }
62
61
  .ant-hw-form-base-item-left .ant-hw-form-label-item {
63
62
  position: relative;
64
- padding-left: 10px;
65
63
  }
66
64
  .ant-hw-form-item-no-required {
67
65
  display: none;
@@ -76,8 +74,8 @@
76
74
  content: "*";
77
75
  margin-right: 4px;
78
76
  }
79
- .ant-hw-form-form-item {
80
- margin-left: -10px;
77
+ .ant-hw-form-form-item .ant-form-item-label {
78
+ overflow: visible;
81
79
  }
82
80
  .ant-hw-color-box {
83
81
  width: 22px;
package/lib/index.css CHANGED
@@ -32,12 +32,11 @@
32
32
  }
33
33
  .ant-hw-form-base-item-top-left .ant-hw-form-item-required {
34
34
  position: absolute;
35
- left: 0px;
35
+ left: -10px;
36
36
  top: 0px;
37
37
  }
38
38
  .ant-hw-form-base-item-top-left .ant-hw-form-label-item {
39
39
  position: relative;
40
- padding-left: 10px;
41
40
  }
42
41
  .ant-hw-form-base-item-top-right .ant-form-item-label > label {
43
42
  height: auto;
@@ -56,12 +55,11 @@
56
55
  }
57
56
  .ant-hw-form-base-item-left .ant-hw-form-item-required {
58
57
  position: absolute;
59
- left: 0px;
58
+ left: -10px;
60
59
  top: 0px;
61
60
  }
62
61
  .ant-hw-form-base-item-left .ant-hw-form-label-item {
63
62
  position: relative;
64
- padding-left: 10px;
65
63
  }
66
64
  .ant-hw-form-item-no-required {
67
65
  display: none;
@@ -76,8 +74,8 @@
76
74
  content: "*";
77
75
  margin-right: 4px;
78
76
  }
79
- .ant-hw-form-form-item {
80
- margin-left: -10px;
77
+ .ant-hw-form-form-item .ant-form-item-label {
78
+ overflow: visible;
81
79
  }
82
80
  .ant-hw-color-box {
83
81
  width: 22px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hw-component/form",
3
- "version": "1.1.3",
3
+ "version": "1.1.5",
4
4
  "description": "基于antd二次开发",
5
5
  "repository": {
6
6
  "type": "git",
@@ -19,12 +19,11 @@
19
19
  }
20
20
  .@{ant-prefix}-hw-form-item-required{
21
21
  position: absolute;
22
- left: 0px;
22
+ left: -10px;
23
23
  top: 0px;
24
24
  }
25
25
  .@{ant-prefix}-hw-form-label-item{
26
26
  position: relative;
27
- padding-left: 10px;
28
27
  }
29
28
  }
30
29
  .@{ant-prefix}-hw-form-base-item-top-right {
@@ -52,12 +51,11 @@
52
51
  }
53
52
  .@{ant-prefix}-hw-form-item-required{
54
53
  position: absolute;
55
- left: 0px;
54
+ left: -10px;
56
55
  top: 0px;
57
56
  }
58
57
  .@{ant-prefix}-hw-form-label-item{
59
58
  position: relative;
60
- padding-left: 10px;
61
59
  }
62
60
  }
63
61
 
@@ -75,5 +73,7 @@
75
73
  margin-right: 4px;
76
74
  }
77
75
  .@{ant-prefix}-hw-form-form-item{
78
- margin-left: -10px;
76
+ .@{ant-prefix}-form-item-label{
77
+ overflow:visible
78
+ }
79
79
  }
@@ -180,6 +180,7 @@ export default () => {
180
180
  <HModalForm
181
181
  configData={data}
182
182
  labelWidth={88}
183
+ labelAlign={"right"}
183
184
  footer={(dialogForm, loading, params = {}) => {
184
185
  const { name } = params;
185
186
  return (