From 62ebae424b86bb51f86d3d8852eb38450db9769a Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 27 五月 2021 19:07:32 +0800
Subject: [PATCH] 2021-05-27

---
 src/tabviews/custom/components/card/cardcellList/index.jsx |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/src/tabviews/custom/components/card/cardcellList/index.jsx b/src/tabviews/custom/components/card/cardcellList/index.jsx
index 071edcd..a316272 100644
--- a/src/tabviews/custom/components/card/cardcellList/index.jsx
+++ b/src/tabviews/custom/components/card/cardcellList/index.jsx
@@ -428,8 +428,17 @@
       )
     } else if (card.eleType === 'picture') {
       let _imagestyle = {}
-      let _style = card.style ? {...card.style} : {}
+      let _style = card.style ? {margin: '0 auto', ...card.style} : {}
       let url = ''
+      if (card.maxWidth) {
+        _style.maxWidth = card.maxWidth
+        if (_style.marginLeft === '0px') {
+          delete _style.marginLeft
+        }
+        if (_style.marginRight === '0px') {
+          delete _style.marginRight
+        }
+      }
 
       if (card.datatype === 'static') {
         url = card.url

--
Gitblit v1.8.0