-
Notifications
You must be signed in to change notification settings - Fork 23
feat(demo): enhance demo preview component with loading state and error handling #32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
0a91fd5
feat(demo): enhance demo preview component with loading state and err…
zds-s 95c6d83
chore: update .gitignore to include 'dist' directory
zds-s a92155f
feat(docs): enhance documentation for MineAdmin plugin system, includ…
zds-s ced504d
🌐 Auto-translated content
zds-s File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| .temp | ||
| cache | ||
| .vite | ||
| .vite | ||
| dist |
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
🧩 Analysis chain
动态渲染插槽可能不稳定:slot 函数并非组件,建议用 render 包装后再挂载
slots[file]返回的是插槽函数而非组件定义,直接作为<component :is="...">的值在某些场景下会出现渲染异常或丢失 class 的问题。建议用一个带render的对象包装,且将样式类应用在稳定的包裹元素上。可在本段内做最小改动如下:
抱歉,我注意到未生成任何验证脚本。为了确认
tab.component的类型及其在模板中的使用,建议先查看.vitepress/components/code-group.vue中相关代码。请允许我运行以下脚本来获取上下文:为确认
tab.component的真实类型及用法,先查看.vitepress/components/code-group.vue的 template 和 script 部分:🏁 Script executed:
Length of output: 4327
封装动态插槽渲染以避免渲染异常和样式丢失
直接把
slots[file](插槽渲染函数)作为<component :is="…">会在部分场景下丢失class或渲染异常。建议将它包装成带render方法的组件定义,并把样式类放到稳定的外层容器上:• 文件:
.vitepress/components/code-group.vue• 位置:约第 47–49 行
请在合并前采纳此改动,确保插槽渲染稳定且样式正确生效。
📝 Committable suggestion
🤖 Prompt for AI Agents