style(系统设置): 修改系统组织与项目创建人样式换行问题

This commit is contained in:
xinxin.wu 2024-06-26 18:27:01 +08:00 committed by 刘瑞斌
parent 2243142491
commit d0ba57774a
2 changed files with 4 additions and 5 deletions

View File

@ -1,7 +1,7 @@
<template> <template>
<div class="flex flex-row flex-nowrap"> <div class="flex w-full flex-row flex-nowrap">
<a-tooltip content-class="max-w-[600px]" :content="props.name"> <a-tooltip :content="props.name">
<div class="flex flex-row flex-nowrap">{{ characterLimit(props.name) }}</div> <div class="one-line-text max-w-[calc(100%-60px)]">{{ props.name }}</div>
</a-tooltip> </a-tooltip>
<div v-if="props.isAdmin" class="ml-1 flex flex-row flex-nowrap text-[var(--color-text-4)]">{{ <div v-if="props.isAdmin" class="ml-1 flex flex-row flex-nowrap text-[var(--color-text-4)]">{{
`(${t('common.admin')})` `(${t('common.admin')})`
@ -11,7 +11,6 @@
<script lang="ts" setup> <script lang="ts" setup>
import { useI18n } from '@/hooks/useI18n'; import { useI18n } from '@/hooks/useI18n';
import { characterLimit } from '@/utils';
const { t } = useI18n(); const { t } = useI18n();
const props = withDefaults(defineProps<{ name?: string; isAdmin?: boolean }>(), { isAdmin: false }); const props = withDefaults(defineProps<{ name?: string; isAdmin?: boolean }>(), { isAdmin: false });

View File

@ -183,7 +183,7 @@
title: 'system.organization.creator', title: 'system.organization.creator',
slotName: 'creator', slotName: 'creator',
dataIndex: 'createUser', dataIndex: 'createUser',
width: 125, width: 200,
showTooltip: false, showTooltip: false,
}, },
{ {