Vanessa 2024-09-29 10:53:07 +08:00
parent 41cdf8b660
commit 4cc06c4824
2 changed files with 18 additions and 7 deletions

View file

@ -347,6 +347,22 @@ const initSearchEvent = (app: App, element: Element, config: Config.IUILayoutTab
return true;
}
});
if (target.parentElement.classList.contains("b3-chip--current")) {
updateConfig(element, {
removed: true,
sort: 0,
group: 0,
hasReplace: false,
method: 0,
hPath: "",
idPath: [],
k: "",
r: "",
page: 1,
types: getDefaultType(),
replaceTypes: Object.assign({}, Constants.SIYUAN_DEFAULT_REPLACETYPES),
}, config);
}
if (target.parentElement.parentElement.childElementCount === 1) {
target.parentElement.parentElement.classList.add("fn__none");
}