From b65494c518d1bc2dd6db179589286900b2f4bbeb Mon Sep 17 00:00:00 2001 From: tanjinzhou <415800467@qq.com> Date: Mon, 8 Jun 2020 17:40:27 +0800 Subject: [PATCH] perf: update skeleton --- components/skeleton/index.jsx | 27 ++++++++++----------------- 1 file changed, 10 insertions(+), 17 deletions(-) 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 =