@@ -154,36 +155,40 @@ const MailBox = ({ mailboxDir, onMailItemClick, ...props }) => {
-
- }
- onClick={() => {
+
+ }
+ onClick={() => {
markAsRead(selectedItems.map((item) => item.MAI_SN)).then(() => setSelectedItems([]))
- }}
- >已读
- }
- onClick={() => {
+ }}>
+ 已读
+
+ }
+ onClick={() => {
console.info('未读未实现')
- }}
- >未读
- }
- onClick={() => {
+ }}>
+ 未读
+
+ }
+ onClick={() => {
markAsProcessed(selectedItems.map((item) => item.MAI_SN)).then(() => setSelectedItems([]))
- }}
- >已处理
- }
- onClick={() => {
+ }}>
+ 已处理
+
+ }
+ onClick={() => {
markAsDeleted(selectedItems.map((item) => item.MAI_SN)).then(() => setSelectedItems([]))
- }}
- >删除
-
+ }}>
+ 删除
+
+
@@ -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}
+
+ }
+ type='text'
+ onClick={() => {
+ prePage()
+ }}
+ iconPosition={'end'}>
+ }
+ type='text'
+ onClick={() => {
+ nextPage()
+ }}
+ iconPosition={'end'}>
+
+
-
+
- {
- return {
- title: (
- <>
-
- {bc.title}
- >
- ),
- }
- })}
- />
-
- 已选: {selectedItems.length} 项;
-
- {(pagination.current - 1) * PAGE_SIZE + 1}-{Math.min(pagination.current * PAGE_SIZE, pagination.total)} of {pagination.total}
-
- }
- type='text'
- onClick={() => {
- prePage()
- }}
- iconPosition={'end'}>
- }
- type='text'
- onClick={() => {
- nextPage()
- }}
- iconPosition={'end'}>
-
-
- }
+ 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 }) => {
/>
- >
+
)
}