mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-26 17:04:07 +01:00
🚨
This commit is contained in:
parent
a18e3a585c
commit
8c19d17946
7 changed files with 15 additions and 16 deletions
|
|
@ -339,7 +339,7 @@ export const bazaar = {
|
|||
highlightRender(mdElement);
|
||||
});
|
||||
}
|
||||
readmeElement.classList.add("config-bazaar__readme--show")
|
||||
readmeElement.classList.add("config-bazaar__readme--show");
|
||||
},
|
||||
bindEvent() {
|
||||
fetchPost("/api/bazaar/getBazaarTheme", {}, response => {
|
||||
|
|
@ -377,7 +377,7 @@ export const bazaar = {
|
|||
event.stopPropagation();
|
||||
break;
|
||||
} else if (type === "goBack") {
|
||||
bazaar.element.querySelector("#configBazaarReadme").classList.remove("config-bazaar__readme--show")
|
||||
bazaar.element.querySelector("#configBazaarReadme").classList.remove("config-bazaar__readme--show");
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ export const genItemPanel = (type: string, containerElement:Element) => {
|
|||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export const openSetting = () => {
|
||||
const exitDialog = window.siyuan.dialogs.find((item) => {
|
||||
|
|
|
|||
|
|
@ -113,7 +113,7 @@ export const initConfigSearch = (element: HTMLElement) => {
|
|||
return;
|
||||
}
|
||||
// 右侧面板过滤
|
||||
const panelElement = element.querySelector(`.config__tab-container[data-name="${type}"]`)
|
||||
const panelElement = element.querySelector(`.config__tab-container[data-name="${type}"]`);
|
||||
if (panelElement.innerHTML === "") {
|
||||
genItemPanel(type, panelElement);
|
||||
}
|
||||
|
|
@ -126,7 +126,7 @@ export const initConfigSearch = (element: HTMLElement) => {
|
|||
} else {
|
||||
panelElement.querySelectorAll(`.config__tab-container[data-name="${type}"] .b3-label`).forEach((itemElement: HTMLElement) => {
|
||||
if (!itemElement.classList.contains("fn__none")) {
|
||||
const text = itemElement.textContent.toLowerCase()
|
||||
const text = itemElement.textContent.toLowerCase();
|
||||
if (text.indexOf(inputValue.toLowerCase()) > -1 || inputValue.toLowerCase().indexOf(text) > -1) {
|
||||
itemElement.style.display = "";
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue