@hw-component/form 1.7.4 → 1.7.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
@@ -47,24 +47,24 @@
47
47
  .ant-hw-form-base-item-top .ant-form-item-label > label {
48
48
  height: auto;
49
49
  }
50
- .ant-hw-form-base-item-right .ant-hw-form-label-item {
50
+ .ant-hw-form-base-item-right > .ant-form-item-label .ant-hw-form-label-item {
51
51
  text-align: right;
52
52
  }
53
- .ant-hw-form-base-item-right .ant-form-item-label > label {
53
+ .ant-hw-form-base-item-right > .ant-form-item-label .ant-form-item-label > label {
54
54
  height: 32px;
55
55
  }
56
- .ant-hw-form-base-item-left .ant-hw-form-label-item {
56
+ .ant-hw-form-base-item-left > .ant-form-item-label .ant-hw-form-label-item {
57
57
  text-align: left;
58
58
  }
59
- .ant-hw-form-base-item-left .ant-hw-form-item-required {
59
+ .ant-hw-form-base-item-left > .ant-form-item-label .ant-hw-form-item-required {
60
60
  position: absolute;
61
61
  top: 0;
62
62
  left: -10px;
63
63
  }
64
- .ant-hw-form-base-item-left .ant-hw-form-label-item {
64
+ .ant-hw-form-base-item-left > .ant-form-item-label .ant-hw-form-label-item {
65
65
  position: relative;
66
66
  }
67
- .ant-hw-form-base-item-left .ant-form-item-label > label {
67
+ .ant-hw-form-base-item-left > .ant-form-item-label .ant-form-item-label > label {
68
68
  height: 32px;
69
69
  }
70
70
  .ant-hw-form-item-no-required {
package/lib/index.css CHANGED
@@ -47,24 +47,24 @@
47
47
  .ant-hw-form-base-item-top .ant-form-item-label > label {
48
48
  height: auto;
49
49
  }
50
- .ant-hw-form-base-item-right .ant-hw-form-label-item {
50
+ .ant-hw-form-base-item-right > .ant-form-item-label .ant-hw-form-label-item {
51
51
  text-align: right;
52
52
  }
53
- .ant-hw-form-base-item-right .ant-form-item-label > label {
53
+ .ant-hw-form-base-item-right > .ant-form-item-label .ant-form-item-label > label {
54
54
  height: 32px;
55
55
  }
56
- .ant-hw-form-base-item-left .ant-hw-form-label-item {
56
+ .ant-hw-form-base-item-left > .ant-form-item-label .ant-hw-form-label-item {
57
57
  text-align: left;
58
58
  }
59
- .ant-hw-form-base-item-left .ant-hw-form-item-required {
59
+ .ant-hw-form-base-item-left > .ant-form-item-label .ant-hw-form-item-required {
60
60
  position: absolute;
61
61
  top: 0;
62
62
  left: -10px;
63
63
  }
64
- .ant-hw-form-base-item-left .ant-hw-form-label-item {
64
+ .ant-hw-form-base-item-left > .ant-form-item-label .ant-hw-form-label-item {
65
65
  position: relative;
66
66
  }
67
- .ant-hw-form-base-item-left .ant-form-item-label > label {
67
+ .ant-hw-form-base-item-left > .ant-form-item-label .ant-form-item-label > label {
68
68
  height: 32px;
69
69
  }
70
70
  .ant-hw-form-item-no-required {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hw-component/form",
3
- "version": "1.7.4",
3
+ "version": "1.7.5",
4
4
  "description": "基于antd二次开发",
5
5
  "repository": {
6
6
  "type": "git",
@@ -39,7 +39,7 @@
39
39
  height: auto;
40
40
  }
41
41
  }
42
- .@{ant-prefix}-hw-form-base-item-right {
42
+ .@{ant-prefix}-hw-form-base-item-right>.@{ant-prefix}-form-item-label {
43
43
  .@{ant-prefix}-hw-form-label-item {
44
44
  text-align: right;
45
45
  }
@@ -48,7 +48,7 @@
48
48
  }
49
49
  }
50
50
 
51
- .@{ant-prefix}-hw-form-base-item-left {
51
+ .@{ant-prefix}-hw-form-base-item-left>.@{ant-prefix}-form-item-label {
52
52
  .@{ant-prefix}-hw-form-label-item {
53
53
  text-align: left;
54
54
  }
@@ -57,7 +57,7 @@ const formData = (options) => {
57
57
  name: "test321",
58
58
  colon:false,
59
59
  rules:[{required:true}],
60
- labelAlign:"left",
60
+ labelAlign:"right",
61
61
  itemProps: {
62
62
  options: [
63
63
  {
@@ -121,7 +121,7 @@ export default () => {
121
121
  configData={formData(options)}
122
122
  labelWidth={300}
123
123
  form={form}
124
- labelAlign={"right"}
124
+ labelAlign={"left"}
125
125
  onFinish={(value) => {
126
126
  console.log(value, "onFinish");
127
127
  }}