File tree Expand file tree Collapse file tree 4 files changed +12
-14
lines changed
Expand file tree Collapse file tree 4 files changed +12
-14
lines changed Original file line number Diff line number Diff line change 11<template >
2- <el-tag class =" tag-ellipsis flex-between mb-8" effect =" plain" v-bind =" $attrs" >
2+ <el-tag class =" tag-ellipsis flex-between mb-8 w-full " effect =" plain" v-bind =" $attrs" >
33 <slot ></slot >
44 </el-tag >
55</template >
Original file line number Diff line number Diff line change 2121 </div >
2222</template >
2323<script setup lang="ts">
24-
2524const props = defineProps <{
2625 tags: string []
2726 size? : ' large' | ' default' | ' small'
@@ -34,5 +33,15 @@ const props = defineProps<{
3433 :deep (.el-tag__content ) {
3534 width : 100% ;
3635 }
36+ /* tag超出省略号 */
37+ .tag-ellipsis {
38+ box-sizing : border-box ;
39+ max-width : 130px ;
40+ .el-tag__content {
41+ overflow : hidden ;
42+ white-space : nowrap ;
43+ text-overflow : ellipsis ;
44+ }
45+ }
3746}
3847 </style >
Original file line number Diff line number Diff line change 66 </div >
77
88 <div class =" flex-between w-full" >
9- <div class =" ml-24 flex align-center" >
9+ <div class =" ml-24 flex align-center w-120 " >
1010 <!-- 企业版: 工作空间下拉框-->
1111 <el-divider
1212 class =" mr-8"
Original file line number Diff line number Diff line change 251251 padding : 4px 16px 12px 12px ;
252252 }
253253}
254-
255- /* tag超出省略号 */
256- .tag-ellipsis {
257- box-sizing : border-box ;
258- max-width : 130px ;
259- .el-tag__content {
260- overflow : hidden ;
261- white-space : nowrap ;
262- text-overflow : ellipsis ;
263- }
264- }
You can’t perform that action at this time.
0 commit comments