import PropTypes from '../_util/vue-types'
import { hasProp, getComponentFromProp } from '../_util/props-util'
export default {
name: 'BreadcrumbItem',
__ANT_BREADCRUMB_ITEM: true,
props: {
prefixCls: PropTypes.string.def('ant-breadcrumb'),
href: PropTypes.string,
separator: PropTypes.any,
},
render () {
const { prefixCls, $slots } = this
const children = $slots.default
let link
if (hasProp(this, 'href')) {
link = {children}
} else {
link = {children}
}
if (children) {
return (
{link}
{getComponentFromProp(this, 'separator') || '/'}
)
}
return null
},
}