xto-fronted 0.1.5 → 0.1.7

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.
Files changed (2) hide show
  1. package/package.json +3 -1
  2. package/src/main.ts +28 -33
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xto-fronted",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "XTO 前端应用脚手架,封装登录、退出、菜单渲染等统一逻辑",
@@ -36,6 +36,7 @@
36
36
  },
37
37
  "peerDependencies": {
38
38
  "@xto/base": "^0.1.0",
39
+ "@xto/core": "^0.1.0",
39
40
  "@xto/feedback": "^0.1.0",
40
41
  "@xto/form": "^0.1.0",
41
42
  "@xto/navigation": "^0.1.0",
@@ -49,6 +50,7 @@
49
50
  "@types/node": "^20.11.30",
50
51
  "@vitejs/plugin-vue": "^5.0.4",
51
52
  "@xto/base": "^0.1.0",
53
+ "@xto/core": "^0.1.0",
52
54
  "@xto/feedback": "^0.1.0",
53
55
  "@xto/form": "^0.1.0",
54
56
  "@xto/navigation": "^0.1.0",
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/data/es/style.css'
13
- import '@xto/feedback/es/style.css'
14
- import '@xto/navigation/es/style.css'
15
- import '@xto/layout/es/style.css'
16
- import '@xto/business/es/style.css'
17
-
18
- // 全局注册内部组件(解决 resolveComponent 问题)
19
- import { Loading } from '@xto/base'
20
- import { TreeNode } from '@xto/data'
21
-
22
- const app = createApp(App)
23
-
24
- // 注册内部组件
25
- app.component('x-loading', Loading)
26
- app.component('TreeNode', TreeNode)
27
-
28
- // Pinia
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')