【修复】通知告警的提示信息

This commit is contained in:
chudong
2025-05-30 15:58:37 +08:00
parent b40da5378f
commit f9c593c01b
77 changed files with 351 additions and 122 deletions

View File

@@ -50,9 +50,13 @@ export default defineComponent({
const { iconPath, typeName } = useAuthApiTypeIconController(props)
return () => (
<NTag type={props.type} size="small">
<NTag
type={props.type}
size="small"
class="w-auto text-ellipsis overflow-hidden whitespace-normal p-[.6rem] h-auto"
>
<SvgIcon icon={iconPath.value} size="1.2rem" class="mr-[0.4rem]" />
{props.text && <span class="text-[12px]">{typeName.value}</span>}
<span>{props.text && <span class="text-[12px]">{typeName.value}</span>}</span>
</NTag>
)
},