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

In the <a-table> component, when the x attribute of scroll is set, the table will appear abnormal when the page is loaded for the first time. #4993

Closed
1 task
ll60 opened this issue Dec 7, 2021 · 10 comments

Comments

@ll60
Copy link

ll60 commented Dec 7, 2021

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

Version

3.0.0-alpha.14

Environment

操作系统: macOS12.0.1、浏览器: Chrome 版本 96.0.4664.55(正式版本) (arm64)、VUE版本: 3.2.16

Reproduction link

Edit on CodeSandbox

Steps to reproduce

页面创建一个,设置scroll的x为任意值,首次进入页面会出现异常现象,之后又正常,刷新页面可重现异常样式。

What is expected?

预期设置scroll的x值后,显示正常

What is actually happening?

设置scroll的x值后,表格首次进入页面出现异常显示,之后一瞬间又好了,貌似是table的内部容器,宽度样式丢失了。


请在本地电脑项目验证这一bug, 在线编辑器中无法重现当前问题。

@github-actions github-actions bot changed the title <a-table>组件,设置scroll的x属性时,首次加载页面,表格会出现异常现象。 In the <a-table> component, when the x attribute of scroll is set, the table will appear abnormal when the page is loaded for the first time. Dec 7, 2021
@tangjinzhou
Copy link
Member

本地电脑没复现

@ll60
Copy link
Author

ll60 commented Dec 8, 2021

电脑本地没复现

WeChat09276f80516182e49590406df021d042

你好,是进入页面一瞬间的情况,看上述截图 在,网页里写 onMounted(() => { setTimeout(() => { window.location.reload() }, 50) }) 一直刷新页面,可以一直复现这个情况。

@ll60
Copy link
Author

ll60 commented Dec 10, 2021

电脑本地没复现

你好,请问是否可以复现当前问题

@tangjinzhou
Copy link
Member

没能复现 😓

@github-actions
Copy link

Hello @ll60. We totally like your proposal/feedback, welcome to send us a Pull Request for it. Please send your Pull Request to proper branch, fill the Pull Request Template here, provide changelog/TypeScript/documentation/test cases if needed and make sure CI passed, we will review it soon. We appreciate your effort in advance and looking forward to your contribution!

你好 @ll60,我们完全同意你的提议/反馈,欢迎直接在此仓库创建一个 Pull Request 来解决这个问题。请将 Pull Request 发到正确的分支,务必填写 Pull Request 内的预设模板,提供改动所需相应的 changelog、TypeScript 定义、测试用例、文档等,并确保 CI 通过,我们会尽快进行 Review,提前感谢和期待您的贡献。

@ll60
Copy link
Author

ll60 commented Dec 10, 2021

没能复现 😓
11CCDC0021D7D7C032B14A684D8F3AE5

@Cheerwhy
Copy link

确实有这个问题, 只要scroll的x属性设置了,无论为何值,组件第一次渲染就有这个显示bug

@tangjinzhou
Copy link
Member

能复现的帮忙看看呗 感谢

@ll60
Copy link
Author

ll60 commented Dec 20, 2021

能复现的帮忙看看呗 感谢

233...就用vite创建个初始项目,之后引入ant,用a-table,设置x就复现了,不知道为啥你电脑没复现..我用好几个同事的电脑,都有这种情况。有mac,有window..

@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 Dec 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants