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

支持虚拟滚动 #570

Merged
merged 8 commits into from
Oct 19, 2022
Merged

支持虚拟滚动 #570

merged 8 commits into from
Oct 19, 2022

Conversation

Tidyzq
Copy link
Contributor

@Tidyzq Tidyzq commented Oct 12, 2022

  1. 添加组件 RecycleScroller 实现虚拟滚动,在 log 面板上应用
  2. 由于虚拟滚动的需要,修改了 log 面板布局样式:从绝对定位改为 flexbox
  3. 由于虚拟滚动需要复用 logRow,将 logRow 以及其子组件逻辑改为可被复用
    1. 部分初始化逻辑从只执行一次改为,每次变更后执行
    2. logRow 的展开状态从局部变量改为存储到 log.model 中
  4. log 面板添加 topbottom 按钮用于快速滚动到顶部/底部
  5. 由于虚拟滚动需要将 vc-plugin-box 高度固定为容器高度,而其他面板依赖其高度自然撑开进行默认滚动,为插件的 renderTab 调用添加了第二个可选参数,用于配置 tab。
    1. 添加了 fixedHeight 参数,用于指定将容器高度固定为 100%。

@tencent-adm
Copy link
Member

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@Maizify Maizify merged commit 3cbde14 into Tencent:dev Oct 19, 2022
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.

3 participants