Skip to content

feat: 新增节点搜索功能,优化安装脚本#49

Closed
x1ngkong wants to merge 1 commit intopotato47:masterfrom
x1ngkong:search-node
Closed

feat: 新增节点搜索功能,优化安装脚本#49
x1ngkong wants to merge 1 commit intopotato47:masterfrom
x1ngkong:search-node

Conversation

@x1ngkong
Copy link

  1. 新增按节点名/组件名的搜索、命中高亮和路径展开能力,便于在复杂场景中快速定位目标节点
  2. 优化安装脚本,防止覆盖安装带来的不便
  3. 补充维护说明并调整构建告警阈值,减少无效体积告警干扰。
image

1. 新增按节点名/组件名的搜索、命中高亮和路径展开能力,便于在复杂场景中快速定位目标节点
2. 优化安装脚本,防止覆盖安装带来的不便
3. 补充维护说明并调整构建告警阈值,减少无效体积告警干扰。
Copilot AI review requested due to automatic review settings March 14, 2026 03:36
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>
@potato47
Copy link
Owner

项目已重构,搜索功能已添加

@potato47 potato47 closed this Mar 15, 2026
@x1ngkong
Copy link
Author

x1ngkong commented Mar 16, 2026

  1. 搜索过程中,不能展开/合起目标节点
  2. 搜索结束,点击x关闭,无法自动定位到目标节点

建议大佬补全这两个功能

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants