From c5fee07cba5d106f110246712145344f2ea7eee6 Mon Sep 17 00:00:00 2001 From: JEECG <445654970@qq.com> Date: Tue, 24 Sep 2024 22:40:47 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90issues/7136=E3=80=91=E5=8D=95=E5=85=83?= =?UTF-8?q?=E6=A0=BC=E4=B8=8A=E7=9A=84tooltip=E6=8F=90=E7=A4=BA=EF=BC=8C?= =?UTF-8?q?=E5=A6=82=E6=9E=9C=E8=A1=A8=E6=A0=BC=E6=9C=89=E6=BB=9A=E5=8A=A8?= =?UTF-8?q?=E6=9D=A1=EF=BC=8C=E4=BC=9A=E4=B8=8D=E8=B7=9F=E7=9D=80=E5=8D=95?= =?UTF-8?q?=E5=85=83=E6=A0=BC=E6=BB=9A=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Table/src/components/editable/EditableCell.vue | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/jeecgboot-vue3/src/components/Table/src/components/editable/EditableCell.vue b/jeecgboot-vue3/src/components/Table/src/components/editable/EditableCell.vue index ac86908b..edc2541a 100644 --- a/jeecgboot-vue3/src/components/Table/src/components/editable/EditableCell.vue +++ b/jeecgboot-vue3/src/components/Table/src/components/editable/EditableCell.vue @@ -113,10 +113,17 @@ const val = unref(currentValueRef); const value = isCheckValue ? (isNumber(val) && isBoolean(val) ? val : !!val) : val; - + //update-begin---author:wangshuai---date:2024-09-19---for:【issues/7136】单元格上的tooltip提示,如果表格有滚动条,会不跟着单元格滚动--- + let tooltipPosition:any = unref(table?.wrapRef.value)?.parentElement?.querySelector('.ant-table-body'); + if(tooltipPosition){ + tooltipPosition.style.position = 'relative'; + } + //update-end---author:wangshuai---date:2024-09-19---for:【issues/7136】单元格上的tooltip提示,如果表格有滚动条,会不跟着单元格滚动--- return { size: 'small', - getPopupContainer: () => unref(table?.wrapRef.value) ?? document.body, + //update-begin---author:wangshuai---date:2024-09-19---for:【issues/7136】单元格上的tooltip提示,如果表格有滚动条,会不跟着单元格滚动--- + getPopupContainer: () => tooltipPosition ?? document.body, + //update-end---author:wangshuai---date:2024-09-19---for:【issues/7136】单元格上的tooltip提示,如果表格有滚动条,会不跟着单元格滚动--- getCalendarContainer: () => unref(table?.wrapRef.value) ?? document.body, placeholder: createPlaceholderMessage(unref(getComponent)), ...apiSelectProps,