Vanessa 2025-11-27 19:27:17 +08:00
parent 50762fe6e6
commit 6e2fa8cbe1
2 changed files with 5 additions and 4 deletions

View file

@ -560,6 +560,7 @@ const initSearchEvent = (app: App, element: Element, config: Config.IUILayoutTab
types: getDefaultType(), types: getDefaultType(),
replaceTypes: Object.assign({}, Constants.SIYUAN_DEFAULT_REPLACETYPES), replaceTypes: Object.assign({}, Constants.SIYUAN_DEFAULT_REPLACETYPES),
}, config); }, config);
element.querySelector("#criteria .b3-chip--current")?.classList.remove("b3-chip--current");
}); });
window.siyuan.menus.menu.fullscreen(); window.siyuan.menus.menu.fullscreen();
event.stopPropagation(); event.stopPropagation();

View file

@ -446,7 +446,7 @@ export const moreMenu = async (config: Config.IUILayoutTabSearchConfig,
label: window.siyuan.languages.searchMethod, label: window.siyuan.languages.searchMethod,
type: "submenu", type: "submenu",
submenu: [{ submenu: [{
iconHTML: "", icon: "iconExact",
label: window.siyuan.languages.keyword, label: window.siyuan.languages.keyword,
current: config.method === 0, current: config.method === 0,
click() { click() {
@ -455,7 +455,7 @@ export const moreMenu = async (config: Config.IUILayoutTabSearchConfig,
updateSearchResult(config, element, true); updateSearchResult(config, element, true);
} }
}, { }, {
iconHTML: "", icon: "iconQuote",
label: window.siyuan.languages.querySyntax, label: window.siyuan.languages.querySyntax,
current: config.method === 1, current: config.method === 1,
click() { click() {
@ -464,7 +464,7 @@ export const moreMenu = async (config: Config.IUILayoutTabSearchConfig,
updateSearchResult(config, element, true); updateSearchResult(config, element, true);
} }
}, { }, {
iconHTML: "", icon: "iconDatabase",
label: "SQL", label: "SQL",
current: config.method === 2, current: config.method === 2,
click() { click() {
@ -473,7 +473,7 @@ export const moreMenu = async (config: Config.IUILayoutTabSearchConfig,
updateSearchResult(config, element, true); updateSearchResult(config, element, true);
} }
}, { }, {
iconHTML: "", icon: "iconRegex",
label: window.siyuan.languages.regex, label: window.siyuan.languages.regex,
current: config.method === 3, current: config.method === 3,
click() { click() {