Update DynamicConfiguration format (#595)

Update  DynamicConfiguration format
This commit is contained in:
wangboshun 2024-05-17 21:26:34 +08:00 committed by GitHub
parent 5cce5e4d4b
commit 4d1ee8e327
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -173,7 +173,7 @@ namespace MiniExcelLibs.OpenXml
for (int i = 0; i < fieldCount; i++)
{
var cellValue = reader.GetValue(i);
await WriteCellAsync(writer, yIndex, xIndex, cellValue, null);
await WriteCellAsync(writer, yIndex, xIndex, cellValue, props[i]);
xIndex++;
}
await writer.WriteAsync($"</x:row>");
@ -376,7 +376,7 @@ namespace MiniExcelLibs.OpenXml
for (int j = 0; j < value.Columns.Count; j++)
{
var cellValue = value.Rows[i][j];
await WriteCellAsync(writer, yIndex, xIndex, cellValue, null);
await WriteCellAsync(writer, yIndex, xIndex, cellValue, props[j]);
xIndex++;
}
await writer.WriteAsync($"</x:row>");