Open
Conversation
- fix typo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
按照 #235 中的想法完成了封面内部实现机制的重构。这里使用了页面元素、页面整体的两层抽象,对应原本的页面内嵌页面元素循环。各种格式都是原样抄来的,所以在我本机上测试没有看出与之前的样式差别。
带来的最大好处应该是维护难度降低了,增补元素、添加页面时直接修改对应的实例即可。
另:如果不是原本模板中定义了上下边距和行距,我本来只想做页面元素这一层抽象的……不得不说框架真的很好。