Vue · Middle · Question 53 of 75
How do you set component options like inheritAttrs: false in <script setup>?
defineOptions({ inheritAttrs: false })- ✓Correct answer: With the
defineOptionsmacro (Vue 3.3+) - 2With a second plain
<script>block only - 3It's impossible in
<script setup>
Explanation
Before 3.3 a separate normal <script> block was needed. defineOptions can also set a component name.