create-jnrs-template-vue 1.2.4 → 1.2.5

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.
@@ -1,7 +1,7 @@
1
1
  # jnrs-template-vue
2
2
 
3
3
  ## ✨ 介绍
4
- 巨能前端工程化开发,Vue 项目信息化管理系统模板
4
+ 巨能前端工程化开发,Vue 项目信息化管理系统
5
5
 
6
6
  ## 💻 技术栈
7
7
  TypeScript、Vue3 生态
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jnrs-template-vue",
3
- "version": "1.2.4",
4
- "description": "JNRS 信息化管理系统模板",
3
+ "version": "1.2.5",
4
+ "description": "JNRS 信息化管理系统",
5
5
  "author": "Talia-Tan",
6
6
  "private": true,
7
7
  "type": "module",
@@ -19,8 +19,8 @@
19
19
  },
20
20
  "dependencies": {
21
21
  "@element-plus/icons-vue": "^2.3.2",
22
- "@jnrs/shared": "1.1.9",
23
- "@jnrs/vue-core": "1.2.4",
22
+ "@jnrs/shared": "1.1.10",
23
+ "@jnrs/vue-core": "1.2.5",
24
24
  "@vueuse/core": "^14.1.0",
25
25
  "element-plus": "^2.11.9",
26
26
  "pinia": "^3.0.4",
@@ -2,6 +2,18 @@
2
2
  * 业务功能通用样式表
3
3
  */
4
4
 
5
+ /*
6
+ * 禁止用户选中页面元素
7
+ */
8
+ .no_select {
9
+ -khtml-user-drag: none;
10
+ -webkit-user-drag: none;
11
+ -webkit-user-select: none;
12
+ -moz-user-select: none;
13
+ -ms-user-select: none;
14
+ user-select: none;
15
+ }
16
+
5
17
  .topBarBtn {
6
18
  position: relative;
7
19
  margin: 0 8px;
@@ -39,15 +39,3 @@ body {
39
39
  min-width: 1280px;
40
40
  height: 100%;
41
41
  }
42
-
43
- /*
44
- * 禁止用户选中页面元素
45
- */
46
- .no-select {
47
- -khtml-user-drag: none;
48
- -webkit-user-drag: none;
49
- -webkit-user-select: none;
50
- -moz-user-select: none;
51
- -ms-user-select: none;
52
- user-select: none;
53
- }
@@ -37,10 +37,9 @@ const getTable = debounce(async () => {
37
37
  })
38
38
  tableData.value = res.list.map((item) => ({
39
39
  ...item,
40
- newImageFiles: item.imageDocument?.attachments ?? undefined,
41
- newAttachmentFile: item.attachmentDocument?.attachments ?? undefined
40
+ newImageFiles: item.imageDocument?.attachments,
41
+ newAttachmentFile: item.attachmentDocument?.attachments
42
42
  }))
43
- console.log(456)
44
43
  total.value = res.count
45
44
  } catch (error) {
46
45
  console.error(error)
@@ -50,8 +49,6 @@ const getTable = debounce(async () => {
50
49
  }, 300)
51
50
 
52
51
  onActivated(() => {
53
- console.log(123)
54
-
55
52
  getTable()
56
53
  })
57
54
  </script>
@@ -17,7 +17,7 @@ interface Props {
17
17
  /**
18
18
  * 是否清理文件副作用
19
19
  */
20
- clearSideEffects: boolean
20
+ clearSideEffects?: boolean
21
21
  }
22
22
 
23
23
  const { loadKeys, clearSideEffects = false } = defineProps<Props>()
@@ -16,7 +16,7 @@ interface Props {
16
16
  /**
17
17
  * 是否清理文件副作用
18
18
  */
19
- clearSideEffects: boolean
19
+ clearSideEffects?: boolean
20
20
  }
21
21
 
22
22
  const { loadKeys, clearSideEffects = false } = defineProps<Props>()
@@ -1,11 +1,11 @@
1
1
  <template>
2
- <div class="blank-layout no-select">
2
+ <div class="blank_layout">
3
3
  <router-view />
4
4
  </div>
5
5
  </template>
6
6
 
7
7
  <style scoped>
8
- .blank-layout {
8
+ .blank_layout {
9
9
  position: relative;
10
10
  width: 100vw;
11
11
  height: 100vh;
@@ -99,19 +99,9 @@ const handleTabClick = (tab: TabsPaneContext) => {
99
99
  </script>
100
100
 
101
101
  <template>
102
- <div class="routerTabs">
103
- <el-tabs
104
- v-model="activeRouterName"
105
- type="card"
106
- @tab-remove="removeTab"
107
- @tab-click="handleTabClick"
108
- >
109
- <el-tab-pane
110
- v-for="item in menuTabs"
111
- :key="item.name"
112
- :name="item.name"
113
- :closable="!isHome(item)"
114
- >
102
+ <div class="routerTabs no_select">
103
+ <el-tabs v-model="activeRouterName" type="card" @tab-remove="removeTab" @tab-click="handleTabClick">
104
+ <el-tab-pane v-for="item in menuTabs" :key="item.name" :name="item.name" :closable="!isHome(item)">
115
105
  <template #label>
116
106
  <span>{{ tabLabel(item) }}</span>
117
107
  </template>
@@ -13,7 +13,7 @@ const route = useRoute()
13
13
  </script>
14
14
 
15
15
  <template>
16
- <el-aside class="sideMenu">
16
+ <el-aside class="sideMenu no_select">
17
17
  <div class="logo" :class="{ logo_collapse: menuCollapse }">
18
18
  <img class="logo_img" src="@/assets/images/common/jnrs-white.svg" alt="jnrs" />
19
19
  <span class="logo_text">{{ $t('main.title') }}</span>
@@ -37,7 +37,7 @@ const showGlobalSetting = () => {
37
37
  </script>
38
38
 
39
39
  <template>
40
- <div class="topHeader">
40
+ <div class="topHeader no_select">
41
41
  <div class="left">
42
42
  <el-icon
43
43
  class="topBarBtn"
@@ -1,9 +1,9 @@
1
1
  export default {
2
2
  main: {
3
- title: '信息化管理系统模板'
3
+ title: '信息化管理系统'
4
4
  },
5
5
  login: {
6
- title: '信息化管理系统模板',
6
+ title: '信息化管理系统',
7
7
  formTitle: '登录',
8
8
  formAccount: '请输入账号',
9
9
  formPassword: '请输入密码',
@@ -77,8 +77,8 @@ const getTable = debounce(async () => {
77
77
  })
78
78
  tableData.value = res.list.map((item) => ({
79
79
  ...item,
80
- newImageFiles: item.imageDocument?.attachments ?? undefined,
81
- newAttachmentFile: item.attachmentDocument?.attachments ?? undefined
80
+ newImageFiles: item.imageDocument?.attachments,
81
+ newAttachmentFile: item.attachmentDocument?.attachments
82
82
  }))
83
83
  total.value = res.count
84
84
  } catch (error) {
@@ -81,7 +81,7 @@ const submitForm = async () => {
81
81
  </script>
82
82
 
83
83
  <template>
84
- <div class="main">
84
+ <div class="login no_select">
85
85
  <div class="topFixed_right">
86
86
  <el-icon class="topBarBtn" title="全局偏好设置" @click="showGlobalSetting()">
87
87
  <el-icon><Setting /></el-icon>
@@ -131,7 +131,7 @@ const submitForm = async () => {
131
131
  </el-form>
132
132
  <div class="greeting">{{ $t('login.greeting') }}</div>
133
133
  </div>
134
- <div class="card_right_copyright">Powered by JNRS TECH 2026</div>
134
+ <div class="copyright">Powered by JNRS TECH 2026</div>
135
135
  </div>
136
136
  </div>
137
137
  </div>
@@ -139,7 +139,7 @@ const submitForm = async () => {
139
139
  </template>
140
140
 
141
141
  <style scoped lang="scss">
142
- .main {
142
+ .login {
143
143
  position: relative;
144
144
  width: 100%;
145
145
  height: 100%;
@@ -169,8 +169,6 @@ const submitForm = async () => {
169
169
  align-items: center;
170
170
  justify-content: space-around;
171
171
  padding: 8px 16px;
172
- // background: var(--jnrs-card-primary);
173
- // border-radius: 10px;
174
172
  }
175
173
 
176
174
  .card {
@@ -184,7 +182,6 @@ const submitForm = async () => {
184
182
  height: 500px;
185
183
  border-radius: 15px;
186
184
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
187
- background: radial-gradient(circle at center, #232a4c, #000);
188
185
  overflow: hidden;
189
186
 
190
187
  .card_left {
@@ -193,9 +190,8 @@ const submitForm = async () => {
193
190
  align-items: center;
194
191
  width: 50%;
195
192
  height: 100%;
196
- box-shadow: 5px 0 10px rgba(0, 0, 0, 0.5);
197
- // background: url('@/assets/img/common/card_bg.png') no-repeat;
198
- // background-size: 100% 100%;
193
+ background: radial-gradient(circle at center, #232a4c, #000);
194
+ box-shadow: 3px 0 6px rgba(0, 0, 0, 0.3);
199
195
 
200
196
  .card_left_mid {
201
197
  width: 50%;
@@ -233,9 +229,8 @@ const submitForm = async () => {
233
229
  top: 0;
234
230
  width: 100%;
235
231
  height: 100%;
236
- background: rgba(255, 255, 255, 0.7);
237
- backdrop-filter: blur(4px);
238
- -webkit-backdrop-filter: blur(4px);
232
+ backdrop-filter: blur(2px);
233
+ -webkit-backdrop-filter: blur(2px);
239
234
  }
240
235
 
241
236
  .card_right_mid {
@@ -289,12 +284,28 @@ const submitForm = async () => {
289
284
  }
290
285
  }
291
286
 
292
- .card_right_copyright {
287
+ .copyright {
293
288
  position: absolute;
294
289
  bottom: 5px;
295
290
  font-size: 12px;
296
291
  text-transform: uppercase;
297
- color: rgba(0, 0, 0, 0.1);
292
+ color: var(--jnrs-font-primary-01);
293
+ }
294
+ }
295
+ }
296
+
297
+ .light {
298
+ .card_right {
299
+ &::after {
300
+ background: var(--jnrs-card-primary-06);
301
+ }
302
+ }
303
+ }
304
+
305
+ .dark {
306
+ .card_right {
307
+ &::after {
308
+ background: var(--jnrs-card-primary-03);
298
309
  }
299
310
  }
300
311
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-jnrs-template-vue",
3
- "version": "1.2.4",
3
+ "version": "1.2.5",
4
4
  "description": "巨能前端工程化开发,Vue 项目模板脚手架",
5
5
  "keywords": [
6
6
  "vue",