Commit e24b8c02 by yanju

修改子栏目样式

parent ee1b71bf
...@@ -155,17 +155,18 @@ ...@@ -155,17 +155,18 @@
@include border-radius(4*$length); @include border-radius(4*$length);
.label-list-box{ .label-list-box{
box-sizing: border-box; box-sizing: border-box;
width: 308*$length; min-width: 100*$length;
padding: 21*$length 23*$length 16*$length 20*$length; max-width: 500*$length;
@extend %flex-row-spb; padding: 21*$length 0 16*$length;
align-items: start; display: grid;
flex-wrap: wrap; grid-template-columns:auto auto;
.label-list{ .label-list{
word-break: break-all; word-break: break-all;
white-space: nowrap; white-space: nowrap;
padding:0 5*$length; padding-left:20px;
padding-right:20px;
margin-bottom: 10*$length; margin-bottom: 10*$length;
@extend %nowrap; //@extend %nowrap;
@include fontStyle(14,20,500,#666,left); @include fontStyle(14,20,500,#666,left);
@extend %animate-transition; @extend %animate-transition;
&:hover{ &:hover{
......
...@@ -139,6 +139,20 @@ export default { ...@@ -139,6 +139,20 @@ export default {
childId: val.categoryId.toString(), childId: val.categoryId.toString(),
}) })
}) })
childListData.data.map((val,index)=>{
childList.push({
label: val.category,
address: '/blog',
childId: val.categoryId.toString(),
})
})
childListData.data.map((val,index)=>{
childList.push({
label: val.category,
address: '/blog',
childId: val.categoryId.toString(),
})
})
this.list[index+1].childList = childList this.list[index+1].childList = childList
} }
}) })
......
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