fix: types error

pull/2805/head
tanjinzhou 2020-09-07 12:45:01 +08:00
parent fb52b36067
commit 8024469b88
15 changed files with 39 additions and 14 deletions

@ -1 +1 @@
Subproject commit 1d6cf82368f83064099c155bcee7d73e28a65d6a Subproject commit b890776f98b4f156b2851cecac57691de1779dcb

View File

@ -1,7 +1,8 @@
// Project: https://github.com/vueComponent/ant-design-vue // Project: https://github.com/vueComponent/ant-design-vue
// Definitions by: akki-jat <https://github.com/akki-jat> // Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types // 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 & { $props: AntdProps & {
/** /**
* add navigation * add navigation

View File

@ -2,7 +2,8 @@
// Definitions by: akki-jat <https://github.com/akki-jat> // Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types // 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 & { $props: AntdProps & {
/** /**
* Default selected value * Default selected value

View File

@ -28,5 +28,5 @@ export interface LayoutContentProps {
} }
export default class LayoutContent extends AntdComponent { export default class LayoutContent extends AntdComponent {
$props: LayoutContentProps; $props: AntdProps & LayoutContentProps;
} }

View File

@ -15,5 +15,5 @@ export interface LayoutFooterProps {
} }
export default class LayoutFooter extends AntdComponent { export default class LayoutFooter extends AntdComponent {
$props: LayoutFooterProps; $props: AntdProps & LayoutFooterProps;
} }

View File

@ -15,5 +15,5 @@ export interface LayoutHeaderProps {
} }
export default class LayoutHeader extends AntdComponent { export default class LayoutHeader extends AntdComponent {
$props: LayoutHeaderProps; $props: AntdProps & LayoutHeaderProps;
} }

View File

@ -68,5 +68,5 @@ export interface LayoutSiderProps {
} }
export declare class LayoutSider extends AntdComponent { export declare class LayoutSider extends AntdComponent {
$props: LayoutSiderProps; $props: AntdProps & LayoutSiderProps;
} }

View File

@ -23,5 +23,5 @@ export declare class Layout extends AntdComponent {
static Footer: typeof LayoutFooter; static Footer: typeof LayoutFooter;
static Sider: typeof LayoutSider; static Sider: typeof LayoutSider;
$props: LayoutProps; $props: AntdProps & LayoutProps;
} }

22
types/locale-provider.d.ts vendored Normal file
View File

@ -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
types/meta.d.ts vendored
View File

@ -3,8 +3,9 @@
// Definitions: https://github.com/vueComponent/ant-design-vue/types // Definitions: https://github.com/vueComponent/ant-design-vue/types
import { VNodeChild } from 'vue'; import { VNodeChild } from 'vue';
import { AntdComponent, AntdProps } from './component';
export declare class Meta { export declare class Meta extends AntdComponent {
$props: AntdProps & { $props: AntdProps & {
/** /**
* The avatar of list item * The avatar of list item

View File

@ -42,7 +42,7 @@ export declare class RadioProps {
export declare class Radio extends AntdComponent { export declare class Radio extends AntdComponent {
static Group: typeof RadioGroup; static Group: typeof RadioGroup;
static Button: typeof RadioButton; static Button: typeof RadioButton;
$props: RadioProps; $props: AntdProps & RadioProps;
/** /**
* remove focus * remove focus
*/ */

2
types/spin.d.ts vendored
View File

@ -51,5 +51,5 @@ export declare class Spin extends AntdComponent {
* @param param0 indicator * @param param0 indicator
*/ */
static setDefaultIndicator({ indicator }: { indicator: any }): void; static setDefaultIndicator({ indicator }: { indicator: any }): void;
$props: SpinProps; $props: AntdProps & SpinProps;
} }

View File

@ -203,5 +203,5 @@ export interface ColumnProps<T> {
} }
export declare class Column<T> extends AntdComponent { export declare class Column<T> extends AntdComponent {
$props: ColumnProps<T>; $props: AntdProps & ColumnProps<T>;
} }

View File

@ -14,5 +14,5 @@ interface DictionaryTreeProps extends TreeProps {
expandAction?: string | boolean; expandAction?: string | boolean;
} }
export declare class DictionaryTree extends AntdComponent { export declare class DictionaryTree extends AntdComponent {
$props: DictionaryTreeProps; $props: AntdProps & DictionaryTreeProps;
} }

View File

@ -271,5 +271,5 @@ export declare class Tree extends AntdComponent {
static TreeNode: typeof TreeNode; static TreeNode: typeof TreeNode;
static DirectoryTree: typeof DictionaryTree; static DirectoryTree: typeof DictionaryTree;
$props: TreeProps; $props: AntdProps & TreeProps;
} }