<template><divclass="header"><slotname="left"></slot><spanclass="header_title"><spanclass="header_title_text ellipsis">{{ title }}</span></span><slotname="right"></slot></div></template><script>exportdefault{
name:'HeaderTop',
props:{
title: String
}}</script><stylelang="stylus"rel="stylesheet/stylus"scoped>
@import '../../common/stylus/mixins.styl'
.header
background-color #02a774
position fixed
z-index 100
left 0
top 0
width 100%
height 45px
.header_title
position absolute
top 50%
left 50%
transform translate(-50%, -50%)
width 50%
color #fff
text-align center
.header_title_text
font-size 20px
color #fff
display block
</style>