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(n-split): support multiple panel #6566

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

jahnli
Copy link
Collaborator

@jahnli jahnli commented Nov 27, 2024

close #6518

改动:

  • 新增多面板
  • 新增吸附 & 中心吸附
  • 根据插槽为 number 类型推断为面板插槽
  • 新增 number[] 类型的 panelSizes 存储每个面板的 size
  • 不再根据 triggeroffset 更新面板大小
  • 去除了 pane1-class pane1-style pane2-class pane2-style

未能解决的问题:

  • defaultSize size 合并
  • disable
  • watchProps
  • 多个 resize-trigger 插槽
  • 每个面板的 class style
  • 代码可能需要优化 ( 像素转化部分 ,面板大小更新的逻辑 )

Copy link

vercel bot commented Nov 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
naive-ui ❌ Failed (Inspect) Nov 27, 2024 9:46am

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.

面板分割支持多个
1 participant