|
|
@ -830,6 +830,7 @@ export default { |
|
|
|
// console.log(refParamBox,'目标dom',refParamBox.getBoundingClientRect()); |
|
|
|
// console.log(refParamBox,'目标dom',refParamBox.getBoundingClientRect()); |
|
|
|
// 判断拖拽的地址 |
|
|
|
// 判断拖拽的地址 |
|
|
|
let targetDom = that.$refs.goods.getBoundingClientRect() |
|
|
|
let targetDom = that.$refs.goods.getBoundingClientRect() |
|
|
|
|
|
|
|
console.log(evt.oldIndex) |
|
|
|
if(evt.originalEvent.pageX<targetDom.right&&evt.originalEvent.pageX>targetDom.left){ |
|
|
|
if(evt.originalEvent.pageX<targetDom.right&&evt.originalEvent.pageX>targetDom.left){ |
|
|
|
if(evt.originalEvent.pageY<targetDom.bottom&&evt.originalEvent.pageY>targetDom.top){ |
|
|
|
if(evt.originalEvent.pageY<targetDom.bottom&&evt.originalEvent.pageY>targetDom.top){ |
|
|
|
console.log(evt) |
|
|
|
console.log(evt) |
|
|
|