xto-fronted 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/main.ts +28 -33
package/package.json
CHANGED
package/src/main.ts
CHANGED
|
@@ -1,34 +1,29 @@
|
|
|
1
|
-
import { createApp } from 'vue'
|
|
2
|
-
import { createPinia } from 'pinia'
|
|
3
|
-
import App from './App.vue'
|
|
4
|
-
import router from './router'
|
|
5
|
-
|
|
6
|
-
// 样式
|
|
7
|
-
import '@/assets/styles/index.scss'
|
|
8
|
-
|
|
9
|
-
// 组件库样式
|
|
10
|
-
import '@xto/base/es/style.css'
|
|
11
|
-
import '@xto/form/es/style.css'
|
|
12
|
-
import '@xto/
|
|
13
|
-
import '@xto/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
import '@xto/
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
app.use(createPinia())
|
|
30
|
-
|
|
31
|
-
// Router
|
|
32
|
-
app.use(router)
|
|
33
|
-
|
|
1
|
+
import { createApp } from 'vue'
|
|
2
|
+
import { createPinia } from 'pinia'
|
|
3
|
+
import App from './App.vue'
|
|
4
|
+
import router from './router'
|
|
5
|
+
|
|
6
|
+
// 样式
|
|
7
|
+
import '@/assets/styles/index.scss'
|
|
8
|
+
|
|
9
|
+
// 组件库样式
|
|
10
|
+
import '@xto/base/es/style.css'
|
|
11
|
+
import '@xto/form/es/style.css'
|
|
12
|
+
import '@xto/feedback/es/style.css'
|
|
13
|
+
import '@xto/navigation/es/style.css'
|
|
14
|
+
|
|
15
|
+
// 全局注册内部组件(解决 resolveComponent 问题)
|
|
16
|
+
import { Loading } from '@xto/base'
|
|
17
|
+
|
|
18
|
+
const app = createApp(App)
|
|
19
|
+
|
|
20
|
+
// 注册内部组件
|
|
21
|
+
app.component('x-loading', Loading)
|
|
22
|
+
|
|
23
|
+
// Pinia
|
|
24
|
+
app.use(createPinia())
|
|
25
|
+
|
|
26
|
+
// Router
|
|
27
|
+
app.use(router)
|
|
28
|
+
|
|
34
29
|
app.mount('#app')
|