Skip to content

Commit

Permalink
fix: add breadcrmb-item.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
wangxueliang committed Jan 29, 2019
1 parent de68d08 commit 2fe68c0
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion types/ant-design-vue.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
14 changes: 14 additions & 0 deletions types/breadcrumb/breadcrumb-item.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Project: https://github.com/vueComponent/ant-design-vue
// Definitions by: akki-jat <https://github.com/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;
}
4 changes: 3 additions & 1 deletion types/breadcrumb.d.ts → types/breadcrumb/breadcrumb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@
// Definitions by: akki-jat <https://github.com/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;
breadcrumbName?: String;
}

export declare class Breadcrumb extends AntdComponent {
static BreadcrumbItem: typeof BreadcrumbItem;
/**
* The routing stack information of router
* @type Route[]
Expand Down

1 comment on commit 2fe68c0

@tangjinzhou
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ref #452

Please sign in to comment.