From 3140b58a56be4b1693766121dacb83fe6f6f21df Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 26 九月 2023 14:48:30 +0800
Subject: [PATCH] 2023-09-26

---
 src/menu/components/table/base-table/columns/index.jsx |   38 +++++++++++++++++++-------------------
 1 files changed, 19 insertions(+), 19 deletions(-)

diff --git a/src/menu/components/table/base-table/columns/index.jsx b/src/menu/components/table/base-table/columns/index.jsx
index 5b6a30a..1205028 100644
--- a/src/menu/components/table/base-table/columns/index.jsx
+++ b/src/menu/components/table/base-table/columns/index.jsx
@@ -3,7 +3,7 @@
 import { is, fromJS } from 'immutable'
 import { DndProvider, DragSource, DropTarget } from 'react-dnd'
 import { Table, Popover, Modal, message, notification } from 'antd'
-import { PlusOutlined, PlusSquareOutlined, EditOutlined, CopyOutlined, DeleteOutlined, FontColorsOutlined, CloseCircleOutlined, AntDesignOutlined, InfoOutlined } from '@ant-design/icons'
+import { PlusOutlined, PlusSquareOutlined, EditOutlined, CopyOutlined, DeleteOutlined, FontColorsOutlined, CloseCircleOutlined, AntDesignOutlined } from '@ant-design/icons'
 
 import asyncComponent from '@/utils/asyncComponent'
 import asyncIconComponent from '@/utils/asyncIconComponent'
@@ -615,26 +615,26 @@
     })
   }
 
-  copyFields = () => {
-    const { config } = this.props
-    let m = []
-    let n = []
+  // copyFields = () => {
+  //   const { config } = this.props
+  //   let m = []
+  //   let n = []
 
-    config.columns.forEach(col => {
-      m.push(`${col.field} ${col.datatype}`)
-      n.push(col.field)
-    })
+  //   config.columns.forEach(col => {
+  //     m.push(`${col.field} ${col.datatype}`)
+  //     n.push(col.field)
+  //   })
 
-    let oInput = document.createElement('input')
-    oInput.value = `/*${m.join(',')}*/
-      ${n.join(',')}`
-    document.body.appendChild(oInput)
-    oInput.select()
-    document.execCommand('Copy')
-    document.body.removeChild(oInput)
+  //   let oInput = document.createElement('input')
+  //   oInput.value = `/*${m.join(',')}*/
+  //     ${n.join(',')}`
+  //   document.body.appendChild(oInput)
+  //   oInput.select()
+  //   document.execCommand('Copy')
+  //   document.body.removeChild(oInput)
 
-    message.success('澶嶅埗鎴愬姛銆�')
-  }
+  //   message.success('澶嶅埗鎴愬姛銆�')
+  // }
 
   componentDidMount () {
     MKEmitter.addListener('plusColumns', this.plusColumns)
@@ -680,7 +680,7 @@
           <FieldsComponent config={config} type="columns" />
           <CopyOutlined title="澶嶅埗鏄剧ず鍒�" onClick={this.copycolumn} />
           <MarkColumn columns={fields} type="line" marks={lineMarks} onSubmit={this.updateLineMarks} />
-          <InfoOutlined title="澶嶅埗瀛楁" style={{color: 'orange'}} onClick={this.copyFields}/>
+          {/* <InfoOutlined title="澶嶅埗瀛楁" style={{color: 'orange'}} onClick={this.copyFields}/> */}
         </div>
         <DndProvider>
           {groups ? groups.map((group, i) => {

--
Gitblit v1.8.0