diff --git a/src/assets/styles/pageLayout.module.less b/src/assets/styles/pageLayout.module.less index b5e2aa5..503aba0 100644 --- a/src/assets/styles/pageLayout.module.less +++ b/src/assets/styles/pageLayout.module.less @@ -37,6 +37,49 @@ overflow: hidden; border-radius: 10px; + .tableBody { + flex: 1; + min-height: 0; + overflow: hidden; + + :global { + .ant-spin-nested-loading, + .ant-spin-container, + .ant-table, + .ant-table-container { + height: 100%; + } + } + } + + // ── 汇总 ── + .summary { + display: flex; + align-items: center; + flex-wrap: wrap; + gap: 0 32px; + flex-shrink: 0; + padding: 14px 15px; + border-radius: 8px; + font-size: 14px; + color: rgba(0, 0, 0, 0.85); + } + + .summaryItem { + display: inline-flex; + align-items: baseline; + } + + .summaryLabel { + color: rgba(0, 0, 0, 0.65); + } + + .summaryValue { + font-weight: 600; + color: rgba(0, 0, 0, 0.85); + letter-spacing: 0.3px; + } + .pagination { flex-shrink: 0; display: flex; diff --git a/src/pages/finance/payments/index.module.less b/src/pages/finance/payments/index.module.less deleted file mode 100644 index 38ddafa..0000000 --- a/src/pages/finance/payments/index.module.less +++ /dev/null @@ -1,46 +0,0 @@ -// ===== 汇总(按图片:左对齐两段加粗数字) ===== -.summary { - display: flex; - align-items: center; - flex-wrap: wrap; - gap: 0 32px; - flex-shrink: 0; - padding: 14px 15px; - background: #fff; - border-radius: 8px; - font-size: 14px; - color: rgba(0, 0, 0, 0.85); -} - -.summaryItem { - display: inline-flex; - align-items: baseline; -} - -.summaryLabel { - color: rgba(0, 0, 0, 0.65); -} - -.summaryValue { - font-weight: 600; - color: rgba(0, 0, 0, 0.85); - letter-spacing: 0.3px; - font-family: - -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; -} - -// ===== 表格 body 容器:占满 flex 剩余空间 ===== -.tableBody { - flex: 1; - min-height: 0; - overflow: hidden; - - :global { - .ant-spin-nested-loading, - .ant-spin-container, - .ant-table, - .ant-table-container { - height: 100%; - } - } -} diff --git a/src/pages/finance/payments/index.tsx b/src/pages/finance/payments/index.tsx index bb354fc..98527c2 100644 --- a/src/pages/finance/payments/index.tsx +++ b/src/pages/finance/payments/index.tsx @@ -2,7 +2,7 @@ import { defineComponent } from 'vue'; import { Button, Input, Table, Form, Space, Pagination, Select, DatePicker } from 'ant-design-vue'; import { usePaymentsModel } from './model/usePaymentsModel'; import { useContainerSize } from '@/hooks'; -import styles from './index.module.less'; +import pageStyles from '@/assets/styles/pageLayout.module.less'; const { RangePicker } = DatePicker; @@ -28,9 +28,9 @@ export default defineComponent({ const { containerRef, height } = useContainerSize({ headerOffset: 55 }); return () => ( -