Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
merchant-manage-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
ui
merchant-manage-ui
Commits
a92ad379
Commit
a92ad379
authored
Jul 27, 2023
by
guang.wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改初始化数据
parent
787ae53a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
MealFormListLimitForm.jsx
...le/proForm/ModalForm/components/MealFormListLimitForm.jsx
+4
-2
index.jsx
src/example/proForm/ModalForm/index.jsx
+1
-1
No files found.
src/example/proForm/ModalForm/components/MealFormListLimitForm.jsx
View file @
a92ad379
...
...
@@ -16,10 +16,11 @@ const MealLimitsFormList = (meals, selectedMealTypes) => (
<
Form
.
Item
label=
""
name=
{
[
i
,
'
mealPeriodType
'
]
}
initialValue=
{
meal
}
labelCol=
{
{
span
:
0
}
}
wrapperCol=
{
{
span
:
0
}
}
>
<
Input
type=
"hidden"
value=
{
meal
}
/>
<
Input
type=
"hidden"
/>
</
Form
.
Item
>
</
Col
>
<
Col
span=
{
24
}
>
...
...
@@ -40,9 +41,10 @@ const MealLimitsFormList = (meals, selectedMealTypes) => (
label=
""
name=
{
[
j
,
'
mealType
'
]
}
labelCol=
{
{
span
:
0
}
}
initialValue=
{
t
}
wrapperCol=
{
{
span
:
0
}
}
>
<
Input
type=
"hidden"
value=
{
t
}
/>
<
Input
type=
"hidden"
/>
</
Form
.
Item
>
</
Col
>
<
Col
span=
{
24
}
offset=
{
j
?
1
:
0
}
>
...
...
src/example/proForm/ModalForm/index.jsx
View file @
a92ad379
...
...
@@ -14,7 +14,7 @@ const CustomerInfo = props => {
const
refForm
=
useRef
(
null
);
/**
* 7. 表单关闭
*
@param {boolean}
isRefresh 是否刷新列表
* isRefresh 是否刷新列表
*/
const
closeModal
=
isRefresh
=>
{
if
(
!
isRefresh
&&
typeof
props
.
onClose
===
'
function
'
)
{
...
...
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