mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-24 02:20:13 +01:00
🚨
This commit is contained in:
parent
09d1d7c874
commit
9989d79060
4 changed files with 9 additions and 9 deletions
|
|
@ -307,10 +307,10 @@ ${cell.color ? `color:${cell.color};` : ""}">${renderCell(cell.value)}</div>`;
|
|||
} else {
|
||||
viewsElement.classList.remove("av__views--show");
|
||||
}
|
||||
updateSearch(e, protyle)
|
||||
updateSearch(e, protyle);
|
||||
});
|
||||
searchInputElement.addEventListener("compositionend", () => {
|
||||
updateSearch(e, protyle)
|
||||
updateSearch(e, protyle);
|
||||
});
|
||||
searchInputElement.addEventListener("blur", (event: KeyboardEvent) => {
|
||||
if (event.isComposing) {
|
||||
|
|
@ -341,15 +341,15 @@ ${cell.color ? `color:${cell.color};` : ""}">${renderCell(cell.value)}</div>`;
|
|||
}
|
||||
};
|
||||
|
||||
let searchTimeout: number
|
||||
let searchTimeout: number;
|
||||
|
||||
const updateSearch = (e: HTMLElement, protyle: IProtyle) => {
|
||||
clearTimeout(searchTimeout)
|
||||
clearTimeout(searchTimeout);
|
||||
searchTimeout = window.setTimeout(() => {
|
||||
e.removeAttribute("data-render");
|
||||
avRender(e, protyle)
|
||||
avRender(e, protyle);
|
||||
}, Constants.TIMEOUT_INPUT);
|
||||
}
|
||||
};
|
||||
|
||||
const refreshTimeouts: {
|
||||
[key: string]: number;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue