import { use, noop } from '../utils';
import { inherit } from '../utils/functional';
import Icon from '../icon';
const [sfc, bem] = use('nav-bar');
function NavBar(h, props, slots, ctx) {
return (
{slots.left
? slots.left()
: [
props.leftArrow && (
),
props.leftText && (
{props.leftText}
)
]}
{slots.title ? slots.title() : props.title}
{slots.right
? slots.right()
: props.rightText && (
{props.rightText}
)}
);
}
NavBar.props = {
title: String,
fixed: Boolean,
leftText: String,
rightText: String,
leftArrow: Boolean,
border: {
type: Boolean,
default: true
},
zIndex: {
type: Number,
default: 1
}
};
export default sfc(NavBar);