zy-react-library 1.0.15 → 1.0.16

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.
@@ -9,7 +9,7 @@ import type { FORM_ITEM_RENDER_ENUM } from "../../enum/formItemRender";
9
9
  */
10
10
  export type FormItemRenderType
11
11
  = | (typeof FORM_ITEM_RENDER_ENUM)[keyof typeof FORM_ITEM_RENDER_ENUM]
12
- | ((props: any) => ReactNode);
12
+ | ((props: { formValues: FormValues; [key: string]: any }) => ReactNode);
13
13
 
14
14
  /**
15
15
  * 选项项数据类型
@@ -248,7 +248,7 @@ const FormItemsRenderer = ({
248
248
  // 支持传入自定义组件
249
249
  if (typeof render === "function") {
250
250
  const CustomComponent = render;
251
- return <CustomComponent {...componentProps} />;
251
+ return <CustomComponent {...componentProps} formValues={getFormValues()} />;
252
252
  }
253
253
  return <Input placeholder={placeholder} {...componentProps} />;
254
254
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zy-react-library",
3
3
  "private": false,
4
- "version": "1.0.15",
4
+ "version": "1.0.16",
5
5
  "type": "module",
6
6
  "description": "",
7
7
  "author": "LiuJiaNan",