mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-19 08:50:53 +08:00

* feat: add reverse for countdown * refactor var * remove unuse logic * feat: support timer component * revert delete countdown * Update components/statistic/utils.ts Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com> Signed-off-by: mr-chenguang <37072324+lcgash@users.noreply.github.com> * update snapshots * refactor countdown * fix md * fix test:site * fix: deprecated & refactor * refactor * add version * refactor: inline of effect * test: update test case * test: back of part * test: back of part * test: back of part * add tests & fix md * fix md& add devusewarnning * fix warning and add test * remove console * remove countdown md --------- Signed-off-by: mr-chenguang <37072324+lcgash@users.noreply.github.com> Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com> Co-authored-by: 二货机器人 <smith3816@gmail.com>
24 lines
714 B
TypeScript
24 lines
714 B
TypeScript
import type { CountdownProps } from './Countdown';
|
|
import Countdown from './Countdown';
|
|
import type { StatisticProps } from './Statistic';
|
|
import Statistic from './Statistic';
|
|
import type { StatisticTimerProps } from './Timer';
|
|
import Timer from './Timer';
|
|
|
|
export type { CountdownProps, StatisticTimerProps, StatisticProps };
|
|
|
|
type CompoundedComponent = {
|
|
/**
|
|
* @deprecated Please use `Statistic.Timer` instead
|
|
*/
|
|
Countdown: typeof Countdown;
|
|
Timer: typeof Timer;
|
|
};
|
|
|
|
export type CompoundedStatistic = typeof Statistic & CompoundedComponent;
|
|
|
|
(Statistic as CompoundedStatistic).Timer = Timer;
|
|
(Statistic as CompoundedStatistic).Countdown = Countdown;
|
|
|
|
export default Statistic as CompoundedStatistic;
|