Vanessa 2023-10-04 21:54:39 +08:00
parent 524fbca868
commit 18d4c5800c
3 changed files with 16 additions and 3 deletions

View file

@ -14,6 +14,7 @@ import {addAssetLink, bindAssetEvent, editAssetItem, getAssetHTML, updateAssetCe
import {Constants} from "../../../constants";
import {hideElements} from "../../ui/hideElements";
import {pathPosix} from "../../../util/pathName";
import {openEmojiPanel} from "../../../emoji";
export const openMenuPanel = (options: {
protyle: IProtyle,
@ -501,6 +502,17 @@ export const openMenuPanel = (options: {
event.preventDefault();
event.stopPropagation();
break;
} else if (type === "update-icon") {
const rect = target.getBoundingClientRect();
openEmojiPanel("", "av", {
x: rect.left,
y: rect.bottom,
h: rect.height,
w: rect.width
});
event.preventDefault();
event.stopPropagation();
break;
} else if (type === "showAllCol") {
const doOperations: IOperation[] = [];
const undoOperations: IOperation[] = [];