| | |
| | | import VxeUI from "vxe-pc-ui"; |
| | | function copyTableCellValue(row, column) { |
| | | if(column.field.indexOf('.')>-1){ |
| | | let array = column.field.split('.') |
| | | if (row[array[0]][array[1]]!==null){ |
| | | VxeUI.clipboard.copy(row[array[0]][array[1]]) |
| | | } |
| | | |
| | | }else { |
| | | if (row[column.field]!==null){ |
| | | VxeUI.clipboard.copy(row[column.field]) |
| | | } |
| | | |
| | | } |
| | | } |
| | | function copyTableCellValueShow(row, column) { |
| | | if(column.field.indexOf('.')>-1){ |
| | | let array = column.field.split('.') |
| | |
| | | } |
| | | } |
| | | |
| | | function copyTableCellValue(row, column) { |
| | | if(column.field.indexOf('.')>-1){ |
| | | let array = column.field.split('.') |
| | | if (row[array[0]][array[1]]!==null){ |
| | | VxeUI.clipboard.copy(row[array[0]][array[1]]) |
| | | } |
| | | |
| | | }else { |
| | | if (row[column.field]!==null){ |
| | | VxeUI.clipboard.copy(row[column.field]) |
| | | } |
| | | |
| | | } |
| | | } |
| | | export {copyTableCellValue,copyTableCellValueShow} |