<template>
<header class="m-header" :class="{'is-bg-red':bgRed, 'is-fixed':fixed}">
<div class="leftItem"><slot name="left"></slot></div>
<div class="m-header-title" v-text="title"></div>
<div class="rightItem"><slot name="right"></slot></div>
</header>
</template>
<script type="text/ecmascript-6">
export default{
props: {
title: {
type: String,
default: ''
},
bgRed: {
type: Boolean,
default: false
},
fixed: {
type: Boolean,
default: true
}
}
}
</script>
<style scoped lang="stylus" rel="stylesheet/stylus">
.m-header
display flex
flex-direction row
align-items center
height 64px
background-color white
border-bottom 1px solid #e5e5e5
.leftItem
margin-top 24px
width 60px
height 40px
a
display block
text-decoration none
color #333
font-size 16px
img
padding 10px 10px
width 24px
height 24px
.m-header-title
width 100%
height 44px
margin-top 24px
line-height 44px
font-size $font-size-nav-title
color $color-nav-item
display flex
justify-content center
font-size 18px
color #333
.rightItem
margin-top 24px
width 60px
height 40px
a
display block
text-decoration none
color #333
font-size 16px
img
padding 9px 8px
width 24px
height 24px
&.is-fixed
position fixed
left 0px
right 0px
top 0px
z-index 9
&.is-bg-red
background-color #ee424a
.m-header-title
color white
.m-header-left
color white
.m-header-right
color white
</style>
<template>
<div>
<m-header title="职位" :bgRed="isShowRefresh">
<a slot="left" v-show="false">

</a>
<a slot="right">

</a>
</m-header>
</div>
</template>
<script type="text/ecmascript-6">
import MHeader from 'common/nav/navbar'
export default{
data () {
return {
isShowRefresh: true
}
},
components: {
MHeader
}
}
</script>
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有