Skip to content

Commit

Permalink
fix: delete meaningless paragraphs (#2632)
Browse files Browse the repository at this point in the history
  • Loading branch information
heygsc committed Dec 28, 2023
1 parent 810409f commit 7e75936
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions src/api/options-misc.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,27 +99,6 @@ Controls whether the default component attribute fallthrough behavior should be
</template>
```

Since 3.3 you can also use `defineOptions` directly in `<script setup>`:

```vue
<script setup>
defineProps(['label', 'value'])
defineEmits(['input'])
defineOptions({ inheritAttrs: false })
</script>
<template>
<label>
{{ label }}
<input
v-bind="$attrs"
v-bind:value="value"
v-on:input="$emit('input', $event.target.value)"
/>
</label>
</template>
```

</div>

- **See also** [Fallthrough Attributes](/guide/components/attrs)
Expand Down Expand Up @@ -185,6 +164,4 @@ An object that registers directives to be made available to the component instan
<input v-focus>
```

A hash of directives to be made available to the component instance.

- **See also** [Custom Directives](/guide/reusability/custom-directives)

0 comments on commit 7e75936

Please sign in to comment.