From 4fbd75879aad2356d799ca4d0d9c7da6a92d2a51 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 30 八月 2022 18:32:45 +0800 Subject: [PATCH] 2022-08-30 --- src/tabviews/zshare/normalTable/index.jsx | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/src/tabviews/zshare/normalTable/index.jsx b/src/tabviews/zshare/normalTable/index.jsx index 259b6c7..4f7ee58 100644 --- a/src/tabviews/zshare/normalTable/index.jsx +++ b/src/tabviews/zshare/normalTable/index.jsx @@ -17,6 +17,7 @@ const PopupButton = asyncComponent(() => import('@/tabviews/zshare/actionList/popupbutton')) const TabButton = asyncComponent(() => import('@/tabviews/zshare/actionList/tabbutton')) const NewPageButton = asyncComponent(() => import('@/tabviews/zshare/actionList/newpagebutton')) +const Video = asyncComponent(() => import('@/components/video')) class BodyRow extends React.Component { shouldComponentUpdate (nextProps) { @@ -656,6 +657,22 @@ })} </div> ) + } else if (item.type === 'video') { + let url = '' + if (item.field && record.hasOwnProperty(item.field)) { + url = record[item.field] + '' + } + + if (!url) { + return ( + <div className="video-wrap"></div> + ) + } + return ( + <div className="video-wrap"> + <Video card={item} value={url}/> + </div> + ) } else if (item.type === 'textarea') { let content = '' -- Gitblit v1.8.0