In export default {} method, there is a name property to define the component name, which is usefull in dev tool, but what's the equation in new <script setup> tag?
In export default {} method, there is a name property to define the component name, which is usefull in dev tool, but what's the equation in new <script setup> tag?
Declaring Additional Options
The <script setup> syntax provides the ability to express equivalent functionality of most existing Options API options except for a few:
nameinheritAttrsIf you need to declare these options, use a separate normal block with export default:
<script>
export default {
name: 'CustomName',
inheritAttrs: false,
customOptions: {}
}
</script>
<script setup>
// script setup logic
</script>
Source: link