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 ; diff --git a/components/timeline/index.jsx b/components/timeline/index.jsx index 5729d2fa1..15bbb8b06 100644 --- a/components/timeline/index.jsx +++ b/components/timeline/index.jsx @@ -1,6 +1,5 @@ import Timeline from './Timeline'; import TimelineItem from './TimelineItem'; -import Base from '../base'; export { TimelineProps } from './Timeline'; export { TimeLineItemProps } from './TimelineItem'; @@ -9,7 +8,6 @@ Timeline.Item = TimelineItem; /* istanbul ignore next */ Timeline.install = function(app) { - app.use(Base); app.component(Timeline.name, Timeline); app.component(TimelineItem.name, TimelineItem); };