2月7日 13:43
How to Call a Function Prop from Setup in Vue 3
Here is the code example:
html<p @click="changeForm">Login</p>
javascriptexport default { name: "Register", props: { changeForm: Function }, setup() { // ... } }
Here is the code example:
html<p @click="changeForm">Login</p>
javascriptexport default { name: "Register", props: { changeForm: Function }, setup() { // ... } }