From 6d82c0f730ff0ad7dc36b39b7c0d2534672b05c3 Mon Sep 17 00:00:00 2001 From: roymondchen Date: Tue, 11 Feb 2025 17:25:58 +0800 Subject: [PATCH] =?UTF-8?q?fix(editor):=20=E7=BB=84=E4=BB=B6=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E5=88=97=E5=A4=A7=E5=B0=8F=E7=BC=93=E5=AD=98=E4=B8=8D?= =?UTF-8?q?=E7=94=9F=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/editor/src/layouts/Framework.vue | 22 ++++--- .../src/layouts/props-panel/PropsPanel.vue | 65 ++++++++----------- .../layouts/props-panel/use-style-panel.ts | 42 ++++++++---- packages/editor/src/services/ui.ts | 8 ++- packages/editor/src/utils/const.ts | 5 ++ 5 files changed, 82 insertions(+), 60 deletions(-) diff --git a/packages/editor/src/layouts/Framework.vue b/packages/editor/src/layouts/Framework.vue index e1eec797..49ee2a92 100644 --- a/packages/editor/src/layouts/Framework.vue +++ b/packages/editor/src/layouts/Framework.vue @@ -19,10 +19,10 @@ right-class="m-editor-framework-right" :left="columnWidth.left" :right="columnWidth.right" - :min-left="200" - :min-right="300" - :min-center="400" - :width="frameworkRect?.width || 0" + :min-left="MIN_LEFT_COLUMN_WIDTH" + :min-right="MIN_RIGHT_COLUMN_WIDTH" + :min-center="MIN_CENTER_COLUMN_WIDTH" + :width="frameworkRect.width" @change="columnWidthChange" > @@ -44,7 +46,7 @@ v-if="showStylePanelToggleButton && !showStylePanel" class="m-editor-props-panel-style-icon" circle - @click="showStylePanelHandler" + @click="toggleStylePanel(true)" > @@ -52,7 +54,7 @@