fix: null component
This commit is contained in:
@@ -31,6 +31,7 @@ const GET_PROPS = computed(() => {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<component
|
<component
|
||||||
|
v-if="definedDynamicComponent[getCurrentComponent]"
|
||||||
:is="definedDynamicComponent[getCurrentComponent]"
|
:is="definedDynamicComponent[getCurrentComponent]"
|
||||||
v-bind="{ ...GET_PROPS(), component: _props.component, settings: _props.settings, content: _props.content }"
|
v-bind="{ ...GET_PROPS(), component: _props.component, settings: _props.settings, content: _props.content }"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -30,5 +30,9 @@ const GET_PROPS = computed(() => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<component :is="definedDynamicComponent[getCurrentComponent]" v-bind="{ ...GET_PROPS(), component: _props.component, settings: _props.settings }" />
|
<component
|
||||||
|
v-if="definedDynamicComponent[getCurrentComponent]"
|
||||||
|
:is="definedDynamicComponent[getCurrentComponent]"
|
||||||
|
v-bind="{ ...GET_PROPS(), component: _props.component, settings: _props.settings }"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -37,5 +37,9 @@ const GET_PROPS = computed(() => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<component :is="definedDynamicComponent[getCurrentComponent]" v-bind="{ ...GET_PROPS(), component: _props.component, settings: _props.settings }" />
|
<component
|
||||||
|
v-if="definedDynamicComponent[getCurrentComponent]"
|
||||||
|
:is="definedDynamicComponent[getCurrentComponent]"
|
||||||
|
v-bind="{ ...GET_PROPS(), component: _props.component, settings: _props.settings }"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -33,5 +33,9 @@ const GET_PROPS = computed(() => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<component :is="definedDynamicComponent[getCurrentComponent]" v-bind="{ ...GET_PROPS(), component: _props.component, settings: _props.settings }" />
|
<component
|
||||||
|
v-if="definedDynamicComponent[getCurrentComponent]"
|
||||||
|
:is="definedDynamicComponent[getCurrentComponent]"
|
||||||
|
v-bind="{ ...GET_PROPS(), component: _props.component, settings: _props.settings }"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -32,5 +32,9 @@ const GET_PROPS = computed(() => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<component :is="definedDynamicComponent[getCurrentComponent]" v-bind="{ ...GET_PROPS(), component: _props.component, settings: _props.settings }" />
|
<component
|
||||||
|
v-if="definedDynamicComponent[getCurrentComponent]"
|
||||||
|
:is="definedDynamicComponent[getCurrentComponent]"
|
||||||
|
v-bind="{ ...GET_PROPS(), component: _props.component, settings: _props.settings }"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -31,5 +31,9 @@ const GET_PROPS = computed(() => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<component :is="definedDynamicComponent[getCurrentComponent]" v-bind="{ ...GET_PROPS(), component: _props.component, settings: _props.settings, content: _props.content }" />
|
<component
|
||||||
|
v-if="definedDynamicComponent[getCurrentComponent]"
|
||||||
|
:is="definedDynamicComponent[getCurrentComponent]"
|
||||||
|
v-bind="{ ...GET_PROPS(), component: _props.component, settings: _props.settings, content: _props.content }"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ const GET_PROPS = computed(() => {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<component
|
<component
|
||||||
|
v-if="definedDynamicComponent[getCurrentComponent]"
|
||||||
:is="definedDynamicComponent[getCurrentComponent]"
|
:is="definedDynamicComponent[getCurrentComponent]"
|
||||||
v-bind="{ ...GET_PROPS(), component: _props.component, settings: _props.settings }"
|
v-bind="{ ...GET_PROPS(), component: _props.component, settings: _props.settings }"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -30,5 +30,9 @@ const GET_PROPS = computed(() => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<component :is="definedDynamicComponent[getCurrentComponent]" v-bind="{ ...GET_PROPS(), component: _props.component, settings: _props.settings, content: _props.content }" />
|
<component
|
||||||
|
v-if="definedDynamicComponent[getCurrentComponent]"
|
||||||
|
:is="definedDynamicComponent[getCurrentComponent]"
|
||||||
|
v-bind="{ ...GET_PROPS(), component: _props.component, settings: _props.settings, content: _props.content }"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ const GET_PROPS = computed(() => {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<component
|
<component
|
||||||
|
v-if="definedDynamicComponent[getCurrentComponent]"
|
||||||
:is="definedDynamicComponent[getCurrentComponent]"
|
:is="definedDynamicComponent[getCurrentComponent]"
|
||||||
v-bind="{ ...GET_PROPS(), component: _props.component, settings: _props.settings, content: _props.content }"
|
v-bind="{ ...GET_PROPS(), component: _props.component, settings: _props.settings, content: _props.content }"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -31,5 +31,9 @@ const GET_PROPS = computed(() => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<component :is="definedDynamicComponent[getCurrentComponent]" v-bind="{ ...GET_PROPS(), component: _props.component, settings: _props.settings, content: _props.content }" />
|
<component
|
||||||
|
v-if="definedDynamicComponent[getCurrentComponent]"
|
||||||
|
:is="definedDynamicComponent[getCurrentComponent]"
|
||||||
|
v-bind="{ ...GET_PROPS(), component: _props.component, settings: _props.settings, content: _props.content }"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -36,5 +36,9 @@ const GET_PROPS = computed(() => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<component :is="definedDynamicComponent[getCurrentComponent]" v-bind="{ ...GET_PROPS(), component: _props.component, settings: _props.settings, content: _props.content }" />
|
<component
|
||||||
|
v-if="definedDynamicComponent[getCurrentComponent]"
|
||||||
|
:is="definedDynamicComponent[getCurrentComponent]"
|
||||||
|
v-bind="{ ...GET_PROPS(), component: _props.component, settings: _props.settings, content: _props.content }"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ const GET_PROPS = computed(() => {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<component
|
<component
|
||||||
|
v-if="definedDynamicComponent[getCurrentComponent]"
|
||||||
:is="definedDynamicComponent[getCurrentComponent]"
|
:is="definedDynamicComponent[getCurrentComponent]"
|
||||||
v-bind="{ ...GET_PROPS(), component: _props.component, settings: _props.settings, content: _props.content }"
|
v-bind="{ ...GET_PROPS(), component: _props.component, settings: _props.settings, content: _props.content }"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ const GET_PROPS = computed(() => {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<component
|
<component
|
||||||
|
v-if="definedDynamicComponent[getCurrentComponent]"
|
||||||
:is="definedDynamicComponent[getCurrentComponent]"
|
:is="definedDynamicComponent[getCurrentComponent]"
|
||||||
v-bind="{ ...GET_PROPS(), component: _props.component, settings: _props.settings, content: _props.content }"
|
v-bind="{ ...GET_PROPS(), component: _props.component, settings: _props.settings, content: _props.content }"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ const GET_PROPS = computed(() => {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<component
|
<component
|
||||||
|
v-if="definedDynamicComponent[getCurrentComponent]"
|
||||||
:is="definedDynamicComponent[getCurrentComponent]"
|
:is="definedDynamicComponent[getCurrentComponent]"
|
||||||
v-bind="{ ...GET_PROPS(), component: _props.component, settings: _props.settings, content: _props.content }"
|
v-bind="{ ...GET_PROPS(), component: _props.component, settings: _props.settings, content: _props.content }"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ const GET_PROPS = computed(() => {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<component
|
<component
|
||||||
|
v-if="definedDynamicComponent[getCurrentComponent]"
|
||||||
:is="definedDynamicComponent[getCurrentComponent]"
|
:is="definedDynamicComponent[getCurrentComponent]"
|
||||||
v-bind="{ ...GET_PROPS(), component: _props.component, settings: _props.settings, content: _props.content }"
|
v-bind="{ ...GET_PROPS(), component: _props.component, settings: _props.settings, content: _props.content }"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -30,5 +30,9 @@ const GET_PROPS = computed(() => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<component :is="definedDynamicComponent[getCurrentComponent]" v-bind="{ ...GET_PROPS(), component: _props.component, settings: _props.settings }" />
|
<component
|
||||||
|
v-if="definedDynamicComponent[getCurrentComponent]"
|
||||||
|
:is="definedDynamicComponent[getCurrentComponent]"
|
||||||
|
v-bind="{ ...GET_PROPS(), component: _props.component, settings: _props.settings }"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -29,6 +29,9 @@ const GET_PROPS = computed(() => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<component :is="definedDynamicComponent[getCurrentComponent]" v-bind="{ ...GET_PROPS(), component: _props.component, settings: _props.settings }" />
|
<component
|
||||||
|
v-if="definedDynamicComponent[getCurrentComponent]"
|
||||||
|
:is="definedDynamicComponent[getCurrentComponent]"
|
||||||
|
v-bind="{ ...GET_PROPS(), component: _props.component, settings: _props.settings }"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
../stocks/index
|
|
||||||
@@ -32,6 +32,7 @@ const GET_PROPS = computed(() => {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<component
|
<component
|
||||||
|
v-if="definedDynamicComponent[getCurrentComponent]"
|
||||||
:is="definedDynamicComponent[getCurrentComponent]"
|
:is="definedDynamicComponent[getCurrentComponent]"
|
||||||
v-bind="{ ...GET_PROPS(), component: _props.component, settings: _props.settings, content: _props.content }"
|
v-bind="{ ...GET_PROPS(), component: _props.component, settings: _props.settings, content: _props.content }"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ const GET_PROPS = computed(() => {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<component
|
<component
|
||||||
|
v-if="definedDynamicComponent[getCurrentComponent]"
|
||||||
:is="definedDynamicComponent[getCurrentComponent]"
|
:is="definedDynamicComponent[getCurrentComponent]"
|
||||||
v-bind="{ ...GET_PROPS(), component: _props.component, settings: _props.settings }"
|
v-bind="{ ...GET_PROPS(), component: _props.component, settings: _props.settings }"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ const GET_PROPS = computed(() => {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<component
|
<component
|
||||||
|
v-if="definedDynamicComponent[getCurrentComponent]"
|
||||||
:is="definedDynamicComponent[getCurrentComponent]"
|
:is="definedDynamicComponent[getCurrentComponent]"
|
||||||
v-bind="{ ...GET_PROPS(), component: _props.component, settings: _props.settings }"
|
v-bind="{ ...GET_PROPS(), component: _props.component, settings: _props.settings }"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -65,6 +65,7 @@ const GET_PROPS = computed(() => {
|
|||||||
<template>
|
<template>
|
||||||
|
|
||||||
<component
|
<component
|
||||||
|
v-if="definedDynamicSection[getCurrentSection]"
|
||||||
:is="definedDynamicSection[getCurrentSection]"
|
:is="definedDynamicSection[getCurrentSection]"
|
||||||
v-bind="{
|
v-bind="{
|
||||||
...GET_PROPS(),
|
...GET_PROPS(),
|
||||||
|
|||||||
@@ -33,7 +33,11 @@ const GET_PROPS = computed(() => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<component :is="definedDynamicSection[getCurrentSection]" v-bind="{ ...GET_PROPS(), section: _props.section, content: _props.content, settings: _props.settings }">
|
<component
|
||||||
|
v-if="definedDynamicSection[getCurrentSection]"
|
||||||
|
:is="definedDynamicSection[getCurrentSection]"
|
||||||
|
v-bind="{ ...GET_PROPS(), section: _props.section, content: _props.content, settings: _props.settings }"
|
||||||
|
>
|
||||||
<slot />
|
<slot />
|
||||||
</component>
|
</component>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ const GET_PROPS = computed(() => {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<component
|
<component
|
||||||
|
v-if="definedDynamicSection[getCurrentSection]"
|
||||||
:is="definedDynamicSection[getCurrentSection]"
|
:is="definedDynamicSection[getCurrentSection]"
|
||||||
v-bind="{ ...GET_PROPS(), section: _props.section, content: _props.content, settings: _props.settings }"
|
v-bind="{ ...GET_PROPS(), section: _props.section, content: _props.content, settings: _props.settings }"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -33,7 +33,11 @@ const GET_PROPS = computed(() => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<component :is="definedDynamicSection[getCurrentSection]" v-bind="{ ...GET_PROPS(), section: _props.section, content: _props.content, settings: _props.settings }">
|
<component
|
||||||
|
v-if="definedDynamicSection[getCurrentSection]"
|
||||||
|
:is="definedDynamicSection[getCurrentSection]"
|
||||||
|
v-bind="{ ...GET_PROPS(), section: _props.section, content: _props.content, settings: _props.settings }"
|
||||||
|
>
|
||||||
<slot />
|
<slot />
|
||||||
</component>
|
</component>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ const GET_PROPS = computed(() => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<component :is="definedDynamicSection[getCurrentSection]" v-bind="{ ...GET_PROPS(), section: _props.section, content: _props.content, settings: _props.settings }">
|
<component v-if="definedDynamicSection[getCurrentSection]" :is="definedDynamicSection[getCurrentSection]" v-bind="{ ...GET_PROPS(), section: _props.section, content: _props.content, settings: _props.settings }">
|
||||||
<slot />
|
<slot />
|
||||||
</component>
|
</component>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -32,7 +32,11 @@ const GET_PROPS = computed(() => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<component :is="definedDynamicSection[getCurrentSection]" v-bind="{ ...GET_PROPS(), section: _props.section, content: _props.content, settings: _props.settings }">
|
<component
|
||||||
|
v-if="definedDynamicSection[getCurrentSection]"
|
||||||
|
:is="definedDynamicSection[getCurrentSection]"
|
||||||
|
v-bind="{ ...GET_PROPS(), section: _props.section, content: _props.content, settings: _props.settings }"
|
||||||
|
>
|
||||||
<slot />
|
<slot />
|
||||||
</component>
|
</component>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ const GET_PROPS = computed(() => {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<component
|
<component
|
||||||
|
v-if="definedDynamicSection[getCurrentSection]"
|
||||||
:is="definedDynamicSection[getCurrentSection]"
|
:is="definedDynamicSection[getCurrentSection]"
|
||||||
v-bind="{ ...GET_PROPS(), section: _props.section, content: _props.content, settings: _props.settings }"
|
v-bind="{ ...GET_PROPS(), section: _props.section, content: _props.content, settings: _props.settings }"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -33,7 +33,11 @@ const GET_PROPS = computed(() => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<component :is="definedDynamicSection[getCurrentSection]" v-bind="{ ...GET_PROPS(), section: _props.section, content: _props.content, settings: _props.settings }">
|
<component
|
||||||
|
v-if="definedDynamicSection[getCurrentSection]"
|
||||||
|
:is="definedDynamicSection[getCurrentSection]"
|
||||||
|
v-bind="{ ...GET_PROPS(), section: _props.section, content: _props.content, settings: _props.settings }"
|
||||||
|
>
|
||||||
<slot />
|
<slot />
|
||||||
</component>
|
</component>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -44,7 +44,11 @@ const GET_PROPS = computed(() => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<component :is="definedDynamicPageLayout[getCurrentLayout]" v-bind="GET_PROPS()">
|
<component
|
||||||
|
v-if="definedDynamicPageLayout[getCurrentLayout]"
|
||||||
|
:is="definedDynamicPageLayout[getCurrentLayout]"
|
||||||
|
v-bind="GET_PROPS()"
|
||||||
|
>
|
||||||
<slot />
|
<slot />
|
||||||
</component>
|
</component>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -32,7 +32,11 @@ const GET_PROPS = computed(() => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<component :is="definedDynamicPage[getCurrentTemplate] || null" v-bind="{...(GET_PROPS()), settings: _props.settings}">
|
<component
|
||||||
|
v-if="definedDynamicPage[getCurrentTemplate]"
|
||||||
|
:is="definedDynamicPage[getCurrentTemplate]"
|
||||||
|
v-bind="{...(GET_PROPS()), settings: _props.settings}"
|
||||||
|
>
|
||||||
<slot />
|
<slot />
|
||||||
</component>
|
</component>
|
||||||
</template>
|
</template>
|
||||||
Reference in New Issue
Block a user