From 5260caa1c59eef2e223e2db58d1152a7d76ff739 Mon Sep 17 00:00:00 2001 From: jearyt <90509675+jearyt@users.noreply.github.com> Date: Tue, 13 Dec 2022 18:25:33 +0800 Subject: [PATCH] Update modal.vue --- src/components/modal/modal.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); }