feat 完善注释
This commit is contained in:
@@ -4,7 +4,6 @@ import { computed, onMounted } from 'vue'
|
||||
import { storeToRefs } from 'pinia'
|
||||
import { useRouter } from 'vue-router'
|
||||
import { FilterPanel, PaginationBar } from '@/components'
|
||||
// 页面容器:只做组件引入、props 分发、事件中转,数据只经 store
|
||||
import { useContractStore } from '@/stores/modules/contract'
|
||||
import ContractTable from './cpns/ContractTable.vue'
|
||||
|
||||
@@ -44,7 +43,6 @@ onMounted(() => {
|
||||
|
||||
<template>
|
||||
<div class="contract">
|
||||
<!-- 顶部横幅:白底通栏 + 标题/副标语(设计 41 横幅区、46 标题规格) -->
|
||||
<div class="contract__head">
|
||||
<div class="container">
|
||||
<h1 class="contract__title">
|
||||
@@ -57,7 +55,6 @@ onMounted(() => {
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<!-- 内容白卡:搜索行 + 表格 + 分页(设计 46/47 卡片) -->
|
||||
<div class="contract__card">
|
||||
<FilterPanel
|
||||
v-model:keyword="keyword"
|
||||
@@ -87,13 +84,10 @@ onMounted(() => {
|
||||
.contract {
|
||||
padding-bottom: @spacing-xxl;
|
||||
|
||||
// 横幅:设计 31ee32fc y72..251(1920×179)白底通栏
|
||||
// 标题盒顶 96(ink 104)、副标语盒顶 161.5(ink 171)、横幅底 251
|
||||
&__head {
|
||||
padding: 24px 0 52px;
|
||||
background: @white;
|
||||
|
||||
// 标题/副标语落 x112 → 内容区左缘 70 + 42
|
||||
.container {
|
||||
padding-left: 42px;
|
||||
}
|
||||
@@ -115,16 +109,14 @@ onMounted(() => {
|
||||
}
|
||||
}
|
||||
|
||||
// 内容白卡(设计 31ee32fc:x70 y271 1780×992 圆角白卡,无阴影)
|
||||
.contract .contract__card {
|
||||
margin-top: 20px; // 横幅底 251 → 卡顶 271
|
||||
padding: 51px 64px 59px; // 搜索框 x134 = 70+64;表格 x135
|
||||
margin-top: 20px;
|
||||
padding: 51px 64px 59px;
|
||||
border-radius: @radius-lg;
|
||||
background: @white;
|
||||
|
||||
// 搜索行并入卡片:去掉 FilterPanel 自带的卡面
|
||||
:deep(.filter-panel) {
|
||||
margin-bottom: 39px; // 搜索框底 371 → 表头 411
|
||||
margin-bottom: 39px;
|
||||
padding: 0;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
@@ -138,8 +130,6 @@ onMounted(() => {
|
||||
:deep(.filter-panel__bar) {
|
||||
gap: 8px;
|
||||
|
||||
// 设计:重置 x816、搜索 x940。搜索框右缘 726 →
|
||||
// 重置 816(margin 90 − 12 padding = 78)、搜索 940(margin 52 − 12 = 40)
|
||||
.filter-panel__btn {
|
||||
margin-left: 78px;
|
||||
}
|
||||
@@ -148,7 +138,6 @@ onMounted(() => {
|
||||
margin-left: 40px;
|
||||
} }
|
||||
|
||||
// 搜索框 134,322 592×49;占位 20/400 #999999
|
||||
:deep(.filter-panel__input) {
|
||||
flex: 0 0 592px;
|
||||
width: 592px;
|
||||
@@ -170,7 +159,6 @@ onMounted(() => {
|
||||
border-color: @primary-strong;
|
||||
}
|
||||
|
||||
// 设计按钮:重置 x816、搜索 x940,均 20/400 纯文字(DOM 序相反,用 order 对齐)
|
||||
:deep(.filter-panel__btn) {
|
||||
order: 1;
|
||||
min-width: 0;
|
||||
@@ -200,7 +188,6 @@ onMounted(() => {
|
||||
color: @primary-color;
|
||||
}
|
||||
|
||||
// 分页(设计:右对齐,页码 ink 1180/1181,`<上一页` x1388、`下一页>` x1740)
|
||||
:deep(.pagination) {
|
||||
justify-content: flex-end;
|
||||
gap: 10px;
|
||||
@@ -236,7 +223,6 @@ onMounted(() => {
|
||||
color: @contract-muted;
|
||||
}
|
||||
|
||||
// 首尾「上一页/下一页」:设计为无框纯文字
|
||||
:deep(.pagination__btn:first-child),
|
||||
:deep(.pagination__btn:last-child) {
|
||||
min-width: auto;
|
||||
|
||||
Reference in New Issue
Block a user