geneeantd 0.0.9 → 0.0.11

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 @@ export interface FormItem {
9
9
  value: string | number;
10
10
  }[];
11
11
  rules?: Record<string, unknown>[];
12
- customRender?: React.ReactNode;
12
+ customRender?: React.ReactNode | ((form: FormInstance) => React.ReactNode);
13
13
  wrapperCol?: {
14
14
  span?: number;
15
15
  offset?: number;
@@ -55096,8 +55096,10 @@ const QU = oe.memo(
55096
55096
  hiddenItems: e.slice(i)
55097
55097
  }, [e, i]), x = (N) => {
55098
55098
  const { name: M, label: D, type: I, props: T, options: R, rules: z, customRender: k } = N;
55099
- if (I === "custom" && k)
55100
- return /* @__PURE__ */ se.jsx(oe.Fragment, { children: k }, M);
55099
+ if (I === "custom" && k) {
55100
+ const j = typeof k == "function" ? k(h) : k;
55101
+ return /* @__PURE__ */ se.jsx(oe.Fragment, { children: j }, M);
55102
+ }
55101
55103
  switch (I) {
55102
55104
  case "text":
55103
55105
  return T?.type === "textarea" ? /* @__PURE__ */ se.jsx(