From 0d174901ff4b8bca95f78ecc22405d03aa59e205 Mon Sep 17 00:00:00 2001 From: JoyD <12854922+zqm114@user.noreply.gitee.com> Date: Wed, 29 Oct 2025 22:02:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=9D=A2=E6=9D=BF=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Robot/Web/src/views/DockLayoutTest.vue | 217 +++++++++++++++--- 1 file changed, 182 insertions(+), 35 deletions(-) diff --git a/AutoRobot/Windows/Robot/Web/src/views/DockLayoutTest.vue b/AutoRobot/Windows/Robot/Web/src/views/DockLayoutTest.vue index cb89003..d2896e3 100644 --- a/AutoRobot/Windows/Robot/Web/src/views/DockLayoutTest.vue +++ b/AutoRobot/Windows/Robot/Web/src/views/DockLayoutTest.vue @@ -5,36 +5,6 @@

停靠式面板容器演示

- - - - - + + +
+
+ +
+
+ 工具栏 + +
+ +
+ +
+ + @@ -82,15 +99,75 @@ \ No newline at end of file +.icon-triangle-down { /* 向下小三角(更小更细) */ + width: 0; height: 0; + border-left: 5px solid transparent; + border-right: 5px solid transparent; + border-top: 6px solid #cbd6ff; + display: inline-block; +} +.icon-square { /* 最大化图标:外层浅蓝方块 + 内层细边框 */ + position: relative; + width: 11px; + height: 11px; + background: linear-gradient(180deg, #cbd6ff 0%, #b9c8ff 100%); + border: 1px solid #b8c6ff; + box-sizing: border-box; +} +.icon-square::before { /* 内层小方框边线(回退为细线) */ + content: ''; + position: absolute; + left: 2px; + top: 2px; + width: 7px; + height: 7px; + border: 1px solid #b8c6ff; + box-sizing: border-box; + background: transparent; +} +.icon-square::after { /* 顶部工具栏小块 */ + content: ''; + position: absolute; + left: 3px; /* 内边距 1px */ + top: 3px; + width: 5px; /* 与内框宽度对应 */ + height: 2px; /* 小工具栏高度 */ + background: #b8c6ff; /* 与边线同色,形成上沿条 */ + border-radius: 0.5px; +} +.icon-x { /* X(略小) */ + position: relative; width: 11px; height: 11px; display: inline-block; +} +.icon-x::before, .icon-x::after { + content: ''; position: absolute; left: 5px; top: 0; width: 1px; height: 11px; background: #e6efff; +} +.icon-x::before { transform: rotate(45deg); } +.icon-x::after { transform: rotate(-45deg); } + +/* 禁用旧的最大化伪元素,避免影响SVG呈现 */ +.icon-square::before, +.icon-square::after { + content: none !important; + display: none !important; + border: 0 !important; +} +.icon-square-svg { + width: 11px; + height: 11px; + display: inline-block; +} \ No newline at end of file