瀏覽代碼

财务公开图片

rongxin_prod
zhao 1 年之前
父節點
當前提交
18be96937d
共有 1 個檔案被更改,包括 6 行新增1 行删除
  1. +6
    -1
      src/components/DnD.vue

+ 6
- 1
src/components/DnD.vue 查看文件

@@ -124,10 +124,14 @@ export default {
Motion(event) { Motion(event) {
if(this.state === STATE_NONE) if(this.state === STATE_NONE)
{ {
this.Reset();
//k this.Reset();
return; return;
} }
[this.currentX, this.currentY] = this.GetEventPosition(event); [this.currentX, this.currentY] = this.GetEventPosition(event);
if(this.state === STATE_START)
{
return;
}
let dropElement = this.GetCurrentPositionDropElement(event); let dropElement = this.GetCurrentPositionDropElement(event);
this.UpdateMask(event, this.HasCurrentPositionDropElement(event)); this.UpdateMask(event, this.HasCurrentPositionDropElement(event));
if(dropElement && this.dropElement !== dropElement) if(dropElement && this.dropElement !== dropElement)
@@ -137,6 +141,7 @@ export default {
} }
this.dropElement = dropElement; this.dropElement = dropElement;
this.$emit('touchdragmotion', this.element); this.$emit('touchdragmotion', this.element);
event.preventDefault();
}, },
Cancel(event) { Cancel(event) {
if(this.state === STATE_DRAGGING) if(this.state === STATE_DRAGGING)


Loading…
取消
儲存