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/menu/components/card/doublecardcomponent/index.jsx |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/src/menu/components/card/doublecardcomponent/index.jsx b/src/menu/components/card/doublecardcomponent/index.jsx
index c5853a4..98acc31 100644
--- a/src/menu/components/card/doublecardcomponent/index.jsx
+++ b/src/menu/components/card/doublecardcomponent/index.jsx
@@ -127,6 +127,7 @@
     if (type === 'sub') {
       _style = fromJS(card.backStyle).toJS()
     } else {
+      options.push('clear')
       _style = fromJS(card.style).toJS()
     }
 
@@ -264,8 +265,16 @@
       mainBox = 'flex-card '
     }
 
+    let _style_ = null
+
+    if (card.style.clear === 'left') {
+      _style_ = {clear: 'left'}
+    } else if (card.style.clear === 'right') {
+      _style_ = {float: 'right'}
+    }
+
     return (
-      <Col span={card.setting.width || 24}>
+      <Col span={card.setting.width || 24} style={_style_}>
         <div className="card-item-wrap" style={_wrapStyle}>
           <div className={`card-item ${card.setting.btnControl || ''} ${checkAll} mk-${card.setting.display} ${mainBox}`} style={_style} onDoubleClick={(e) => {e.stopPropagation(); this.doubleClickCard()}} id={card.uuid}>
             <span className="circle-select"></span>

--
Gitblit v1.8.0