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
cdaf3153
Commit
cdaf3153
authored
Nov 20, 2023
by
郁子恒
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://git.kivii.org/gy/Vue-WebDriver
parents
79441973
e98e2873
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
61 additions
and
56 deletions
+61
-56
App.vue
src/App.vue
+3
-3
collectionTable.vue
src/components/collectionTable.vue
+54
-49
sdk-table.js
src/sdk-table.js
+4
-4
No files found.
src/App.vue
View file @
cdaf3153
...
...
@@ -872,7 +872,7 @@ export default {
.toolkitcontain
th
,
.toolkitcontain
td
,
.toolkitcontain
tr
{
border
:
1px
solid
rgb
(
78
,
78
,
78
)
!important
;
/* border: 1px solid rgb(78, 78, 78) !important; */
height
:
25px
!important
;
width
:
100px
!important
;
text-align
:
center
!important
;
...
...
@@ -930,11 +930,11 @@ export default {
z-index
:
99999
!important
;
}
.vxe-table--render-default
.vxe-body--column
:not
(
.col--ellipsis
),
/*
.vxe-table--render-default .vxe-body--column:not(.col--ellipsis),
.vxe-table--render-default .vxe-footer--column:not(.col--ellipsis),
.vxe-table--render-default .vxe-header--column:not(.col--ellipsis) {
padding: 2px 0 !important;
}
}
*/
.item
{
padding
:
6px
;
...
...
src/components/collectionTable.vue
View file @
cdaf3153
This diff is collapsed.
Click to expand it.
src/sdk-table.js
View file @
cdaf3153
...
...
@@ -14,9 +14,9 @@ function table () {
* 新生成一个单元格
* @param {any} xpath
*/
this
.
newCell
=
function
(
xpath
,
name
)
{
this
.
newCell
=
function
(
xpath
,
name
,
type
,
title
)
{
_isVerified
=
false
;
//加入了
let
newCell
=
new
cell
(
xpath
,
name
);
let
newCell
=
new
cell
(
xpath
,
name
,
type
,
title
);
this
.
cells
.
push
(
newCell
);
}
/**
...
...
@@ -102,7 +102,7 @@ function table () {
* @param {string} type 元素取值类型,文本,链接,元素路径(点击动作用)
* @param {string} title 标题信息
*/
function
cell
(
xpath
,
name
,
type
=
""
,
title
=
""
)
{
function
cell
(
xpath
,
name
,
type
,
title
)
{
/**当前单元格的绝对路径,存入Action时有用 */
this
.
xpath
=
xpath
;
/**当前单元格存储数据时的属性名 */
...
...
@@ -167,7 +167,7 @@ function cell (xpath, name , type = "", title = "") {
let
cellXpath
=
this
.
tableXpath
+
"["
+
index
+
"]"
+
'/'
+
this
.
relativeXpath
;
let
results
=
document
.
evaluate
(
cellXpath
,
document
,
null
,
XPathResult
.
FIRST_ORDERED_NODE_TYPE
,
null
);
if
(
!!
results
.
singleNodeValue
)
{
result
[
this
.
name
]
=
results
.
singleNodeValue
.
innerText
;
result
[
this
.
name
]
=
results
.
singleNodeValue
[
this
.
type
]
;
}
};
return
this
;
//返回当前对象
...
...
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