/**书架中书籍的box容器横小 */ import { Text, View, Image, Button, Navigator } from "@tarojs/components"; import React from 'react' import './index.less' export interface BookboxRowSmallProps { book_id: number, // 书ID book_name: string, // 书名 category: string, //书类型 cover: string, //封面 intro: string, penname: string, // 作者 sign: string, //阅读人数 section: string,//章节 chapter_name?: string, chapter_id?: number } function BookboxRowSmall(props: BookboxRowSmallProps) { const { book_id, book_name, category, cover, penname, chapter_name, section, chapter_id } = props return {book_name} {penname} { chapter_name ? <> {/* {time} */} {chapter_name} :未读 } } export default React.memo(BookboxRowSmall)