iglooform 2.4.12 → 2.4.13
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/tabs/style/index.less +1 -1
- package/es/types.d.ts +1 -0
- package/es/utils/form-utils.d.ts +1 -0
- package/es/utils/form-utils.js +4 -2
- package/lib/tabs/style/index.less +1 -1
- package/lib/types.d.ts +1 -0
- package/lib/utils/form-utils.d.ts +1 -0
- package/lib/utils/form-utils.js +4 -2
- package/package.json +1 -1
package/es/tabs/style/index.less
CHANGED
|
@@ -79,6 +79,7 @@
|
|
|
79
79
|
transition: 0s !important;
|
|
80
80
|
border-radius: 0px !important;
|
|
81
81
|
border: 1px solid #eeeeee !important;
|
|
82
|
+
font-weight: 500;
|
|
82
83
|
&:hover {
|
|
83
84
|
color: @primary-color;
|
|
84
85
|
}
|
|
@@ -86,7 +87,6 @@
|
|
|
86
87
|
.ant-tabs-tab-active {
|
|
87
88
|
border: 0px !important;
|
|
88
89
|
background-color: white !important;
|
|
89
|
-
font-weight: 500;
|
|
90
90
|
&::after {
|
|
91
91
|
position: absolute;
|
|
92
92
|
width: 100%;
|
package/es/types.d.ts
CHANGED
|
@@ -54,6 +54,7 @@ export interface FormItemExtraConfig extends FormItemProps {
|
|
|
54
54
|
phoneNumber?: number | string;
|
|
55
55
|
mergeRules?: boolean;
|
|
56
56
|
dependencies?: NamePath[];
|
|
57
|
+
antdDependencies?: NamePath[];
|
|
57
58
|
asserts?: FormItemAssert[];
|
|
58
59
|
shouldRender?: (form?: FormInstance) => boolean;
|
|
59
60
|
ignore?: boolean;
|
package/es/utils/form-utils.d.ts
CHANGED
package/es/utils/form-utils.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["type", "name", "required", "requiredAsserts", "showOptional", "rules", "initialValue", "normalize", "mergeRules", "getValueFromEvent", "getValueProps", "extra", "help", "label", "previewLabel", "extraLabel", "copyValue", "selectValue", "span", "halfRow", "fullRow", "valuePropName", "dependencies", "asserts", "messageVariables", "requiredMessage", "previewFormater", "disabled", "ignore", "shouldRender", "valueFormater"],
|
|
1
|
+
var _excluded = ["type", "name", "required", "requiredAsserts", "showOptional", "rules", "initialValue", "normalize", "mergeRules", "getValueFromEvent", "getValueProps", "extra", "help", "label", "previewLabel", "extraLabel", "copyValue", "selectValue", "span", "halfRow", "fullRow", "valuePropName", "dependencies", "asserts", "messageVariables", "requiredMessage", "previewFormater", "disabled", "ignore", "shouldRender", "valueFormater", "antdDependencies"],
|
|
2
2
|
_excluded2 = ["initialValue", "normalize", "rules", "extra", "help", "getValueFromEvent", "span", "valuePropName", "fullRow", "halfRow", "messageVariables", "requiredMessage", "previewFormater", "valueFormater", "required", "requiredMark", "className"];
|
|
3
3
|
|
|
4
4
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
@@ -150,6 +150,7 @@ export var calcFormItemProps = function calcFormItemProps(config, extraProps, fo
|
|
|
150
150
|
ignore = config.ignore,
|
|
151
151
|
shouldRender = config.shouldRender,
|
|
152
152
|
valueFormater = config.valueFormater,
|
|
153
|
+
antdDependencies = config.antdDependencies,
|
|
153
154
|
rest = _objectWithoutProperties(config, _excluded);
|
|
154
155
|
|
|
155
156
|
invariant(nameProp || type === 'Divider' || type === 'Section' || !type, "name property is required for form item config (type: ".concat(type, ")"));
|
|
@@ -257,7 +258,8 @@ export var calcFormItemProps = function calcFormItemProps(config, extraProps, fo
|
|
|
257
258
|
valuePropName: valuePropName || extraValuePropName,
|
|
258
259
|
messageVariables: _objectSpread({
|
|
259
260
|
label: label
|
|
260
|
-
}, messageVariables || extraMessageVariables)
|
|
261
|
+
}, messageVariables || extraMessageVariables),
|
|
262
|
+
dependencies: antdDependencies
|
|
261
263
|
},
|
|
262
264
|
elementProps: elementProps,
|
|
263
265
|
display: !ignore && calcShouldRender(dependencies, asserts, shouldRender, form),
|
|
@@ -79,6 +79,7 @@
|
|
|
79
79
|
transition: 0s !important;
|
|
80
80
|
border-radius: 0px !important;
|
|
81
81
|
border: 1px solid #eeeeee !important;
|
|
82
|
+
font-weight: 500;
|
|
82
83
|
&:hover {
|
|
83
84
|
color: @primary-color;
|
|
84
85
|
}
|
|
@@ -86,7 +87,6 @@
|
|
|
86
87
|
.ant-tabs-tab-active {
|
|
87
88
|
border: 0px !important;
|
|
88
89
|
background-color: white !important;
|
|
89
|
-
font-weight: 500;
|
|
90
90
|
&::after {
|
|
91
91
|
position: absolute;
|
|
92
92
|
width: 100%;
|
package/lib/types.d.ts
CHANGED
|
@@ -54,6 +54,7 @@ export interface FormItemExtraConfig extends FormItemProps {
|
|
|
54
54
|
phoneNumber?: number | string;
|
|
55
55
|
mergeRules?: boolean;
|
|
56
56
|
dependencies?: NamePath[];
|
|
57
|
+
antdDependencies?: NamePath[];
|
|
57
58
|
asserts?: FormItemAssert[];
|
|
58
59
|
shouldRender?: (form?: FormInstance) => boolean;
|
|
59
60
|
ignore?: boolean;
|
package/lib/utils/form-utils.js
CHANGED
|
@@ -13,7 +13,7 @@ var _typography = _interopRequireDefault(require("../typography"));
|
|
|
13
13
|
|
|
14
14
|
var _formattedMessage = _interopRequireDefault(require("../locale/formatted-message"));
|
|
15
15
|
|
|
16
|
-
var _excluded = ["type", "name", "required", "requiredAsserts", "showOptional", "rules", "initialValue", "normalize", "mergeRules", "getValueFromEvent", "getValueProps", "extra", "help", "label", "previewLabel", "extraLabel", "copyValue", "selectValue", "span", "halfRow", "fullRow", "valuePropName", "dependencies", "asserts", "messageVariables", "requiredMessage", "previewFormater", "disabled", "ignore", "shouldRender", "valueFormater"],
|
|
16
|
+
var _excluded = ["type", "name", "required", "requiredAsserts", "showOptional", "rules", "initialValue", "normalize", "mergeRules", "getValueFromEvent", "getValueProps", "extra", "help", "label", "previewLabel", "extraLabel", "copyValue", "selectValue", "span", "halfRow", "fullRow", "valuePropName", "dependencies", "asserts", "messageVariables", "requiredMessage", "previewFormater", "disabled", "ignore", "shouldRender", "valueFormater", "antdDependencies"],
|
|
17
17
|
_excluded2 = ["initialValue", "normalize", "rules", "extra", "help", "getValueFromEvent", "span", "valuePropName", "fullRow", "halfRow", "messageVariables", "requiredMessage", "previewFormater", "valueFormater", "required", "requiredMark", "className"];
|
|
18
18
|
|
|
19
19
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -168,6 +168,7 @@ var calcFormItemProps = function calcFormItemProps(config, extraProps, form, par
|
|
|
168
168
|
ignore = config.ignore,
|
|
169
169
|
shouldRender = config.shouldRender,
|
|
170
170
|
valueFormater = config.valueFormater,
|
|
171
|
+
antdDependencies = config.antdDependencies,
|
|
171
172
|
rest = _objectWithoutProperties(config, _excluded);
|
|
172
173
|
|
|
173
174
|
(0, _invariant.default)(nameProp || type === 'Divider' || type === 'Section' || !type, "name property is required for form item config (type: ".concat(type, ")"));
|
|
@@ -275,7 +276,8 @@ var calcFormItemProps = function calcFormItemProps(config, extraProps, form, par
|
|
|
275
276
|
valuePropName: valuePropName || extraValuePropName,
|
|
276
277
|
messageVariables: _objectSpread({
|
|
277
278
|
label: label
|
|
278
|
-
}, messageVariables || extraMessageVariables)
|
|
279
|
+
}, messageVariables || extraMessageVariables),
|
|
280
|
+
dependencies: antdDependencies
|
|
279
281
|
},
|
|
280
282
|
elementProps: elementProps,
|
|
281
283
|
display: !ignore && calcShouldRender(dependencies, asserts, shouldRender, form),
|