- 修复Data拼写错误
- 增加项目信息 - 修复布尔值不能正确导出的问题
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
@@ -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 & 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" />
|
||||
|
||||
@@ -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"))
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user