mirror of
https://gitee.com/dotnetchina/MiniExcel.git
synced 2024-11-29 18:38:08 +08:00
Merge branch 'master' of https://github.com/shps951023/MiniExcel
This commit is contained in:
commit
5e245820e8
1
.gitignore
vendored
1
.gitignore
vendored
@ -262,3 +262,4 @@ __pycache__/
|
||||
|
||||
/BenchmarkDotNet.Artifacts
|
||||
/tests/MiniExcel.Tests.AspNetMvc/packages
|
||||
/TestTemplate
|
||||
|
@ -23,13 +23,6 @@
|
||||
<p> 您的 <a href="https://github.com/shps951023/miniexcel">Star</a> 和 <a href="https://miniexcel.github.io">赞助</a> 能帮助 MiniExcel 成长 </p>
|
||||
</div>
|
||||
|
||||
---
|
||||
|
||||
<div align="center">
|
||||
<p> 您的 <a href="https://github.com/shps951023/miniexcel">Star</a> 和 <a href="https://miniexcel.github.io">赞助</a> 能帮助 MiniExcel 成长 </p>
|
||||
</div>
|
||||
|
||||
|
||||
---
|
||||
|
||||
### 1.26.2
|
||||
|
@ -267,6 +267,11 @@ namespace MiniExcelLibs.OpenXml
|
||||
{
|
||||
cellValueStr = ConvertToDateTimeString(propInfo, cellValue);
|
||||
}
|
||||
else if (TypeHelper.IsNumericType(type))
|
||||
{
|
||||
if (decimal.TryParse(cellValueStr, out var decimalValue))
|
||||
cellValueStr = decimalValue.ToString(System.Globalization.CultureInfo.InvariantCulture);
|
||||
}
|
||||
|
||||
//TODO: ![image](https://user-images.githubusercontent.com/12729184/114848248-17735880-9e11-11eb-8258-63266bda0a1a.png)
|
||||
newRow.InnerXml = newRow.InnerXml.Replace(key, cellValueStr);
|
||||
@ -614,6 +619,7 @@ namespace MiniExcelLibs.OpenXml
|
||||
else if (decimal.TryParse(cellValueStr, out var outV))
|
||||
{
|
||||
c.SetAttribute("t", "n");
|
||||
cellValueStr = outV.ToString(System.Globalization.CultureInfo.InvariantCulture);
|
||||
}
|
||||
else if (cellValue is bool)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user