perf: update timeline

This commit is contained in:
tanjinzhou 2020-06-08 17:39:59 +08:00
parent e454b6029b
commit df9ae4891a
2 changed files with 1 additions and 6 deletions

View File

@ -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 <ul {...timelineProps}>{items}</ul>;

View File

@ -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);
};