diff --git a/20_脚手架/vue3_test/21.src_Suspense/App.vue b/20_脚手架/vue3_test/21.src_Suspense/App.vue new file mode 100644 index 0000000..4312b99 --- /dev/null +++ b/20_脚手架/vue3_test/21.src_Suspense/App.vue @@ -0,0 +1,31 @@ + + + + + \ No newline at end of file diff --git a/20_脚手架/vue3_test/21.src_Suspense/assets/logo.png b/20_脚手架/vue3_test/21.src_Suspense/assets/logo.png new file mode 100644 index 0000000..f3d2503 Binary files /dev/null and b/20_脚手架/vue3_test/21.src_Suspense/assets/logo.png differ diff --git a/20_脚手架/vue3_test/21.src_Suspense/components/Child.vue b/20_脚手架/vue3_test/21.src_Suspense/components/Child.vue new file mode 100644 index 0000000..cb548fd --- /dev/null +++ b/20_脚手架/vue3_test/21.src_Suspense/components/Child.vue @@ -0,0 +1,29 @@ + + + + + \ No newline at end of file diff --git a/20_脚手架/vue3_test/21.src_Suspense/main.js b/20_脚手架/vue3_test/21.src_Suspense/main.js new file mode 100644 index 0000000..8a90e5c --- /dev/null +++ b/20_脚手架/vue3_test/21.src_Suspense/main.js @@ -0,0 +1,10 @@ +// 引入的不再是Vue构造函数, 引入的是一个名为createApp的工厂函数 +import { createApp } from 'vue' +import App from './App.vue' + +// createApp(App).mount('#app') + +// 创建应用实例对象 +const app = createApp(App) +console.log('@@@',app) +app.mount('#app') \ No newline at end of file diff --git a/20_脚手架/vue3_test/src/App.vue b/20_脚手架/vue3_test/src/App.vue index 589afdf..4312b99 100644 --- a/20_脚手架/vue3_test/src/App.vue +++ b/20_脚手架/vue3_test/src/App.vue @@ -1,17 +1,25 @@ diff --git a/20_脚手架/vue3_test/src/components/Child.vue b/20_脚手架/vue3_test/src/components/Child.vue index 3d0ebcd..cb548fd 100644 --- a/20_脚手架/vue3_test/src/components/Child.vue +++ b/20_脚手架/vue3_test/src/components/Child.vue @@ -1,15 +1,23 @@ diff --git a/20_脚手架/vue3_test/src/components/Dialog.vue b/20_脚手架/vue3_test/src/components/Dialog.vue deleted file mode 100644 index c56923d..0000000 --- a/20_脚手架/vue3_test/src/components/Dialog.vue +++ /dev/null @@ -1,50 +0,0 @@ - - - - - \ No newline at end of file diff --git a/20_脚手架/vue3_test/src/components/Son.vue b/20_脚手架/vue3_test/src/components/Son.vue deleted file mode 100644 index 0f02fa3..0000000 --- a/20_脚手架/vue3_test/src/components/Son.vue +++ /dev/null @@ -1,22 +0,0 @@ - - - - - \ No newline at end of file