diff --git a/types/ant-design-vue.d.ts b/types/ant-design-vue.d.ts index 8c708ab54..e9639b70c 100644 --- a/types/ant-design-vue.d.ts +++ b/types/ant-design-vue.d.ts @@ -11,7 +11,7 @@ import { Alert } from './alert'; import { Avatar } from './avatar'; import { BackTop } from './back-top'; import { Badge } from './badge'; -import { Breadcrumb } from './breadcrumb'; +import { Breadcrumb } from './breadcrumb/breadcrumb'; import { Button } from './button/button'; import { Calendar } from './calendar'; import { Card } from './card'; diff --git a/types/breadcrumb/breadcrumb-item.d.ts b/types/breadcrumb/breadcrumb-item.d.ts new file mode 100644 index 000000000..ff01d8f20 --- /dev/null +++ b/types/breadcrumb/breadcrumb-item.d.ts @@ -0,0 +1,14 @@ +// Project: https://github.com/vueComponent/ant-design-vue +// Definitions by: akki-jat +// Definitions: https://github.com/vueComponent/ant-design-vue/types + +import { AntdComponent } from '../component'; + +export declare class BreadcrumbItem extends AntdComponent { + /** + * add navigation + * @default '' + * @type string + */ + href?: String; +} diff --git a/types/breadcrumb.d.ts b/types/breadcrumb/breadcrumb.d.ts similarity index 85% rename from types/breadcrumb.d.ts rename to types/breadcrumb/breadcrumb.d.ts index f8f9c6bcb..e8bafe8a6 100644 --- a/types/breadcrumb.d.ts +++ b/types/breadcrumb/breadcrumb.d.ts @@ -2,8 +2,9 @@ // Definitions by: akki-jat // Definitions: https://github.com/vueComponent/ant-design-vue/types -import { AntdComponent } from './component'; +import { AntdComponent } from '../component'; import { VNode } from 'vue'; +import { BreadcrumbItem } from './breadcrumb-item'; export interface Route { path?: String; @@ -11,6 +12,7 @@ export interface Route { } export declare class Breadcrumb extends AntdComponent { + static BreadcrumbItem: typeof BreadcrumbItem; /** * The routing stack information of router * @type Route[]