@hw-component/form 1.7.3 → 1.7.4
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 +2 -2
- package/lib/index.css +2 -2
- package/package.json +1 -1
- package/src/components/Form/index.less +2 -2
- package/src/pages/Form/index.tsx +20 -0
package/es/index.css
CHANGED
|
@@ -47,13 +47,13 @@
|
|
|
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
|
|
50
|
+
.ant-hw-form-base-item-right .ant-hw-form-label-item {
|
|
51
51
|
text-align: right;
|
|
52
52
|
}
|
|
53
53
|
.ant-hw-form-base-item-right .ant-form-item-label > label {
|
|
54
54
|
height: 32px;
|
|
55
55
|
}
|
|
56
|
-
.ant-hw-form-base-item-left .ant-hw-form-item
|
|
56
|
+
.ant-hw-form-base-item-left .ant-hw-form-label-item {
|
|
57
57
|
text-align: left;
|
|
58
58
|
}
|
|
59
59
|
.ant-hw-form-base-item-left .ant-hw-form-item-required {
|
package/lib/index.css
CHANGED
|
@@ -47,13 +47,13 @@
|
|
|
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
|
|
50
|
+
.ant-hw-form-base-item-right .ant-hw-form-label-item {
|
|
51
51
|
text-align: right;
|
|
52
52
|
}
|
|
53
53
|
.ant-hw-form-base-item-right .ant-form-item-label > label {
|
|
54
54
|
height: 32px;
|
|
55
55
|
}
|
|
56
|
-
.ant-hw-form-base-item-left .ant-hw-form-item
|
|
56
|
+
.ant-hw-form-base-item-left .ant-hw-form-label-item {
|
|
57
57
|
text-align: left;
|
|
58
58
|
}
|
|
59
59
|
.ant-hw-form-base-item-left .ant-hw-form-item-required {
|
package/package.json
CHANGED
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
.@{ant-prefix}-hw-form-base-item-right {
|
|
43
|
-
.@{ant-prefix}-hw-form-item
|
|
43
|
+
.@{ant-prefix}-hw-form-label-item {
|
|
44
44
|
text-align: right;
|
|
45
45
|
}
|
|
46
46
|
.@{ant-prefix}-form-item-label > label {
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
.@{ant-prefix}-hw-form-base-item-left {
|
|
52
|
-
.@{ant-prefix}-hw-form-item
|
|
52
|
+
.@{ant-prefix}-hw-form-label-item {
|
|
53
53
|
text-align: left;
|
|
54
54
|
}
|
|
55
55
|
.@{ant-prefix}-hw-form-item-required {
|
package/src/pages/Form/index.tsx
CHANGED
|
@@ -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:()=>{
|