Comments (15)
@ant-design/ant-design-collaborators 看看
from ant-design.
Start a new pull request in StackBlitz Codeflow.
from ant-design.
如果 Modal 在 Popover 上面后,点击页面空白处,是先关闭 Modal,再点击空白处,再关闭 Popover
from ant-design.
看起来是默认层级不太对的样子
from ant-design.
好像默认zIndex token是1000,popover在原基础上加了30,modal是1000,popover是1030
from ant-design.
按理解的话,modal的层级应该是最高的?
from ant-design.
按理解的话,modal的层级应该是最高的?
需要更改的话,我可以提个pr
from ant-design.
如果 Modal 中打开 Popover 呢?
from ant-design.
对哦,那这么看的话,应该是:不管谁打开谁,都是被打开的要在上面?
btw,点击空白区域的话(popover打开modal),感觉应该是取消一次?也就是关掉modal,popover仍然打开着,需要再点击一次popover才消失,类似esc按键的退出机制?(一次就退出一层)
from ant-design.
可以看看打开2个Modal,点击空白处,是关闭一个还是全部关闭
from ant-design.
modal中打开modal,点击空白,没问题,是先关闭2,再点击,才关闭1
from ant-design.
modal.mov
from ant-design.
同组件嵌套使用没问题,不同组件嵌套还是有问题,比如 Modal 放到 Popover 里面的话,关闭 Modal 会闪一下 Popover
https://stackblitz.com/edit/react-hmtytu-4tewqw?file=demo.tsx
iShot_2024-03-21_09.30.18.mp4
from ant-design.
确实
btw: 第一个demo例子感觉有点奇怪,第二个demo逻辑跟设想的一样正常弹出,后面弹出的覆盖前面弹出的
from ant-design.
确实
btw: 第一个demo例子感觉有点奇怪,第二个demo逻辑跟设想的一样正常弹出,后面弹出的覆盖前面弹出的
多 Modal,其实也不是嵌套写的,但是也没问题
from ant-design.
Related Issues (20)
- 'no data' label shouldn't be displayed as long as loading is true HOT 4
- Set components styles based on current algorithm HOT 1
- Visual glitch when opening a Modal containing an already opened Select HOT 1
- Form has Inconsistent performance when has number in namepath HOT 1
- Table - Extra padding below last row caused by setting the scollY
- Table - Extra padding below last row caused by setting the scollY HOT 1
- Switch doesn't show icon if there is only unCheckedChildren HOT 2
- Upload组件fileList大于maxCount时, 删除错误 HOT 2
- Upload组件在设置了放弃动画的条件下, 删除时动画交互异常 HOT 1
- [Input.Search] font-size for addon button does not vary with the setting HOT 1
- Entering date manually in custom date-fns date picker with format HOT 2
- Next.js 14.1.4 fails to build when using antd due to "SyntaxError: Cannot use import statement outside a module" HOT 2
- virtual 下的 components.body样式问题 HOT 3
- 在一些惠普windows电脑上 tab切换后 上一个被点击的item下面有根蓝线 HOT 2
- tabs组件在小分辨率下展示计算有问题
- Multiple Select input crashes when searching HOT 1
- Pressing "ESC" key doesn't close the modal when the focus is on a search select inside the modal HOT 4
- How do I reset all the table filters without re-rendering the whole table HOT 2
- onPopScroll function not working for TreeSelect HOT 1
- List item add hover color based of current algorithm HOT 2
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.