import React, { useState } from "react" import style from './index.less' import { Image, ImageProps, Modal } from 'antd' import { getVideoImgUrl } from "@/utils/utils" import play from "../../../../../public/image/play.png" import { CloseOutlined } from '@ant-design/icons'; import './index1.less' interface Props extends ImageProps { maskBodyStyle?: React.CSSProperties maskImgStyle?: React.CSSProperties } const VideoNews: React.FC = ({ preview = false, src, maskBodyStyle, maskImgStyle, ...data }) => { /*****************************/ const [toPlay, setToPlay] = useState(false) /*****************************/ return <>
{ e.stopPropagation(); e.preventDefault(); setToPlay(true) }} />
{toPlay && } onCancel={(e) => {e.stopPropagation(); setToPlay(false)}} > } } export default React.memo(VideoNews)