import './card-proj-download.css'; import { IProjDownload } from "../../interfaces/card/ICardProj.ts"; import { CloseOutlined, RedoOutlined, } from '@ant-design/icons'; // import { useEffect } from "react"; export default function CardProjDownload(props: IProjDownload) { // useEffect(() => { // console.log(props); // }, []) return ( //
{props.title}
{props.desc}
{ props.canBtnClick ? (
{ e.preventDefault(); props.handleDownload(); }}>下载
{ props.againPkg() }} style={{ minWidth: 30, display: props.pkgStatus == 'FAIL' ? 'unset' : 'none',color:'red',fontWeight:700,cursor:'pointer',whiteSpace: 'nowrap', }}> 打包失败
{ props.upData() }} > 正在打包< RedoOutlined spin />
{ e.preventDefault(); props.handleDownload(); }}>下载
{ // props.againPkg() props.againVideo() }} style={{ minWidth: 30, display: props.videoStatus == 'FAIL' ? 'unset' : 'none',color:'red',fontWeight:700,cursor:'pointer' ,whiteSpace: 'nowrap',}}> 打包失败
{ // props.upData() props.upVideoData() }} > 正在打包< RedoOutlined spin />
) : ( // { // e.preventDefault(); // }}>下载
) }
) }