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

refactor: update the PanelService #300

Merged
merged 5 commits into from
Aug 3, 2021
Merged

refactor: update the PanelService #300

merged 5 commits into from
Aug 3, 2021

Conversation

wewoor
Copy link
Collaborator

@wewoor wewoor commented Jul 30, 2021

简介

根据 Naming Rules 重构PanelService的方法明,部分接口类型,和文档完善

主要变更

  • maximizeRestore 重命名为 toggleMaximize
  • getById 重命名为 getPanel
  • 移除多余 的 render 方法 The types of panel.add will confused #283
  • 添加 setActive(id: string) 函数
  • IPanelItem title 添加注释 The types of panel.add will confused #283
    这里单独添加 title 属性的原因是,之前不支持 Tooltip 组件,所以要独立添加 title 属性,name 后期会设计成 ReactNode 类型
  • IPanelService 接口添加基本注释

Resolved #283

Copy link
Collaborator

@mortalYoung mortalYoung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@wewoor wewoor merged commit 421d8cb into main Aug 3, 2021
@wewoor wewoor deleted the refactor/panel branch August 3, 2021 03:16
ProfBramble pushed a commit that referenced this pull request Aug 4, 2021
* refactor: rename the PanelService methods

* docs: add comments for the IPanelService interface

* feat: add setActive method in the PanelService

* refactor: remove the render function from IPanelItem interface

* docs: add a comment for the title attribute of IPanelItem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The types of panel.add will confused
2 participants