Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-admin
Project
Project
Details
Activity
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
shenshaokai
jinfa-admin
Commits
f14d4f68
Commit
f14d4f68
authored
Sep 28, 2021
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 品类导航表单校验写法
parent
4824ffa2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
6 deletions
+17
-6
index.less
...tingPanel/propsSettings/components/cardNavItem/index.less
+1
-0
index.tsx
...ttingPanel/propsSettings/components/cardNavItem/index.tsx
+0
-0
schema.ts
...ttingPanel/propsSettings/components/cardNavItem/schema.ts
+10
-2
settingWrap.tsx
src/pages/pageCustomized/mobileSettingPanel/settingWrap.tsx
+6
-4
No files found.
src/pages/pageCustomized/mobileSettingPanel/propsSettings/components/cardNavItem/index.less
View file @
f14d4f68
...
@@ -139,6 +139,7 @@
...
@@ -139,6 +139,7 @@
&-activity {
&-activity {
height: 56px;
height: 56px;
width: 100%;
border: 1px solid #EDEEEF;
border: 1px solid #EDEEEF;
display: flex;
display: flex;
flex-direction: row;
flex-direction: row;
...
...
src/pages/pageCustomized/mobileSettingPanel/propsSettings/components/cardNavItem/index.tsx
View file @
f14d4f68
This diff is collapsed.
Click to expand it.
src/pages/pageCustomized/mobileSettingPanel/propsSettings/components/cardNavItem/schema.ts
View file @
f14d4f68
...
@@ -44,7 +44,7 @@ export const cardNavSchema: ISchema = {
...
@@ -44,7 +44,7 @@ export const cardNavSchema: ISchema = {
"x-component-props"
:
{
"x-component-props"
:
{
rowStyle
:
{
rowStyle
:
{
justifyContent
:
'flex-start'
,
justifyContent
:
'flex-start'
,
alignItems
:
'flex-
end
'
,
alignItems
:
'flex-
start
'
,
},
},
},
},
properties
:
{
properties
:
{
...
@@ -68,6 +68,11 @@ export const cardNavSchema: ISchema = {
...
@@ -68,6 +68,11 @@ export const cardNavSchema: ISchema = {
target
:
'url'
,
target
:
'url'
,
condition
:
"{{handleTypeChange($value, 'url')}}"
condition
:
"{{handleTypeChange($value, 'url')}}"
},
},
{
type
:
'value:visible'
,
target
:
'recordDetail'
,
condition
:
"{{$value === 1}}"
},
],
],
'x-rules'
:
[
'x-rules'
:
[
{
{
...
@@ -85,7 +90,7 @@ export const cardNavSchema: ISchema = {
...
@@ -85,7 +90,7 @@ export const cardNavSchema: ISchema = {
sumbit
:
{
sumbit
:
{
'x-component'
:
'Children'
,
'x-component'
:
'Children'
,
'x-component-props'
:
{
'x-component-props'
:
{
children
:
'{{SelectBtn}}'
children
:
'{{SelectBtn}}'
,
},
},
'x-mega-props'
:
{
'x-mega-props'
:
{
span
:
1
,
span
:
1
,
...
@@ -93,6 +98,9 @@ export const cardNavSchema: ISchema = {
...
@@ -93,6 +98,9 @@ export const cardNavSchema: ISchema = {
},
},
}
}
},
},
recordDetail
:
{
'x-component'
:
'recordDetail'
,
},
id
:
{
id
:
{
type
:
'string'
,
type
:
'string'
,
title
:
'品类'
,
title
:
'品类'
,
...
...
src/pages/pageCustomized/mobileSettingPanel/settingWrap.tsx
View file @
f14d4f68
...
@@ -22,12 +22,14 @@ const SettingWrap: React.FC<SettingPanelPropsType> = (props) => {
...
@@ -22,12 +22,14 @@ const SettingWrap: React.FC<SettingPanelPropsType> = (props) => {
const
{
children
,
footer
,
onOK
,
onCancel
,
confirmLoading
=
false
,
shopId
,
property
}
=
props
const
{
children
,
footer
,
onOK
,
onCancel
,
confirmLoading
=
false
,
shopId
,
property
}
=
props
const
handleConfirm
=
(
e
)
=>
{
const
handleConfirm
=
(
e
)
=>
{
formActions
.
validate
().
then
((
res
)
=>
{
formActions
.
submit
().
then
(()
=>
{
clearSelectedStatus
()
clearSelectedStatus
()
// formActions && formActions.validate().then((res) => {
})
// onOK ? onOK(e) : clearSelectedStatus()
// onOK ? onOK(e) : clearSelectedStatus()
//
}).catch((error) => {
}).
catch
((
error
)
=>
{
//
console.log(error)
console
.
log
(
error
)
//
})
})
}
}
return
(
return
(
...
...
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