import styles from './index.less' import Header from "./header"; import { Empty, Tag } from "antd"; import { ReactElement, JSXElementConstructor, ReactNode, ReactPortal, Key } from "react"; import { MyIcon } from "@/global"; // 口碑佳作 export function ClassicBooks(props: { data: { appComponentId: number | string; componentType: string; showRightButton?: boolean; componentName?: string; remark?: string; configs?: any[]; } }) { const { data: { configs, componentName, showRightButton } } = props return
{configs?.[0]?.bookInfo ? <>
{ configs?.map((item: { bookInfo: { vipFree: any, picUrl: string | undefined; bookName: string | number | boolean | ReactElement> | Iterable | ReactPortal | null | undefined; }; }, index: Key | null | undefined) => { return
{item?.bookInfo?.vipFree && } { e.target.src = localStorage.getItem("nocover") }} />
{item?.bookInfo?.bookName}
}) }
:
}
}