ant-design-vue/components/breadcrumb/Breadcrumb.vue

25 lines
470 B
Vue
Raw Normal View History

2018-01-15 02:52:16 +00:00
<script>
import PropTypes from '../_util/vue-types'
export default {
name: 'Breadcrumb',
props: {
prefixCls: PropTypes.string.def('ant-breadcrumb'),
separator: PropTypes.string.def('/'),
},
provide () {
return {
breadCrumbParent: this,
}
},
render () {
2018-01-16 03:13:22 +00:00
const { prefixCls } = this
2018-01-15 02:52:16 +00:00
return (
2018-01-16 03:13:22 +00:00
<div class={prefixCls}>
2018-01-15 02:52:16 +00:00
{this.$slots.default}
</div>
)
},
}
</script>