fix: style

This commit is contained in:
wangdan-fit2cloud 2025-07-16 14:23:17 +08:00
parent d76c85ca3b
commit d4506d7036
5 changed files with 24 additions and 7 deletions

View File

@ -1,14 +1,19 @@
<template>
<div class="tag-group" v-if="props.tags.length">
<el-tag :size="props.size" class="default-tag">
<span class="ellipsis">{{ props.tags[0] }}</span>
<el-tag :size="props.size" class="default-tag tag-ellipsis" :title="props.tags[0]">
{{ props.tags[0] }}
</el-tag>
<el-tooltip effect="light" :disabled="tooltipDisabled">
<el-tag :size="props.size" class="info-tag ml-4 cursor" v-if="props.tags?.length > 1">
+{{ props.tags?.length - 1 }}
</el-tag>
<template #content>
<el-tag :size="props.size" v-for="item in props.tags.slice(1)" :key="item" class="default-tag mr-4">
<el-tag
:size="props.size"
v-for="item in props.tags.slice(1)"
:key="item"
class="default-tag mr-4"
>
{{ item }}
</el-tag>
</template>
@ -16,6 +21,7 @@
</div>
</template>
<script setup lang="ts">
const props = defineProps<{
tags: string[]
size?: 'large' | 'default' | 'small'

View File

@ -8,7 +8,7 @@
<div class="flex-between w-full align-center">
<h4><el-divider class="ml-16 mr-16" direction="vertical" />{{ $t('views.system.title') }}</h4>
<div class="flex align-center mr-8">
<TopAbout class="mt-4"></TopAbout>
<TopAbout></TopAbout>
<el-divider class="ml-8 mr-8" direction="vertical" />
<el-button link @click="router.push({ path: '/' })"
v-if="hasPermission([RoleConst.USER.getWorkspaceRole,RoleConst.EXTENDS_USER.getWorkspaceRole,

View File

@ -21,7 +21,7 @@
/>
</div>
<TopMenu></TopMenu>
<TopAbout class="mt-4 mr-12"></TopAbout>
<TopAbout class="mr-12"></TopAbout>
</div>
<Avatar></Avatar>
</div>

View File

@ -250,3 +250,14 @@
padding: 4px 16px 12px 12px;
}
}
/* tag超出省略号 */
.tag-ellipsis {
box-sizing: border-box;
max-width: 130px;
.el-tag__content {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}

View File

@ -1,5 +1,5 @@
<template>
<el-drawer v-model="visible" size="60%">
<el-drawer v-model="visible" size="600">
<template #header>
<h4>{{ title }}</h4>
</template>