Commit 6ccef0eb by zhuxichen

chore: update

parent cd49756c
<script setup lang="ts"> <script setup lang="ts">
import { ref, onMounted, getCurrentInstance, defineAsyncComponent } from 'vue' import { ref, onMounted, getCurrentInstance, defineAsyncComponent } from 'vue'
import DynamicComponentLoader from './DynamicComponentLoader.vue'
const instance = getCurrentInstance() const instance = getCurrentInstance()
const DynamicComponent = ref(null) const DynamicComponent = ref(null)
const globalConfig = ref() const globalConfig = ref()
...@@ -32,10 +32,11 @@ onMounted(() => { ...@@ -32,10 +32,11 @@ onMounted(() => {
<template> <template>
<div>{{ $globalConfig?.name }}</div> <div>{{ $globalConfig?.name }}</div>
<component <!-- <component
:is="DynamicComponent" :is="DynamicComponent"
v-if="DynamicComponent" v-if="DynamicComponent"
v-bind="props" v-bind="$props"
v-on="$attrs" v-on="$attrs"
/> /> -->
<DynamicComponentLoader component-key="com1" component-type="local" />
</template> </template>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment