添加画布粘贴外部文字和图片
This commit is contained in:
@@ -619,10 +619,13 @@ export default {
|
||||
onMounted(() => {
|
||||
// 监听显示文本编辑面板事件
|
||||
document.addEventListener("showTextEditor", showEditor);
|
||||
document.addEventListener("hideTextEditor", close);
|
||||
|
||||
});
|
||||
|
||||
onUnmounted(() => {
|
||||
document.removeEventListener("showTextEditor", showEditor);
|
||||
document.removeEventListener("hideTextEditor", close);
|
||||
});
|
||||
|
||||
// 返回所有需要在模板中使用的数据和方法
|
||||
|
||||
Reference in New Issue
Block a user