style(功能用例): 评审-hover时页面抖动

--bug=1044141 --user=吕梦园
https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001044141
This commit is contained in:
teukkk 2024-07-18 11:38:08 +08:00 committed by 刘瑞斌
parent 5a5d20a0e5
commit 551d1fe543
3 changed files with 17 additions and 2 deletions

View File

@ -434,6 +434,7 @@
label: t('common.tag'),
value: res.tags,
isTag: true,
tagPosition: 'tr',
},
//
...res.customFields.map((e: Record<string, any>) => {

View File

@ -42,7 +42,7 @@
<template #overflow="{ number }">
<a-tooltip
:content="(Array.isArray(item.value) ? item.value : [item.value]).join('')"
position="tl"
:position="item.tagPosition"
>
<MsTag
:theme="item.tagTheme || 'outline'"
@ -157,6 +157,20 @@
tagClass?: string; //
tagType?: TagType; //
tagTheme?: Theme; //
tagPosition?:
| 'top'
| 'tl'
| 'tr'
| 'bottom'
| 'bl'
| 'br'
| 'left'
| 'lt'
| 'lb'
| 'right'
| 'rt'
| 'rb'
| undefined; //
tagMaxWidth?: string; //
closable?: boolean; //
showTagAdd?: boolean; //

View File

@ -148,7 +148,7 @@
</li>
<li>
<a-dropdown trigger="click" position="br" @select="changeLocale as any">
<a-tooltip :content="t('settings.language')">
<a-tooltip :content="t('settings.language')" position="br">
<a-button type="secondary">
<template #icon>
<icon-translate />