Skip to content

Commit 6a718b4

Browse files
committed
upd: tag样式优化
1 parent 85bbf95 commit 6a718b4

File tree

1 file changed

+14
-6
lines changed
  • linkis-web/src/apps/linkis/components/tag

1 file changed

+14
-6
lines changed

linkis-web/src/apps/linkis/components/tag/index.vue

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,6 @@
2525
>
2626
<Tag
2727
ref="tag"
28-
style="
29-
white-space: nowrap;
30-
text-overflow: ellipsis;
31-
overflow: hidden;
32-
max-width: 300px;"
3328
v-if="
3429
!clickValue.includes(`${item.key}${item.value}`)
3530
"
@@ -40,7 +35,20 @@
4035
:color="item.modifiable ? 'primary' : 'default'"
4136
@on-close="handleClose2"
4237
@on-change="handleTagChange"
43-
>{{ item.key }}{{ item.key ? '-' : '' }}{{ item.value }}
38+
>
39+
<span
40+
style="
41+
display: inline-block;
42+
white-space: nowrap;
43+
text-overflow: ellipsis;
44+
overflow: hidden;
45+
max-width: 270px;
46+
height: 14px;
47+
line-height: 14px;
48+
vertical-align: middle;
49+
margin-bottom: 2px">
50+
{{ item.key }}{{ item.key ? '-' : '' }}{{ item.value }}
51+
</span>
4452
</Tag>
4553
<!-- Edit tags(编辑标签) -->
4654
<div class="addAndCancel" v-else>

0 commit comments

Comments
 (0)