diff --git a/src/packages/cellgroup/cellgroup.taro.tsx b/src/packages/cellgroup/cellgroup.taro.tsx index 22c22e99f5..e720723f9c 100644 --- a/src/packages/cellgroup/cellgroup.taro.tsx +++ b/src/packages/cellgroup/cellgroup.taro.tsx @@ -30,9 +30,7 @@ export const CellGroup: FunctionComponent> = ( {titleSlot || ( <>{title ?
{title}
: null} )} - {descSlot || ( - <>{title ?
{desc}
: null} - )} + {descSlot || <>{desc ?
{desc}
: null}}
{children}
diff --git a/src/packages/cellgroup/cellgroup.tsx b/src/packages/cellgroup/cellgroup.tsx index 22c22e99f5..e720723f9c 100644 --- a/src/packages/cellgroup/cellgroup.tsx +++ b/src/packages/cellgroup/cellgroup.tsx @@ -30,9 +30,7 @@ export const CellGroup: FunctionComponent> = ( {titleSlot || ( <>{title ?
{title}
: null} )} - {descSlot || ( - <>{title ?
{desc}
: null} - )} + {descSlot || <>{desc ?
{desc}
: null}}
{children}