diff --git a/components/statistic/Number.tsx b/components/statistic/Number.tsx index eb7d65a7e..2a922f3bb 100644 --- a/components/statistic/Number.tsx +++ b/components/statistic/Number.tsx @@ -6,7 +6,7 @@ interface NumberProps extends FormatConfig { value: valueType; } -const Number: FunctionalComponent = props => { +const StatisticNumber: FunctionalComponent = props => { const { value, formatter, precision, decimalSeparator, groupSeparator = '', prefixCls } = props; let valueNode: VNodeTypes; @@ -50,4 +50,5 @@ const Number: FunctionalComponent = props => { return {valueNode}; }; -export default Number; +StatisticNumber.displayName = 'StatisticNumber'; +export default StatisticNumber; diff --git a/components/statistic/Statistic.tsx b/components/statistic/Statistic.tsx index e9836bbcb..d82faba80 100644 --- a/components/statistic/Statistic.tsx +++ b/components/statistic/Statistic.tsx @@ -52,7 +52,9 @@ export default defineComponent({ value, formatter, }; - let valueNode = ; + // data-for-update just for update component + // https://github.com/vueComponent/ant-design-vue/pull/3170 + let valueNode = ; if (valueRender) { valueNode = valueRender(valueNode); }