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'), label: t('common.tag'),
value: res.tags, value: res.tags,
isTag: true, isTag: true,
tagPosition: 'tr',
}, },
// //
...res.customFields.map((e: Record<string, any>) => { ...res.customFields.map((e: Record<string, any>) => {

View File

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

View File

@ -148,7 +148,7 @@
</li> </li>
<li> <li>
<a-dropdown trigger="click" position="br" @select="changeLocale as any"> <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"> <a-button type="secondary">
<template #icon> <template #icon>
<icon-translate /> <icon-translate />