Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix : delete meaningless paragraphs #2632

Merged
merged 1 commit into from
Dec 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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)