Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能否加个设置,空的数据不导出。 #38

Closed
lihao3051 opened this issue Feb 5, 2021 · 1 comment
Closed

能否加个设置,空的数据不导出。 #38

lihao3051 opened this issue Feb 5, 2021 · 1 comment

Comments

@lihao3051
Copy link

image
例如excel表内容目前导出是这样:
{
"1": {
"ID": 1,
"name": "铜钱",
"info": "",
"type": 1,
"iconID": 1,
"1": "1"
},
"2": {
"ID": 2,
"name": "元宝",
"info": "暂略",
"type": 0.0,
"iconID": 2,
"2": "2"
},
"3": {
"ID": 3,
"name": "测试武器",
"info": "暂略",
"type": 0.0,
"iconID": 0.0,
"3": "3"
}
}
我希望空数据不要导出来,导出这样的:
{
"1": {
"ID": 1,
"name": "铜钱",
"type": 1,
"iconID": 1,
"1": "1"
},
"2": {
"ID": 2,
"name": "元宝",
"info": "暂略",
"iconID": 2,
"2": "2"
},
"3": {
"ID": 3,
"name": "测试武器",
"info": "暂略",
"3": "3"
}
}

@neil3d
Copy link
Owner

neil3d commented Oct 7, 2021

如果一行中只有个别单元格是空的,忽略整行的 ,感觉也不合理。
如果整行为空,可以考虑过滤掉,详见 #40

@neil3d neil3d closed this as completed Oct 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants