Subscribe on changes!

use <script setup name="cpnName"> instead of two <script>

avatar
Jan 7th 2022

What problem does this feature solve?

When I create a component vue file,I will write two script in it,first script maintain the component name,sceond script use script setup syntax,I think it need to be optimized E.g before

after

so cool~

What does the proposed API look like?