cmpt-huitu-cli 1.0.1 → 1.0.2

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.
@@ -8,9 +8,9 @@ export {}
8
8
  /* prettier-ignore */
9
9
  declare module 'vue' {
10
10
  export interface GlobalComponents {
11
- About: typeof import('./views/About.vue')['default']
12
- Error: typeof import('./components/error/Error.vue')['default']
13
- Home: typeof import('./views/Home.vue')['default']
11
+ About: typeof import('./views/about.vue')['default']
12
+ Error: typeof import('./components/error/error.vue')['default']
13
+ Home: typeof import('./views/home.vue')['default']
14
14
  Login: typeof import('./views/login/index.vue')['default']
15
15
  RouterLink: typeof import('vue-router')['RouterLink']
16
16
  RouterView: typeof import('vue-router')['RouterView']
@@ -1,5 +1,5 @@
1
1
  import { createApp } from 'vue'
2
- import App from './App.vue'
2
+ import App from './app.vue'
3
3
  import router from './routers'
4
4
  import { createPinia } from 'pinia'
5
5
  import ElementPlus from 'element-plus'
@@ -3,12 +3,12 @@ export const constantRoutes = [
3
3
  {
4
4
  path: '/401',
5
5
  name: '401',
6
- component: () => import('@components/error/Error.vue'),
6
+ component: () => import('@components/error/error.vue'),
7
7
  },
8
8
  {
9
9
  path: '/404',
10
10
  name: '404',
11
- component: () => import('@components/error/Error.vue'),
11
+ component: () => import('@components/error/error.vue'),
12
12
  },
13
13
  {
14
14
  path: '/login',
@@ -21,7 +21,7 @@ export const constantRoutes = [
21
21
  {
22
22
  path: '/',
23
23
  name: 'index',
24
- component: () => import('@views/Home.vue'),
24
+ component: () => import('@views/home.vue'),
25
25
  meta: {
26
26
  title: '首页',
27
27
  keepAlive: true,
@@ -30,7 +30,7 @@ export const constantRoutes = [
30
30
  {
31
31
  path: '/about',
32
32
  name: 'about',
33
- component: () => import('@views/About.vue'),
33
+ component: () => import('@views/about.vue'),
34
34
  },
35
35
  ]
36
36
 
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div class="home">
3
- <ModuleTitle title="欢迎使用慧图标准脚手架" />
3
+ <h1>欢迎使用慧图标准脚手架</h1>
4
4
  <VexTable
5
5
  :columns="columns"
6
6
  :data="data"
@@ -21,21 +21,6 @@
21
21
  <li><el-tag type="info">cmpt-huitu-utils</el-tag></li>
22
22
  </ul>
23
23
 
24
- <div class="demo-section">
25
- <h3>UI 组件演示</h3>
26
- <div class="demo-item">
27
- <p>AccentTitle:</p>
28
- <AccentTitle
29
- title="测试标题"
30
- unit="单位: 个"
31
- />
32
- </div>
33
- <div class="demo-item">
34
- <p>BgTag:</p>
35
- <BgTag label="标签组件" />
36
- </div>
37
- </div>
38
-
39
24
  <div class="demo-section">
40
25
  <h3>Utils 工具演示</h3>
41
26
  <p>当前时间 (formatted by cmpt-huitu-utils): {{ currentTime }}</p>
@@ -165,7 +165,21 @@ export default defineConfig(({ mode, command }) => {
165
165
 
166
166
  // 优化依赖预构建(当你首次启动 vite 时,Vite 在本地加载你的站点之前预构建了项目依赖。)
167
167
  optimizeDeps: {
168
- include: ['vue', 'vue-router', 'pinia', 'axios', 'element-plus', 'dayjs'], // 默认情况下,不在 node_modules 中的,链接的包不会被预构建
168
+ include: [
169
+ 'vue',
170
+ 'vue-router',
171
+ 'pinia',
172
+ 'axios',
173
+ 'element-plus',
174
+ 'dayjs',
175
+ 'dayjs/plugin/duration',
176
+ 'dayjs/plugin/relativeTime',
177
+ 'dayjs/plugin/isBetween',
178
+ 'dayjs/plugin/weekday',
179
+ 'dayjs/plugin/weekOfYear',
180
+ 'dayjs/plugin/isSameOrBefore',
181
+ 'dayjs/plugin/isSameOrAfter',
182
+ ], // 默认情况下,不在 node_modules 中的,链接的包不会被预构建
169
183
  exclude: ['cmpt-huitu-ui', 'cmpt-huitu-utils'], // 在预构建中强制排除的依赖项
170
184
  force: false, // 强制进行依赖预构建
171
185
  },
File without changes