fix(Skeleton): avatar-size can be number type (#7555)

This commit is contained in:
neverland 2020-11-15 08:49:29 +08:00 committed by GitHub
parent 95227fff94
commit 810c3a7919
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,7 +13,7 @@ export type SkeletonProps = {
avatar?: boolean; avatar?: boolean;
loading: boolean; loading: boolean;
animate: boolean; animate: boolean;
avatarSize: string; avatarSize: number | string;
avatarShape: 'square' | 'round'; avatarShape: 'square' | 'round';
titleWidth: number | string; titleWidth: number | string;
rowWidth: number | string | (number | string)[]; rowWidth: number | string | (number | string)[];
@ -109,7 +109,7 @@ Skeleton.props = {
default: true, default: true,
}, },
avatarSize: { avatarSize: {
type: String, type: [Number, String],
default: '32px', default: '32px',
}, },
avatarShape: { avatarShape: {