Skip to content

Commit

Permalink
fix: types error
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjinzhou committed Sep 7, 2020
1 parent fb52b36 commit 8024469
Show file tree
Hide file tree
Showing 15 changed files with 39 additions and 14 deletions.
2 changes: 1 addition & 1 deletion antdv-demo
3 changes: 2 additions & 1 deletion types/breadcrumb/breadcrumb-item.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// 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
export declare class BreadcrumbItem {
import { AntdComponent, AntdProps } from '../component';
export declare class BreadcrumbItem extends AntdComponent {
$props: AntdProps & {
/**
* add navigation
Expand Down
3 changes: 2 additions & 1 deletion types/checkbox/checkbox-group.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types

export declare class CheckboxGroup {
import { AntdComponent, AntdProps } from '../component';
export declare class CheckboxGroup extends AntdComponent {
$props: AntdProps & {
/**
* Default selected value
Expand Down
2 changes: 1 addition & 1 deletion types/layout/layout-content.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ export interface LayoutContentProps {
}

export default class LayoutContent extends AntdComponent {
$props: LayoutContentProps;
$props: AntdProps & LayoutContentProps;
}
2 changes: 1 addition & 1 deletion types/layout/layout-footer.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ export interface LayoutFooterProps {
}

export default class LayoutFooter extends AntdComponent {
$props: LayoutFooterProps;
$props: AntdProps & LayoutFooterProps;
}
2 changes: 1 addition & 1 deletion types/layout/layout-header.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ export interface LayoutHeaderProps {
}

export default class LayoutHeader extends AntdComponent {
$props: LayoutHeaderProps;
$props: AntdProps & LayoutHeaderProps;
}
2 changes: 1 addition & 1 deletion types/layout/layout-sider.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,5 @@ export interface LayoutSiderProps {
}

export declare class LayoutSider extends AntdComponent {
$props: LayoutSiderProps;
$props: AntdProps & LayoutSiderProps;
}
2 changes: 1 addition & 1 deletion types/layout/layout.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ export declare class Layout extends AntdComponent {
static Footer: typeof LayoutFooter;
static Sider: typeof LayoutSider;

$props: LayoutProps;
$props: AntdProps & LayoutProps;
}
22 changes: 22 additions & 0 deletions types/locale-provider.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// 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

export interface ModalLocale {
okText: string;
cancelText: string;
justOkText: string;
}
export interface Locale {
locale: string;
Pagination?: Object;
DatePicker?: Object;
TimePicker?: Object;
Calendar?: Object;
Table?: Object;
Modal?: ModalLocale;
Popconfirm?: Object;
Transfer?: Object;
Select?: Object;
Upload?: Object;
}
3 changes: 2 additions & 1 deletion types/meta.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
// Definitions: https://github.com/vueComponent/ant-design-vue/types

import { VNodeChild } from 'vue';
import { AntdComponent, AntdProps } from './component';

export declare class Meta {
export declare class Meta extends AntdComponent {
$props: AntdProps & {
/**
* The avatar of list item
Expand Down
2 changes: 1 addition & 1 deletion types/radio/radio.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export declare class RadioProps {
export declare class Radio extends AntdComponent {
static Group: typeof RadioGroup;
static Button: typeof RadioButton;
$props: RadioProps;
$props: AntdProps & RadioProps;
/**
* remove focus
*/
Expand Down
2 changes: 1 addition & 1 deletion types/spin.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ export declare class Spin extends AntdComponent {
* @param param0 indicator
*/
static setDefaultIndicator({ indicator }: { indicator: any }): void;
$props: SpinProps;
$props: AntdProps & SpinProps;
}
2 changes: 1 addition & 1 deletion types/table/column.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,5 +203,5 @@ export interface ColumnProps<T> {
}

export declare class Column<T> extends AntdComponent {
$props: ColumnProps<T>;
$props: AntdProps & ColumnProps<T>;
}
2 changes: 1 addition & 1 deletion types/tree/dictionary-tree.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ interface DictionaryTreeProps extends TreeProps {
expandAction?: string | boolean;
}
export declare class DictionaryTree extends AntdComponent {
$props: DictionaryTreeProps;
$props: AntdProps & DictionaryTreeProps;
}
2 changes: 1 addition & 1 deletion types/tree/tree.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,5 +271,5 @@ export declare class Tree extends AntdComponent {
static TreeNode: typeof TreeNode;
static DirectoryTree: typeof DictionaryTree;

$props: TreeProps;
$props: AntdProps & TreeProps;
}

0 comments on commit 8024469

Please sign in to comment.