-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (63 loc) · 2.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>CDN Vue develop config</title>
<!-- [email protected] {@link https://cn.vuejs.org/} -->
<script src="https://unpkg.com/[email protected]/dist/vue.global.prod.js"></script>
<!-- Vue 文件转换库 {@link https://github.com/FranckFreiburger/vue3-sfc-loader} -->
<script src="https://unpkg.com/[email protected]/dist/vue3-sfc-loader.js"></script>
<!-- User defined 请确保加载于 UnoCSS 之前-->
<script src="./uno.config.js"></script>
<!-- UnoCSS Attributify {@link 文档 https://uno.antfu.me} {@link https://github.com/unocss/unocss/tree/main/packages/runtime} -->
<script src="https://cdn.jsdelivr.net/npm/@unocss/[email protected]/attributify.global.min.js"></script>
<!-- Vue Demi {@link https://github.com/vueuse/vue-demi} -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<!-- VueUse {@link https://vueuse.org/} -->
<script src="https://unpkg.com/@vueuse/[email protected]/index.iife.min.js"></script>
<script src="https://unpkg.com/@vueuse/[email protected]/index.iife.min.js"></script>
<!-- Pinia {@link https://pinia.vuejs.org/zh/} {@link 参考 https://github.com/vuejs/pinia/discussions/1051} -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/pinia.iife.min.js"></script>
<!-- IconifyIcon {@link https://github.com/iconify/iconify} -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/iconify-icon.min.js"></script>
<!-- User Style -->
<link rel="stylesheet" href="./src/style/main.css" />
<!-- User Composables -->
<script src="./src/composables/dark.js"></script>
<script src="./src/composables/utils.js"></script>
<!-- Pinia useStore 自定义函数 -->
<script src="./src/store/useCounter.js"></script>
<style>
[v-cloak],
[un-cloak] {
display: none !important;
}
</style>
</head>
<body m0>
<div
id="app"
v-cloak
font-sans
p="x-4 y-10"
text="center gray-700 dark:gray-200"
>
<my-page un-cloak></my-page>
</div>
</body>
<script>
const { createApp } = Vue
const { loadModule } = window['vue3-sfc-loader']
const { createPinia } = Pinia
createApp({
components: {
// 引入页面
'my-page': getVueFile('./src/pages/hi.vue')
}
})
.use(createPinia())
.mount('#app')
</script>
</html>