update prettier 替换为 oxfmt 格式化整个项目的代码结构
This commit is contained in:
@@ -9,14 +9,8 @@ body {
|
||||
text-rendering: optimizeLegibility;
|
||||
background: var(--app-shell-bg);
|
||||
font-family:
|
||||
'MiSans',
|
||||
'HarmonyOS Sans SC',
|
||||
'PingFang SC',
|
||||
'Source Han Sans SC',
|
||||
'Noto Sans SC',
|
||||
'Hiragino Sans GB',
|
||||
'Microsoft YaHei',
|
||||
sans-serif;
|
||||
'MiSans', 'HarmonyOS Sans SC', 'PingFang SC', 'Source Han Sans SC', 'Noto Sans SC', 'Hiragino Sans GB',
|
||||
'Microsoft YaHei', sans-serif;
|
||||
}
|
||||
|
||||
label {
|
||||
|
||||
@@ -34,7 +34,6 @@
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
|
||||
// --- el-card 本业务页外观(与 EP vendors 叠加) ---
|
||||
.el-card__header {
|
||||
padding: 14px 16px 10px !important;
|
||||
@@ -52,7 +51,9 @@
|
||||
box-shadow: var(--app-shadow-sm);
|
||||
border-color: var(--app-surface-border);
|
||||
overflow: hidden;
|
||||
transition: box-shadow 0.2s ease, border-color 0.2s ease;
|
||||
transition:
|
||||
box-shadow 0.2s ease,
|
||||
border-color 0.2s ease;
|
||||
background: var(--app-surface-bg);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
/* 工具类 */
|
||||
|
||||
|
||||
.pt5 {
|
||||
padding-top: 5px;
|
||||
}
|
||||
@@ -9,7 +8,6 @@
|
||||
padding-right: 5px;
|
||||
}
|
||||
|
||||
|
||||
.pl5 {
|
||||
padding-left: 5px;
|
||||
}
|
||||
@@ -70,14 +68,9 @@
|
||||
margin-left: 20px;
|
||||
}
|
||||
|
||||
|
||||
.el-dialog.scrollbar .el-dialog__body {
|
||||
overflow: auto;
|
||||
overflow-x: hidden;
|
||||
max-height: 70vh;
|
||||
padding: 14px 22px 4px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
|
||||
|
||||
|
||||
.link-type,
|
||||
.link-type:focus {
|
||||
color: #337ab7;
|
||||
@@ -10,4 +7,3 @@
|
||||
color: rgb(32, 160, 255);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -63,7 +63,9 @@
|
||||
.tree-panel-col,
|
||||
.tree-content-col {
|
||||
min-width: 0;
|
||||
transition: max-width 0.24s ease, flex-basis 0.24s ease;
|
||||
transition:
|
||||
max-width 0.24s ease,
|
||||
flex-basis 0.24s ease;
|
||||
}
|
||||
|
||||
.tree-panel-col.is-collapsed {
|
||||
@@ -184,7 +186,12 @@
|
||||
@include toolbar-responsive($mobile-breakpoint);
|
||||
}
|
||||
|
||||
@mixin tree-table-crud-page($mobile-breakpoint: 900px, $gap: 12px, $tree-padding-top: 6px, $background: rgba(53, 109, 255, 0.08)) {
|
||||
@mixin tree-table-crud-page(
|
||||
$mobile-breakpoint: 900px,
|
||||
$gap: 12px,
|
||||
$tree-padding-top: 6px,
|
||||
$background: rgba(53, 109, 255, 0.08)
|
||||
) {
|
||||
@include content-stack($gap);
|
||||
@include dept-tree-panel($tree-padding-top);
|
||||
@include collapsible-tree-layout($mobile-breakpoint);
|
||||
|
||||
@@ -47,7 +47,3 @@
|
||||
.text-muted {
|
||||
color: #888888;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
// --- 整块内容容器(常见于路由视图外包一层) ---
|
||||
.app-container {
|
||||
|
||||
}
|
||||
|
||||
// --- 可复用面板条(hover 抬升阴影,非 el-card) ---
|
||||
@@ -14,7 +13,9 @@
|
||||
background-color: var(--app-surface-bg);
|
||||
padding: 0.75rem;
|
||||
box-shadow: 0 0 0 rgba(0, 0, 0, 0);
|
||||
transition: box-shadow 0.2s ease, border-color 0.2s ease;
|
||||
transition:
|
||||
box-shadow 0.2s ease,
|
||||
border-color 0.2s ease;
|
||||
|
||||
&:hover {
|
||||
box-shadow: var(--app-shadow-sm);
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
// 清除浮动(嵌套用)
|
||||
@mixin clearfix {
|
||||
&:after {
|
||||
|
||||
+1
-1
@@ -10,4 +10,4 @@
|
||||
.el-card .el-card__body {
|
||||
border-bottom-left-radius: var(--app-radius-lg);
|
||||
border-bottom-right-radius: var(--app-radius-lg);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -98,5 +98,3 @@
|
||||
justify-content: flex-end;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
|
||||
|
||||
:root {
|
||||
|
||||
--el-font-size-base: var(--app-font-size-base)
|
||||
}
|
||||
--el-font-size-base: var(--app-font-size-base);
|
||||
}
|
||||
|
||||
+8
-2
@@ -29,7 +29,10 @@
|
||||
.el-input-number__decrease,
|
||||
.el-input-number__increase {
|
||||
border-radius: var(--app-radius-md);
|
||||
transition: box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
|
||||
transition:
|
||||
box-shadow 0.2s ease,
|
||||
border-color 0.2s ease,
|
||||
background-color 0.2s ease;
|
||||
}
|
||||
|
||||
.el-input__wrapper.is-focus,
|
||||
@@ -42,7 +45,10 @@
|
||||
|
||||
.el-button {
|
||||
border-radius: var(--app-radius-md);
|
||||
transition: box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
|
||||
transition:
|
||||
box-shadow 0.2s ease,
|
||||
background-color 0.2s ease,
|
||||
border-color 0.2s ease;
|
||||
}
|
||||
|
||||
.el-button:not(.is-text):not(.is-link):hover {
|
||||
|
||||
+1
-1
@@ -9,4 +9,4 @@
|
||||
@use './shell';
|
||||
@use './navigation';
|
||||
@use './table';
|
||||
@use './card';
|
||||
@use './card';
|
||||
|
||||
+4
-1
@@ -17,7 +17,10 @@
|
||||
.el-pagination .btn-next,
|
||||
.el-pagination .el-pager li {
|
||||
border-radius: var(--app-radius-sm);
|
||||
transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
|
||||
transition:
|
||||
background-color 0.2s ease,
|
||||
color 0.2s ease,
|
||||
box-shadow 0.2s ease;
|
||||
}
|
||||
|
||||
.el-pagination {
|
||||
|
||||
@@ -46,8 +46,6 @@
|
||||
border-right: 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// --- 表格内操作列:固定宽按钮、下拉链接色 ---
|
||||
.el-table .fixed-width .el-button--small {
|
||||
padding-left: 0;
|
||||
@@ -61,7 +59,6 @@
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
|
||||
.el-table {
|
||||
.el-table__header-wrapper,
|
||||
.el-table__fixed-header-wrapper {
|
||||
@@ -80,4 +77,3 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user