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

+2-1
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

+2-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+22
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

+2-1
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

types/radio/radio.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export declare class RadioProps {
4242
export declare class Radio extends AntdComponent {
4343
static Group: typeof RadioGroup;
4444
static Button: typeof RadioButton;
45-
$props: RadioProps;
45+
$props: AntdProps & RadioProps;
4646
/**
4747
* remove focus
4848
*/

types/spin.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,5 @@ export declare class Spin extends AntdComponent {
5151
* @param param0 indicator
5252
*/
5353
static setDefaultIndicator({ indicator }: { indicator: any }): void;
54-
$props: SpinProps;
54+
$props: AntdProps & SpinProps;
5555
}

types/table/column.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,5 +203,5 @@ export interface ColumnProps<T> {
203203
}
204204

205205
export declare class Column<T> extends AntdComponent {
206-
$props: ColumnProps<T>;
206+
$props: AntdProps & ColumnProps<T>;
207207
}

types/tree/dictionary-tree.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ interface DictionaryTreeProps extends TreeProps {
1414
expandAction?: string | boolean;
1515
}
1616
export declare class DictionaryTree extends AntdComponent {
17-
$props: DictionaryTreeProps;
17+
$props: AntdProps & DictionaryTreeProps;
1818
}

types/tree/tree.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -271,5 +271,5 @@ export declare class Tree extends AntdComponent {
271271
static TreeNode: typeof TreeNode;
272272
static DirectoryTree: typeof DictionaryTree;
273273

274-
$props: TreeProps;
274+
$props: AntdProps & TreeProps;
275275
}

0 commit comments

Comments
 (0)