We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f61db56 commit 1619bfeCopy full SHA for 1619bfe
vuejs/GoogleReCaptchaV3.vue
@@ -7,9 +7,22 @@
7
export default {
8
name: 'google-recaptcha-v3',
9
props: {
10
- siteKey: String,
11
- elementId: String,
12
- inline: Boolean
+ siteKey: {
+ type: String,
+ required: true
13
+ },
14
+ elementId: {
15
16
17
18
+ inline: {
19
+ type: Boolean,
20
+ default: false
21
22
+ action: {
23
24
25
+ }
26
},
27
data() {
28
return {
@@ -42,9 +55,10 @@
42
55
43
56
methods: {
44
57
execute() {
58
+ let action = this.action;
45
59
window.grecaptcha.ready(function () {
46
60
grecaptcha.execute(this.gAssignedId, {
47
- action: 'contact_us'
61
+ action: action
48
62
});
49
63
50
64
@@ -72,4 +86,4 @@
72
86
}
73
87
74
88
75
-</script>
89
+</script>
0 commit comments