Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
regional-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 931d3b7a
authored
Dec 29, 2025
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix(GLCustForm): 添加isAgreeTrim选项控制输入值自动trim
当isAgreeTrim为false时自动trim输入值,避免不必要的字符串处理
1 parent
acab072c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
components/GLCustForm/GLCustForm.js
packageWorkspace/pages/supervisorDaily/supervisorDaily.js
components/GLCustForm/GLCustForm.js
View file @
931d3b7
...
@@ -176,10 +176,12 @@ Component({
...
@@ -176,10 +176,12 @@ Component({
value
=
number
value
=
number
}
}
}
}
const
diffValue
=
value
.
toString
()
if
(
!
item
.
isAgreeTrim
)
{
const
trimValue
=
value
.
toString
().
trim
()
const
diffValue
=
value
.
toString
()
if
(
diffValue
!=
trimValue
)
{
const
trimValue
=
value
.
toString
().
trim
()
value
=
trimValue
if
(
diffValue
!=
trimValue
)
{
value
=
trimValue
}
}
}
thisPage
.
setData
({
thisPage
.
setData
({
...
...
packageWorkspace/pages/supervisorDaily/supervisorDaily.js
View file @
931d3b7
...
@@ -519,6 +519,7 @@ Page({
...
@@ -519,6 +519,7 @@ Page({
type
:
frontConfig
.
type
,
type
:
frontConfig
.
type
,
labelWidth
:
frontConfig
.
labelWidth
,
labelWidth
:
frontConfig
.
labelWidth
,
maxlength
:
frontConfig
.
maxlength
||
'140'
,
maxlength
:
frontConfig
.
maxlength
||
'140'
,
isAgreeTrim
:
frontConfig
.
isAgreeTrim
||
false
,
isLabelNoLine
:
frontConfig
.
isLabelNoLine
,
isLabelNoLine
:
frontConfig
.
isLabelNoLine
,
inputAlign
:
frontConfig
.
inputAlign
||
'right'
,
inputAlign
:
frontConfig
.
inputAlign
||
'right'
,
optionList
:
frontConfig
.
optionList
||
[],
optionList
:
frontConfig
.
optionList
||
[],
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment