Skip to content

Commit

Permalink
Merge branch 'focus-creative-games:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
absences authored Jan 7, 2025
2 parents e3aacb3 + 4c9086f commit ed1d9ad
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -408,8 +408,7 @@ public DType Accept(TBean type, RowColumnSheet sheet, TitleRow row)
}
if (row.Elements != null)
{
var s = row.AsMultiRowConcatElements(sep);
return type.Apply(ExcelStreamDataCreator.Ins, s);
throw new Exception($"{type.DefBean.FullName} 不支持多行子字段格式,只有结构列表才支持此格式");
}
throw new Exception();
}
Expand Down
5 changes: 0 additions & 5 deletions src/Luban.DataLoader.Builtin/Excel/TitleRow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,4 @@ public ExcelStream AsMultiRowConcatStream(string sep)
{
return new ExcelStream(Rows, SelfTitle.FromIndex, SelfTitle.ToIndex, sep, SelfTitle.Default);
}

public ExcelStream AsMultiRowConcatElements(string sep)
{
return new ExcelStream(Elements.Select(e => e.Row).ToList(), SelfTitle.FromIndex, SelfTitle.ToIndex, sep, SelfTitle.Default);
}
}

0 comments on commit ed1d9ad

Please sign in to comment.