From 137fb8ea6af2789b3238b22bac31d80bced41dfe Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 28 七月 2021 11:39:39 +0800
Subject: [PATCH] 2021-07-28

---
 src/templates/sharecomponent/searchcomponent/dragsearch/index.jsx |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/templates/sharecomponent/searchcomponent/dragsearch/index.jsx b/src/templates/sharecomponent/searchcomponent/dragsearch/index.jsx
index 4af02e9..d65fdec 100644
--- a/src/templates/sharecomponent/searchcomponent/dragsearch/index.jsx
+++ b/src/templates/sharecomponent/searchcomponent/dragsearch/index.jsx
@@ -7,7 +7,7 @@
 import Card from './card'
 import './index.scss'
 
-const Container = ({list, placeholder, handleList, handleMenu, deleteMenu }) => {
+const Container = ({list, placeholder, showField, handleList, handleMenu, deleteMenu }) => {
   const [cards, setCards] = useState(list)
   const moveCard = (id, atIndex) => {
     const { card, index } = findCard(id)
@@ -94,7 +94,7 @@
       newcard.display = 'dropdown'
       
       let _match = 'like'
-      if (item.subType === 'select' || item.subType === 'link') {
+      if (item.subType === 'select' || item.subType === 'link' || item.subType === 'checkcard') {
         _match = '='
       } else if (item.subType === 'date' || item.subType === 'datemonth') {
         _match = '>='
@@ -130,6 +130,7 @@
           <Card
             id={`${card.uuid}`}
             card={card}
+            showField={showField}
             moveCard={moveCard}
             copyCard={copyCard}
             editCard={editCard}
@@ -139,7 +140,7 @@
         </Col>
       ))}
       {cards.length > 0 ? <Col key="action" className="action" span={6}>
-        <div className="ant-row ant-form-item" style={{lineHeight: '40px', height: '55px', marginBottom: 0}}>
+        <div className="ant-row ant-form-item" style={{whiteSpace: 'nowrap', lineHeight: '40px', height: '55px', marginBottom: 0}}>
           <div className="ant-col ant-form-item-label ant-col-xs-24 ant-col-sm-8">
           </div>
           <div className="ant-col ant-form-item-control-wrapper ant-col-xs-24 ant-col-sm-16">

--
Gitblit v1.8.0