Compare commits

..

1 Commits

Author SHA1 Message Date
xiaoxian521
86b335cf22 perf: 优化系统配置面板 2025-12-16 16:23:20 +08:00
5 changed files with 462 additions and 726 deletions

View File

@@ -97,7 +97,7 @@
"vditor": "^3.11.2",
"version-rocket": "^1.7.4",
"vue": "^3.5.25",
"vue-i18n": "https://pkg.pr.new/vue-i18n@2337",
"vue-i18n": "^11.2.2",
"vue-json-pretty": "^2.6.0",
"vue-pdf-embed": "^2.1.3",
"vue-router": "^4.6.3",
@@ -164,7 +164,7 @@
"typescript": "^5.9.3",
"typescript-eslint": "^8.49.0",
"unplugin-icons": "^22.5.0",
"vite": "8.0.0-beta.3",
"vite": "^7.2.7",
"vite-plugin-cdn-import": "^1.0.1",
"vite-plugin-compression": "^0.5.1",
"vite-plugin-fake-server": "^2.2.2",

1148
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -51,7 +51,7 @@ onBeforeUnmount(() => {
<div class="right-panel-background" />
<div ref="target" class="right-panel bg-bg_color">
<div
class="project-configuration border-0 border-b-[1px] border-solid border-[var(--pure-border-color)]"
class="flex-bc py-3 px-5 border-0 border-l border-solid border-(--pure-border-color)"
>
<h4 class="dark:text-white">
{{ t("panel.pureSystemSet") }}
@@ -73,12 +73,14 @@ onBeforeUnmount(() => {
/>
</span>
</div>
<el-scrollbar>
<el-scrollbar
class="border-y border-l border-r-0 border-solid border-(--pure-border-color) h-[calc(100vh-104px)]!"
>
<slot />
</el-scrollbar>
<div
class="flex justify-end p-3 border-0 border-t-[1px] border-solid border-[var(--pure-border-color)]"
class="flex justify-end p-3 border-0 border-l border-solid border-(--pure-border-color)"
>
<el-button
v-tippy="{
@@ -99,10 +101,6 @@ onBeforeUnmount(() => {
</template>
<style lang="scss" scoped>
:deep(.el-scrollbar) {
height: calc(100vh - 110px);
}
.right-panel-background {
position: fixed;
top: 0;
@@ -139,11 +137,4 @@ onBeforeUnmount(() => {
transform: translate(0);
}
}
.project-configuration {
display: flex;
align-items: center;
justify-content: space-between;
padding: 14px 20px;
}
</style>

View File

@@ -135,17 +135,6 @@ html.dark {
}
}
/* 系统配置面板 */
.right-panel-items {
.el-divider__text {
--el-bg-color: var(--el-bg-color);
}
.el-divider--horizontal {
border-top: none;
}
}
/* 表单设计器 */
.design-form {
.el-main.config-content,

View File

@@ -42,7 +42,7 @@ export default ({ mode }: ConfigEnv): UserConfigExport => {
sourcemap: false,
// 消除打包大小超过500kb警告
chunkSizeWarningLimit: 4000,
rolldownOptions: {
rollupOptions: {
input: {
index: pathResolve("./index.html", import.meta.url)
},
@@ -51,10 +51,6 @@ export default ({ mode }: ConfigEnv): UserConfigExport => {
chunkFileNames: "static/js/[name]-[hash].js",
entryFileNames: "static/js/[name]-[hash].js",
assetFileNames: "static/[ext]/[name]-[hash].[ext]"
},
checks: {
// 禁用插件计时警告
pluginTimings: false
}
}
},