@freemen/countdowntime
TODO: 简单的练习 lerna 包管理 -- 倒计时
Usage
时间 单位:s
timeLimit?: number;
结束触发事件
onEnd?: (v?: any) => void;
点击触发事件
onClick?: (v?: any) => void;
提示
tip?: ReactNode;
二次提示
again?: ReactNode;
传入一个字符串容器标签(默认span标签,一般与isRN一起使用)
node?: any,
判断是否是RN环境使用(默认false,一般与node一起使用)
isRN?: boolean
const countdowntime = require('@freemen/countdowntime');
// TODO: DEMONSTRATE API