|
|
@ -20,7 +20,7 @@ const clipboardMap = {}
|
|
|
|
function VideoInReviewItem (props) {
|
|
|
|
function VideoInReviewItem (props) {
|
|
|
|
const theme = useContext(ThemeContext);
|
|
|
|
const theme = useContext(ThemeContext);
|
|
|
|
const { history, file_url, cover_url, title, created_at, published_at, isReview, id
|
|
|
|
const { history, file_url, cover_url, title, created_at, published_at, isReview, id
|
|
|
|
, onEditVideo, onMaskClick, getCopyText, showNotification,vv,play_duration} = props;
|
|
|
|
, onEditVideo, onMaskClick, getCopyText, showNotification,vv,play_duration,operation} = props;
|
|
|
|
useEffect(()=> {
|
|
|
|
useEffect(()=> {
|
|
|
|
if (!isReview) {
|
|
|
|
if (!isReview) {
|
|
|
|
_clipboard = new ClipboardJS(`.copybtn_item_${id}`);
|
|
|
|
_clipboard = new ClipboardJS(`.copybtn_item_${id}`);
|
|
|
@ -73,11 +73,14 @@ function VideoInReviewItem (props) {
|
|
|
|
</Tooltip> } {vv===0?"":vv}
|
|
|
|
</Tooltip> } {vv===0?"":vv}
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
{ isReview != true && <div>
|
|
|
|
{ isReview != true && <div>
|
|
|
|
<Tooltip title="编辑" placement="bottom">
|
|
|
|
{
|
|
|
|
<i className="icon-bianji1 iconfont" onClick={() => onEditVideo(props)}
|
|
|
|
operation &&
|
|
|
|
style={{ marginTop: '1px', display: 'inline-block'}}
|
|
|
|
<Tooltip title="编辑" placement="bottom">
|
|
|
|
></i>
|
|
|
|
<i className="icon-bianji1 iconfont" onClick={() => onEditVideo(props)}
|
|
|
|
</Tooltip>
|
|
|
|
style={{ marginTop: '1px', display: 'inline-block'}}
|
|
|
|
|
|
|
|
></i>
|
|
|
|
|
|
|
|
</Tooltip>
|
|
|
|
|
|
|
|
}
|
|
|
|
<Tooltip title="复制视频地址" placement="bottom">
|
|
|
|
<Tooltip title="复制视频地址" placement="bottom">
|
|
|
|
<i className={`icon-fuzhi iconfont copybtn_item_${id}`} data-clipboard-text={getCopyText(file_url, cover_url)}></i>
|
|
|
|
<i className={`icon-fuzhi iconfont copybtn_item_${id}`} data-clipboard-text={getCopyText(file_url, cover_url)}></i>
|
|
|
|
</Tooltip>
|
|
|
|
</Tooltip>
|
|
|
|