|
|
@ -99,7 +99,8 @@ |
|
|
|
|
|
|
|
|
|
|
|
<template #default="scope"> |
|
|
|
<template #default="scope"> |
|
|
|
<el-text |
|
|
|
<el-text |
|
|
|
@click.stop @dblclick.stop="Copytxt(scope.row[column.prop])" |
|
|
|
@click.stop |
|
|
|
|
|
|
|
@dblclick.stop="Copytxt(scope.row[column.prop])" |
|
|
|
class="mx-2 tabculconte" |
|
|
|
class="mx-2 tabculconte" |
|
|
|
:class=" |
|
|
|
:class=" |
|
|
|
scope.row[column.prop] == props.searchInput && scope.row[column.prop] |
|
|
|
scope.row[column.prop] == props.searchInput && scope.row[column.prop] |
|
|
@ -393,7 +394,9 @@ const isHaveSelection = ref(false); |
|
|
|
let selectarr = ref([]); |
|
|
|
let selectarr = ref([]); |
|
|
|
/** 设置每行颜色 */ |
|
|
|
/** 设置每行颜色 */ |
|
|
|
const tableRowClassName = ({ row, rowIndex }: { row: TableDataType; rowIndex: number }) => { |
|
|
|
const tableRowClassName = ({ row, rowIndex }: { row: TableDataType; rowIndex: number }) => { |
|
|
|
|
|
|
|
// console.log('selectarr.value :>> ', selectarr.value); |
|
|
|
for (let i = 0; i < selectarr.value.length; i++) { |
|
|
|
for (let i = 0; i < selectarr.value.length; i++) { |
|
|
|
|
|
|
|
// console.log('row :>> ', row); |
|
|
|
if (selectarr.value[i] === row) return 'table-SelectedRow-bgcolor'; |
|
|
|
if (selectarr.value[i] === row) return 'table-SelectedRow-bgcolor'; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -723,7 +726,7 @@ function copyContent(content: string) { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
function Copytxt(Value) { |
|
|
|
function Copytxt(Value) { |
|
|
|
copyContent(Value) |
|
|
|
copyContent(Value); |
|
|
|
} |
|
|
|
} |
|
|
|
const handleRefresh = () => { |
|
|
|
const handleRefresh = () => { |
|
|
|
for (let i = 0; i < newcolumnList.value.length; i++) { |
|
|
|
for (let i = 0; i < newcolumnList.value.length; i++) { |
|
|
|