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

The table causes a-menu to collapse and collapse #4787

Closed
1 task done
yanbowe opened this issue Oct 20, 2021 · 7 comments
Closed
1 task done

The table causes a-menu to collapse and collapse #4787

yanbowe opened this issue Oct 20, 2021 · 7 comments
Labels
🤔 Need Reproduce We cannot reproduce your problem outdated

Comments

@yanbowe
Copy link

yanbowe commented Oct 20, 2021

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

3.0.0-alpha.4

Environment

windows10, Chrome 最新版本, Vue 3.2.19, ant-design-vue: "3.0.0-alpha.4"

Reproduction link

https://gitee.com/zhongjiancrm/vite-ant-design-vue-v3

Steps to reproduce

下载项目 安装依赖。
输入账号为admin,密码为123456的账户进入系统 在首页查看table效果
当表格数据为 9列 15条数据的时候 a-menu折叠动画会变得异常卡顿,但是当我打开F12 把窗口宽度拉到50%左右又会变得异常的流畅。

What is expected?

在数据量不大的时候a-menu没有卡顿,折叠收起动画正常显示

What is actually happening?

只有15条数据的时候a-menu折叠收起异常卡顿

@github-actions github-actions bot changed the title 表格造成a-menu收起折叠卡顿 The form causes a-menu to collapse and collapse Oct 20, 2021
@yanbowe
Copy link
Author

yanbowe commented Oct 20, 2021

在V2.2.8上,我感觉流畅度比V3的要高

@yanbowe
Copy link
Author

yanbowe commented Oct 20, 2021

把项目ant-design-vue依赖更新为V2.2.8,并注释dayjs相关代码,发现菜单折叠异常流畅

@tangjinzhou
Copy link
Member

如果提供不了codesand box,也请提供可以运行的示例

@tangjinzhou tangjinzhou added the 🤔 Need Reproduce We cannot reproduce your problem label Oct 25, 2021
@github-actions
Copy link

Hello @yanbowe. Please provide a online reproduction by forking this link for vue2link for vue3 or a minimal GitHub repository. Make sure to choose the correct version.

你好 @yanbowe, 我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击 此处 for vue2此处 for vue3 创建一个 codesandbox 或者提供一个最小化的 GitHub 仓库。请确保选择准确的版本。

@tangjinzhou tangjinzhou changed the title The form causes a-menu to collapse and collapse The table causes a-menu to collapse and collapse Oct 25, 2021
@yanbowe
Copy link
Author

yanbowe commented Oct 25, 2021

如果提供不了codesand box,也请提供可以运行的示例

我提供了个最小化的仓库可以运行复现
https://github.com/yanbowe/Vite-antdv-demo

@yanbowe
Copy link
Author

yanbowe commented Oct 25, 2021

我发现问题所在了 ,我只要提供scroll参数的话,设置X或Y,就会造成卡顿,提供一个空对象是不会的
image

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🤔 Need Reproduce We cannot reproduce your problem outdated
Projects
None yet
Development

No branches or pull requests

2 participants