Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
1、问题/原因:
当前Dialog 是通过transform 做动画和位移的,transform 属性会导致浏览器创建一个 layer 层从而使内部子节点的 fixed 属性定位失效
调整项目:
使用flex布局解决之前居中布局使用transform位移导致子节点的 fixed 失效
2、问题/原因:
没有适配dialog长度超出屏幕,使用最大高度100vh,然后内部body进行滚动,不支持mask滚动
调整项目:
新增wrap、position两层div,用于dialog内容过长出现滚动场景
3、问题原因:
使用新的适配方案,调整拖拽实现
调整项目:
优化拖拽,重写定位位置计算,适配top定位
当dialog内容超出屏幕,不能进行拖拽