将DataPackPageSkin页面有关整体样式的部分抽离出来 #5264
Draft
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.
目前,一个列表页面基类是ToolbarListPageSkin,但是并不是所有列表页面都使用,并且在很复杂的页面可能不适用?
总之,我写了个
CommonListPage,主要目的是为了向DataPackListSkin这种不太好重构到ToolbarListPageSkin,但是在自己的类中写列表页面的整体样式又有一点不太好维护的页面,提供了一个新基类,他有几个特点关于为什么名叫CommonListPage,首先如果叫DataPackListBasePage,那看起来好像只能DataPackListPage能用,但是实际上写的十分解构,并非只有DataPackListPage能用,比如我把WorldBackupsPage也迁移到这上面,且迁移成本非常小。但是我也不是很自信他就能变成一个"Common"的基类。只是说这个名字起的比较方便,我不会起名字。
CommonListPage:
bandicam.2026-01-19.22-37-39-879.mp4
ToolbarListPageSkin:
bandicam.2026-01-19.22-38-18-288.mp4