Disable attribute inheritance for all layout components (#7749)

* Disable attribute inheritance for all layout components

This prevents vue from polluting the DOM with unused state props.

* Disable attribute inheritance in layout templates
This commit is contained in:
Nicola Krumschmidt
2021-09-01 15:02:50 +02:00
committed by GitHub
parent 7da4cb9c03
commit ef8f81aaf4
10 changed files with 10 additions and 0 deletions

View File

@@ -10,6 +10,7 @@
import { defineComponent } from 'vue';
export default defineComponent({
inheritAttrs: false,
props: {
itemCount: {
type: Number,

View File

@@ -10,6 +10,7 @@ import { defineComponent, onMounted, onUnmounted, PropType, ref } from 'vue';
import '@fullcalendar/core/vdom';
export default defineComponent({
inheritAttrs: false,
props: {
createCalendar: {
type: Function as PropType<(calendarElement: HTMLElement) => void>,

View File

@@ -10,6 +10,7 @@
import { defineComponent } from 'vue';
export default defineComponent({
inheritAttrs: false,
props: {
itemCount: {
type: Number,

View File

@@ -91,6 +91,7 @@ import { Collection } from '@/types';
export default defineComponent({
components: { Card, CardsHeader },
inheritAttrs: false,
props: {
collection: {
type: String,

View File

@@ -10,6 +10,7 @@
import { defineComponent } from 'vue';
export default defineComponent({
inheritAttrs: false,
props: {
itemCount: {
type: Number,

View File

@@ -105,6 +105,7 @@ import { GeometryOptions, Item } from '@directus/shared/types';
export default defineComponent({
components: { MapComponent },
inheritAttrs: false,
props: {
selection: {
type: Array as PropType<Item[]>,

View File

@@ -10,6 +10,7 @@
import { defineComponent } from 'vue';
export default defineComponent({
inheritAttrs: false,
props: {
itemCount: {
type: Number,

View File

@@ -89,6 +89,7 @@ import { HeaderRaw } from '@/components/v-table/types';
import { Collection } from '@/types';
export default defineComponent({
inheritAttrs: false,
props: {
collection: {
type: String,

View File

@@ -7,6 +7,7 @@
<script>
export default {
inheritAttrs: false,
props: {
collection: {
type: String,

View File

@@ -9,6 +9,7 @@
import { defineComponent } from 'vue';
export default defineComponent({
inheritAttrs: false,
props: {
collection: {
type: String,