Skip to content

Commit f9e5233

Browse files
authored
docs: remove duplicate defineOptions script setup example (#2422)
removes an old example that used to document using defineOptions without a setup but now says the same thing twice
1 parent b1d7a68 commit f9e5233

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/guide/components/attrs.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -79,17 +79,7 @@ If you do **not** want a component to automatically inherit attributes, you can
7979

8080
<div class="composition-api">
8181

82-
If using `<script setup>`, you can use the [`defineOptions`](/api/sfc-script-setup#defineoptions) macro:
83-
84-
```vue
85-
<script setup>
86-
defineOptions({
87-
inheritAttrs: false
88-
})
89-
</script>
90-
```
91-
92-
Since 3.3 you can also use `defineOptions` directly in `<script setup>`:
82+
Since 3.3 you can also use [`defineOptions`](/api/sfc-script-setup#defineoptions) directly in `<script setup>`:
9383

9484
```vue
9585
<script setup>

0 commit comments

Comments
 (0)