摘要: 实现一个可拖拽的div写法如下: const chatbox = ref(); const dragx = (el) => { let oDiv = chatbox.value; //当前元素 let disX = el.clientX - oDiv.offsetLeft; let disY = e 阅读全文
posted @ 2023-12-25 09:51 罗毅豪 阅读(336) 评论(0) 推荐(0) 编辑