style(功能用例): 评审-hover时页面抖动
--bug=1044141 --user=吕梦园 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001044141
This commit is contained in:
parent
5a5d20a0e5
commit
551d1fe543
|
@ -434,6 +434,7 @@
|
|||
label: t('common.tag'),
|
||||
value: res.tags,
|
||||
isTag: true,
|
||||
tagPosition: 'tr',
|
||||
},
|
||||
// 解析用例模板的自定义字段
|
||||
...res.customFields.map((e: Record<string, any>) => {
|
||||
|
|
|
@ -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; // 是否显示添加标签
|
||||
|
|
|
@ -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 />
|
||||
|
|
Loading…
Reference in New Issue