请问 ProFieldProps 的 render 定义是什么样的? #8023
-
pro-utils 导出的 ProFieldProps,其类型定义如下: export interface ProFieldProps {
light?: boolean;
emptyText?: ReactNode;
label?: React.ReactNode;
mode?: 'read' | 'edit';
proFieldKey?: string;
render?: any;
readonly?: boolean;
} 目前遇到的问题是,我想自定义 FormItem 的只读模式的渲染效果,从 render 的实际测试来看,是支持函数的,也就是 () => React.ReactNode 我想知道有没有这个函数具体的参数定义?可以拿到 pro 框架当前已经渲染的 dom 结果? |
Beta Was this translation helpful? Give feedback.
Answered by
davidhsing
Jan 2, 2024
Replies: 2 comments
-
@sorrycc @chenshuai2144 两位大佬辛苦帮看看? |
Beta Was this translation helpful? Give feedback.
0 replies
-
自己试出来了: render: (dom: React.ReactNode) => React.ReactNode, |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
davidhsing
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
自己试出来了: