@zat-design/sisyphus-react 3.4.8-beta.7 → 3.4.8-beta.8
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/dist/index.esm.css +4 -0
- package/dist/less.esm.css +4 -0
- package/es/ProForm/components/combination/ProNumberRange/style/index.less +6 -1
- package/es/ProForm/utils/useForm.js +6 -14
- package/lib/ProForm/components/combination/ProNumberRange/style/index.less +6 -1
- package/lib/ProForm/utils/useForm.js +6 -14
- package/package.json +1 -1
package/dist/index.esm.css
CHANGED
|
@@ -2255,7 +2255,11 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
|
2255
2255
|
.pro-number-range .range-split.ant-input[disabled] {
|
|
2256
2256
|
background: #fff !important;
|
|
2257
2257
|
}
|
|
2258
|
+
.pro-number-range .ant-input-number-status-error:not(.ant-input-number-disabled):not( .ant-input-number-borderless).ant-input-number {
|
|
2259
|
+
border-color: var(--zaui-danger, #ff5050) !important;
|
|
2260
|
+
}
|
|
2258
2261
|
.pro-number-range .ant-input-status-error.range-split {
|
|
2262
|
+
color: var(--zaui-danger, #ff5050) !important;
|
|
2259
2263
|
border-color: var(--zaui-danger, #ff5050);
|
|
2260
2264
|
}
|
|
2261
2265
|
.pro-number-range .ant-input-rtl.range-right {
|
package/dist/less.esm.css
CHANGED
|
@@ -2255,7 +2255,11 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
|
2255
2255
|
.pro-number-range .range-split.ant-input[disabled] {
|
|
2256
2256
|
background: #fff !important;
|
|
2257
2257
|
}
|
|
2258
|
+
.pro-number-range .ant-input-number-status-error:not(.ant-input-number-disabled):not( .ant-input-number-borderless).ant-input-number {
|
|
2259
|
+
border-color: var(--zaui-danger, #ff5050) !important;
|
|
2260
|
+
}
|
|
2258
2261
|
.pro-number-range .ant-input-status-error.range-split {
|
|
2262
|
+
color: var(--zaui-danger, #ff5050) !important;
|
|
2259
2263
|
border-color: var(--zaui-danger, #ff5050);
|
|
2260
2264
|
}
|
|
2261
2265
|
.pro-number-range .ant-input-rtl.range-right {
|
|
@@ -13,9 +13,14 @@
|
|
|
13
13
|
background: #fff !important;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
|
|
16
|
+
.@{ant-prefix}-input-number-status-error:not(.@{ant-prefix}-input-number-disabled):not(
|
|
17
|
+
.@{ant-prefix}-input-number-borderless
|
|
18
|
+
).@{ant-prefix}-input-number {
|
|
19
|
+
border-color: @zaui-danger !important;
|
|
20
|
+
}
|
|
17
21
|
.@{ant-prefix}-input-status-error {
|
|
18
22
|
&.range-split {
|
|
23
|
+
color: @zaui-danger !important;
|
|
19
24
|
border-color: @zaui-danger;
|
|
20
25
|
}
|
|
21
26
|
}
|
|
@@ -30,8 +30,6 @@ export var useForm = function useForm(originForm) {
|
|
|
30
30
|
_form$getInternalHook,
|
|
31
31
|
getFields,
|
|
32
32
|
fieldsList,
|
|
33
|
-
values,
|
|
34
|
-
_values,
|
|
35
33
|
_error$errorFields,
|
|
36
34
|
_error$errorFields$,
|
|
37
35
|
_args = arguments;
|
|
@@ -64,17 +62,11 @@ export var useForm = function useForm(originForm) {
|
|
|
64
62
|
return filterInternalFields(values);
|
|
65
63
|
}));
|
|
66
64
|
case 10:
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
break;
|
|
71
|
-
}
|
|
72
|
-
return _context.abrupt("return", values);
|
|
65
|
+
return _context.abrupt("return", validateFields.apply(void 0, [nameList].concat(rest)).then(function (values) {
|
|
66
|
+
return nameList ? values : _getFieldsValue();
|
|
67
|
+
}));
|
|
73
68
|
case 13:
|
|
74
|
-
|
|
75
|
-
return _context.abrupt("return", _values);
|
|
76
|
-
case 17:
|
|
77
|
-
_context.prev = 17;
|
|
69
|
+
_context.prev = 13;
|
|
78
70
|
_context.t0 = _context["catch"](0);
|
|
79
71
|
if (_context.t0 && (_context.t0 === null || _context.t0 === void 0 ? void 0 : _context.t0.errorFields)) {
|
|
80
72
|
form === null || form === void 0 ? void 0 : form.scrollToField(_context.t0 === null || _context.t0 === void 0 ? void 0 : (_error$errorFields = _context.t0.errorFields) === null || _error$errorFields === void 0 ? void 0 : (_error$errorFields$ = _error$errorFields[0]) === null || _error$errorFields$ === void 0 ? void 0 : _error$errorFields$.name, {
|
|
@@ -83,11 +75,11 @@ export var useForm = function useForm(originForm) {
|
|
|
83
75
|
});
|
|
84
76
|
}
|
|
85
77
|
throw _context.t0;
|
|
86
|
-
case
|
|
78
|
+
case 17:
|
|
87
79
|
case "end":
|
|
88
80
|
return _context.stop();
|
|
89
81
|
}
|
|
90
|
-
}, _callee, null, [[0,
|
|
82
|
+
}, _callee, null, [[0, 13]]);
|
|
91
83
|
}));
|
|
92
84
|
return function _validateFields(_x) {
|
|
93
85
|
return _ref.apply(this, arguments);
|
|
@@ -13,9 +13,14 @@
|
|
|
13
13
|
background: #fff !important;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
|
|
16
|
+
.@{ant-prefix}-input-number-status-error:not(.@{ant-prefix}-input-number-disabled):not(
|
|
17
|
+
.@{ant-prefix}-input-number-borderless
|
|
18
|
+
).@{ant-prefix}-input-number {
|
|
19
|
+
border-color: @zaui-danger !important;
|
|
20
|
+
}
|
|
17
21
|
.@{ant-prefix}-input-status-error {
|
|
18
22
|
&.range-split {
|
|
23
|
+
color: @zaui-danger !important;
|
|
19
24
|
border-color: @zaui-danger;
|
|
20
25
|
}
|
|
21
26
|
}
|
|
@@ -36,8 +36,6 @@ var useForm = exports.useForm = function useForm(originForm) {
|
|
|
36
36
|
_form$getInternalHook,
|
|
37
37
|
getFields,
|
|
38
38
|
fieldsList,
|
|
39
|
-
values,
|
|
40
|
-
_values,
|
|
41
39
|
_error$errorFields,
|
|
42
40
|
_error$errorFields$,
|
|
43
41
|
_args = arguments;
|
|
@@ -70,17 +68,11 @@ var useForm = exports.useForm = function useForm(originForm) {
|
|
|
70
68
|
return (0, _index.filterInternalFields)(values);
|
|
71
69
|
}));
|
|
72
70
|
case 10:
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
break;
|
|
77
|
-
}
|
|
78
|
-
return _context.abrupt("return", values);
|
|
71
|
+
return _context.abrupt("return", validateFields.apply(void 0, [nameList].concat(rest)).then(function (values) {
|
|
72
|
+
return nameList ? values : _getFieldsValue();
|
|
73
|
+
}));
|
|
79
74
|
case 13:
|
|
80
|
-
|
|
81
|
-
return _context.abrupt("return", _values);
|
|
82
|
-
case 17:
|
|
83
|
-
_context.prev = 17;
|
|
75
|
+
_context.prev = 13;
|
|
84
76
|
_context.t0 = _context["catch"](0);
|
|
85
77
|
if (_context.t0 && (_context.t0 === null || _context.t0 === void 0 ? void 0 : _context.t0.errorFields)) {
|
|
86
78
|
form === null || form === void 0 ? void 0 : form.scrollToField(_context.t0 === null || _context.t0 === void 0 ? void 0 : (_error$errorFields = _context.t0.errorFields) === null || _error$errorFields === void 0 ? void 0 : (_error$errorFields$ = _error$errorFields[0]) === null || _error$errorFields$ === void 0 ? void 0 : _error$errorFields$.name, {
|
|
@@ -89,11 +81,11 @@ var useForm = exports.useForm = function useForm(originForm) {
|
|
|
89
81
|
});
|
|
90
82
|
}
|
|
91
83
|
throw _context.t0;
|
|
92
|
-
case
|
|
84
|
+
case 17:
|
|
93
85
|
case "end":
|
|
94
86
|
return _context.stop();
|
|
95
87
|
}
|
|
96
|
-
}, _callee, null, [[0,
|
|
88
|
+
}, _callee, null, [[0, 13]]);
|
|
97
89
|
}));
|
|
98
90
|
return function _validateFields(_x) {
|
|
99
91
|
return _ref.apply(this, arguments);
|