diff --git a/components/skeleton/index.jsx b/components/skeleton/index.jsx index 6a9dea63c..5e5e7fd92 100644 --- a/components/skeleton/index.jsx +++ b/components/skeleton/index.jsx @@ -95,11 +95,9 @@ const Skeleton = { let avatarNode; if (hasAvatar) { const avatarProps = { - props: { - prefixCls: `${prefixCls}-avatar`, - ...getAvatarBasicProps(hasTitle, hasParagraph), - ...getComponentProps(avatar), - }, + prefixCls: `${prefixCls}-avatar`, + ...getAvatarBasicProps(hasTitle, hasParagraph), + ...getComponentProps(avatar), }; avatarNode = ( @@ -115,11 +113,9 @@ const Skeleton = { let $title; if (hasTitle) { const titleProps = { - props: { - prefixCls: `${prefixCls}-title`, - ...getTitleBasicProps(hasAvatar, hasParagraph), - ...getComponentProps(title), - }, + prefixCls: `${prefixCls}-title`, + ...getTitleBasicProps(hasAvatar, hasParagraph), + ...getComponentProps(title), }; $title =