refactor: 侧边栏展开图标:Mix/Double 布局统一为 arrow-left-right

This commit is contained in:
Ray.Hao
2026-06-18 18:55:06 +08:00
parent f4f680b79f
commit 0e992ae16f
2 changed files with 13 additions and 36 deletions

View File

@@ -1,3 +1,4 @@
/* eslint-disable no-console */
/** /**
* 部署管理后台到服务器 | 用法pnpm run deploy * 部署管理后台到服务器 | 用法pnpm run deploy
* *
@@ -12,22 +13,19 @@
*/ */
import { execSync } from "node:child_process"; import { execSync } from "node:child_process";
const HOST = "www.youlai.tech"; // 服务器 IP改为你的
const USER = "root"; // SSH 用户名,改为你的
// ==================== 改为你的服务器信息 ==================== const PORT = 1010; // SSH 端口,改为你的
const HOST = "127.0.0.1"; // 服务器 IP,改为你的 const TARGET = "/mnt/nginx/html/vue"; // 部署目录,改为你的
const USER = "root"; // SSH 用户名,改为你的
const PORT = 22; // SSH 端口,改为你的
const TARGET = "/data/www/vue3-element-admin"; // 部署目录,改为你的
// ========================================================= // =========================================================
console.log("构建中..."); console.log("构建中...");
execSync("pnpm build-only", { stdio: "inherit" }); execSync("pnpm build-only", { stdio: "inherit" });
console.log(`部署 → ${USER}@${HOST}:${TARGET}`); console.log(`部署 → ${USER}@${HOST}:${TARGET}`);
execSync( execSync(`scp -o StrictHostKeyChecking=no -P ${PORT} -r "dist/." "${USER}@${HOST}:${TARGET}/"`, {
`scp -o StrictHostKeyChecking=no -P ${PORT} -r "dist/." "${USER}@${HOST}:${TARGET}/"`, stdio: "inherit",
{ stdio: "inherit", shell: true } shell: true,
); });
console.log("部署完成"); console.log("部署完成");

View File

@@ -29,21 +29,7 @@
type="button" type="button"
@click="toggleSidebar" @click="toggleSidebar"
> >
<svg <div class="i-svg:arrow-left-right layout__primary-toggle-icon" />
class="layout__primary-toggle-icon"
:class="{ 'is-collapsed': !isSidebarOpen }"
viewBox="0 0 20 20"
fill="currentColor"
>
<path
d="M12 5l-5 5 5 5"
fill="none"
stroke="currentColor"
stroke-width="1.8"
stroke-linecap="round"
stroke-linejoin="round"
/>
</svg>
</button> </button>
</div> </div>
@@ -134,10 +120,6 @@ $double-sidebar-width: $sidebar-primary-width + $sidebar-secondary-width;
} }
} }
.layout__primary-toggle-icon {
transform: rotate(180deg);
}
.layout__double-secondary { .layout__double-secondary {
flex: 0 0 $sidebar-secondary-width; flex: 0 0 $sidebar-secondary-width;
width: $sidebar-secondary-width; width: $sidebar-secondary-width;
@@ -255,13 +237,10 @@ $double-sidebar-width: $sidebar-primary-width + $sidebar-secondary-width;
} }
&__primary-toggle-icon { &__primary-toggle-icon {
width: 16px; width: 18px;
height: 16px; height: 18px;
font-size: 18px;
transition: transform 0.28s; transition: transform 0.28s;
&.is-collapsed {
transform: rotate(180deg);
}
} }
&__double-secondary { &__double-secondary {