Skip to content

Commit

Permalink
Merge pull request #12 from kne-union/linzp
Browse files Browse the repository at this point in the history
修正legacy bug
  • Loading branch information
zhipenglin authored Oct 16, 2024
2 parents 40ee459 + a90fa54 commit fc347e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kne/info-page",
"version": "0.1.3",
"version": "0.1.4",
"description": "一般用在复杂的详情展示页面,InfoPage提供了一个标准的展示信息的格式",
"syntax": {
"esmodules": true
Expand Down
3 changes: 2 additions & 1 deletion src/TableView/boxComputed.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@ const boxComputed = (columns, col) => {
box.push([]);
}
let currentLine = box[box.length - 1];
const legacy =
let legacy =
24 -
currentLine.reduce((a, b) => {
return a + b.span;
}, 0);
if (legacy < currentSpan) {
currentLine[currentLine.length - 1].span += legacy;
box.push([]);
legacy = 24;
currentLine = box[box.length - 1];
}
const isLast = index === columns.length - 1;
Expand Down

0 comments on commit fc347e3

Please sign in to comment.