diff --git a/src/components/modal/modal.vue b/src/components/modal/modal.vue index 806313ab9..5ed6f9ffb 100644 --- a/src/components/modal/modal.vue +++ b/src/components/modal/modal.vue @@ -247,7 +247,10 @@ const styleWidth = { width: width <= 100 ? `${width}%` : `${width}px` }; - + if(this.dragData.x == null){ + styleWidth.width=`100%`; + } + Object.assign(style, styleWidth); }