Skip to content

Commit e5f0a5f

Browse files
committed
fix: countdown remove cloneElement
1 parent e249b08 commit e5f0a5f

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

components/locale-provider/LocaleReceiver.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import PropTypes from '../_util/vue-types';
22
import defaultLocaleData from './default';
33

44
export default {
5+
name: 'LocaleReceiver',
56
props: {
67
componentName: PropTypes.string.def('global'),
78
defaultLocale: PropTypes.oneOfType([PropTypes.object, PropTypes.func]),

components/statistic/Countdown.jsx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import * as moment from 'moment';
22
import interopDefault from '../_util/interopDefault';
3-
import { cloneElement } from '../_util/vnode';
43
import { initDefaultProps, getListeners } from '../_util/props-util';
54
import Statistic, { StatisticProps } from './Statistic';
65
import { formatCountdown } from './utils';
@@ -70,13 +69,7 @@ export default {
7069
return formatCountdown(value, { ...config, format });
7170
},
7271

73-
// Countdown do not need display the timestamp
74-
valueRenderHtml: node =>
75-
cloneElement(node, {
76-
props: {
77-
title: undefined,
78-
},
79-
}),
72+
valueRenderHtml: node => node,
8073
},
8174

8275
render() {

0 commit comments

Comments
 (0)