mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-01 03:28:42 +08:00
perf: update timeline
This commit is contained in:
parent
e454b6029b
commit
df9ae4891a
@ -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>;
|
||||
|
@ -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);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user