mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
This commit is contained in:
parent
50762fe6e6
commit
6e2fa8cbe1
2 changed files with 5 additions and 4 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue