From c2bfaa083f8da710abd79bf9345eb20b2afa91ab Mon Sep 17 00:00:00 2001 From: Linho Date: Sat, 26 Apr 2025 21:00:42 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=9B=BE=E5=83=8F?= =?UTF-8?q?=E9=80=89=E9=A1=B9=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 15 +++--- src/editor/datumList.vue | 34 ++++++++++++ src/editor/index.vue | 110 ++++++++++++++++++++++++++++++--------- src/editor/options.vue | 10 ++++ src/editor/output.vue | 6 +-- src/i18n.ts | 6 +++ 6 files changed, 143 insertions(+), 38 deletions(-) create mode 100644 src/editor/datumList.vue create mode 100644 src/editor/options.vue diff --git a/src/App.vue b/src/App.vue index 75fa227..9a5f72b 100644 --- a/src/App.vue +++ b/src/App.vue @@ -8,7 +8,7 @@ -
+
@@ -49,7 +49,7 @@ const drawerMaxSize = computed(() => toSize(75)); const restrictRange = (x: number) => Math.min(Math.max(drawerMinSize.value, x), drawerMaxSize.value); -const drawerSize = ref(restrictRange(toSize(33))); +const drawerSize = ref(restrictRange(toSize(25))); const onDrawerResize = ref(false); watch(windowWidth, () => (drawerSize.value = restrictRange(drawerSize.value))); @@ -71,7 +71,8 @@ function handleDrawerResize() { + + diff --git a/src/editor/options.vue b/src/editor/options.vue new file mode 100644 index 0000000..317aedb --- /dev/null +++ b/src/editor/options.vue @@ -0,0 +1,10 @@ + + + diff --git a/src/editor/output.vue b/src/editor/output.vue index a599e1e..ce0841d 100644 --- a/src/editor/output.vue +++ b/src/editor/output.vue @@ -1,5 +1,5 @@