From 238987f2d0765dd5d7f5978ed71793632c4eff5f Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 12 七月 2023 12:06:49 +0800
Subject: [PATCH] 2023-07-12

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

diff --git a/src/tabviews/custom/components/card/prop-card/index.jsx b/src/tabviews/custom/components/card/prop-card/index.jsx
index e68df77..837a22d 100644
--- a/src/tabviews/custom/components/card/prop-card/index.jsx
+++ b/src/tabviews/custom/components/card/prop-card/index.jsx
@@ -95,6 +95,14 @@
           card.setting.click = ''
         }
       }
+
+      if (card.style.clear === 'left') {
+        card.wStyle = {clear: 'left'}
+      } else if (card.style.clear === 'right') {
+        card.wStyle = {float: 'right'}
+      }
+
+      delete card.style.clear
     })
 
     let selected = _config.wrap.selected || 'false'
@@ -532,7 +540,7 @@
             }
 
             return (
-              <Col className={className} key={index} span={item.setting.width || 6} offset={item.offset || 0}>
+              <Col className={className} key={index} style={item.wStyle} span={item.setting.width || 6} offset={item.offset || 0}>
                 <CardItem card={item} cards={config} data={data} onClick={() => {this.changeCard(index, item)}}/>
               </Col>
             )

--
Gitblit v1.8.0