zmdms-webui 2.1.5 → 2.1.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.
|
@@ -17,6 +17,12 @@ var FormItem = function (props) {
|
|
|
17
17
|
if (isDisplay === false || isDisplay === "0") {
|
|
18
18
|
return null;
|
|
19
19
|
}
|
|
20
|
+
if (typeof isDisplay === "function") {
|
|
21
|
+
var isD = isDisplay(form);
|
|
22
|
+
if (!isD) {
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
20
26
|
if (divider) {
|
|
21
27
|
return (jsx(ItemWrap, { width: width, className: className, tipString: tipString, style: { paddingBottom: 0 } }));
|
|
22
28
|
}
|
|
@@ -100,12 +106,6 @@ var FormItem = function (props) {
|
|
|
100
106
|
}
|
|
101
107
|
: shouldUpdate;
|
|
102
108
|
return (jsx(MemoForm.Item, __assign({ shouldUpdate: shouldUpdateHandle, noStyle: true }, { children: function (formInstance) {
|
|
103
|
-
if (typeof isDisplay === "function") {
|
|
104
|
-
var isD = isDisplay(form);
|
|
105
|
-
if (!isD) {
|
|
106
|
-
return null;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
109
|
if (typeof isRequired === "function") {
|
|
110
110
|
var isR = isRequired(form);
|
|
111
111
|
updateIsRequired(isR);
|