@hw-component/form 1.7.4 → 1.7.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/es/Form/FormItem/BasicItem.js +0 -1
- package/es/Form/FormItem/RegularFormItem.js +0 -1
- package/es/TDPicker/hooks.js +0 -1
- package/es/index.css +6 -6
- package/lib/Form/FormItem/BasicItem.js +0 -1
- package/lib/Form/FormItem/RegularFormItem.js +0 -1
- package/lib/TDPicker/hooks.js +0 -1
- package/lib/index.css +6 -6
- package/package.json +1 -1
- package/src/components/Form/FormItem/BasicItem.tsx +0 -1
- package/src/components/Form/FormItem/RegularFormItem.tsx +0 -1
- package/src/components/Form/index.less +2 -2
- package/src/components/TDPicker/hooks.ts +0 -1
- package/src/pages/Form/index.tsx +2 -2
|
@@ -96,7 +96,6 @@ var Index = function Index(props) {
|
|
|
96
96
|
if (hideItem) {
|
|
97
97
|
return null;
|
|
98
98
|
}
|
|
99
|
-
console.log(colon, align, "lllll", className);
|
|
100
99
|
return jsx(Col, _objectSpread(_objectSpread({}, itemSpan), {}, {
|
|
101
100
|
className: "".concat(colClassName, " ").concat(itemClassName),
|
|
102
101
|
children: jsx(Form.Item, _objectSpread(_objectSpread({
|
|
@@ -16,7 +16,6 @@ var RegularFormItem = (function (props) {
|
|
|
16
16
|
var type = props.type,
|
|
17
17
|
colon = props.colon,
|
|
18
18
|
itemSpan = props.itemSpan;
|
|
19
|
-
console.log(props, "....pppp");
|
|
20
19
|
return jsx(Index, _objectSpread(_objectSpread({}, props), {}, {
|
|
21
20
|
itemSpan: itemSpan,
|
|
22
21
|
colon: type === "submit" ? false : colon
|
package/es/TDPicker/hooks.js
CHANGED
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 {
|
|
@@ -99,7 +99,6 @@ var Index = function Index(props) {
|
|
|
99
99
|
if (hideItem) {
|
|
100
100
|
return null;
|
|
101
101
|
}
|
|
102
|
-
console.log(colon, align, "lllll", className);
|
|
103
102
|
return jsxRuntime.jsx(antd.Col, _objectSpread(_objectSpread({}, itemSpan), {}, {
|
|
104
103
|
className: "".concat(colClassName, " ").concat(itemClassName),
|
|
105
104
|
children: jsxRuntime.jsx(antd.Form.Item, _objectSpread(_objectSpread({
|
|
@@ -19,7 +19,6 @@ var RegularFormItem = (function (props) {
|
|
|
19
19
|
var type = props.type,
|
|
20
20
|
colon = props.colon,
|
|
21
21
|
itemSpan = props.itemSpan;
|
|
22
|
-
console.log(props, "....pppp");
|
|
23
22
|
return jsxRuntime.jsx(BasicItem.default, _objectSpread(_objectSpread({}, props), {}, {
|
|
24
23
|
itemSpan: itemSpan,
|
|
25
24
|
colon: type === "submit" ? false : colon
|
package/lib/TDPicker/hooks.js
CHANGED
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
|
@@ -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
|
}
|
|
@@ -151,7 +151,6 @@ export const useRangePickerTimeVal = ({
|
|
|
151
151
|
if (!Array.isArray(value)) {
|
|
152
152
|
const { start, end } = valueMap;
|
|
153
153
|
if (!start || !end) {
|
|
154
|
-
console.error("日期value格式错误!");
|
|
155
154
|
return;
|
|
156
155
|
}
|
|
157
156
|
const { [start as string]: startTime, [end as string]: endTime } = value;
|
package/src/pages/Form/index.tsx
CHANGED
|
@@ -57,7 +57,7 @@ const formData = (options) => {
|
|
|
57
57
|
name: "test321",
|
|
58
58
|
colon:false,
|
|
59
59
|
rules:[{required:true}],
|
|
60
|
-
labelAlign:"
|
|
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={"
|
|
124
|
+
labelAlign={"left"}
|
|
125
125
|
onFinish={(value) => {
|
|
126
126
|
console.log(value, "onFinish");
|
|
127
127
|
}}
|