💄 hint

This commit is contained in:
Vanessa 2023-07-28 17:33:35 +08:00
parent 9ee922794e
commit a29b31067a
6 changed files with 21 additions and 17 deletions

View file

@ -8,6 +8,7 @@ import {getColIconByType, showColMenu, updateHeader} from "./col";
import {emitOpenMenu} from "../../../plugin/EventBus";
import {addCol} from "./addCol";
import {openMenuPanel} from "./openMenuPanel";
import {hintRef} from "../../hint/extend";
export const avClick = (protyle: IProtyle, event: MouseEvent & { target: HTMLElement }) => {
const blockElement = hasClosestBlock(event.target);
@ -127,6 +128,14 @@ export const avClick = (protyle: IProtyle, event: MouseEvent & { target: HTMLEle
event.stopPropagation();
return true;
}
const addRowElement = hasClosestByClassName(event.target, "av__row--add");
if (addRowElement) {
hintRef("", protyle, true);
event.preventDefault();
event.stopPropagation();
return true;
}
return false;
};