Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
Vue-WebDriver
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
高源
Vue-WebDriver
Commits
72c47ed7
Commit
72c47ed7
authored
Feb 19, 2024
by
高源
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
选中高亮优化
parent
b5e95943
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
collectionTable.vue
src/components/collectionTable.vue
+8
-5
No files found.
src/components/collectionTable.vue
View file @
72c47ed7
...
...
@@ -263,14 +263,16 @@ export default {
info
.
contentText
=
targetElement
.
textContent
info
.
title
=
'columnName'
if
(
_this
.
selectTableData
.
length
>=
2
)
{
this
.
selectTableData
.
splice
(
_this
.
selectTableData
.
length
-
1
,
0
,
info
)
_
this
.
selectTableData
.
splice
(
_this
.
selectTableData
.
length
-
1
,
0
,
info
)
}
else
{
this
.
selectTableData
.
splice
(
0
,
0
,
info
)
_
this
.
selectTableData
.
splice
(
0
,
0
,
info
)
}
if
(
this
.
$refs
.
xTableColumn
!==
undefined
)
{
// if (this.SelectTableData.length > 1) {
this
.
$refs
.
xTableColumn
.
setCurrentRow
(
_this
.
selectTableData
[
0
])
// }
if
(
_this
.
selectTableData
.
length
<=
2
)
{
this
.
$refs
.
xTableColumn
.
setCurrentRow
(
_this
.
selectTableData
[
0
])
}
else
{
this
.
$refs
.
xTableColumn
.
setCurrentRow
(
_this
.
selectTableData
[
_this
.
selectTableData
.
length
-
2
])
}
}
// 移除先前元素的背景色(如果有)
if
(
window
.
currentlyHighlighted
)
{
...
...
@@ -384,6 +386,7 @@ export default {
this
.
table
.
cells
.
forEach
(
cell
=>
{
for
(
let
k
=
1
;
k
<=
this
.
tableData
.
length
;
k
++
)
{
let
path
=
`
${
cell
.
tableXpath
}
[
${
k
}
]/
${
cell
.
relativeXpath
}
`
;
this
.
setElementBackgroundColor
(
path
,
''
);
setTimeout
(()
=>
{
this
.
setElementBackgroundColor
(
path
,
'#68C23A'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment