mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-26 08:54:07 +01:00
This commit is contained in:
parent
41cdf8b660
commit
4cc06c4824
2 changed files with 18 additions and 7 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue