perf: update timeline
parent
e454b6029b
commit
df9ae4891a
|
@ -34,7 +34,7 @@ export default {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
render() {
|
render() {
|
||||||
const { prefixCls: customizePrefixCls, reverse, mode, ...restProps } = getOptionProps(this);
|
const { prefixCls: customizePrefixCls, reverse, mode } = getOptionProps(this);
|
||||||
const getPrefixCls = this.configProvider.getPrefixCls;
|
const getPrefixCls = this.configProvider.getPrefixCls;
|
||||||
const prefixCls = getPrefixCls('timeline', customizePrefixCls);
|
const prefixCls = getPrefixCls('timeline', customizePrefixCls);
|
||||||
|
|
||||||
|
@ -96,9 +96,6 @@ export default {
|
||||||
});
|
});
|
||||||
|
|
||||||
const timelineProps = {
|
const timelineProps = {
|
||||||
props: {
|
|
||||||
...restProps,
|
|
||||||
},
|
|
||||||
class: classString,
|
class: classString,
|
||||||
};
|
};
|
||||||
return <ul {...timelineProps}>{items}</ul>;
|
return <ul {...timelineProps}>{items}</ul>;
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import Timeline from './Timeline';
|
import Timeline from './Timeline';
|
||||||
import TimelineItem from './TimelineItem';
|
import TimelineItem from './TimelineItem';
|
||||||
import Base from '../base';
|
|
||||||
|
|
||||||
export { TimelineProps } from './Timeline';
|
export { TimelineProps } from './Timeline';
|
||||||
export { TimeLineItemProps } from './TimelineItem';
|
export { TimeLineItemProps } from './TimelineItem';
|
||||||
|
@ -9,7 +8,6 @@ Timeline.Item = TimelineItem;
|
||||||
|
|
||||||
/* istanbul ignore next */
|
/* istanbul ignore next */
|
||||||
Timeline.install = function(app) {
|
Timeline.install = function(app) {
|
||||||
app.use(Base);
|
|
||||||
app.component(Timeline.name, Timeline);
|
app.component(Timeline.name, Timeline);
|
||||||
app.component(TimelineItem.name, TimelineItem);
|
app.component(TimelineItem.name, TimelineItem);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue