diff --git a/components/lib/dialog/Dialog.vue b/components/lib/dialog/Dialog.vue index 42e5e3226..1000f52d3 100755 --- a/components/lib/dialog/Dialog.vue +++ b/components/lib/dialog/Dialog.vue @@ -338,6 +338,7 @@ export default { if (topPos >= this.minY && topPos + height < viewport.height) { this.lastPageY = event.pageY; this.container.style.top = topPos - marginTop + 'px'; + } } else { this.lastPageX = event.pageX; this.container.style.left = leftPos - marginLeft + 'px';