From 9f685ef246aa1eada5078a849afbce553fa1ab12 Mon Sep 17 00:00:00 2001 From: unanmed <1319491857@qq.com> Date: Tue, 12 Mar 2024 23:07:47 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=87=AA=E5=AE=9A=E4=B9=89=E5=B7=A5?= =?UTF-8?q?=E5=85=B7=E6=A0=8F=E7=AB=96=E5=B1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- idea.md | 2 + src/ui/toolEditor.vue | 130 +++++++++++++++++++++++++++++++----------- 2 files changed, 100 insertions(+), 32 deletions(-) diff --git a/idea.md b/idea.md index b2df7a0..a7fa099 100644 --- a/idea.md +++ b/idea.md @@ -60,3 +60,5 @@ [x] 对 vnode 进行简单的包装,提供出显示文字、显示图片等 api 以及修改 css 的 api [] 楼传新增跳过无宝石无怪物的地图 [] 楼传在小地图中显示10层塔的缩略图 +[] 自定义工具栏新增文件夹功能,里面可以放多个工具 +[] 自定义工具新增杂项,包括点击后打开工具栏、拖动大地图等 diff --git a/src/ui/toolEditor.vue b/src/ui/toolEditor.vue index fb551dd..6cd5589 100644 --- a/src/ui/toolEditor.vue +++ b/src/ui/toolEditor.vue @@ -3,41 +3,64 @@ 返回
- -
-
- {{ item.id }} - 删除 -
-
+
+ +
-    - 新增工具栏 + {{ item.id }} + 删除
-
- +
+
+    + 新增工具栏 +
+
+ +
+
+
+ + +
+
+
+
- +
- -
+ +
{ .tool-list-scroll { height: 100%; - width: 30%; + width: 100%; +} + +#tool-left { + flex-basis: 30%; + display: flex; + height: 100%; } #tool-list { @@ -507,4 +536,41 @@ onUnmounted(() => { .divider { height: 100%; } + +@media screen and (max-width: 600px) { + #tool-editor { + padding-top: 15%; + flex-direction: column; + width: 100%; + height: 100%; + } + + #tool-left { + width: 100%; + height: 100%; + max-height: 40vh; + display: flex; + flex-direction: row; + + .tool-list-scroll { + height: 100%; + flex-basis: 50%; + } + + #tool-preview { + flex-basis: 50%; + height: 100%; + } + } + + #tool-info { + width: 100%; + height: 100%; + } + + .divider { + height: auto; + width: 100%; + } +}