Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
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
黄庭坚
jinfa-platform
Commits
a9c777f7
Commit
a9c777f7
authored
Nov 07, 2021
by
Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改品类导航页子元素可删除问题
parent
075d24d0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
102 additions
and
97 deletions
+102
-97
pageConfig.tsx
...eTemplate/categoryNavigation/common/schema/pageConfig.tsx
+102
-97
No files found.
src/pages/mobileTemplate/categoryNavigation/common/schema/pageConfig.tsx
View file @
a9c777f7
...
@@ -7,6 +7,7 @@ const template = {
...
@@ -7,6 +7,7 @@ const template = {
componentName
:
'SecondaryNavigation'
,
componentName
:
'SecondaryNavigation'
,
title
:
"二级导航"
,
title
:
"二级导航"
,
addBtnText
:
'添加导航'
,
addBtnText
:
'添加导航'
,
canDelete
:
false
,
childComponentName
:
'SecondaryNavigation.Item'
,
childComponentName
:
'SecondaryNavigation.Item'
,
childProps
:
{
childProps
:
{
otherProps
:
{
otherProps
:
{
...
@@ -21,6 +22,7 @@ const template = {
...
@@ -21,6 +22,7 @@ const template = {
"6-2"
:
{
"6-2"
:
{
componentName
:
'SimpleCommodityList'
,
componentName
:
'SimpleCommodityList'
,
title
:
'秒杀'
,
title
:
'秒杀'
,
canDelete
:
false
,
addBtnText
:
'添加秒杀商品'
,
addBtnText
:
'添加秒杀商品'
,
childProps
:
{
childProps
:
{
otherProps
:
{
otherProps
:
{
...
@@ -39,6 +41,7 @@ const template = {
...
@@ -39,6 +41,7 @@ const template = {
"6-3"
:
{
"6-3"
:
{
componentName
:
'SimpleCommodityList'
,
componentName
:
'SimpleCommodityList'
,
title
:
'品类销量排行'
,
title
:
'品类销量排行'
,
canDelete
:
false
,
addBtnText
:
'添加销量排行商品'
,
addBtnText
:
'添加销量排行商品'
,
childComponentName
:
'SimpleCommodityList.Item'
,
childComponentName
:
'SimpleCommodityList.Item'
,
childProps
:
{
childProps
:
{
...
@@ -57,6 +60,7 @@ const template = {
...
@@ -57,6 +60,7 @@ const template = {
"6-4"
:
{
"6-4"
:
{
componentName
:
'CategoryList'
,
componentName
:
'CategoryList'
,
title
:
'品牌'
,
title
:
'品牌'
,
canDelete
:
false
,
addBtnText
:
'添加品牌'
,
addBtnText
:
'添加品牌'
,
childComponentName
:
'CategoryList.Item'
,
childComponentName
:
'CategoryList.Item'
,
childProps
:
{
childProps
:
{
...
@@ -71,6 +75,7 @@ const template = {
...
@@ -71,6 +75,7 @@ const template = {
"6-5"
:
{
"6-5"
:
{
componentName
:
'ProductContainer'
,
componentName
:
'ProductContainer'
,
title
:
'商品'
,
title
:
'商品'
,
canDelete
:
false
,
addBtnText
:
'添加商品'
,
addBtnText
:
'添加商品'
,
childComponentName
:
'Product'
,
childComponentName
:
'Product'
,
props
:
{},
props
:
{},
...
@@ -175,104 +180,104 @@ const tab: PageConfigType = {
...
@@ -175,104 +180,104 @@ const tab: PageConfigType = {
};
};
const
tabContent
:
PageConfigType
=
{
//
const tabContent: PageConfigType = {
"6"
:
{
//
"6": {
componentName
:
'CustomizeTabs.TabItem'
,
//
componentName: 'CustomizeTabs.TabItem',
title
:
'数码'
,
//
title: '数码',
props
:
{
//
props: {
tab
:
'数码'
,
//
tab: '数码',
id
:
1
,
//
id: 1,
},
//
},
childNodes
:
[
'6-1'
,
"6-2"
,
"6-3"
,
"6-4"
,
"6-5"
],
//
childNodes: ['6-1', "6-2", "6-3", "6-4", "6-5"],
},
//
},
"6-1"
:
{
//
"6-1": {
componentName
:
'SecondaryNavigation'
,
//
componentName: 'SecondaryNavigation',
title
:
"二级导航"
,
//
title: "二级导航",
addBtnText
:
'添加导航'
,
//
addBtnText: '添加导航',
childComponentName
:
'SecondaryNavigation.Item'
,
//
childComponentName: 'SecondaryNavigation.Item',
childNodes
:
[
'6-1-1'
],
//
childNodes: ['6-1-1'],
},
//
},
"6-1-1"
:
{
//
"6-1-1": {
componentName
:
'SecondaryNavigation.Item'
,
//
componentName: 'SecondaryNavigation.Item',
title
:
"二级导航-标签"
,
//
title: "二级导航-标签",
},
//
},
"6-2"
:
{
//
"6-2": {
componentName
:
'SimpleCommodityList'
,
//
componentName: 'SimpleCommodityList',
title
:
'秒杀'
,
//
title: '秒杀',
addBtnText
:
'添加秒杀商品'
,
//
addBtnText: '添加秒杀商品',
childComponentName
:
'SimpleCommodityList.Item'
,
//
childComponentName: 'SimpleCommodityList.Item',
props
:
{
//
props: {
title
:
'秒杀'
//
title: '秒杀'
},
//
},
childNodes
:
[
"6-2-1"
]
//
childNodes: ["6-2-1"]
},
//
},
"6-2-1"
:
{
//
"6-2-1": {
componentName
:
'SimpleCommodityList.Item'
,
//
componentName: 'SimpleCommodityList.Item',
title
:
'123'
,
//
title: '123',
props
:
{
//
props: {
// image: "https://img2.baidu.com/it/u=4073850171,2776482768&fm=26&fmt=auto&gp=0.jpg",
//
// image: "https://img2.baidu.com/it/u=4073850171,2776482768&fm=26&fmt=auto&gp=0.jpg",
// originalPrice: 266,
//
// originalPrice: 266,
// discount: 255
//
// discount: 255
}
//
}
},
//
},
"6-3"
:
{
//
"6-3": {
componentName
:
'SimpleCommodityList'
,
//
componentName: 'SimpleCommodityList',
title
:
'品类销量排行'
,
//
title: '品类销量排行',
addBtnText
:
'添加销量排行商品'
,
//
addBtnText: '添加销量排行商品',
childComponentName
:
'SimpleCommodityList.Item'
,
//
childComponentName: 'SimpleCommodityList.Item',
props
:
{
//
props: {
title
:
'品类销量排行'
//
title: '品类销量排行'
},
//
},
childNodes
:
[
"6-3-1"
]
//
childNodes: ["6-3-1"]
},
//
},
"6-3-1"
:
{
//
"6-3-1": {
componentName
:
'SimpleCommodityList.Item'
,
//
componentName: 'SimpleCommodityList.Item',
title
:
'123'
,
//
title: '123',
props
:
{
//
props: {
// image: "https://img2.baidu.com/it/u=4073850171,2776482768&fm=26&fmt=auto&gp=0.jpg",
//
// image: "https://img2.baidu.com/it/u=4073850171,2776482768&fm=26&fmt=auto&gp=0.jpg",
// originalPrice: 266,
//
// originalPrice: 266,
// footer: '<div>123</div>'
//
// footer: '<div>123</div>'
}
//
}
},
//
},
"6-4"
:
{
//
"6-4": {
componentName
:
'CategoryList'
,
//
componentName: 'CategoryList',
title
:
'品牌'
,
//
title: '品牌',
addBtnText
:
'添加品牌'
,
//
addBtnText: '添加品牌',
childComponentName
:
'CategoryList.Item'
,
//
childComponentName: 'CategoryList.Item',
props
:
{},
//
props: {},
childNodes
:
[
"6-4-1"
]
//
childNodes: ["6-4-1"]
},
//
},
"6-4-1"
:
{
//
"6-4-1": {
componentName
:
'CategoryList.Item'
,
//
componentName: 'CategoryList.Item',
title
:
'123'
,
//
title: '123',
props
:
{}
//
props: {}
},
//
},
/** 商品 */
//
/** 商品 */
"6-5"
:
{
//
"6-5": {
componentName
:
'Container'
,
//
componentName: 'Container',
title
:
'商品'
,
//
title: '商品',
addBtnText
:
'添加商品'
,
//
addBtnText: '添加商品',
childComponentName
:
'Product'
,
//
childComponentName: 'Product',
props
:
{
//
props: {
card
:
false
,
//
card: false,
listStyle
:
{
//
listStyle: {
marginRight
:
'-8px'
,
//
marginRight: '-8px',
flexWrap
:
'wrap'
//
flexWrap: 'wrap'
},
//
},
itemStyle
:
{
//
itemStyle: {
paddingRight
:
'8px'
,
//
paddingRight: '8px',
width
:
'50%'
//
width: '50%'
}
//
}
},
//
},
childNodes
:
[
"6-5-1"
]
//
childNodes: ["6-5-1"]
},
//
},
"6-5-1"
:
{
//
"6-5-1": {
componentName
:
'Product'
,
//
componentName: 'Product',
title
:
'商品'
,
//
title: '商品',
props
:
{}
//
props: {}
}
//
}
};
//
};
const
configs
=
{
const
configs
=
{
...
...
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