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

[DatePicker] 作为子应用嵌入在无界中时,日期选择器的t-popup组件会受到主应用的影响位置出现偏移 #2900

Closed
XinYtimor opened this issue Nov 9, 2023 · 5 comments
Assignees
Labels
usage the issue is about usage

Comments

@XinYtimor
Copy link

XinYtimor commented Nov 9, 2023

tdesign-vue 版本

1.5.2-naruto

重现链接

No response

重现步骤

[DatePicker] 作为子应用嵌入在无界中时,日期选择器的t-popup组件会受到主应用的影响位置出现偏移

期望结果

弹出元素不受主应用影响

实际结果

No response

框架版本

2.7.14

浏览器版本

119.0.6045.106

系统版本

win10

Node版本

No response

补充说明

No response

Tasks

No tasks being tracked yet.
Copy link
Contributor

github-actions bot commented Nov 9, 2023

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

Copy link
Contributor

github-actions bot commented Nov 9, 2023

♥️ 有劳 @zhwachen @xiaosansiji @honkinglin @Ericleungs 尽快确认问题。
确认有效后将下一步计划和可能需要的时间回复给 @XinYtimor

@XinYtimor
Copy link
Author

被主应用中相对定位元素影响,子应用transform未能正确计算,导致位置偏移

@chaishi
Copy link
Collaborator

chaishi commented Nov 10, 2023

可以尝试配置 popupProps.container 修改浮层挂载的位置

@uyarn uyarn added the usage the issue is about usage label Nov 23, 2023
@uyarn
Copy link
Collaborator

uyarn commented Nov 23, 2023

popup默认会挂在body下 可能在wujie的场景里会有影响 通过popupProps.attach配置下,改成挂在所在页面或者某个具体的节点下就可以了

@uyarn uyarn closed this as completed Nov 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
usage the issue is about usage
Projects
None yet
Development

No branches or pull requests

5 participants