feat(structure): support search in DDL view

This commit is contained in:
jearhe authored and GitHub committed 2026-08-28 15:30:08 +08:00
1 parent df88d7baa7
commit 6d8e667bed
4 files changed
+334 -24

No files matched your search

@@ -14,6 +14,11 @@ const props = defineProps<{
tone?: "app" | "editor";
}>();
const emit = defineEmits<{
open: [];
close: [];
}>();
const { t } = useI18n();
const settingsStore = useSettingsStore();
@@ -271,6 +276,7 @@ function scheduleDocumentSearchUpdate() {
function openSearch(): boolean {
searchVisible.value = true;
emit("open");
const v = props.view;
if (v) {
cmOpenSearchPanel(v);
@@ -322,6 +328,7 @@ function closeSearch() {
clearSearchQuery();
v.focus();
}
if (wasVisible) emit("close");
return wasVisible;
}