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
c9a3e961
Commit
c9a3e961
authored
Nov 20, 2023
by
郁子恒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
动作集合样式更改
parent
afb96735
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
25 deletions
+49
-25
App.vue
src/App.vue
+37
-12
actions.vue
src/components/actions.vue
+12
-13
No files found.
src/App.vue
View file @
c9a3e961
...
...
@@ -28,12 +28,19 @@
</div>
<el-divider></el-divider>
<!-- 动作集合 -->
<div>
<div
style=
"display: flex;justify-content: space-between;"
>
<div
style=
"height: 25px;display: flex;justify-content: flex-start;align-items: center;margin-left: 15px;"
>
<span>
动作集合:
</span>
<span
style=
"margin-left: 10px;"
@
click=
"onBreadcrumb(item)"
v-for=
"item in actionAll"
:key=
"item.Kvid"
>
<span
id=
"Breadcrumb"
style=
"color: blue;"
>
{{
item
.
name
}}
</span>
>
</span>
<div
class=
"scroll-container"
@
wheel=
"handleScroll"
style=
"width: 325px;"
>
<div
class=
"scroll-content"
style=
"margin-left: 10px;"
>
<span
id=
"Breadcrumb"
style=
"color: blue;"
@
click=
"onBreadcrumb(item)"
v-for=
"item in actionAll"
:key=
"item.Kvid"
>
{{
item
.
name
}}
>
</span>
</div>
</div>
</div>
<div
style=
"display:flex;align-items: center;margin-right: 15px;"
>
<el-button
:disabled=
"state"
type=
"primary"
size=
"mini"
style=
"width: 30px;height: 20px;"
@
click=
"newAction"
>
<img
style=
"width: 15px;height: 15px;"
src=
"./assets/add.svg"
>
</el-button>
</div>
</div>
<div
style=
"display: flex;align-items: flex-start;justify-content: space-between;width: 460px;"
>
...
...
@@ -66,14 +73,9 @@
</transition-group>
</draggable>
</div>
<div
style=
"height: 42px;display:flex;align-items: center;margin-right: 15px;"
>
<el-button
:disabled=
"state"
type=
"primary"
size=
"mini"
style=
"width: 30px;height: 20px;"
@
click=
"newAction"
>
<img
style=
"width: 15px;height: 15px;"
src=
"./assets/add.svg"
>
</el-button>
</div>
</div>
<el-divider></el-divider>
<!--
动作
配置 -->
<!--
容器
配置 -->
<div
v-if=
"isShowAction"
>
<div
style=
"height: 35px;display: flex;justify-content: space-between;align-items: center;margin-left: 15px;margin-right: 15px;"
>
<div
style=
"width: 211px;display: flex;align-items: center;"
>
...
...
@@ -88,9 +90,9 @@
</el-option>
</el-select>
</div>
<div
v-if=
"actionType == 'actions'"
>
<el-button
@
click=
"toActions"
>
进入容器
</el-button>
</div>
<div
style=
"margin-left: 15px;margin-top: 10px;"
v-if=
"actionType == 'actions'"
>
<el-button
@
click=
"toActions"
>
进入容器
</el-button>
</div>
<component
:is=
"dynamicComponent"
:actionName=
"actionName"
:actionType=
"actionType"
@
dataChanged=
"handleDataChange"
v-if=
"actionType !== ''"
></component>
</div>
...
...
@@ -222,6 +224,17 @@ export default {
},
computed
:
{},
methods
:
{
handleScroll
(
event
)
{
// 检测鼠标滚轮事件
if
(
event
.
deltaY
!==
0
)
{
// 阻止垂直滚动
event
.
preventDefault
();
// 调整横向滚动条的位置
const
scrollContainer
=
this
.
$el
.
querySelector
(
'.scroll-container'
);
scrollContainer
.
scrollLeft
+=
event
.
deltaY
;
}
},
// 组件配置
loadComponent
(
componentName
)
{
switch
(
componentName
)
{
...
...
@@ -652,6 +665,18 @@ export default {
</
script
>
<
style
>
.scroll-container
{
overflow-y
:
hidden
;
overflow-x
:
hidden
;
white-space
:
nowrap
;
width
:
100%
;
}
.scroll-content
{
/* width: 120%; */
height
:
100%
;
}
.circle
{
width
:
12px
;
height
:
12px
;
...
...
src/components/actions.vue
View file @
c9a3e961
<
template
>
<div
class=
"actions"
>
容器
<!-- 容器 -->
</div>
</
template
>
<
script
>
export
default
{
name
:
'actions'
,
components
:{},
props
:{},
data
(){
name
:
'actions'
,
components
:
{},
props
:
{},
data
()
{
return
{
}
},
created
()
{
},
mounted
()
{
},
watch
:{},
computed
:{},
methods
:{},
created
()
{
},
mounted
()
{
},
watch
:
{},
computed
:
{},
methods
:
{},
}
</
script
>
<
style
lang=
"scss"
scoped
>
</
style
>
\ No newline at end of file
<
style
lang=
"scss"
scoped
></
style
>
\ 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