Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
xiaojuan huang
Ccms
Commits
a26e3065
Commit
a26e3065
authored
3 years ago
by
cuiwenlong7
Browse files
Options
Download
Email Patches
Plain Diff
feat: 首尾去空格
parent
6d237289
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/steps/filter/index.tsx
+2
-2
src/steps/filter/index.tsx
src/steps/form/index.tsx
+2
-2
src/steps/form/index.tsx
with
4 additions
and
4 deletions
+4
-4
src/steps/filter/index.tsx
+
2
-
2
View file @
a26e3065
...
...
@@ -428,8 +428,8 @@ export default class FilterStep extends Step<FilterConfig, FilterState> {
{
this
.
renderComponent
({
onSubmit
:
this
.
props
.
config
?.
hiddenSubmit
?
undefined
:
async
()
=>
this
.
handleSubmit
(),
onReset
:
this
.
props
.
config
?.
hiddenReset
?
undefined
:
async
()
=>
this
.
handleReset
(),
submitText
:
this
.
props
.
config
?.
submitText
,
resetText
:
this
.
props
.
config
?.
resetText
,
submitText
:
this
.
props
.
config
?.
submitText
?.
replace
(
/
(
^
\s
*
)
|
(\s
*$
)
/g
,
""
)
,
resetText
:
this
.
props
.
config
?.
resetText
?.
replace
(
/
(
^
\s
*
)
|
(\s
*$
)
/g
,
""
)
,
children
:
fields
.
map
((
formFieldConfig
,
formFieldIndex
)
=>
{
if
(
!
ConditionHelper
(
formFieldConfig
.
condition
,
{
record
:
formValue
,
data
,
step
}))
{
this
.
formFieldsMounted
[
formFieldIndex
]
=
false
...
...
This diff is collapsed.
Click to expand it.
src/steps/form/index.tsx
+
2
-
2
View file @
a26e3065
...
...
@@ -415,8 +415,8 @@ export default class FormStep extends Step<FormConfig, FormState> {
layout
,
onSubmit
:
this
.
props
.
config
.
hiddenSubmit
?
undefined
:
async
()
=>
this
.
handleSubmit
(),
onCancel
:
this
.
props
.
config
.
hiddenCancel
?
undefined
:
async
()
=>
this
.
handleCancel
(),
submitText
:
this
.
props
.
config
?.
submitText
,
cancelText
:
this
.
props
.
config
?.
cancelText
,
submitText
:
this
.
props
.
config
?.
submitText
?.
replace
(
/
(
^
\s
*
)
|
(\s
*$
)
/g
,
""
)
,
cancelText
:
this
.
props
.
config
?.
cancelText
?.
replace
(
/
(
^
\s
*
)
|
(\s
*$
)
/g
,
""
)
,
children
:
fields
.
map
((
formFieldConfig
,
formFieldIndex
)
=>
{
if
(
!
ConditionHelper
(
formFieldConfig
.
condition
,
{
record
:
formValue
,
data
,
step
}))
{
return
null
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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
Menu
Projects
Groups
Snippets
Help