vuejs / rfcs

RFCs for substantial changes / feature additions to Vue core
4.87k stars 546 forks source link

how to use toRefs in tag <script setup> #307

Closed WalkAlone0325 closed 3 years ago

WalkAlone0325 commented 3 years ago

how to use toRefs in tag <script setup>, i want to use toRefs in reactive,I didn't find issues.

antfu commented 3 years ago

You can use it just like you would do in a normal js module. https://v3.vuejs.org/api/refs-api.html#torefs

Please utilize StackOverflow or Discord server to ask questions. Thanks.