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
79f96c46
Commit
79f96c46
authored
Nov 23, 2023
by
高源
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
组件传值优化
parent
984e9d2d
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
App.vue
src/App.vue
+0
-0
elclick.vue
src/components/elclick.vue
+9
-9
No files found.
src/App.vue
View file @
79f96c46
This diff is collapsed.
Click to expand it.
src/components/elclick.vue
View file @
79f96c46
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
export
default
{
export
default
{
name
:
'elClick'
,
name
:
'elClick'
,
components
:
{},
components
:
{},
props
:
[
'
dynamicTagObj
'
],
props
:
[
'
activedAction
'
],
data
()
{
data
()
{
return
{
return
{
elementInfos
:
{},
// 存储当前选中元素的信息
elementInfos
:
{},
// 存储当前选中元素的信息
...
@@ -40,15 +40,15 @@ export default {
...
@@ -40,15 +40,15 @@ export default {
"InnerText"
:
""
,
"InnerText"
:
""
,
"Timeout"
:
5000
"Timeout"
:
5000
},
},
"Name"
:
this
.
actionName
,
"Alias"
:
this
.
actionType
},
},
componentConfigs
:
{}
};
};
},
},
created
()
{
created
()
{
console
.
log
(
this
.
dynamicTagObj
);
console
.
log
(
this
.
activedAction
);
// if (Object.keys(this.dynamicTagObj.actionConfigs).length == 0) return
if
(
this
.
activedAction
.
Target
!==
undefined
){
// this.actionConfig = this.dynamicTagObj.actionConfigs
this
.
actionConfig
.
Target
=
this
.
activedAction
.
Target
;
}
},
},
mounted
()
{
},
mounted
()
{
},
beforeDestroy
()
{
beforeDestroy
()
{
...
@@ -62,9 +62,9 @@ export default {
...
@@ -62,9 +62,9 @@ export default {
submit
()
{
submit
()
{
console
.
log
(
this
.
actionConfig
);
console
.
log
(
this
.
actionConfig
);
// 防止父级改变,子级未改变重新赋值
// 防止父级改变,子级未改变重新赋值
//
this.actionConfig.Name = this.actionName
;
//
console.log(this.componentConfigs)
;
// this.actionConfig.Alias = this.actionType
;
this
.
activedAction
.
Target
=
this
.
actionConfig
.
Target
;
this
.
$emit
(
'dataChanged'
,
this
.
acti
onConfig
);
this
.
$emit
(
'dataChanged'
,
this
.
acti
vedAction
);
},
},
// 获取页面元素方法
// 获取页面元素方法
...
...
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