Skip to content

Commit ab3d242

Browse files
committed
chore(dev): iframe app comp
1 parent 2ae1b4e commit ab3d242

File tree

2 files changed

+26
-10
lines changed

2 files changed

+26
-10
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<script setup>
2+
import { ref } from 'vue'
3+
import Child from './Child.vue'
4+
import SetupScript from './SetupScript.vue'
5+
6+
const msg = ref('msg')
7+
</script>
8+
9+
<script>
10+
export default {
11+
name: 'IframeApp'
12+
}
13+
</script>
14+
15+
<template>
16+
<p>{{ msg }}</p>
17+
<div>
18+
<input v-model="msg">
19+
</div>
20+
21+
<Child />
22+
<SetupScript />
23+
</template>
Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
import { createApp, h } from 'vue'
2-
import Child from './Child.vue'
3-
import SetupScript from './SetupScript.vue'
1+
import { createApp } from 'vue'
2+
import IframeApp from './IframeApp.vue'
43

5-
createApp({
6-
name: 'IframeApp',
7-
render: () => [
8-
h(Child),
9-
h(SetupScript)
10-
]
11-
}).mount('#app')
4+
createApp(IframeApp).mount('#app')

0 commit comments

Comments
 (0)