Improve team settings search, user sorting, and role badge layout.
EOF Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -18,8 +18,10 @@ const props = withDefaults(
|
||||
tableKey: string;
|
||||
label?: string;
|
||||
align?: 'start' | 'end';
|
||||
/** فقط آیکون تنظیمات (بدون متن «ستونها») */
|
||||
iconOnly?: boolean;
|
||||
}>(),
|
||||
{ label: 'ستونها', align: 'start' },
|
||||
{ label: 'ستونها', align: 'start', iconOnly: false },
|
||||
);
|
||||
|
||||
const open = ref(false);
|
||||
@@ -60,11 +62,18 @@ const placement = computed(() =>
|
||||
</a-button>
|
||||
</a-flex>
|
||||
</template>
|
||||
<a-button :type="hiddenCount > 0 ? 'primary' : 'default'" :ghost="hiddenCount > 0">
|
||||
<a-button
|
||||
:type="hiddenCount > 0 ? 'primary' : 'default'"
|
||||
:ghost="hiddenCount > 0"
|
||||
:title="iconOnly ? (hiddenCount ? `${label} · ${toFaDigits(hiddenCount)} مخفی` : label) : undefined"
|
||||
:aria-label="label"
|
||||
>
|
||||
<template #icon><SettingOutlined /></template>
|
||||
{{ label }}
|
||||
<template v-if="hiddenCount">
|
||||
· {{ toFaDigits(hiddenCount) }} مخفی
|
||||
<template v-if="!iconOnly">
|
||||
{{ label }}
|
||||
<template v-if="hiddenCount">
|
||||
· {{ toFaDigits(hiddenCount) }} مخفی
|
||||
</template>
|
||||
</template>
|
||||
</a-button>
|
||||
</a-popover>
|
||||
|
||||
Reference in New Issue
Block a user