chowa
Version:
UI component library based on React
25 lines (24 loc) • 808 B
TypeScript
/**
* @license chowa v1.1.3
*
* Copyright (c) Chowa Techonlogies Co.,Ltd.(http://www.chowa.cn).
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import * as React from 'react';
import { OmitProps } from '../utils';
import { BaseStatisticProps } from './base-statistic';
import Countdown from './countdown';
export interface StatisticProps extends OmitProps<BaseStatisticProps, 'valueNode'> {
value: number;
precision?: number;
decimalSeparator?: string;
groupSeparator?: string;
formatter?: (value: number) => React.ReactNode;
}
export interface StatisticInterface {
Countdown: typeof Countdown;
}
declare const Statistic: React.SFC<StatisticProps> & StatisticInterface;
export default Statistic;