- 修复Data拼写错误

- 增加项目信息
- 修复布尔值不能正确导出的问题
This commit is contained in:
2026-03-12 19:32:03 +08:00
parent 3583b7bf83
commit ba6d468422
4 changed files with 10 additions and 4 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ namespace ExcelTool
}
}
public static TableExcelData ExcelDatas(string fileName, out string sheetName, out int sheetCount, int sheetNum = 0)
public static TableExcelData ExcelData(string fileName, out string sheetName, out int sheetCount, int sheetNum = 0)
{
try
{
+5
View File
@@ -4,6 +4,11 @@
<OutputType>Exe</OutputType>
<Authors>Olive Wong</Authors>
<RepositoryUrl>https://github.com/htw128/ExcelTool</RepositoryUrl>
<Title>Excel Export Tool</Title>
<Company>Oliver's Computer &amp; Entertainment Studio</Company>
<AssemblyVersion>0.1</AssemblyVersion>
<FileVersion>0.1</FileVersion>
<NeutralLanguage>zh-Hans-CN</NeutralLanguage>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="NPOI" Version="2.7.6" />
+3 -2
View File
@@ -125,11 +125,12 @@ namespace ExcelTool
{
if (string.IsNullOrEmpty(data.Item2))
{
bw.Write(Convert.ToBoolean(false));
bw.Write(false);
}
else
{
bw.Write(Convert.ToBoolean(data.Item2));
string v = data.Item2.Trim().ToLower();
bw.Write(v is "true" or "1");
}
}
else if (data.Item1.Equals("float"))
+1 -1
View File
@@ -25,7 +25,7 @@ namespace ExcelTool.Parser
for (int sheetNum = 0; ; sheetNum++)
{
var tableData = ExcelHelper.ExcelDatas(fileName, out string sheetName, out int sheetCount, sheetNum);
var tableData = ExcelHelper.ExcelData(fileName, out string sheetName, out int sheetCount, sheetNum);
if (tableData == null || sheetNum >= sheetCount)
break;