-
Notifications
You must be signed in to change notification settings - Fork 21
Vue Composition API: Inheriting Attributes
Mike Lyttle edited this page May 9, 2023
·
1 revision
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const options: any = {
inheritAttrs: false,
};
@Component(options)
<script lang="ts">
export default {
inheritAttrs: false
}
</script>
<script setup lang="ts">
// ...setup logic
</script>
- By default, unknown attributes will be passed along to the root element of the template. To pass them to a different element, use
v-bind="$attrs"
on that element and setinheritAttrs
tofalse
in a normal<script>
block (not the<script setup>
block).
-
Developer Standard and Processes
-
Workstation Setup
-
IDE Configuration
-
Application Config
-
RedHat SSO Authorization Server
-
Known Issues