feat: parent child retrieval (#12106)

Signed-off-by: -LAN- <laipz8200@outlook.com>
Co-authored-by: -LAN- <laipz8200@outlook.com>
This commit is contained in:
Wu Tianwei
2024-12-26 12:01:51 +08:00
committed by GitHub
parent efdd54a670
commit 49feff082f
196 changed files with 9035 additions and 3115 deletions

View File

@@ -3,13 +3,15 @@ import cn from '@/utils/classnames'
type BadgeProps = {
className?: string
text: string
text?: string
children?: React.ReactNode
uppercase?: boolean
}
const Badge = ({
className,
text,
children,
uppercase = true,
}: BadgeProps) => {
return (
@@ -20,7 +22,7 @@ const Badge = ({
className,
)}
>
{text}
{children || text}
</div>
)
}