@hw-component/form 1.7.3 → 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-item-colon {
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-item-colon {
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-item-colon {
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-item-colon {
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.3",
3
+ "version": "1.7.5",
4
4
  "description": "基于antd二次开发",
5
5
  "repository": {
6
6
  "type": "git",
@@ -39,8 +39,8 @@
39
39
  height: auto;
40
40
  }
41
41
  }
42
- .@{ant-prefix}-hw-form-base-item-right {
43
- .@{ant-prefix}-hw-form-item-colon {
42
+ .@{ant-prefix}-hw-form-base-item-right>.@{ant-prefix}-form-item-label {
43
+ .@{ant-prefix}-hw-form-label-item {
44
44
  text-align: right;
45
45
  }
46
46
  .@{ant-prefix}-form-item-label > label {
@@ -48,8 +48,8 @@
48
48
  }
49
49
  }
50
50
 
51
- .@{ant-prefix}-hw-form-base-item-left {
52
- .@{ant-prefix}-hw-form-item-colon {
51
+ .@{ant-prefix}-hw-form-base-item-left>.@{ant-prefix}-form-item-label {
52
+ .@{ant-prefix}-hw-form-label-item {
53
53
  text-align: left;
54
54
  }
55
55
  .@{ant-prefix}-hw-form-item-required {
@@ -26,6 +26,26 @@ const Test3 = ({ value, onChange }) => {
26
26
  };
27
27
  const formData = (options) => {
28
28
  return [
29
+ {
30
+ label: "下拉123",
31
+ className: "xiala",
32
+ type: "select",
33
+ name: "name1",
34
+ rules:[{required:true}],
35
+ itemProps: {
36
+ options: [
37
+ {
38
+ value: "选项1",
39
+ key: 1,
40
+ },
41
+ {
42
+ value: "选项2",
43
+ key: 2,
44
+ },
45
+ ],
46
+ showSearch: true,
47
+ },
48
+ },
29
49
  {
30
50
  noStyle:true,
31
51
  render:()=>{
@@ -37,7 +57,7 @@ const formData = (options) => {
37
57
  name: "test321",
38
58
  colon:false,
39
59
  rules:[{required:true}],
40
- labelAlign:"left",
60
+ labelAlign:"right",
41
61
  itemProps: {
42
62
  options: [
43
63
  {
@@ -101,7 +121,7 @@ export default () => {
101
121
  configData={formData(options)}
102
122
  labelWidth={300}
103
123
  form={form}
104
- labelAlign={"right"}
124
+ labelAlign={"left"}
105
125
  onFinish={(value) => {
106
126
  console.log(value, "onFinish");
107
127
  }}