Closed
Conversation
x1ngkong
commented
Mar 14, 2026
- 新增按节点名/组件名的搜索、命中高亮和路径展开能力,便于在复杂场景中快速定位目标节点
- 优化安装脚本,防止覆盖安装带来的不便
- 补充维护说明并调整构建告警阈值,减少无效体积告警干扰。
1. 新增按节点名/组件名的搜索、命中高亮和路径展开能力,便于在复杂场景中快速定位目标节点 2. 优化安装脚本,防止覆盖安装带来的不便 3. 补充维护说明并调整构建告警阈值,减少无效体积告警干扰。
There was a problem hiding this comment.
Pull request overview
该 PR 为场景节点树新增“按节点名/组件名搜索”的交互能力(含命中高亮、自动展开命中路径、清空后恢复展开状态),并同步调整预览模板的安装/更新脚本与构建告警阈值,以降低维护与使用成本。
Changes:
- 在
TreePanel中新增搜索栏、过滤逻辑、命中高亮与路径展开/恢复机制 - 优化
scripts/setup.js:从“整包覆盖复制”改为“首次完整安装 + 后续仅增量更新 dist(并清空 assets)” - 调整构建告警阈值并升级依赖(Element Plus 等),补充维护说明与更新预览模板产物
Reviewed changes
Copilot reviewed 5 out of 11 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/components/TreePanel.vue | 增加节点/组件搜索、命中高亮、自动展开与定位闪烁等交互逻辑 |
| scripts/setup.js | 优化预览模板安装流程(首次复制、后续增量更新 dist) |
| vite.config.ts | 提高 chunk 体积告警阈值以减少无效告警 |
| package.json | 升级 element-plus 并补充 vue-demi 依赖 |
| yarn.lock | 锁定依赖树变更以匹配升级后的依赖版本 |
| README.md | 增加维护者补充说明与提交流程建议 |
| release/preview-template/dist/index.html | 更新构建产物引用的 hash 文件名 |
| release/preview-template/dist/assets/index.*.css | 更新构建产物 CSS(文件名与内容变更) |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+5
to
9
| const projectTemplatePath = 'C:/workspace/Administration/client'; | ||
|
|
||
| if (!fse.existsSync(projectTemplatePath)) { | ||
| console.error('project path not exist'); | ||
| return; |
| <span :class="{ 'node-hide': !node.data.active }">{{ node.label }}</span> | ||
| <span :class="{ 'node-hide': !node.data.active, 'node-match': isNodeDirectMatch(node.data), 'node-flash': flashNodeUuid === node.data.uuid }"> | ||
| <template v-if="searchText && isNodeDirectMatch(node.data)"> | ||
| <span v-html="highlightName(node.label)"></span> |
Owner
|
项目已重构,搜索功能已添加 |
Author
建议大佬补全这两个功能 |
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.