Vanessa 2024-04-18 11:15:52 +08:00
parent 16d40cf9ae
commit 06a095bce1
2 changed files with 14 additions and 5 deletions

View file

@ -33,10 +33,13 @@ import * as dayjs from "dayjs";
import {openCalcMenu} from "./calc";
import {avRender} from "./render";
import {addView, openViewMenu} from "./view";
import {isOnlyMeta, openByMobile, writeText} from "../../util/compatibility";
import {isOnlyMeta, writeText} from "../../util/compatibility";
import {openSearchAV} from "./relation";
export const avClick = (protyle: IProtyle, event: MouseEvent & { target: HTMLElement }) => {
if (isOnlyMeta(event)) {
return false;
}
const blockElement = hasClosestBlock(event.target);
if (!blockElement) {
return false;