react-captcha-code-li
Version:
基于React和canvas的验证码,不包含0,1,L,O
35 lines • 710 B
TypeScript
import React from 'react';
export interface ICaptchaProps {
/**
* 高度
*/
height?: number;
/**
* 宽度
*/
width?: number;
/**
* 背景颜色
*/
bgColor?: string;
/**
* 字符个数
*/
charNum?: number;
/**
* 字体大小
*/
fontSize?: number;
/**
* 点击验证码的回调函数, 用来传递验证码(会在页面初始加载和点击验证码时调用)
* @memberof ICaptchaProps
*/
onChange: (captcha: string) => void;
/**
* 样式名
*/
className?: string;
}
declare const Captcha: React.FC<ICaptchaProps>;
export default Captcha;
//# sourceMappingURL=captcha.d.ts.map