From df9ae4891a29625d62956f72050822185df1b0f8 Mon Sep 17 00:00:00 2001 From: tanjinzhou <415800467@qq.com> Date: Mon, 8 Jun 2020 17:39:59 +0800 Subject: [PATCH] perf: update timeline --- components/timeline/Timeline.jsx | 5 +---- components/timeline/index.jsx | 2 -- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/components/timeline/Timeline.jsx b/components/timeline/Timeline.jsx index 5337f4cfb..818cfba33 100644 --- a/components/timeline/Timeline.jsx +++ b/components/timeline/Timeline.jsx @@ -34,7 +34,7 @@ export default { }; }, render() { - const { prefixCls: customizePrefixCls, reverse, mode, ...restProps } = getOptionProps(this); + const { prefixCls: customizePrefixCls, reverse, mode } = getOptionProps(this); const getPrefixCls = this.configProvider.getPrefixCls; const prefixCls = getPrefixCls('timeline', customizePrefixCls); @@ -96,9 +96,6 @@ export default { }); const timelineProps = { - props: { - ...restProps, - }, class: classString, }; return