From a6226cba188ca107919237c4d92c0f19c33e77fe Mon Sep 17 00:00:00 2001 From: roymondchen Date: Mon, 6 Feb 2023 19:50:41 +0800 Subject: [PATCH] =?UTF-8?q?fix(editor):=20=E7=BC=96=E8=BE=91=E5=99=A8?= =?UTF-8?q?=E4=B8=AD=E9=97=B4=E5=88=97=E5=AE=BD=E5=BA=A6=E5=87=BA=E7=8E=B0?= =?UTF-8?q?=E8=B4=9F=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/editor/src/components/Layout.vue | 2 +- packages/editor/src/layouts/Framework.vue | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/editor/src/components/Layout.vue b/packages/editor/src/components/Layout.vue index ead4841a..c3ce3df1 100644 --- a/packages/editor/src/components/Layout.vue +++ b/packages/editor/src/components/Layout.vue @@ -41,7 +41,7 @@ const props = withDefaults( { minLeft: 46, minRight: 1, - minCenter: 1, + minCenter: 5, }, ); diff --git a/packages/editor/src/layouts/Framework.vue b/packages/editor/src/layouts/Framework.vue index d777a42a..1f00a618 100644 --- a/packages/editor/src/layouts/Framework.vue +++ b/packages/editor/src/layouts/Framework.vue @@ -122,8 +122,11 @@ watch( }, ); -const columnWidthChange = (columnWidth: GetColumnWidth) => { - uiService?.set('columnWidth', columnWidth); +const columnWidthChange = (columnW: GetColumnWidth) => { + columnWidth.value.left = columnW.left; + columnWidth.value.center = columnW.center; + columnWidth.value.right = columnW.right; + uiService?.set('columnWidth', columnW); }; const saveCode = (value: string) => {