fix: 补充表格标签列自适应展示右侧外边距宽度计算在内

This commit is contained in:
xinxin.wu 2024-10-22 18:05:29 +08:00 committed by 刘瑞斌
parent b97e4971ba
commit 2f986c832d
1 changed files with 2 additions and 1 deletions

View File

@ -919,10 +919,11 @@
const availableWidth = cell.clientWidth; //
let totalWidth = 0;
let hiddenTags = 0;
const marginRight = 3;
const visibleTags: HTMLElement[] = [];
labelsGroupList.forEach((label: HTMLElement) => {
label.style.display = 'inline-block'; //
totalWidth += label.offsetWidth; //
totalWidth += label.offsetWidth + marginRight; //
//
visibleTags.push(label);