vue-client-recaptcha
Version:
Build simple recaptcha for vuejs without need server
75 lines (74 loc) • 2.4 kB
TypeScript
type __VLS_Props = {
modelValue?: string | null;
/** @deprecated Use v-model or modelValue instead */
value?: string | null;
chars?: string;
charsPreset?: "alphanumeric" | "numeric" | "letters" | "custom";
count?: number;
hideLines?: boolean;
customTextColor?: string;
textColors?: string[];
width?: number | ((p: {
count: number;
}) => number);
height?: number;
canvasClass?: string;
icon?: string;
captchaFont?: string;
hideRefreshIcon?: boolean;
radius?: number;
refreshLabel?: string;
canvasLabel?: string;
theme?: "auto" | "light" | "dark";
noiseDots?: number;
noiseLines?: number;
distortion?: "none" | "lines" | "dots" | "both";
audioEnabled?: boolean;
simpleMode?: boolean;
};
declare const _default: import("vue").DefineComponent<__VLS_Props, {
resetCaptcha: () => void;
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
error: (error: unknown) => any;
ready: () => any;
refresh: (code: string) => any;
isValid: (value: boolean) => any;
"update:valid": (value: boolean) => any;
getCode: (code: string) => any;
"update:modelValue": (value: string) => any;
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
onError?: (error: unknown) => any;
onReady?: () => any;
onRefresh?: (code: string) => any;
onIsValid?: (value: boolean) => any;
"onUpdate:valid"?: (value: boolean) => any;
onGetCode?: (code: string) => any;
"onUpdate:modelValue"?: (value: string) => any;
}>, {
height: number;
width: number | ((p: {
count: number;
}) => number);
value: string | null;
icon: string;
radius: number;
chars: string;
charsPreset: "alphanumeric" | "numeric" | "letters" | "custom";
count: number;
modelValue: string | null;
hideLines: boolean;
customTextColor: string;
textColors: string[];
canvasClass: string;
captchaFont: string;
hideRefreshIcon: boolean;
refreshLabel: string;
canvasLabel: string;
theme: "auto" | "light" | "dark";
noiseDots: number;
noiseLines: number;
distortion: "none" | "lines" | "dots" | "both";
audioEnabled: boolean;
simpleMode: boolean;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
export default _default;