mirror of https://github.com/jeecgboot/jeecg-boot
【issues/7136】单元格上的tooltip提示,如果表格有滚动条,会不跟着单元格滚动
parent
9fd20fde9e
commit
c5fee07cba
|
@ -113,10 +113,17 @@
|
||||||
const val = unref(currentValueRef);
|
const val = unref(currentValueRef);
|
||||||
|
|
||||||
const value = isCheckValue ? (isNumber(val) && isBoolean(val) ? val : !!val) : val;
|
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 {
|
return {
|
||||||
size: 'small',
|
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,
|
getCalendarContainer: () => unref(table?.wrapRef.value) ?? document.body,
|
||||||
placeholder: createPlaceholderMessage(unref(getComponent)),
|
placeholder: createPlaceholderMessage(unref(getComponent)),
|
||||||
...apiSelectProps,
|
...apiSelectProps,
|
||||||
|
|
Loading…
Reference in New Issue