Commit a9c777f7 authored by Bill's avatar Bill

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

parent 075d24d0
...@@ -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 = {
......
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