Skip to content

Commit 8024469

Browse files
committed
fix: types error
1 parent fb52b36 commit 8024469

15 files changed

+39
-14
lines changed

antdv-demo

types/breadcrumb/breadcrumb-item.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// Project: https://github.com/vueComponent/ant-design-vue
22
// Definitions by: akki-jat <https://github.com/akki-jat>
33
// Definitions: https://github.com/vueComponent/ant-design-vue/types
4-
export declare class BreadcrumbItem {
4+
import { AntdComponent, AntdProps } from '../component';
5+
export declare class BreadcrumbItem extends AntdComponent {
56
$props: AntdProps & {
67
/**
78
* add navigation

types/checkbox/checkbox-group.d.ts

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

5-
export declare class CheckboxGroup {
5+
import { AntdComponent, AntdProps } from '../component';
6+
export declare class CheckboxGroup extends AntdComponent {
67
$props: AntdProps & {
78
/**
89
* Default selected value

types/layout/layout-content.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ export interface LayoutContentProps {
2828
}
2929

3030
export default class LayoutContent extends AntdComponent {
31-
$props: LayoutContentProps;
31+
$props: AntdProps & LayoutContentProps;
3232
}

types/layout/layout-footer.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ export interface LayoutFooterProps {
1515
}
1616

1717
export default class LayoutFooter extends AntdComponent {
18-
$props: LayoutFooterProps;
18+
$props: AntdProps & LayoutFooterProps;
1919
}

types/layout/layout-header.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ export interface LayoutHeaderProps {
1515
}
1616

1717
export default class LayoutHeader extends AntdComponent {
18-
$props: LayoutHeaderProps;
18+
$props: AntdProps & LayoutHeaderProps;
1919
}

types/layout/layout-sider.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,5 @@ export interface LayoutSiderProps {
6868
}
6969

7070
export declare class LayoutSider extends AntdComponent {
71-
$props: LayoutSiderProps;
71+
$props: AntdProps & LayoutSiderProps;
7272
}

types/layout/layout.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ export declare class Layout extends AntdComponent {
2323
static Footer: typeof LayoutFooter;
2424
static Sider: typeof LayoutSider;
2525

26-
$props: LayoutProps;
26+
$props: AntdProps & LayoutProps;
2727
}

types/locale-provider.d.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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+
export interface ModalLocale {
6+
okText: string;
7+
cancelText: string;
8+
justOkText: string;
9+
}
10+
export interface Locale {
11+
locale: string;
12+
Pagination?: Object;
13+
DatePicker?: Object;
14+
TimePicker?: Object;
15+
Calendar?: Object;
16+
Table?: Object;
17+
Modal?: ModalLocale;
18+
Popconfirm?: Object;
19+
Transfer?: Object;
20+
Select?: Object;
21+
Upload?: Object;
22+
}

types/meta.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
// Definitions: https://github.com/vueComponent/ant-design-vue/types
44

55
import { VNodeChild } from 'vue';
6+
import { AntdComponent, AntdProps } from './component';
67

7-
export declare class Meta {
8+
export declare class Meta extends AntdComponent {
89
$props: AntdProps & {
910
/**
1011
* The avatar of list item

0 commit comments

Comments
 (0)