mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-07-03 14:09:06 +02:00
This commit is contained in:
@@ -560,6 +560,7 @@ const initSearchEvent = (app: App, element: Element, config: Config.IUILayoutTab
|
||||
types: getDefaultType(),
|
||||
replaceTypes: Object.assign({}, Constants.SIYUAN_DEFAULT_REPLACETYPES),
|
||||
}, config);
|
||||
element.querySelector("#criteria .b3-chip--current")?.classList.remove("b3-chip--current");
|
||||
});
|
||||
window.siyuan.menus.menu.fullscreen();
|
||||
event.stopPropagation();
|
||||
|
||||
@@ -446,7 +446,7 @@ export const moreMenu = async (config: Config.IUILayoutTabSearchConfig,
|
||||
label: window.siyuan.languages.searchMethod,
|
||||
type: "submenu",
|
||||
submenu: [{
|
||||
iconHTML: "",
|
||||
icon: "iconExact",
|
||||
label: window.siyuan.languages.keyword,
|
||||
current: config.method === 0,
|
||||
click() {
|
||||
@@ -455,7 +455,7 @@ export const moreMenu = async (config: Config.IUILayoutTabSearchConfig,
|
||||
updateSearchResult(config, element, true);
|
||||
}
|
||||
}, {
|
||||
iconHTML: "",
|
||||
icon: "iconQuote",
|
||||
label: window.siyuan.languages.querySyntax,
|
||||
current: config.method === 1,
|
||||
click() {
|
||||
@@ -464,7 +464,7 @@ export const moreMenu = async (config: Config.IUILayoutTabSearchConfig,
|
||||
updateSearchResult(config, element, true);
|
||||
}
|
||||
}, {
|
||||
iconHTML: "",
|
||||
icon: "iconDatabase",
|
||||
label: "SQL",
|
||||
current: config.method === 2,
|
||||
click() {
|
||||
@@ -473,7 +473,7 @@ export const moreMenu = async (config: Config.IUILayoutTabSearchConfig,
|
||||
updateSearchResult(config, element, true);
|
||||
}
|
||||
}, {
|
||||
iconHTML: "",
|
||||
icon: "iconRegex",
|
||||
label: window.siyuan.languages.regex,
|
||||
current: config.method === 3,
|
||||
click() {
|
||||
|
||||
Reference in New Issue
Block a user