feat 样式整改

This commit is contained in:
Ironsp
2026-10-13 15:12:51 +08:00
parent 631d54f269
commit b0e9fe6450
56 changed files with 1242 additions and 1143 deletions

View File

@@ -97,16 +97,16 @@ const meta = computed<Array<{ label: string; value: string }>>(() => [
&__tag {
position: absolute;
top: 87px;
left: 22px;
height: 44px;
padding: 0 14px;
top: 12px;
left: 12px;
height: 28px;
padding: 0 @spacing-sm;
border-radius: @radius-sm;
background: @primary-strong;
color: @white;
font-size: 28px;
font-size: @font-size-sm;
font-weight: 500;
line-height: 44px;
line-height: 28px;
&--hardware {
background: @tag-hardware;

View File

@@ -292,15 +292,15 @@ function clearChips(): void {
<style lang="less" scoped>
.case-filter {
flex-shrink: 0;
width: 516px;
padding: 15px 0 40px;
width: @cases-filter-width;
padding: @spacing-lg 0 @spacing-xl;
border-radius: @radius-base;
background: @white;
&__head,
&__group,
&__actions {
padding: 0 50px 0 35px;
padding: 0 @spacing-lg;
}
&__head {
@@ -308,15 +308,15 @@ function clearChips(): void {
}
&__title {
font-size: 28px;
font-weight: 500;
line-height: 41px;
font-size: @font-size-xl;
font-weight: 600;
line-height: 1.4;
color: @cases-filter-title;
}
&__link {
color: @primary-strong;
font-size: 16px;
font-size: @font-size-sm;
&:hover {
color: @primary-hover;
@@ -324,32 +324,36 @@ function clearChips(): void {
}
&__group {
margin-top: 24px;
margin-top: @spacing-lg;
}
&__head + &__group {
margin-top: 11px;
margin-top: @spacing-base;
}
&__group-title {
font-size: 24px;
font-size: @font-size-md;
font-weight: 500;
line-height: 35px;
line-height: 1.4;
color: @cases-text;
}
&__rows {
margin-top: 19px;
margin-top: @spacing-sm;
display: flex;
flex-direction: column;
gap: 2px;
}
&__row {
.flex(row, flex-start, center);
gap: 12px;
gap: @spacing-sm;
width: 100%;
height: 50px;
padding: 0;
height: 40px;
padding: 0 @spacing-sm;
border-radius: @radius-sm;
color: @cases-text;
font-size: 20px;
font-size: @font-size-base;
text-align: left;
transition: background 0.2s;
@@ -367,8 +371,8 @@ function clearChips(): void {
&__box {
position: relative;
flex-shrink: 0;
width: 16px;
height: 16px;
width: 14px;
height: 14px;
border: 1px solid @cases-input-border;
border-radius: 2px;
@@ -380,9 +384,9 @@ function clearChips(): void {
content: '';
position: absolute;
top: 1px;
left: 4px;
width: 5px;
height: 8px;
left: 3px;
width: 4px;
height: 7px;
border: solid @white;
border-width: 0 2px 2px 0;
transform: rotate(45deg);
@@ -397,7 +401,7 @@ function clearChips(): void {
&__row-count {
color: @cases-muted;
font-size: 16px;
font-size: @font-size-sm;
font-weight: 500;
}
@@ -409,17 +413,17 @@ function clearChips(): void {
&__pills {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 24px 33px;
margin-top: 21px;
gap: @spacing-sm;
margin-top: @spacing-sm;
}
&__pill {
height: 53px;
height: 36px;
padding: 0 @spacing-sm;
border-radius: @radius-base;
background: @pill-bg;
color: @cases-text;
font-size: 20px;
font-size: @font-size-sm;
.ellipsis();
transition: all 0.2s;
@@ -429,15 +433,14 @@ function clearChips(): void {
&.is-active,
&.is-light {
background: @pill-selected-bg;
color: @white;
background: @filter-selected-bg;
color: @primary-strong;
font-weight: 500;
}
}
// ElDatePicker 有两层元素:外层 div.case-filter__date 与内部 .el-range-editor,
// 真正控制盒子尺寸的是内层。所以尺寸/背景/圆角都要用 :deep() 打到内层,
// 且不能写在 &__date 上——那样只命中外层,视觉上看不到变化。
// 真正控制盒子尺寸的是内层。所以尺寸/背景/圆角都要用 :deep() 打到内层。
&__date-wrap {
grid-column: 1 / -1;
width: 100%;
@@ -448,7 +451,7 @@ function clearChips(): void {
align-items: center;
width: 100%;
min-width: 0;
height: 53px;
height: 36px;
padding: 0 @spacing-sm;
border-radius: @radius-base;
background: @input-bg;
@@ -461,7 +464,7 @@ function clearChips(): void {
&__date {
justify-content: center;
min-width: 0;
height: 53px;
height: 36px;
padding: 0 @spacing-sm;
border-radius: @radius-base;
background: @input-bg;
@@ -481,32 +484,33 @@ function clearChips(): void {
:deep(.el-range-input) {
flex: 0 1 auto;
width: 92px;
width: 88px;
background: transparent;
color: @cases-text;
font-size: 20px;
font-size: @font-size-sm;
&::placeholder {
color: @cases-text;
color: @cases-muted;
}
}
:deep(.el-range-separator) {
flex: 0 0 auto;
margin: 0 @spacing-xs;
color: @cases-text;
font-size: 20px;
line-height: 53px;
color: @cases-muted;
font-size: @font-size-sm;
line-height: 36px;
}
&.is-focus {
background: @input-bg;
background: @white;
box-shadow: 0 0 0 1px @cases-accent inset;
}
}
&__selected {
margin: 23px 50px 0 35px;
padding: 16px 24px 21px;
margin: @spacing-lg @spacing-lg 0;
padding: @spacing-base;
border-radius: @radius-base;
background: @chips-panel-bg;
}
@@ -517,30 +521,30 @@ function clearChips(): void {
&__selected-title {
color: @cases-text;
font-size: 20px;
font-size: @font-size-base;
font-weight: 500;
}
&__selected-empty {
margin-top: @spacing-sm;
color: @cases-muted;
font-size: 14px;
font-size: @font-size-sm;
}
&__chips {
.flex(row, flex-start, center);
flex-wrap: wrap;
gap: 14px 13px;
margin-top: 16px;
gap: @spacing-sm;
margin-top: @spacing-sm;
}
&__chip {
height: 32px;
height: 28px;
padding: 0 @spacing-sm;
border-radius: @radius-round;
background: @white;
color: @cases-accent;
font-size: 14px;
font-size: @font-size-sm;
font-weight: 500;
transition: color 0.2s;
@@ -551,32 +555,32 @@ function clearChips(): void {
&__actions {
.flex(row, flex-start, center);
gap: 13px;
margin-top: 30px;
gap: @spacing-sm;
margin-top: @spacing-lg;
}
&__reset {
width: 135px;
height: 30px;
flex: 0 0 88px;
height: 32px;
border-radius: @radius-round;
background: @cases-reset-bg;
color: @black;
font-size: 14px;
color: @text-color;
font-size: @font-size-sm;
font-weight: 400;
transition: filter 0.2s;
transition: color 0.2s;
&:hover {
filter: brightness(0.96);
color: @primary-color;
}
}
&__confirm {
flex: 1;
height: 30px;
height: 32px;
border-radius: @radius-round;
background: @cases-confirm;
color: @white;
font-size: 14px;
font-size: @font-size-sm;
font-weight: 400;
transition: background 0.2s;

View File

@@ -62,29 +62,27 @@ const keyword = computed<string>({
<style lang="less" scoped>
.case-search {
.flex(row, flex-start, center);
gap: 24px;
gap: @spacing-base;
width: 100%;
height: 128px;
min-height: 64px;
box-sizing: border-box;
// 设计稿 #31:输入框 x=653(栏左 606 + 47),重置 1305,搜索 1429
padding: 0 47px;
padding: 0 @spacing-lg;
border-radius: @radius-base;
background: @white;
&__field {
position: relative;
// 输入框右边界 1245 → 重置按钮 1305,设计稿间距 60
margin-right: 36px;
flex: 0 0 592px;
flex: 0 1 360px;
min-width: 0;
}
&__icon {
position: absolute;
top: 50%;
right: 16px;
right: @spacing-base;
left: auto;
width: 27px;
height: 27px;
width: 18px;
height: 18px;
transform: translateY(-50%);
fill: none;
stroke: @cases-icon;
@@ -93,15 +91,15 @@ const keyword = computed<string>({
&__input {
width: 100%;
height: 49px;
padding: 0 52px 0 20px;
height: 36px;
padding: 0 40px 0 @spacing-base;
border: 1px solid @cases-input-border;
border-radius: @radius-sm;
background: @white;
border-radius: @radius-round;
background: @input-bg;
color: @cases-text;
font-size: 20px;
font-size: @font-size-base;
outline: none;
transition: border-color 0.2s;
transition: border-color 0.2s, background-color 0.2s;
&::placeholder {
color: @text-color-disabled;
@@ -109,22 +107,24 @@ const keyword = computed<string>({
&:focus {
border-color: @cases-accent;
background: @white;
}
}
&__btn {
min-width: 100px;
height: 49px;
padding: 0 @spacing-base;
border-radius: @radius-sm;
background: @cases-accent;
color: @white;
font-size: 20px;
flex-shrink: 0;
min-width: 72px;
height: 36px;
padding: 0 @spacing-lg;
border-radius: @radius-round;
background: @pill-bg;
color: @text-color;
font-size: @font-size-base;
font-weight: 400;
transition: all 0.2s;
&:hover {
background: @primary-hover;
color: @primary-color;
}
&--primary {
@@ -143,7 +143,7 @@ const keyword = computed<string>({
gap: @spacing-xs;
margin-left: auto;
color: @heading-color;
font-size: 16px;
font-size: @font-size-base;
transition: color 0.2s;
&:hover,

View File

@@ -71,54 +71,55 @@ const emit = defineEmits<{
<style lang="less" scoped>
.filter-panel {
padding: 24px 36px;
padding: @spacing-lg;
border-radius: @radius-base;
background: @white;
&__bar {
.flex(row, flex-start);
gap: 18px;
.flex(row, flex-start, center);
gap: @spacing-base;
}
&__input {
flex: 1;
max-width: 456px;
margin-right: 28px;
height: 38px;
max-width: 360px;
margin-right: 0;
height: 36px;
padding: 0 @spacing-base;
border: 1px solid @cases-input-border;
border-radius: @radius-sm;
background: @white;
color: @cases-text;
font-size: 15px;
border: 1px solid @border-color;
border-radius: @radius-round;
background: @input-bg;
color: @text-color;
font-size: @font-size-base;
outline: none;
transition: border-color 0.2s;
transition: border-color 0.2s, background-color 0.2s;
&::placeholder {
color: @cases-input-border;
color: @text-color-disabled;
}
&:focus {
border-color: @cases-accent;
border-color: @primary-color;
background: @white;
}
}
&__btn {
min-width: 77px;
height: 38px;
padding: 0 @spacing-base;
border-radius: @radius-sm;
background: @cases-accent;
color: @white;
font-size: 15px;
min-width: 72px;
height: 36px;
padding: 0 @spacing-lg;
border-radius: @radius-round;
background: @pill-bg;
color: @text-color;
font-size: @font-size-base;
transition: all 0.2s;
&:hover {
background: @primary-hover;
color: @primary-color;
}
&--primary {
background: @cases-accent;
background: @primary-color;
color: @white;
&:hover {
@@ -131,26 +132,26 @@ const emit = defineEmits<{
&__chips {
.flex(row, flex-start, center);
flex-wrap: wrap;
gap: 11px 10px;
gap: @spacing-sm;
margin-top: @spacing-base;
padding: 12px 18px 16px;
padding: @spacing-base;
border-radius: @radius-base;
background: @chips-panel-bg;
font-size: 15px;
font-size: @font-size-base;
}
&__chips-label {
color: @cases-text;
color: @text-color;
font-weight: 500;
}
&__chip {
height: 25px;
height: 28px;
padding: 0 @spacing-sm;
border-radius: @radius-round;
background: @white;
color: @cases-accent;
font-size: 11px;
color: @primary-color;
font-size: @font-size-sm;
font-weight: 500;
transition: all 0.2s;

View File

@@ -23,25 +23,25 @@ defineProps<Props>()
<style lang="less" scoped>
.page-head {
background: @white;
padding-bottom: 72px;
padding: @spacing-lg 0;
border-bottom: 1px solid @border-color;
&__title {
padding-top: 52px;
font-size: 22px;
font-weight: 700;
line-height: 29px;
color: @finance-ink;
padding-top: 0;
font-size: @font-size-title;
font-weight: 600;
line-height: 1.3;
color: @heading-color;
}
&__slogan {
// 设计稿 #20:slogan 水平居中(当前唯一使用方为财务中心页)
text-align: center;
text-align: left;
padding-bottom: 0;
margin-top: 9px;
font-size: 13px;
margin-top: @spacing-sm;
font-size: @font-size-base;
font-weight: 400;
line-height: 17px;
color: @finance-muted-text;
line-height: 1.5;
color: @text-color-secondary;
}
}
</style>

View File

@@ -67,18 +67,18 @@ function go(page: number): void {
.pagination {
.flex(row, center);
gap: @spacing-xs;
padding: 12px 0;
padding: @spacing-base 0;
&__btn {
.flex(row, center);
min-width: 20px;
height: 25px;
padding: 0 3px;
min-width: 28px;
height: 28px;
padding: 0 6px;
border: 1px solid @border-color;
border-radius: @radius-sm;
background: @white;
color: @text-color-secondary;
font-size: 11px;
color: @text-color;
font-size: @font-size-sm;
transition: all 0.2s;
&:hover:not(:disabled):not(.is-ellipsis) {
@@ -87,9 +87,10 @@ function go(page: number): void {
}
&.is-active {
border-color: @cases-page-active-bg;
background: @cases-page-active-bg;
border-color: @primary-strong;
background: @primary-light;
color: @primary-strong;
font-weight: 500;
}
&.is-ellipsis {

View File

@@ -38,7 +38,7 @@ function onGetCode(): void {
min-width: 0;
height: 40px;
padding: 0 12px;
border: 1px solid #dde1e7;
border: 1px solid @border-color;
border-radius: @radius-sm;
background: @white;
font-size: 13px;