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
422f0de8
Commit
422f0de8
authored
Nov 23, 2023
by
郁子恒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化表格界面
parent
9b7dd16f
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
15 deletions
+15
-15
App.vue
src/App.vue
+4
-4
collectionTable.vue
src/components/collectionTable.vue
+6
-6
elInput.vue
src/components/elInput.vue
+2
-2
index.js
src/components/index.js
+3
-3
No files found.
src/App.vue
View file @
422f0de8
...
@@ -95,7 +95,7 @@
...
@@ -95,7 +95,7 @@
<div
style=
"margin-left: 15px;margin-top: 10px;"
v-if=
"actionType == 'actions'"
>
<div
style=
"margin-left: 15px;margin-top: 10px;"
v-if=
"actionType == 'actions'"
>
<el-button
@
click=
"toActions"
>
进入容器
</el-button>
<el-button
@
click=
"toActions"
>
进入容器
</el-button>
</div>
</div>
<component
style=
"height: 345px;"
:is=
"dynamicComponent"
:actionName=
"actionName"
:actionType=
"actionType"
@
dataChanged=
"handleDataChange"
:dynamicTagObj=
"dynamicTagObj"
v-if=
"actionType !== ''"
></component>
<component
style=
"height: 345px;
width: 460px;
"
:is=
"dynamicComponent"
:actionName=
"actionName"
:actionType=
"actionType"
@
dataChanged=
"handleDataChange"
:dynamicTagObj=
"dynamicTagObj"
v-if=
"actionType !== ''"
></component>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -105,10 +105,10 @@
...
@@ -105,10 +105,10 @@
// 导出json文件使用的库
// 导出json文件使用的库
import
{
saveAs
}
from
'file-saver'
;
import
{
saveAs
}
from
'file-saver'
;
import
draggable
from
'vuedraggable'
import
draggable
from
'vuedraggable'
import
{
pageNavigate
,
elClick
,
sysSleep
,
elOutput
,
loopClick
,
on
Input
,
pageJavascript
,
collectSingleElements
,
pageClose
,
mouseMove
,
collectionTable
,
submit
,
actions
}
from
'./components/index.js'
import
{
pageNavigate
,
elClick
,
sysSleep
,
elOutput
,
loopClick
,
el
Input
,
pageJavascript
,
collectSingleElements
,
pageClose
,
mouseMove
,
collectionTable
,
submit
,
actions
}
from
'./components/index.js'
export
default
{
export
default
{
name
:
'App'
,
name
:
'App'
,
components
:
{
pageNavigate
,
elClick
,
sysSleep
,
elOutput
,
loopClick
,
on
Input
,
pageJavascript
,
collectSingleElements
,
pageClose
,
mouseMove
,
collectionTable
,
submit
,
actions
,
draggable
,
},
components
:
{
pageNavigate
,
elClick
,
sysSleep
,
elOutput
,
loopClick
,
el
Input
,
pageJavascript
,
collectSingleElements
,
pageClose
,
mouseMove
,
collectionTable
,
submit
,
actions
,
draggable
,
},
props
:
{},
props
:
{},
data
()
{
data
()
{
return
{
return
{
...
@@ -253,7 +253,7 @@ export default {
...
@@ -253,7 +253,7 @@ export default {
this
.
dynamicComponent
=
sysSleep
this
.
dynamicComponent
=
sysSleep
break
;
break
;
case
'el.input'
:
case
'el.input'
:
this
.
dynamicComponent
=
on
Input
this
.
dynamicComponent
=
el
Input
break
;
break
;
case
'el.output'
:
case
'el.output'
:
this
.
dynamicComponent
=
elOutput
this
.
dynamicComponent
=
elOutput
...
...
src/components/collectionTable.vue
View file @
422f0de8
...
@@ -6,22 +6,22 @@
...
@@ -6,22 +6,22 @@
<span
style=
"margin-left: 80px;"
v-if=
"isSelectTable"
>
表名:
</span>
<vxe-input
v-if=
"isSelectTable"
v-model=
"tableName"
placeholder=
"请填写表名"
size=
"mini"
></vxe-input>
<span
style=
"margin-left: 80px;"
v-if=
"isSelectTable"
>
表名:
</span>
<vxe-input
v-if=
"isSelectTable"
v-model=
"tableName"
placeholder=
"请填写表名"
size=
"mini"
></vxe-input>
</div>
</div>
<!-- 全部表格信息 -->
<!-- 全部表格信息 -->
<div
style=
"
width: 498px;overflow: auto
;"
>
<div
style=
"
overflow: auto;min-width: 460px
;"
>
<vxe-table
:data=
"SelectTableData"
ref=
"xTableColumn"
border
class=
"mytable-scrollbar"
height=
"270"
v-if=
"isSelectTable"
auto-resize
style=
"margin-bottom: 5px;"
>
<vxe-table
:data=
"SelectTableData"
ref=
"xTableColumn"
border
class=
"mytable-scrollbar"
height=
"270"
v-if=
"isSelectTable"
auto-resize
style=
"margin-bottom: 5px;"
>
<vxe-column
field=
""
title=
"列名"
width=
"150"
>
<vxe-column
field=
""
title=
"列名"
min-
width=
"150"
>
<template
v-slot=
"
{ row }">
<template
v-slot=
"
{ row }">
<!--
{{
row
.
text
}}
-->
<!--
{{
row
.
text
}}
-->
<div
style=
"display: flex;"
>
<span
style=
"width: 68px;"
></span>
<vxe-input
v-model=
"row.title"
placeholder=
"请填写列名"
size=
"mini"
></vxe-input>
<div
style=
"display: flex;"
>
<span
style=
"width: 68px;"
></span>
<vxe-input
v-model=
"row.title"
placeholder=
"请填写列名"
size=
"mini"
></vxe-input>
</div>
</div>
</
template
>
</
template
>
</vxe-column>
</vxe-column>
<vxe-column
field=
""
title=
"属性名"
width=
"150"
>
<vxe-column
field=
""
title=
"属性名"
min-
width=
"150"
>
<
template
v-slot=
"{ row }"
>
<
template
v-slot=
"{ row }"
>
<div
style=
"display: flex;"
>
<span
style=
"width: 68px;"
></span>
<vxe-input
v-model=
"row.name"
placeholder=
"请填写属性名"
size=
"mini"
></vxe-input>
<div
style=
"display: flex;"
>
<span
style=
"width: 68px;"
></span>
<vxe-input
v-model=
"row.name"
placeholder=
"请填写属性名"
size=
"mini"
></vxe-input>
</div>
</div>
</
template
>
</
template
>
</vxe-column>
</vxe-column>
<vxe-column
field=
""
title=
"值类型"
width=
"150"
>
<vxe-column
field=
""
title=
"值类型"
min-
width=
"150"
>
<
template
v-slot=
"{ row }"
>
<
template
v-slot=
"{ row }"
>
<div
style=
"display: flex;"
>
<span
style=
"width: 68px;line-height: 12px;"
>
<div
style=
"display: flex;"
>
<span
style=
"width: 68px;line-height: 12px;"
>
</span>
<vxe-select
v-model=
"row.type"
placeholder=
"选择值类型"
placement=
"bottom"
v-if=
"row.typeOptions.length > 1"
>
</span>
<vxe-select
v-model=
"row.type"
placeholder=
"选择值类型"
placement=
"bottom"
v-if=
"row.typeOptions.length > 1"
>
...
@@ -31,12 +31,12 @@
...
@@ -31,12 +31,12 @@
</div>
</div>
</
template
>
</
template
>
</vxe-column>
</vxe-column>
<vxe-column
field=
""
title=
"当前选中文本值"
width=
"150"
>
<vxe-column
field=
""
title=
"当前选中文本值"
min-
width=
"150"
>
<
template
v-slot=
"{ row }"
>
<
template
v-slot=
"{ row }"
>
{{
row
.
contentText
}}
{{
row
.
contentText
}}
</
template
>
</
template
>
</vxe-column>
</vxe-column>
<vxe-column
title=
"操作"
width=
"100"
>
<vxe-column
title=
"操作"
min-
width=
"100"
>
<
template
#
default=
"{ row }"
>
<
template
#
default=
"{ row }"
>
<vxe-button
status=
"danger"
content=
"删除"
@
click=
"columnDelete(row)"
style=
"margin-right: 20px;width: 50px;"
></vxe-button>
<vxe-button
status=
"danger"
content=
"删除"
@
click=
"columnDelete(row)"
style=
"margin-right: 20px;width: 50px;"
></vxe-button>
</
template
>
</
template
>
...
...
src/components/
on
Input.vue
→
src/components/
el
Input.vue
View file @
422f0de8
<
template
>
<
template
>
<div
class=
"
on
Input"
>
<div
class=
"
el
Input"
>
<!-- 操作按钮区域 -->
<!-- 操作按钮区域 -->
<div
style=
"width: 130px;height: 50px; margin-left: 15px; text-align: left;display: flex;align-items: center;justify-content: space-between;"
>
<div
style=
"width: 130px;height: 50px; margin-left: 15px; text-align: left;display: flex;align-items: center;justify-content: space-between;"
>
<el-button
size=
"small"
class=
"button-new-tag"
@
click=
"selectElement"
>
选择元素
</el-button>
<el-button
size=
"small"
class=
"button-new-tag"
@
click=
"selectElement"
>
选择元素
</el-button>
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
<
script
>
<
script
>
export
default
{
export
default
{
name
:
'
on
Input'
,
name
:
'
el
Input'
,
components
:
{},
components
:
{},
props
:
[
'actionName'
,
'actionType'
,
'dynamicTagObj'
],
props
:
[
'actionName'
,
'actionType'
,
'dynamicTagObj'
],
data
()
{
data
()
{
...
...
src/components/index.js
View file @
422f0de8
...
@@ -2,7 +2,7 @@ import pageNavigate from './pageNavigates.vue';
...
@@ -2,7 +2,7 @@ import pageNavigate from './pageNavigates.vue';
import
elClick
from
'./elClick.vue'
;
import
elClick
from
'./elClick.vue'
;
import
sysSleep
from
'./sysSleep.vue'
;
import
sysSleep
from
'./sysSleep.vue'
;
import
elOutput
from
'./elOutput.vue'
;
import
elOutput
from
'./elOutput.vue'
;
import
onInput
from
'./on
Input.vue'
;
import
elInput
from
'./el
Input.vue'
;
import
pageJavascript
from
'./pageJavascript.vue'
;
import
pageJavascript
from
'./pageJavascript.vue'
;
import
loopClick
from
'./loopClick.vue'
;
import
loopClick
from
'./loopClick.vue'
;
import
collectSingleElements
from
'./collectSingleElements.vue'
;
import
collectSingleElements
from
'./collectSingleElements.vue'
;
...
@@ -12,4 +12,4 @@ import collectionTable from './collectionTable.vue';
...
@@ -12,4 +12,4 @@ import collectionTable from './collectionTable.vue';
import
submit
from
'./submit.vue'
;
import
submit
from
'./submit.vue'
;
import
actions
from
'./actions.vue'
;
import
actions
from
'./actions.vue'
;
export
{
pageNavigate
,
elClick
,
sysSleep
,
elOutput
,
onInput
,
pageJavascript
,
loopClick
,
collectSingleElements
,
pageClose
,
mouseMove
,
collectionTable
,
submit
,
actions
};
export
{
pageNavigate
,
elClick
,
sysSleep
,
elOutput
,
elInput
,
pageJavascript
,
loopClick
,
collectSingleElements
,
pageClose
,
mouseMove
,
collectionTable
,
submit
,
actions
};
\ No newline at end of file
\ No newline at end of file
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