🐛 [Bug]: DatePicker时间面板被遮挡
Version
3.16.0
Vue Version
3.4.34
Link to minimal reproduction
Step to reproduce
- 前提条件,时间选择器页面是通过iframe嵌入到另一个页面里的,结构大概是这样的。
What is expected
What is actually happening
What is your project name
datepicker
Any additional comments (optional)
No response
Bot detected the issue body's language is not English, translate it automatically.
Title: 🐛 [Bug]: DatePicker time panel is blocked
https://opentiny.design/tiny-vue/zh-CN/infinity-theme/docs/faq 这个可解决这个问题
看起来您遇到了一个问题,即 DatePicker 时间面板被遮挡。这个问题通常是由于 iframe 的样式设置导致的,特别是 overflow: hidden 属性可能会导致子元素被裁剪。
可能的解决方案:
-
调整样式:
- 确保
iframe的父元素没有设置overflow: hidden,或者尝试将其改为overflow: visible。 - 检查
DatePicker的z-index,确保它高于其他可能遮挡它的元素。
- 确保
-
使用
portal技术:- 如果
DatePicker支持portal,可以尝试将其渲染到body外部,以避免被iframe的样式影响。
- 如果
-
调整
iframe的高度:- 确保
iframe的高度足够大,以容纳DatePicker的下拉面板。
- 确保
如果这些建议没有解决您的问题,您可以提供更多的代码细节或尝试在不同的环境中进行测试,以帮助进一步诊断问题。
如果您需要进一步的帮助,请随时告诉我!
🪧 Tips
For further assistance, please describe your question in the comments and @petercat-assistant to start a conversation with me.
MBM产品的联建4环境中,时间选择器在高度不充足的情况下,面板部分信息被截断。
这是没有问题的情景
Bot detected the issue body's language is not English, translate it automatically.
In the MBM product joint construction 4 environment, when the time selector is insufficient, part of the panel information is truncated.
This is a scenario without any problems
这是有问题的情景
时间选择面板下面的确认按钮被遮挡住了,麻烦修复一下
Bot detected the issue body's language is not English, translate it automatically.
This is a problematic situation
The confirmation button under the time selection panel is blocked, please fix it
Version 3.19.0
Vue Version 3.4.27