This commit is contained in:
Vanessa 2023-12-13 17:05:12 +08:00
parent 9b7385bcb7
commit 461f0bb347
2 changed files with 1 additions and 3 deletions

View File

@ -243,7 +243,7 @@ export const avClick = (protyle: IProtyle, event: MouseEvent & { target: HTMLEle
} else if (target.classList.contains("av__cell")) { } else if (target.classList.contains("av__cell")) {
if (!hasClosestByClassName(target, "av__row--header")) { if (!hasClosestByClassName(target, "av__row--header")) {
const scrollElement = hasClosestByClassName(target, "av__scroll"); const scrollElement = hasClosestByClassName(target, "av__scroll");
if (!scrollElement) { if (!scrollElement || target.querySelector(".av__pulse")) {
return; return;
} }
const rowElement = hasClosestByClassName(target, "av__row"); const rowElement = hasClosestByClassName(target, "av__row");

View File

@ -26,10 +26,8 @@ export const avRender = (element: Element, protyle: IProtyle, cb?: () => void, v
if (e.getAttribute("data-render") === "true") { if (e.getAttribute("data-render") === "true") {
return; return;
} }
let time: number;
if (e.firstElementChild.innerHTML === "") { if (e.firstElementChild.innerHTML === "") {
e.style.alignSelf = ""; e.style.alignSelf = "";
time = new Date().getTime();
let html = ""; let html = "";
[1, 2, 3].forEach(() => { [1, 2, 3].forEach(() => {
html += `<div class="av__row"> html += `<div class="av__row">