chore: update Skeleton type (#2735)

pull/2740/head
言肆 2020-08-20 21:28:11 +08:00 committed by GitHub
parent 42cda6f5ac
commit 1f73e1f026
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 31 additions and 29 deletions

12
types/skeleton.d.ts vendored
View File

@ -19,37 +19,39 @@ export interface SkeletonParagraphProps {
} }
export declare class Skeleton extends AntdComponent { export declare class Skeleton extends AntdComponent {
$props: {
/** /**
* Show animation effect * Show animation effect
* @default false * @default false
* @type boolean * @type boolean
*/ */
active: boolean; active?: boolean;
/** /**
* Show avatar placeholder * Show avatar placeholder
* @default false * @default false
* @type boolean | object * @type boolean | object
*/ */
avatar: boolean | SkeletonAvatarProps; avatar?: boolean | SkeletonAvatarProps;
/** /**
* Display the skeleton when true * Display the skeleton when true
* @type boolean * @type boolean
*/ */
loading: boolean; loading?: boolean;
/** /**
* Show paragraph placeholder * Show paragraph placeholder
* @default true * @default true
* @type boolean | object * @type boolean | object
*/ */
paragraph: boolean | SkeletonParagraphProps; paragraph?: boolean | SkeletonParagraphProps;
/** /**
* Show title placeholder * Show title placeholder
* @default true * @default true
* @type boolean | object * @type boolean | object
*/ */
title: boolean | SkeletonTitleProps; title?: boolean | SkeletonTitleProps;
};
} }