fix(fe): modal 的样式问题,遵循 LIFO 的弹出#226
Merged
Merged
Conversation
added 11 commits
May 9, 2026 13:27
Contributor
Author
|
好的,我会都注意提供的 diff 内容 |
dos1in
reviewed
May 12, 2026
| if (this._destroyed) return // 100ms 内 mini-app 已 destroy → 短路,不挂悬空节点 | ||
| const entry = this._mountModal(opts || {}) | ||
| this._modalStack.push(entry) | ||
| }, 100) |
Member
There was a problem hiding this comment.
这里的 setTimeout 方式需要修改下,看看有没有更稳定的时机,而不依赖硬编码 100ms。
Contributor
Author
|
修改了一下展示策略(更加贴合微信小程序 toolkit),showModal push(同步)和展示(mask 同步 + 内容 异步)分离,push 是会先 updateModal(this.stack.peek()) 再展示。setTimeout(100)用作节流,防止 modal 内容在 display A, display C 产生闪烁。 100 这个数字我想想有没有动态的 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
修复后
https://github.com/user-attachments/assets/55c495f9-3faa-4dd1-84a4-3a24f9c33443