From a5f99a5f0e2035851997221bc2430f8cfd1dc146 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 04 十二月 2019 23:21:04 +0800
Subject: [PATCH] 2019-12-04

---
 src/templates/comtableconfig/dragelement/index.jsx |   16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/src/templates/comtableconfig/dragelement/index.jsx b/src/templates/comtableconfig/dragelement/index.jsx
index d46d2f4..bbdd837 100644
--- a/src/templates/comtableconfig/dragelement/index.jsx
+++ b/src/templates/comtableconfig/dragelement/index.jsx
@@ -1,13 +1,13 @@
 import React, { useState } from 'react'
 import { useDrop } from 'react-dnd'
 import update from 'immutability-helper'
-import { Col } from 'antd'
+import { Col, Icon } from 'antd'
 import Utils from '@/utils/utils.js'
 import Card from './card'
 import ItemTypes from './itemtypes'
 import './index.scss'
 
-const Container = ({list, setting, type, placeholder, handleList, handleMenu, deleteMenu, copyElement }) => {
+const Container = ({list, setting, gridBtn, type, placeholder, handleList, handleMenu, deleteMenu, copyElement, handleGridBtn }) => {
   let target = null
   const [cards, setCards] = useState(list)
   const moveCard = (id, atIndex) => {
@@ -250,6 +250,18 @@
                 hasDrop={hasDrop}
               />
             ))}
+            {i === (columns.length - 1) && gridBtn && gridBtn.display ?
+              <div className="page-card" style={{flex: gridBtn.Width}}>
+                <div style={{cursor: 'default'}}>
+                  <span className="ant-table-header-column">
+                    <div className="ant-table-column-sorters" title={gridBtn.label} style={{textAlign: gridBtn.Align}}>
+                      <span className="ant-table-column-title">{gridBtn.label}</span>
+                    </div>
+                  </span>
+                </div>
+                <Icon className="edit" type="edit" onClick={handleGridBtn}/>
+              </div> : null
+            }
           </div>
         ))
       }

--
Gitblit v1.8.0