style: problem style
This commit is contained in:
parent
901b88887d
commit
a4971428b3
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-tag class="tag-ellipsis flex-between mb-8" effect="plain" v-bind="$attrs">
|
<el-tag class="tag-ellipsis flex-between mb-8 w-full" effect="plain" v-bind="$attrs">
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
</el-tag>
|
</el-tag>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@ -21,7 +21,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
tags: string[]
|
tags: string[]
|
||||||
size?: 'large' | 'default' | 'small'
|
size?: 'large' | 'default' | 'small'
|
||||||
@ -34,5 +33,15 @@ const props = defineProps<{
|
|||||||
:deep(.el-tag__content) {
|
:deep(.el-tag__content) {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
/* tag超出省略号 */
|
||||||
|
.tag-ellipsis {
|
||||||
|
box-sizing: border-box;
|
||||||
|
max-width: 130px;
|
||||||
|
.el-tag__content {
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex-between w-full">
|
<div class="flex-between w-full">
|
||||||
<div class="ml-24 flex align-center">
|
<div class="ml-24 flex align-center w-120">
|
||||||
<!-- 企业版: 工作空间下拉框-->
|
<!-- 企业版: 工作空间下拉框-->
|
||||||
<el-divider
|
<el-divider
|
||||||
class="mr-8"
|
class="mr-8"
|
||||||
|
|||||||
@ -251,14 +251,3 @@
|
|||||||
padding: 4px 16px 12px 12px;
|
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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user