From c986f2f56bb153a9b6cebc74b4d9334c85ddfdda Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 04 一月 2021 18:54:02 +0800 Subject: [PATCH] 2020-01-04 --- src/tabviews/custom/components/card/cardcellList/index.jsx | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/src/tabviews/custom/components/card/cardcellList/index.jsx b/src/tabviews/custom/components/card/cardcellList/index.jsx index 9f8f546..efe9f20 100644 --- a/src/tabviews/custom/components/card/cardcellList/index.jsx +++ b/src/tabviews/custom/components/card/cardcellList/index.jsx @@ -22,6 +22,7 @@ const PrintButton = asyncComponent(() => import('@/tabviews/zshare/actionList/printbutton')) const BarCode = asyncElementComponent(() => import('@/components/barcode')) const QrCode = asyncElementComponent(() => import('@/components/qrcode')) +const Video = asyncComponent(() => import('@/components/video')) class CardCellComponent extends Component { static propTpyes = { @@ -428,6 +429,22 @@ </div> </Col> ) + } else if (card.eleType === 'video') { + let url = '' + + if (card.datatype === 'static') { + url = card.url + } else { + url = data[card.field] || '' + } + + return ( + <Col key={card.uuid} span={card.width}> + <div style={card.style}> + <Video card={card} value={url}/> + </div> + </Col> + ) } else if (card.eleType === 'qrcode') { let val = '' -- Gitblit v1.8.0