Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
apollo_form_pase
Project
Project
Details
Activity
Releases
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
web_component
apollo_form_pase
Commits
0d55427f
Commit
0d55427f
authored
Nov 07, 2019
by
满振华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改参数
parent
1c617bf0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
package.json
package.json
+1
-1
behavior.js
src/behavior.js
+1
-1
index.js
src/index.js
+2
-2
No files found.
package.json
View file @
0d55427f
{
"name"
:
"apollo_form_pase"
,
"version"
:
"0.0.
8
"
,
"version"
:
"0.0.
9
"
,
"description"
:
""
,
"main"
:
"dist/index.js"
,
"module"
:
"dist/index.esm.js"
,
...
...
src/behavior.js
View file @
0d55427f
...
...
@@ -40,7 +40,7 @@ export const HandleClass = {
...
obj
.
behaviorResult
,
paramsJson
,
}
resertValue
&&
resertValue
({
key
:
ls
});
resertValue
&&
resertValue
({
key
:
ls
,
handleType
});
if
(
handleType
!==
'init'
)
{
obj
.
value
=
void
0
;
//将目标组件清空
}
...
...
src/index.js
View file @
0d55427f
...
...
@@ -58,9 +58,9 @@ class HandleBehavior {
let
formData
=
this
.
formData
;
this
.
formData
=
behaviorInstance
.
fun
({
value
,
behavior
,
behaviors
,
formData
,
componentData
,
handleType
},
this
.
resetValueCallback
);
}
resetValueCallback
=
({
key
,
value
})
=>
{
resetValueCallback
=
({
key
,
value
,
handleType
})
=>
{
const
componentData
=
this
.
formData
.
find
(
ls
=>
ls
.
name
===
key
)
||
{};
this
.
handleBehavior
({
currentValue
:
value
,
componentData
})
this
.
handleBehavior
({
currentValue
:
value
,
componentData
,
handleType
})
}
hiddenFilds
=
()
=>
{
this
.
formData
=
this
.
formData
.
filter
(
item
=>
item
.
type
!==
'hidden'
)
...
...
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