vue2.7.8 use<script setup> how to transfer data from child to parent? #10197
Unanswered
ufoozhenghao
asked this question in
Help/Questions
Replies: 1 comment
-
See: https://vuejs.org/guide/components/events.html#declaring-emitted-events (make sure to switch the docs content to "composition API" in the upper left) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In <script>, it's ok to transfer data to parent via use setup({emit}), but if i use <script setup>. parent component can't get emit from child. I tried to use defineEmits or eventbus,they didint work.
how to tansfer data if i want use it in <script setup>?
Beta Was this translation helpful? Give feedback.
All reactions