Commit a9c777f7 authored by Bill's avatar Bill

fix: 修改品类导航页子元素可删除问题

parent 075d24d0
......@@ -7,6 +7,7 @@ const template = {
componentName: 'SecondaryNavigation',
title: "二级导航",
addBtnText: '添加导航',
canDelete: false,
childComponentName: 'SecondaryNavigation.Item',
childProps: {
otherProps: {
......@@ -21,6 +22,7 @@ const template = {
"6-2": {
componentName: 'SimpleCommodityList',
title: '秒杀',
canDelete: false,
addBtnText: '添加秒杀商品',
childProps: {
otherProps: {
......@@ -39,6 +41,7 @@ const template = {
"6-3": {
componentName: 'SimpleCommodityList',
title: '品类销量排行',
canDelete: false,
addBtnText: '添加销量排行商品',
childComponentName: 'SimpleCommodityList.Item',
childProps: {
......@@ -57,6 +60,7 @@ const template = {
"6-4": {
componentName: 'CategoryList',
title: '品牌',
canDelete: false,
addBtnText: '添加品牌',
childComponentName: 'CategoryList.Item',
childProps: {
......@@ -71,6 +75,7 @@ const template = {
"6-5": {
componentName: 'ProductContainer',
title: '商品',
canDelete: false,
addBtnText: '添加商品',
childComponentName: 'Product',
props: {},
......@@ -175,104 +180,104 @@ const tab: PageConfigType = {
};
const tabContent: PageConfigType = {
"6": {
componentName: 'CustomizeTabs.TabItem',
title: '数码',
props: {
tab: '数码',
id: 1,
},
childNodes: ['6-1', "6-2", "6-3", "6-4", "6-5"],
},
"6-1": {
componentName: 'SecondaryNavigation',
title: "二级导航",
addBtnText: '添加导航',
childComponentName: 'SecondaryNavigation.Item',
childNodes: ['6-1-1'],
// const tabContent: PageConfigType = {
// "6": {
// componentName: 'CustomizeTabs.TabItem',
// title: '数码',
// props: {
// tab: '数码',
// id: 1,
// },
// childNodes: ['6-1', "6-2", "6-3", "6-4", "6-5"],
// },
// "6-1": {
// componentName: 'SecondaryNavigation',
// title: "二级导航",
// addBtnText: '添加导航',
// childComponentName: 'SecondaryNavigation.Item',
// childNodes: ['6-1-1'],
},
"6-1-1": {
componentName: 'SecondaryNavigation.Item',
title: "二级导航-标签",
},
"6-2": {
componentName: 'SimpleCommodityList',
title: '秒杀',
addBtnText: '添加秒杀商品',
childComponentName: 'SimpleCommodityList.Item',
props: {
title: '秒杀'
},
childNodes: ["6-2-1"]
},
"6-2-1": {
componentName: 'SimpleCommodityList.Item',
title: '123',
props: {
// image: "https://img2.baidu.com/it/u=4073850171,2776482768&fm=26&fmt=auto&gp=0.jpg",
// originalPrice: 266,
// discount: 255
}
},
"6-3": {
componentName: 'SimpleCommodityList',
title: '品类销量排行',
addBtnText: '添加销量排行商品',
childComponentName: 'SimpleCommodityList.Item',
props: {
title: '品类销量排行'
},
childNodes: ["6-3-1"]
},
"6-3-1": {
componentName: 'SimpleCommodityList.Item',
title: '123',
props: {
// image: "https://img2.baidu.com/it/u=4073850171,2776482768&fm=26&fmt=auto&gp=0.jpg",
// originalPrice: 266,
// footer: '<div>123</div>'
}
},
"6-4": {
componentName: 'CategoryList',
title: '品牌',
addBtnText: '添加品牌',
childComponentName: 'CategoryList.Item',
props: {},
childNodes: ["6-4-1"]
},
"6-4-1": {
componentName: 'CategoryList.Item',
title: '123',
props: {}
},
/** 商品 */
"6-5": {
componentName: 'Container',
title: '商品',
addBtnText: '添加商品',
childComponentName: 'Product',
props: {
card: false,
listStyle: {
marginRight: '-8px',
flexWrap: 'wrap'
},
itemStyle: {
paddingRight: '8px',
width: '50%'
}
},
childNodes: ["6-5-1"]
},
"6-5-1": {
componentName: 'Product',
title: '商品',
props: {}
}
};
// },
// "6-1-1": {
// componentName: 'SecondaryNavigation.Item',
// title: "二级导航-标签",
// },
// "6-2": {
// componentName: 'SimpleCommodityList',
// title: '秒杀',
// addBtnText: '添加秒杀商品',
// childComponentName: 'SimpleCommodityList.Item',
// props: {
// title: '秒杀'
// },
// childNodes: ["6-2-1"]
// },
// "6-2-1": {
// componentName: 'SimpleCommodityList.Item',
// title: '123',
// props: {
// // image: "https://img2.baidu.com/it/u=4073850171,2776482768&fm=26&fmt=auto&gp=0.jpg",
// // originalPrice: 266,
// // discount: 255
// }
// },
// "6-3": {
// componentName: 'SimpleCommodityList',
// title: '品类销量排行',
// addBtnText: '添加销量排行商品',
// childComponentName: 'SimpleCommodityList.Item',
// props: {
// title: '品类销量排行'
// },
// childNodes: ["6-3-1"]
// },
// "6-3-1": {
// componentName: 'SimpleCommodityList.Item',
// title: '123',
// props: {
// // image: "https://img2.baidu.com/it/u=4073850171,2776482768&fm=26&fmt=auto&gp=0.jpg",
// // originalPrice: 266,
// // footer: '<div>123</div>'
// }
// },
// "6-4": {
// componentName: 'CategoryList',
// title: '品牌',
// addBtnText: '添加品牌',
// childComponentName: 'CategoryList.Item',
// props: {},
// childNodes: ["6-4-1"]
// },
// "6-4-1": {
// componentName: 'CategoryList.Item',
// title: '123',
// props: {}
// },
// /** 商品 */
// "6-5": {
// componentName: 'Container',
// title: '商品',
// addBtnText: '添加商品',
// childComponentName: 'Product',
// props: {
// card: false,
// listStyle: {
// marginRight: '-8px',
// flexWrap: 'wrap'
// },
// itemStyle: {
// paddingRight: '8px',
// width: '50%'
// }
// },
// childNodes: ["6-5-1"]
// },
// "6-5-1": {
// componentName: 'Product',
// title: '商品',
// props: {}
// }
// };
const configs = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment