fix: null component
This commit is contained in:
@@ -34,6 +34,7 @@ const GET_PROPS = computed(() => {
|
||||
|
||||
<template>
|
||||
<component
|
||||
v-if="definedDynamicSection[getCurrentSection]"
|
||||
:is="definedDynamicSection[getCurrentSection]"
|
||||
v-bind="{ ...GET_PROPS(), section: _props.section, content: _props.content, settings: _props.settings }"
|
||||
>
|
||||
|
||||
@@ -33,7 +33,11 @@ const GET_PROPS = computed(() => {
|
||||
</script>
|
||||
|
||||
<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 />
|
||||
</component>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user