From 6b32601fc7ad9fcf1b91f5e0d83ae87cac069eed Mon Sep 17 00:00:00 2001 From: Lei OT Date: Mon, 23 Jun 2025 16:07:22 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E5=9B=BA=E5=AE=9Amail=20list=20?= =?UTF-8?q?=E7=9A=84header?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/orders/components/MailBox.jsx | 139 ++++++++++++------------ 1 file changed, 72 insertions(+), 67 deletions(-) diff --git a/src/views/orders/components/MailBox.jsx b/src/views/orders/components/MailBox.jsx index 2c75388..176e904 100644 --- a/src/views/orders/components/MailBox.jsx +++ b/src/views/orders/components/MailBox.jsx @@ -97,13 +97,14 @@ const MailBox = ({ mailboxDir, onMailItemClick, ...props }) => { const mailItemRender = (item) => { const isOrderNode = mailboxDir.COLI_SN > 0 const orderNumber = isEmpty(item.MAI_COLI_ID) || isOrderNode ? '' : item.MAI_COLI_ID + ' - ' - const folderName = isOrderNode ? `[${item.FDir}]` : '' + const folderName = isOrderNode ? `[${item.FDir}]` : '' const orderMailType = {item.MAT_Name} const countryName = isEmpty(item.CountryCN) ? '' : '[' + item.CountryCN + '] ' const mailStateClass = item.MOI_ReadState === 0 ? 'font-bold' : '' const hasAtta = item.MAI_Attachment !== 0 ? : null return ( -
  • +
  • i.MAI_SN === item.MAI_SN)} @@ -132,7 +133,7 @@ const MailBox = ({ mailboxDir, onMailItemClick, ...props }) => { } return ( - <> +
    @@ -154,36 +155,40 @@ const MailBox = ({ mailboxDir, onMailItemClick, ...props }) => { - - - + - + - + - + }}> + 删除 + +
    @@ -211,47 +216,47 @@ const MailBox = ({ mailboxDir, onMailItemClick, ...props }) => {
    + + { + return { + title: ( + <> + + {bc.title} + + ), + } + })} + /> + + 已选: {selectedItems.length} 项; + + {(pagination.current - 1) * PAGE_SIZE + 1}-{Math.min(pagination.current * PAGE_SIZE, pagination.total)} of {pagination.total} + + + + + -
    +
    - { - return { - title: ( - <> - - {bc.title} - - ), - } - })} - /> - - 已选: {selectedItems.length} 项; - - {(pagination.current - 1) * PAGE_SIZE + 1}-{Math.min(pagination.current * PAGE_SIZE, pagination.total)} of {pagination.total} - - - - - - } + className='flex flex-col h-full [&_.ant-list-items]:overflow-auto' + header={null} itemLayout='vertical' pagination={false} dataSource={pagination.pagedList} @@ -259,7 +264,7 @@ const MailBox = ({ mailboxDir, onMailItemClick, ...props }) => { />
    - +
    ) }