Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
test-com
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhuxichen
test-com
Commits
6ccef0eb
Commit
6ccef0eb
authored
Nov 05, 2024
by
zhuxichen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: update
parent
cd49756c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
TheWelcome.vue
src/components/TheWelcome.vue
+5
-4
No files found.
src/components/TheWelcome.vue
View file @
6ccef0eb
<
script
setup
lang=
"ts"
>
import
{
ref
,
onMounted
,
getCurrentInstance
,
defineAsyncComponent
}
from
'vue'
import
DynamicComponentLoader
from
'./DynamicComponentLoader.vue'
const
instance
=
getCurrentInstance
()
const
DynamicComponent
=
ref
(
null
)
const
globalConfig
=
ref
()
...
...
@@ -32,10 +32,11 @@ onMounted(() => {
<
template
>
<div>
{{
$globalConfig
?.
name
}}
</div>
<component
<
!--
<
component
:is=
"DynamicComponent"
v-if=
"DynamicComponent"
v-bind=
"props"
v-bind=
"
$
props"
v-on=
"$attrs"
/>
/>
-->
<DynamicComponentLoader
component-key=
"com1"
component-type=
"local"
/>
</
template
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment