|
|
|
@ -1,6 +1,5 @@
|
|
|
|
|
import * as moment from 'moment';
|
|
|
|
|
import interopDefault from '../_util/interopDefault';
|
|
|
|
|
import { cloneElement } from '../_util/vnode';
|
|
|
|
|
import { initDefaultProps, getListeners } from '../_util/props-util';
|
|
|
|
|
import Statistic, { StatisticProps } from './Statistic';
|
|
|
|
|
import { formatCountdown } from './utils';
|
|
|
|
@ -70,13 +69,7 @@ export default {
|
|
|
|
|
return formatCountdown(value, { ...config, format });
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// Countdown do not need display the timestamp
|
|
|
|
|
valueRenderHtml: node =>
|
|
|
|
|
cloneElement(node, {
|
|
|
|
|
props: {
|
|
|
|
|
title: undefined,
|
|
|
|
|
},
|
|
|
|
|
}),
|
|
|
|
|
valueRenderHtml: node => node,
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
render() {
|
|
|
|
|