乐闻世界logo
搜索文章和话题

How to Call a Function Prop from Setup in Vue 3

2月7日 13:43

Here is the code example:

html
<p @click="changeForm">Login</p>
javascript
export default { name: "Register", props: { changeForm: Function }, setup() { // ... } }
标签:Vue3