From d1657e9835a6b3350dee76956deae3029cfe4b11 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 20 四月 2021 15:54:06 +0800 Subject: [PATCH] 2021-04-20 --- src/templates/zshare/editTable/index.jsx | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/src/templates/zshare/editTable/index.jsx b/src/templates/zshare/editTable/index.jsx index 9f96d5f..85acc60 100644 --- a/src/templates/zshare/editTable/index.jsx +++ b/src/templates/zshare/editTable/index.jsx @@ -2,7 +2,7 @@ import PropTypes from 'prop-types' import { is, fromJS } from 'immutable' import { DndProvider, DragSource, DropTarget } from 'react-dnd' -import { Table, Input, InputNumber, Popconfirm, Form, Icon, Select, Radio, Cascader, notification, message, Modal } from 'antd' +import { Table, Input, InputNumber, Popconfirm, Form, Icon, Select, Radio, Cascader, notification, message, Modal, Typography } from 'antd' import Utils from '@/utils/utils.js' import ColorSketch from '@/mob/colorsketch' @@ -15,6 +15,7 @@ let eTDict = sessionStorage.getItem('lang') !== 'en-US' ? zhCN : enUS const EditableContext = React.createContext() let dragingIndex = -1 +const { Paragraph } = Typography class BodyRow extends React.Component { render() { @@ -494,6 +495,9 @@ } const columns = this.state.columns.map(col => { + if (col.copy) { + col.render = (text) => (<Paragraph copyable>{text}</Paragraph>) + } if (!col.editable) return col return { ...col, -- Gitblit v1.8.0