From f6dca97442339f1cc941ebaf39eddbe657f76512 Mon Sep 17 00:00:00 2001 From: roymondchen Date: Tue, 6 Dec 2022 16:54:39 +0800 Subject: [PATCH] =?UTF-8?q?fix(editor):=20layout=20=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E4=B8=ADhasRight=E5=88=A4=E6=96=AD=E5=87=BA=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/editor/src/components/Layout.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/editor/src/components/Layout.vue b/packages/editor/src/components/Layout.vue index 5330fbd7..ead4841a 100644 --- a/packages/editor/src/components/Layout.vue +++ b/packages/editor/src/components/Layout.vue @@ -48,7 +48,7 @@ const props = withDefaults( const el = ref(); const hasLeft = computed(() => typeof props.left !== 'undefined'); -const hasRight = computed(() => typeof props.left !== 'undefined'); +const hasRight = computed(() => typeof props.right !== 'undefined'); const getCenterWidth = (clientWidth: number, left: number, right: number) => { let center = clientWidth - left - right;