File tree Expand file tree Collapse file tree 2 files changed +26
-10
lines changed
packages/shell-dev-vue3/src Expand file tree Collapse file tree 2 files changed +26
-10
lines changed Original file line number Diff line number Diff line change
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 >
Original file line number Diff line number Diff line change 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'
4
3
5
- createApp ( {
6
- name : 'IframeApp' ,
7
- render : ( ) => [
8
- h ( Child ) ,
9
- h ( SetupScript )
10
- ]
11
- } ) . mount ( '#app' )
4
+ createApp ( IframeApp ) . mount ( '#app' )
You can’t perform that action at this time.
0 commit comments