mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
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:
committed by
GitHub
parent
7da4cb9c03
commit
ef8f81aaf4
@@ -10,6 +10,7 @@
|
||||
import { defineComponent } from 'vue';
|
||||
|
||||
export default defineComponent({
|
||||
inheritAttrs: false,
|
||||
props: {
|
||||
itemCount: {
|
||||
type: Number,
|
||||
|
||||
@@ -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>,
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
import { defineComponent } from 'vue';
|
||||
|
||||
export default defineComponent({
|
||||
inheritAttrs: false,
|
||||
props: {
|
||||
itemCount: {
|
||||
type: Number,
|
||||
|
||||
@@ -91,6 +91,7 @@ import { Collection } from '@/types';
|
||||
|
||||
export default defineComponent({
|
||||
components: { Card, CardsHeader },
|
||||
inheritAttrs: false,
|
||||
props: {
|
||||
collection: {
|
||||
type: String,
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
import { defineComponent } from 'vue';
|
||||
|
||||
export default defineComponent({
|
||||
inheritAttrs: false,
|
||||
props: {
|
||||
itemCount: {
|
||||
type: Number,
|
||||
|
||||
@@ -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[]>,
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
import { defineComponent } from 'vue';
|
||||
|
||||
export default defineComponent({
|
||||
inheritAttrs: false,
|
||||
props: {
|
||||
itemCount: {
|
||||
type: Number,
|
||||
|
||||
@@ -89,6 +89,7 @@ import { HeaderRaw } from '@/components/v-table/types';
|
||||
import { Collection } from '@/types';
|
||||
|
||||
export default defineComponent({
|
||||
inheritAttrs: false,
|
||||
props: {
|
||||
collection: {
|
||||
type: String,
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
|
||||
<script>
|
||||
export default {
|
||||
inheritAttrs: false,
|
||||
props: {
|
||||
collection: {
|
||||
type: String,
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
import { defineComponent } from 'vue';
|
||||
|
||||
export default defineComponent({
|
||||
inheritAttrs: false,
|
||||
props: {
|
||||
collection: {
|
||||
type: String,
|
||||
|
||||
Reference in New Issue
Block a user