Skip to content

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

Closed
@gumingWu

Description

@gumingWu

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

<script> export default { name: 'ChildCpn' } </script>

after

<script setup name="ChildCpn"></script>

so cool~

What does the proposed API look like?

<script setup name="ChildCpn">

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions