未验证 提交 3ab6e340 编写于 作者: 拧巴的猫 提交者: GitHub

fix: 修复cellgroup组件描述判断错误问题 (#389)

上级 85a69279
......@@ -30,9 +30,7 @@ export const CellGroup: FunctionComponent<Partial<CellGroupProps>> = (
{titleSlot || (
<>{title ? <div className={b('title')}>{title}</div> : null}</>
)}
{descSlot || (
<>{title ? <div className={b('desc')}>{desc}</div> : null}</>
)}
{descSlot || <>{desc ? <div className={b('desc')}>{desc}</div> : null}</>}
<div className={b('wrap')}>{children}</div>
</div>
......
......@@ -30,9 +30,7 @@ export const CellGroup: FunctionComponent<Partial<CellGroupProps>> = (
{titleSlot || (
<>{title ? <div className={b('title')}>{title}</div> : null}</>
)}
{descSlot || (
<>{title ? <div className={b('desc')}>{desc}</div> : null}</>
)}
{descSlot || <>{desc ? <div className={b('desc')}>{desc}</div> : null}</>}
<div className={b('wrap')}>{children}</div>
</div>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册