diff --git a/mateclaw-ui/src/i18n/locales/en-US.ts b/mateclaw-ui/src/i18n/locales/en-US.ts index dfd74580..071e434d 100644 --- a/mateclaw-ui/src/i18n/locales/en-US.ts +++ b/mateclaw-ui/src/i18n/locales/en-US.ts @@ -2682,6 +2682,9 @@ export default { resetView: 'Reset view', fullscreen: 'Fullscreen', exitFullscreen: 'Exit fullscreen', + searchPlaceholder: 'Search nodes by name…', + searchNoMatch: 'No matching node', + searchClear: 'Clear', linksTo: 'Links to', openPage: 'Open page', empty: 'No graph data — process some raw materials first', diff --git a/mateclaw-ui/src/i18n/locales/zh-CN.ts b/mateclaw-ui/src/i18n/locales/zh-CN.ts index 3dc8fba1..3ab09c4c 100644 --- a/mateclaw-ui/src/i18n/locales/zh-CN.ts +++ b/mateclaw-ui/src/i18n/locales/zh-CN.ts @@ -2694,6 +2694,9 @@ export default { resetView: '重置视图', fullscreen: '全屏', exitFullscreen: '退出全屏', + searchPlaceholder: '按名称搜索节点…', + searchNoMatch: '无匹配节点', + searchClear: '清除', linksTo: '链接到', openPage: '打开页面', empty: '暂无图谱数据,请先处理原始材料', diff --git a/mateclaw-ui/src/views/Wiki/components/GraphNodeSearch.vue b/mateclaw-ui/src/views/Wiki/components/GraphNodeSearch.vue new file mode 100644 index 00000000..bd87ff1f --- /dev/null +++ b/mateclaw-ui/src/views/Wiki/components/GraphNodeSearch.vue @@ -0,0 +1,222 @@ + + + + + diff --git a/mateclaw-ui/src/views/Wiki/components/WikiEntityGraphView.vue b/mateclaw-ui/src/views/Wiki/components/WikiEntityGraphView.vue index 6558616b..80047ade 100644 --- a/mateclaw-ui/src/views/Wiki/components/WikiEntityGraphView.vue +++ b/mateclaw-ui/src/views/Wiki/components/WikiEntityGraphView.vue @@ -2,6 +2,15 @@
+ + +
@@ -51,13 +60,14 @@