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

feat(ui): add page state layer #45

Merged
merged 4 commits into from
Aug 29, 2024
Merged

feat(ui): add page state layer #45

merged 4 commits into from
Aug 29, 2024

Conversation

cEvolve05
Copy link
Member

@cEvolve05 cEvolve05 commented Aug 27, 2024

决定将页面状态添加为可选的组件,提供最大灵活性。具体使用方法见代码注释。close #40
发现没有好用的按钮,等待重构按钮。

组件提供了如下状态:

  • Normal
  • Loading
  • Error

Tasks:

  • 添加基础内容
  • 测试,移除冗余代码,导出组件

@cEvolve05 cEvolve05 added the feature New feature or request label Aug 27, 2024
@cEvolve05 cEvolve05 self-assigned this Aug 27, 2024
@cEvolve05 cEvolve05 linked an issue Aug 27, 2024 that may be closed by this pull request
@cEvolve05 cEvolve05 requested a review from Serein207 August 29, 2024 02:25
@cEvolve05 cEvolve05 marked this pull request as ready for review August 29, 2024 02:25
@Serein207
Copy link
Member

页面状态用一个enum表示,并导出这个enum,visible和status!=Normal绑定

@cEvolve05 cEvolve05 merged commit 4c62ce8 into dev Aug 29, 2024
3 checks passed
@cEvolve05 cEvolve05 deleted the feat/ui/page-state branch August 29, 2024 05:47
zwow-cj pushed a commit that referenced this pull request Aug 30, 2024
* feat(ui): added basic page state layer
* feat: added button for error state
* feat: use `PageState` instead
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat(ui): add Normal Loading Error state to Page
2 participants