//unpkg.com/vue3-recaptcha2">constapp=Vue.createApp({name:"app",components:{VueRecaptcha},data(){return{show:false,recaptcha:null,recaptchaSiteKey:'key'}},methods:{toggle(){this.show=!this.show;},recaptchaUpdated(recaptcha){this.recaptcha=recaptcha;}}});app.mount("#app"); API Props site...
Vue v3 component for Google reCAPTCHA v2 Installation npm install vue3-recaptcha2 Example usage With bundlers <template> <vue-recaptchav-show="showRecaptcha"sitekey="key"size="normal"theme="light"hl="tr":loading-timeout="loadingTimeout"@verify="recaptchaVerified"@expire="recaptchaExpired"@fail=...
vue3-recaptcha2 是一个专为 Vue 3 设计的组件,用于集成 Google reCAPTCHA v2 功能。通过该组件,用户可以在 Vue 3 项目中轻松添加 reCAPTCHA v2 验证功能,提高网站的安全性和防止恶意机器人攻击。该组件简单易用,支持自定义参数和样式,同时具有良好的文档和示例,帮助开发者快速集成和定制 reCAPTCHA 功能。不仅如此...
>importvueRecaptchafrom'vue3-recaptcha2';exportdefault{name:'app',components:{vueRecaptcha},data() {return{showRecaptcha:false,loadingTimeout:30000//30 seconds}},methods:{recaptchaVerified(response) {},recaptchaExpired() {this.$refs.vueRecaptcha.reset();},recaptchaFailed() {},recaptchaError(...