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
commit 49feff082f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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>
)
}