feat(MineExcel): 新增按照属性在代码中的顺序排序方案 #77
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
新增按照属性在代码中的顺序排序方案 兼容index方案
有以下问题可能需要解决:
如果只有部分字段定义了index 分以下情况
情况1:属性排在第3个 如果都不加index 属性默认的键就是2,如果这个元素加了index=1 则会把键为1的元素覆盖
情况2:属性排在第3个 如果都不加index 属性默认的键就是2,如果这个元素加了index=100 则从这个元素开始的键名是从100开始递增,目前未发现副作用
建议解决方案:仅允许全部都添加index或者全部都不添加index 非正常情况都报错提示