Comments (3)
Start a new pull request in StackBlitz Codeflow.
from ant-design.
我对比了 Menu 组件 和 Dropdown 组件的多层级被包裹在一个包含滚动条的容器当中的情况。
Menu 组件的二级菜单样式中的 inset 属性值会随着容器内滚动条滚动而发生变化,即Menu的二次菜单会随着滚动条一起移动;
Dropdown 组件的二级菜单样式中的 inset 属性值不会随着容器内滚动条滚动而变化,所以 Dropdown 的二级菜单不会随着滚动条一起移动。
怀疑 Dropdown 组件没有处理被包裹在带有滚动条容器当中时,随着滚动条动态设置 inset 属性值
希望对大家有所帮助
from ant-design.
一级弹层本身是在 scroll 容器外,而容器滚动时会使得一级弹层同步移动,而对于二级弹层是没有监听到容器滚动的(因为一级弹层没有在容器里)。
感觉需要一个通知机制告知子元素可能存在的滚动情况。
from ant-design.
Related Issues (20)
- Adding title Design Token to Table Component HOT 4
- 5.18.2 版本,表格列排序 icon 激活态有问题 HOT 4
- @types CascaderProps multiple类型定义错误 HOT 3
- [antd4.x][Pagination] itemRender,page>3 return null 时,分页按钮还在,只是具体数字空白 HOT 2
- RangePicker组件在onCalendarChange方法中调用form.setFieldsValue会导致时间不可选择 HOT 1
- 【Collapse】icon 和 header 部分没有水平对齐 HOT 2
- Skeleton unmounting throws errors in console in Preact HOT 2
- Alert closable时的关闭动画结束的时候有点卡顿 HOT 2
- 站点示例demo描述里面涉及内部跳转的地方漏了语言环境 HOT 2
- Hydration errors on documentation page https://ant.design/ in any browser on macos (all extensions disabled) HOT 3
- Can antd enhance the actual performance of components in the project by adding e2e testing? HOT 2
- 5.18.2修改useSorter后导致: 更新表格列后,排序失效 HOT 9
- Table sorting with children doesn't work
- Pagination组件使用simple参数时showQuickJumper默认false效果失效 HOT 4
- Tabs extra content raises an a11y error HOT 2
- v4升级到v5时如果项目中引用了v4 less文件中变量只能手动处理吗? HOT 2
- datePicker 周 类型组件的展示问题 HOT 1
- Modal弹窗 将click事件注册在外层不清除将导致在微前端下重复订阅 HOT 1
- aria-required does not match the role of form items HOT 2
- Calendar opens several time if there is no need to confirm HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ant-design.