Let's use AI to Earn!
TypeScript auto-publishdouyindouyin-apielectron-appelectron-reactkuaishoukwaipublishedshipinhaotoolxiaohongshu
secetire
bulaienaofutuojiesenzhanga1c834a40f87
diff --git a/src/app/[lng]/accounts/components/CalendarTiming/ListMode/index.tsx b/src/app/[lng]/accounts/components/CalendarTiming/ListMode/index.tsxindex ab823632..d90fb012 100644--- a/src/app/[lng]/accounts/components/CalendarTiming/ListMode/index.tsx+++ b/src/app/[lng]/accounts/components/CalendarTiming/ListMode/index.tsx@@ -11,6 +11,7 @@ import CalendarRecord from "@/app/[lng]/accounts/components/CalendarTiming/Calenimport { HTML5Backend } from "react-dnd-html5-backend";import { DndProvider } from "react-dnd";import SentList from "./SentList";+import QueueItem from "./QueueItem";import { useAccountStore } from "@/store/account";export interface IListModeRef {}@@ -51,23 +52,23 @@ const ListMode = memo(}, [getPubRecord]);const renderRecordItem = (record: PublishRecordItem) => {- const days = getDays(record.publishTime);-return (- <List.Item+ <QueueItemkey={record.id}- className={styles.listItem}- actions={[- <div key="time" className={styles.timeInfo}>- <span className={styles.date}>{days.format("MM-DD")}</span>- <span className={styles.time}>{days.format("HH:mm")}</span>- </div>- ]}- >- <div className={styles.recordWrapper}>- <CalendarRecord publishRecord={record} />- </div>- </List.Item>+ record={record}+ onRetry={(record) => {+ // TODO: 实现重试逻辑+ console.log('Retry record:', record);+ }}+ onEdit={(record) => {+ // TODO: 实现编辑逻辑+ console.log('Edit record:', record);+ }}+ onMore={(record) => {+ // TODO: 实现更多操作逻辑+ console.log('More actions for record:', record);+ }}+ />);};@@ -94,11 +95,9 @@ const ListMode = memo(<div className={styles.tabContent}><DndProvider backend={HTML5Backend}>{sortedRecords.length > 0 ? (- <List- dataSource={sortedRecords}- renderItem={renderRecordItem}- className={styles.recordList}- />+ <div className={styles.queueList}>+ {sortedRecords.map(renderRecordItem)}+ </div>) : (<Emptydescription={t('listMode.noRecords' as any)}