diff --git a/src/components/RichTextEditor.vue b/src/components/RichTextEditor.vue index b525e53..e1cd4df 100644 --- a/src/components/RichTextEditor.vue +++ b/src/components/RichTextEditor.vue @@ -1064,44 +1064,6 @@ const handleTouchStart = (e) => { // 阻止页面滚动 e.preventDefault() } -} - - // 添加拖拽指示器 - const indicator = document.createElement('div') - indicator.className = 'drag-indicator' - indicator.style.position = 'fixed' - indicator.style.top = '50%' - indicator.style.left = '50%' - indicator.style.transform = 'translate(-50%, -50%)' - indicator.style.padding = '8px 16px' - indicator.style.background = 'rgba(0, 0, 0, 0.8)' - indicator.style.color = 'white' - indicator.style.borderRadius = '16px' - indicator.style.fontSize = '14px' - indicator.style.fontWeight = '500' - indicator.style.zIndex = '1000' - indicator.style.opacity = '0' - indicator.style.transition = 'opacity 0.15s ease-out' - indicator.textContent = '拖拽排序' - document.body.appendChild(indicator) - - // 渐显指示器 - setTimeout(() => { - indicator.style.opacity = '1' - }, 5) - - // 保存指示器引用以便后续移除 - dragState.value.indicator = indicator - - // 添加震动反馈(如果设备支持) - if (navigator.vibrate) { - navigator.vibrate(10) - } - }, 300) // 300毫秒长按触发拖拽 - - // 阻止页面滚动 - e.preventDefault() -} // 处理触摸移动事件 const handleTouchMove = (e) => {