feat(own): add filter

This commit is contained in:
zhangheng
2026-06-06 14:05:46 +08:00
parent fb3ffe3dfd
commit e82cfc43ed
4 changed files with 73 additions and 4 deletions

View File

@@ -459,6 +459,8 @@ export function SettingListHeader({
actions,
className,
}: SettingListHeaderProps) {
const isPlainCount = typeof count === "string" || typeof count === "number"
return (
<Group
justify="space-between"
@@ -469,7 +471,11 @@ export function SettingListHeader({
<Group gap="xs">
<Text className={classes.listHeaderTitle}>{title}</Text>
{count !== undefined ? (
<Text className={classes.listHeaderCount}>{count}</Text>
isPlainCount ? (
<Text className={classes.listHeaderCount}>{count}</Text>
) : (
<div className={classes.listHeaderCount}>{count}</div>
)
) : null}
</Group>
{actions}