zy-react-library 1.0.18 → 1.0.19
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.
|
@@ -246,9 +246,12 @@ const FormItemsRenderer = ({
|
|
|
246
246
|
|
|
247
247
|
default:
|
|
248
248
|
// 支持传入自定义组件
|
|
249
|
-
if (typeof render === "function") {
|
|
249
|
+
if (typeof render === "function" || typeof render === "object") {
|
|
250
250
|
const CustomComponent = render;
|
|
251
|
-
|
|
251
|
+
if (typeof render === "function")
|
|
252
|
+
return <CustomComponent {...componentProps} formValues={getFormValues()} />;
|
|
253
|
+
if (typeof render === "object")
|
|
254
|
+
return <CustomComponent {...componentProps} />;
|
|
252
255
|
}
|
|
253
256
|
return <Input placeholder={placeholder} {...componentProps} />;
|
|
254
257
|
}
|