guoyujie
2025-08-13 b1a2e1ec57bf3a7040b26efe4f92c49323417f50
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import VxeUI from "vxe-pc-ui";
 
function copyTableCellValueShow(row, column) {
    if(column.field.indexOf('.')>-1){
        let  array = column.field.split('.')
        if (row[array[0]][array[1]+'Show']!==null){
            VxeUI.clipboard.copy(row[array[0]+'Show'][array[1]])
        }
 
    }else {
        if (row[column.field+'Show']!==null){
            VxeUI.clipboard.copy(row[column.field+'Show'])
        }
 
    }
}
 
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}