From 1ee28d39e0af8d1724358e52fac10f2a35b61967 Mon Sep 17 00:00:00 2001 From: echoyl Date: Thu, 13 Feb 2025 10:38:25 +0800 Subject: [PATCH] =?UTF-8?q?fix(formItem):=E7=A7=BB=E9=99=A4=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E7=9A=84=5FinternalItemRender=E4=BD=BFinput=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C=E4=BF=A1=E6=81=AF=E4=B8=8D=E6=8A=96=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../form/src/components/FormItem/index.tsx | 52 +++++++++---------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/packages/form/src/components/FormItem/index.tsx b/packages/form/src/components/FormItem/index.tsx index 25c6153bcad5..a89088f6a0d3 100644 --- a/packages/form/src/components/FormItem/index.tsx +++ b/packages/form/src/components/FormItem/index.tsx @@ -197,35 +197,35 @@ const WarpFormItem: React.FC< return ( ( - <> - {doms.input} - {typeof help === 'function' - ? help({ - errors: inputProps.errors, - warnings: inputProps.warnings, - }) - : doms.errorList} - {doms.extra} - - ), - }} + // _internalItemRender={{ + // mark: 'pro_table_render', + // render: ( + // inputProps: FormItemProps & { + // errors: React.ReactNode[]; + // warnings: React.ReactNode[]; + // }, + // doms: { + // input: JSX.Element; + // errorList: JSX.Element; + // extra: JSX.Element; + // }, + // ) => ( + // <> + // {doms.input} + // {typeof help === 'function' + // ? help({ + // errors: inputProps.errors, + // warnings: inputProps.warnings, + // }) + // : doms.errorList} + // {doms.extra} + // + // ), + // }} > {children}