mineadmin / components

mine-admin library
Apache License 2.0
10 stars 21 forks source link

feat(MineExcel): 新增按照属性在代码中的顺序排序方案 #77

Closed develop-chen closed 4 months ago

develop-chen commented 4 months ago

新增按照属性在代码中的顺序排序方案 兼容index方案 有以下问题可能需要解决: 如果只有部分字段定义了index 分以下情况 情况1:属性排在第3个 如果都不加index 属性默认的键就是2,如果这个元素加了index=1 则会把键为1的元素覆盖 情况2:属性排在第3个 如果都不加index 属性默认的键就是2,如果这个元素加了index=100 则从这个元素开始的键名是从100开始递增,目前未发现副作用 建议解决方案:仅允许全部都添加index或者全部都不添加index 非正常情况都报错提示

boring-cyborg[bot] commented 4 months ago

Thanks for opening this pull request! Please check out our contributing guidelines.

boring-cyborg[bot] commented 4 months ago

Awesome work, congrats on your first merged pull request!