future #10

Merged
袁涛 merged 37 commits from future into main 2025-10-17 14:46:33 +08:00
7 changed files with 965 additions and 357 deletions
Showing only changes of commit e8bf63da79 - Show all commits

View File

@@ -94,6 +94,12 @@ onMounted(() => {
container.remove();
handleInput();
});
deleteBtn.addEventListener('touchend', function(e) {
e.stopPropagation();
container.remove();
handleInput();
});
}
// 为图片容器添加短按事件以显示/隐藏删除按钮
@@ -799,13 +805,19 @@ const insertImage = () => {
imgContainer.addEventListener('touchend', handleTouchEnd)
imgContainer.addEventListener('touchcancel', handleTouchCancel)
// 为删除按钮添加点击事件
// 为删除按钮添加点击事件(鼠标和触摸)
deleteBtn.addEventListener('click', function(e) {
e.stopPropagation();
imgContainer.remove();
handleInput();
});
deleteBtn.addEventListener('touchend', function(e) {
e.stopPropagation();
imgContainer.remove();
handleInput();
});
// 为图片容器添加短按事件以显示/隐藏删除按钮
let touchStartTime = 0;
imgContainer.addEventListener('touchstart', function(e) {
@@ -1461,6 +1473,12 @@ const adjustExistingImages = () => {
container.remove();
handleInput();
});
deleteBtn.addEventListener('touchend', function(e) {
e.stopPropagation();
container.remove();
handleInput();
});
}
// 为图片容器添加短按事件以显示/隐藏删除按钮
@@ -1535,6 +1553,12 @@ defineExpose({
container.remove();
handleInput();
});
deleteBtn.addEventListener('touchend', function(e) {
e.stopPropagation();
container.remove();
handleInput();
});
}
// 为图片容器添加短按事件以显示/隐藏删除按钮