ant-design-vue/components/breadcrumb/index.ts
2020-10-15 22:38:48 +08:00

21 lines
645 B
TypeScript

import { App } from 'vue';
import Breadcrumb from './Breadcrumb';
import BreadcrumbItem from './BreadcrumbItem';
import BreadcrumbSeparator from './BreadcrumbSeparator';
Breadcrumb.Item = BreadcrumbItem;
Breadcrumb.Separator = BreadcrumbSeparator;
/* istanbul ignore next */
Breadcrumb.install = function(app: App) {
app.component(Breadcrumb.name, Breadcrumb);
app.component(BreadcrumbItem.name, BreadcrumbItem);
app.component(BreadcrumbSeparator.name, BreadcrumbSeparator);
return app;
};
export default Breadcrumb as typeof Breadcrumb & {
readonly Item: typeof BreadcrumbItem;
readonly Separator: typeof BreadcrumbSeparator;
};