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: develop a Split Pane component #509

Merged
merged 27 commits into from
Feb 24, 2022
Merged

feat: develop a Split Pane component #509

merged 27 commits into from
Feb 24, 2022

Conversation

mortalYoung
Copy link
Collaborator

@mortalYoung mortalYoung commented Nov 15, 2021

简介

  • 开发 SplitPane 组件替代 react-split-pane

主要变更

  • 新增 SplitPane 组件

先合并 #510 的内容到本分支,再把本分支合并至 main 分支

Related Issues

Closed #644 #407

@mortalYoung mortalYoung requested a review from wewoor November 15, 2021 11:48
@mortalYoung mortalYoung self-assigned this Nov 15, 2021
@codecov
Copy link

codecov bot commented Nov 15, 2021

Codecov Report

Merging #509 (01a9de4) into main (e36b8ad) will increase coverage by 1.28%.
The diff coverage is 92.62%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #509      +/-   ##
==========================================
+ Coverage   89.38%   90.66%   +1.28%     
==========================================
  Files         185      189       +4     
  Lines        5631     5915     +284     
  Branches     1336     1420      +84     
==========================================
+ Hits         5033     5363     +330     
+ Misses        590      545      -45     
+ Partials        8        7       -1     
Impacted Files Coverage Δ
src/services/theme/colorRegistry.ts 100.00% <ø> (ø)
src/services/theme/helper.ts 100.00% <ø> (ø)
src/controller/editor.tsx 25.71% <40.00%> (+3.25%) ⬆️
src/workbench/workbench.tsx 71.15% <53.12%> (-28.85%) ⬇️
src/services/workbench/editorService.ts 96.73% <55.55%> (-1.39%) ⬇️
src/workbench/editor/editor.tsx 86.36% <75.00%> (ø)
src/components/split/SplitPane.tsx 97.43% <97.43%> (ø)
src/components/collapse/index.tsx 98.51% <98.30%> (+51.57%) ⬆️
src/components/collapse/base.tsx 100.00% <100.00%> (ø)
src/components/split/base.ts 100.00% <100.00%> (ø)
... and 16 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e36b8ad...01a9de4. Read the comment docs.

@mortalYoung mortalYoung changed the title [WIP]: feat: develop a Split Pane component feat: develop a Split Pane component Nov 18, 2021
@wewoor
Copy link
Collaborator

wewoor commented Nov 22, 2021

@mortalYoung 试了下,Workbench 面板 Resize 好像出不来,Outline 面板可以无限制拖动

@mortalYoung
Copy link
Collaborator Author

@mortalYoung 试了下,Workbench 面板 Resize 好像出不来,Outline 面板可以无限制拖动

resize 修复了,Panel 这块因为没有 minSize 和 maxSize 设置,所以可以无限制的拖动

Copy link
Collaborator

@wewoor wewoor left a comment

Choose a reason for hiding this comment

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

image

Not support the maxSize or 'minSize`

@wewoor wewoor changed the title feat: develop a Split Pane component WIP: feat: develop a Split Pane component Nov 22, 2021
@wewoor
Copy link
Collaborator

wewoor commented Nov 22, 2021

@mortalYoung stories 中需要补充一个基本使用示例

@mortalYoung
Copy link
Collaborator Author

@mortalYoung stories 中需要补充一个基本使用示例

done!

@wewoor wewoor mentioned this pull request Feb 21, 2022
14 tasks
@mortalYoung mortalYoung changed the title WIP: feat: develop a Split Pane component feat: develop a Split Pane component Feb 21, 2022
@mortalYoung mortalYoung requested a review from wewoor February 23, 2022 02:53
@wewoor wewoor requested a review from kiwiwong February 23, 2022 03:18
Copy link
Collaborator

@wewoor wewoor left a comment

Choose a reason for hiding this comment

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

image

@mortalYoung mortalYoung requested a review from wewoor February 23, 2022 06:42
Copy link
Collaborator

@kiwiwong kiwiwong left a comment

Choose a reason for hiding this comment

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

Kapture 2022-02-23 at 15 58 27
调整panel的大小时,group的大小也会变。

@mortalYoung mortalYoung requested a review from kiwiwong February 23, 2022 08:53
@mortalYoung mortalYoung linked an issue Feb 23, 2022 that may be closed by this pull request
Copy link
Collaborator

@kiwiwong kiwiwong left a comment

Choose a reason for hiding this comment

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

+1

Copy link
Collaborator

@wewoor wewoor 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 3317aee into main Feb 24, 2022
@wewoor wewoor deleted the feat/split branch February 24, 2022 02:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants