fix(通用设置): 修复tree节点hover问题

--bug=1036034 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001036034
This commit is contained in:
guoyuqi 2024-03-07 18:32:02 +08:00 committed by 刘瑞斌
parent 04f93984e1
commit 6e8b1f2887
4 changed files with 8 additions and 8 deletions

View File

@ -18,7 +18,7 @@
<template v-if="$slots['title']" #title="_props">
<a-tooltip
:content="_props[props.fieldNames.title]"
:mouse-enter-delay="500"
:mouse-enter-delay="800"
:position="props.titleTooltipPosition"
>
<slot name="title" v-bind="_props"></slot>
@ -128,7 +128,7 @@
defaultExpandAll: false,
selectable: true,
draggable: false,
titleTooltipPosition: 'right',
titleTooltipPosition: 'top',
fieldNames: () => ({
key: 'key',
title: 'title',
@ -437,7 +437,7 @@
}
}
.arco-tree-node-title-block {
width: 80%;
width: 60%;
}
.ms-tree-node-extra {
@apply invisible relative w-0;

View File

@ -181,7 +181,7 @@
}
}
.ms-split-box--left {
width: calc(v-bind(innerSize) - 2px);
width: calc(v-bind(innerSize) + 7px);
}
.expand-icon {
@apply invisible relative z-20 flex cursor-pointer justify-center;

View File

@ -50,7 +50,7 @@
count: 'count',
}"
block-node
title-tooltip-position="left"
title-tooltip-position="top"
@select="folderNodeSelect"
@more-action-select="handleFolderMoreSelect"
@more-actions-close="moreActionsClose"

View File

@ -16,7 +16,7 @@
<template v-if="$slots['tree-slot-title']" #tree-slot-title="_props">
<a-tooltip
:content="_props[props.fieldNames.title]"
:mouse-enter-delay="500"
:mouse-enter-delay="800"
:position="props.titleTooltipPosition"
>
<slot name="tree-slot-title" v-bind="_props"></slot>
@ -117,7 +117,7 @@
defaultExpandAll: false,
selectable: true,
draggable: false,
titleTooltipPosition: 'right',
titleTooltipPosition: 'top',
fieldNames: () => ({
key: 'key',
title: 'title',
@ -1183,7 +1183,7 @@
}
}
.arco-tree-node-title-block {
width: 80%;
width: 60%;
}
.ms-tree-node-extra {
@apply invisible relative w-0;