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
91768e40
Commit
91768e40
authored
Nov 28, 2023
by
郁子恒
Browse files
Options
Browse Files
Download
Plain Diff
优化
parents
26f39cd2
b6bcaa07
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
collectionTable.vue
src/components/collectionTable.vue
+10
-5
No files found.
src/components/collectionTable.vue
View file @
91768e40
...
...
@@ -61,10 +61,15 @@
<span
style=
"font-size: 13px;"
>
操作
</span>
</
template
>
<
template
#
default=
"{ row }"
>
<!--
<el-tooltip
class=
"item"
effect=
"dark"
content=
"删除"
placement=
"top"
>
-->
<img
style=
"width: 38px;height: 28px;vertical-align: bottom;cursor: pointer;"
src=
"../assets/close.svg"
@
click
.
stop=
"columnDelete(row)"
v-if=
"row.xpath !== ''"
>
<img
style=
"width: 37px;height: 24px;vertical-align: bottom;cursor: pointer;"
src=
"../assets/addTable.svg"
@
click
.
stop=
"selectElement"
v-else
>
<!--
</el-tooltip>
-->
<template
v-else
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"点击按钮,右击页面元素添加数据"
placement=
"top"
>
<img
style=
"width: 24px;height: 24px;vertical-align: bottom;cursor: pointer;background-color: transparent;"
src=
"../assets/addTable.svg"
@
click
.
stop=
"selectElement"
>
</el-tooltip>
</
template
>
</template>
</vxe-column>
</vxe-table>
...
...
@@ -287,8 +292,8 @@ export default {
window
.
currentlyHighlighted
=
event
.
target
;
_this
.
selectTable
=
false
;
// 移除事件监听器
// document.removeEventListener('contextmenu',
contextMenuHandler);
//
_this.contextMenuListenerAdded = false;
document
.
removeEventListener
(
'contextmenu'
,
this
.
contextMenuHandler
);
_this
.
contextMenuListenerAdded
=
false
;
},
// 选择元素按钮调用
selectElement
()
{
...
...
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