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

[SwipeCell] 与Popup组件配合使用时t-swipe-cell__right无法正常获取宽度 #3295

Open
dancelion opened this issue Nov 19, 2024 · 3 comments
Labels
question This is a question, not a bug

Comments

@dancelion
Copy link

tdesign-miniprogram 版本

1.7.1

重现链接

No response

重现步骤

t-swipe-cell 嵌套在t-popup里使用
image

期望结果

当嵌套使用时也能正常获取t-swipe-cell__right的宽度

实际结果

image

基础库版本

3.6.5

补充说明

No response

Copy link
Contributor

👋 @dancelion,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@anlyyao
Copy link
Collaborator

anlyyao commented Nov 19, 2024

@dancelion popup有一个动画 duration是300ms,因此在获取dom前,你需要确保swipecell已经渲染完毕了

@anlyyao anlyyao added the question This is a question, not a bug label Nov 19, 2024
@dancelion
Copy link
Author

手动增加了200ms延迟,暂时解决了这个问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question This is a question, not a bug
Projects
None yet
Development

No branches or pull requests

2 participants