import { use } from '../utils'; import Icon from '../icon'; const [sfc, bem] = use('nav-bar'); export default sfc({ props: { title: String, fixed: Boolean, leftText: String, rightText: String, leftArrow: Boolean, border: { type: Boolean, default: true }, zIndex: { type: Number, default: 1 } }, render(h) { return (
{ this.$emit('click-left'); }} > {this.$slots.left || [ this.leftArrow && , this.leftText && {this.leftText} ]}
{this.$slots.title || this.title}
{ this.$emit('click-right'); }} > {this.$slots.right || (this.rightText && {this.rightText})}
); } });