mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 11:58:10 +08:00
fix: 公式函数参数描述可能不存在的问题
This commit is contained in:
parent
c644ef4f19
commit
c47a7368eb
@ -102,6 +102,7 @@ export function FuncList(props: FuncListProps) {
|
|||||||
<div className={cx('FormulaEditor-FuncList-doc', descClassName)}>
|
<div className={cx('FormulaEditor-FuncList-doc', descClassName)}>
|
||||||
{activeFunc ? (
|
{activeFunc ? (
|
||||||
<>
|
<>
|
||||||
|
{Array.isArray(activeFunc.params) ? (
|
||||||
<pre>
|
<pre>
|
||||||
<TooltipWrapper
|
<TooltipWrapper
|
||||||
placement="top"
|
placement="top"
|
||||||
@ -141,6 +142,7 @@ export function FuncList(props: FuncListProps) {
|
|||||||
<code>{activeFunc.example}</code>
|
<code>{activeFunc.example}</code>
|
||||||
</TooltipWrapper>
|
</TooltipWrapper>
|
||||||
</pre>
|
</pre>
|
||||||
|
) : null}
|
||||||
<div className={cx('FormulaEditor-FuncList-doc-desc')}>
|
<div className={cx('FormulaEditor-FuncList-doc-desc')}>
|
||||||
{activeFunc.description}
|
{activeFunc.description}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user