You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
773 B
26 lines
773 B
4 years ago
|
import { defineComponent, inject } from 'vue';
|
||
4 years ago
|
import { defaultConfigProvider } from '../config-provider';
|
||
5 years ago
|
import PropTypes from '../_util/vue-types';
|
||
4 years ago
|
import { getSlot } from '../_util/props-util';
|
||
5 years ago
|
|
||
4 years ago
|
export default defineComponent({
|
||
5 years ago
|
name: 'ABreadcrumbSeparator',
|
||
|
__ANT_BREADCRUMB_SEPARATOR: true,
|
||
|
props: {
|
||
|
prefixCls: PropTypes.string,
|
||
|
},
|
||
5 years ago
|
setup() {
|
||
|
return {
|
||
4 years ago
|
configProvider: inject('configProvider', defaultConfigProvider),
|
||
5 years ago
|
};
|
||
5 years ago
|
},
|
||
|
render() {
|
||
4 years ago
|
const { prefixCls: customizePrefixCls } = this;
|
||
5 years ago
|
const getPrefixCls = this.configProvider.getPrefixCls;
|
||
|
const prefixCls = getPrefixCls('breadcrumb', customizePrefixCls);
|
||
|
|
||
4 years ago
|
const children = getSlot(this);
|
||
5 years ago
|
return <span class={`${prefixCls}-separator`}>{children || '/'}</span>;
|
||
|
},
|
||
4 years ago
|
});
|