Skip to content

Commit 2fe68c0

Browse files
committed
fix: add breadcrmb-item.d.ts
1 parent de68d08 commit 2fe68c0

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

types/ant-design-vue.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { Alert } from './alert';
1111
import { Avatar } from './avatar';
1212
import { BackTop } from './back-top';
1313
import { Badge } from './badge';
14-
import { Breadcrumb } from './breadcrumb';
14+
import { Breadcrumb } from './breadcrumb/breadcrumb';
1515
import { Button } from './button/button';
1616
import { Calendar } from './calendar';
1717
import { Card } from './card';

types/breadcrumb/breadcrumb-item.d.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// Project: https://github.com/vueComponent/ant-design-vue
2+
// Definitions by: akki-jat <https://github.com/akki-jat>
3+
// Definitions: https://github.com/vueComponent/ant-design-vue/types
4+
5+
import { AntdComponent } from '../component';
6+
7+
export declare class BreadcrumbItem extends AntdComponent {
8+
/**
9+
* add navigation
10+
* @default ''
11+
* @type string
12+
*/
13+
href?: String;
14+
}

types/breadcrumb.d.ts renamed to types/breadcrumb/breadcrumb.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,17 @@
22
// Definitions by: akki-jat <https://github.com/akki-jat>
33
// Definitions: https://github.com/vueComponent/ant-design-vue/types
44

5-
import { AntdComponent } from './component';
5+
import { AntdComponent } from '../component';
66
import { VNode } from 'vue';
7+
import { BreadcrumbItem } from './breadcrumb-item';
78

89
export interface Route {
910
path?: String;
1011
breadcrumbName?: String;
1112
}
1213

1314
export declare class Breadcrumb extends AntdComponent {
15+
static BreadcrumbItem: typeof BreadcrumbItem;
1416
/**
1517
* The routing stack information of router
1618
* @type Route[]

0 commit comments

Comments
 (0)