diff --git a/packages/amis-ui/src/components/formula/FuncList.tsx b/packages/amis-ui/src/components/formula/FuncList.tsx index 239ac8174..cb12199cc 100644 --- a/packages/amis-ui/src/components/formula/FuncList.tsx +++ b/packages/amis-ui/src/components/formula/FuncList.tsx @@ -102,45 +102,47 @@ export function FuncList(props: FuncListProps) {
{activeFunc ? ( <> -
-                     (
-                          
-                            
-                              
-                                {['参数名称', '类型', '描述'].map(
-                                  (name, index) => (
-                                    
+                  {Array.isArray(activeFunc.params) ? (
+                    
+                       (
+                            
{name}
+ + + {['参数名称', '类型', '描述'].map( + (name, index) => ( + + ) + )} + + + + {activeFunc.params.map( + (param: any, index: number) => ( + + + + + ) )} - - - - {activeFunc.params.map( - (param: any, index: number) => ( - - - - - - ) - )} - -
{name}
{param.name}{param.type}{param.description}
{param.name}{param.type}{param.description}
- ) - }} - trigger="hover" - > - {activeFunc.example} -
-
+ + + ) + }} + trigger="hover" + > + {activeFunc.example} + + + ) : null}
{activeFunc.description}