1

parent 5a92348b
<script setup>
import Fab from '@/Components/fab/fab.vue';
import { createApp } from 'vue';
onLaunch(() => {});
onShow(() => {
console.log('App Show');
});
onMounted(() => {
const globalComponentContainer = document.createElement('div');
globalComponentContainer.id = 'global-component-container';
// 将这个元素插入到 body 中
document.body.appendChild(globalComponentContainer);
// 使用 Vue 创建一个新的应用实例并挂载到新创建的 DOM 元素中
createApp(Fab).mount('#global-component-container');
});
onHide(() => {
console.log('App Hide');
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment