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
7cf9b1e8
Commit
7cf9b1e8
authored
Oct 31, 2019
by
满振华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改表单修饰器
parent
daebcf7a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
behavior.js
src/behavior.js
+0
-1
index.js
src/index.js
+2
-1
No files found.
src/behavior.js
View file @
7cf9b1e8
...
@@ -28,7 +28,6 @@ export const HandleClass = {
...
@@ -28,7 +28,6 @@ export const HandleClass = {
name
:
'修改business,请求参数'
,
name
:
'修改business,请求参数'
,
fun
:
({
behavior
=
{},
formData
,
componentData
,
value
,
handleType
},
resertValue
)
=>
{
fun
:
({
behavior
=
{},
formData
,
componentData
,
value
,
handleType
},
resertValue
)
=>
{
// handleType 为init时不处理值的问题
// handleType 为init时不处理值的问题
const
newFormData
=
formData
.
slice
();
const
newFormData
=
formData
.
slice
();
const
targets
=
(
behavior
.
targets
||
''
).
split
(
','
);
const
targets
=
(
behavior
.
targets
||
''
).
split
(
','
);
targets
.
forEach
(
ls
=>
{
targets
.
forEach
(
ls
=>
{
...
...
src/index.js
View file @
7cf9b1e8
...
@@ -17,6 +17,7 @@ class HandleBehavior {
...
@@ -17,6 +17,7 @@ class HandleBehavior {
return
this
;
return
this
;
}
}
getFormData
=
()
=>
{
getFormData
=
()
=>
{
return
this
.
formData
return
this
.
formData
}
}
...
@@ -64,4 +65,4 @@ class HandleBehavior {
...
@@ -64,4 +65,4 @@ class HandleBehavior {
this
.
formData
=
this
.
formData
.
filter
(
item
=>
item
.
type
!==
'hidden'
)
this
.
formData
=
this
.
formData
.
filter
(
item
=>
item
.
type
!==
'hidden'
)
}
}
}
}
export
default
HandleBehavior
export
default
HandleBehavior
\ 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