fix: timeline loading not work
parent
61337aecef
commit
cf24871d8d
|
@ -1 +1 @@
|
|||
Subproject commit a5c0b0c35c3b6d8284caa99b11229b709d035e6d
|
||||
Subproject commit f820889ec890c55d98fa3327e1af60b847cd023a
|
|
@ -1,5 +1,4 @@
|
|||
import { mount } from '@vue/test-utils';
|
||||
import VcTimePicker from '../../vc-time-picker/TimePicker';
|
||||
import TimePicker from '..';
|
||||
import moment from 'moment';
|
||||
import focusTest from '../../../tests/shared/focusTest';
|
||||
|
|
|
@ -57,8 +57,7 @@ export default {
|
|||
// })
|
||||
// })
|
||||
const pendingItem = pending ? (
|
||||
<TimelineItem pending={!!pending}>
|
||||
<template slot="dot">{pendingDot || <LoadingOutlined />}</template>
|
||||
<TimelineItem pending={!!pending} dot={pendingDot || <LoadingOutlined />}>
|
||||
{pendingNode}
|
||||
</TimelineItem>
|
||||
) : null;
|
||||
|
|
|
@ -40,11 +40,8 @@ export default {
|
|||
[`${prefixCls}-item-head-custom`]: dot,
|
||||
[`${prefixCls}-item-head-${color}`]: true,
|
||||
});
|
||||
const liProps = {
|
||||
class: itemClassName,
|
||||
};
|
||||
return (
|
||||
<li {...liProps}>
|
||||
<li class={itemClassName}>
|
||||
<div class={`${prefixCls}-item-tail`} />
|
||||
<div
|
||||
class={dotClassName}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import demo from '../antdv-demo/docs/time-picker/demo/index';
|
||||
import demo from '../antdv-demo/docs/timeline/demo/index';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
|
|
Loading…
Reference in New Issue