Skip to content

Commit

Permalink
working examplel
Browse files Browse the repository at this point in the history
  • Loading branch information
gqio committed May 7, 2021
1 parent 027b367 commit 3c9a6db
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 16 deletions.
7 changes: 0 additions & 7 deletions awesome/components/VueCounter.vue

This file was deleted.

7 changes: 6 additions & 1 deletion awesome/components/VueHeader.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<template>
<h1>TOTO</h1>
</template>
</template>
<script>
export default {
name:'VueHeader',
}
</script>
17 changes: 9 additions & 8 deletions awesome/components/VueTest.vue
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
<template>
<div>
<VueCounter>
<VueHeader/>
</VueCounter>
<VueHeader/>

<component :is="VueHeader"></component>
</div>
</template>

<script setup>
import VueCounter from './VueCounter.vue'
<script>
import VueHeader from './VueHeader.vue'
export default {
setup(){
return {
VueHeader
}
}
}
</script>

0 comments on commit 3c9a6db

Please sign in to comment.