@jnrs/vue-core 1.2.25 → 1.2.27

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/AGENTS.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## ✨ 介绍
4
4
 
5
- 巨能前端工程化开发,Vue 专用核心功能包。提供 Pinia store、Vue composables、Vue Router、全局指令、插件和公共 Vue 组件。
5
+ 巨能(JNRS)前端工程化开发,Vue 专用核心功能包。提供 Pinia store、Vue composables、Vue Router、全局指令、插件和公共 Vue 组件。
6
6
 
7
7
  ## 📦 模块总览
8
8
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # 发版日志
2
2
 
3
+ ## [1.2.27] - 2026-07-20 【latest】
4
+
5
+ ### Chore
6
+
7
+ - 版本同步更新
8
+
9
+ ## [1.2.26] - 2026-07-20
10
+
11
+ ### Chore
12
+
13
+ - 版本同步更新
14
+
15
+ ## [1.2.26] - 2026-07-20
16
+
17
+ ### Chore
18
+
19
+ - 版本同步更新
20
+
3
21
  ## [1.2.25] - 2026-07-17
4
22
 
5
23
  ### Features
package/README.md CHANGED
@@ -2,20 +2,20 @@
2
2
 
3
3
  ## ✨ 介绍
4
4
 
5
- 巨能前端工程化开发,Vue 专用核心功能包。
5
+ 巨能(JNRS)前端工程化开发,Vue 专用核心功能包。
6
6
 
7
7
  ### 功能模块
8
8
 
9
- | 模块 | 路径 | 说明 |
10
- | ----------- | ----------------------------- | ------------------------------------------------------------ |
11
- | 主模块 | `@jnrs/vue-core` | 基础类型定义(`IMenuItem`, `IPagination`, `IPageData`, `IAttachment`, `IDocument` 等) |
12
- | Pinia | `@jnrs/vue-core/pinia` | `useSystemStore`(主题/全屏/菜单折叠)+ `useMenuStore`(动态菜单/路由) |
13
- | Router | `@jnrs/vue-core/router` | `createVueRouter`(创建路由实例)+ `asyncGenerateRoute`(动态路由生成)+ `handleRouter`(跳转)+ `useRouter`/`useRoute` |
14
- | 组件 | `@jnrs/vue-core/components` | `JnTable`(表格)、`JnPagination`(分页)、`JnDialog`(弹窗)、`JnFileUpload`(文件上传)、`JnSelectTemplate`(选择器)、`JnDatetime`(日期格式化)、`JnImportAndExport`(导入导出)等 |
15
- | Composables | `@jnrs/vue-core/composables` | `useMouseSelection`(鼠标框选)、`useReactivityTableHeight`(表格高度自适应)、`useWebSocket`(WebSocket 连接) |
16
- | 常量 | `@jnrs/vue-core/constants` | 主题选项配置 |
17
- | 工具 | `@jnrs/vue-core/utils` / `lib` | 工具函数 / 类型守卫 |
18
- | 国际化 | `@jnrs/vue-core/locales` | 组件内置文案的多语言支持 |
9
+ | 模块 | 路径 | 说明 |
10
+ | ----------- | ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
11
+ | 主模块 | `@jnrs/vue-core` | 基础类型定义(`IMenuItem`, `IPagination`, `IPageData`, `IAttachment`, `IDocument` 等) |
12
+ | Pinia | `@jnrs/vue-core/pinia` | `useSystemStore`(主题/全屏/菜单折叠)+ `useMenuStore`(动态菜单/路由) |
13
+ | Router | `@jnrs/vue-core/router` | `createVueRouter`(创建路由实例)+ `asyncGenerateRoute`(动态路由生成)+ `handleRouter`(跳转)+ `useRouter`/`useRoute` |
14
+ | 组件 | `@jnrs/vue-core/components` | `JnTable`(表格)、`JnPagination`(分页)、`JnDialog`(弹窗)、`JnFileUpload`(文件上传)、`JnSelectTemplate`(选择器)、`JnDatetime`(日期格式化)、`JnImportAndExport`(导入导出)等 |
15
+ | Composables | `@jnrs/vue-core/composables` | `useMouseSelection`(鼠标框选)、`useReactivityTableHeight`(表格高度自适应)、`useWebSocket`(WebSocket 连接) |
16
+ | 常量 | `@jnrs/vue-core/constants` | 主题选项配置 |
17
+ | 工具 | `@jnrs/vue-core/utils` / `lib` | 工具函数 / 类型守卫 |
18
+ | 国际化 | `@jnrs/vue-core/locales` | 组件内置文案的多语言支持 |
19
19
 
20
20
  ## 💻 技术栈
21
21
 
@@ -1,4 +1,4 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".jn_globalSetting_header{margin-bottom:0;padding-bottom:20px}.jn_globalSetting_item[data-v-2b8b00a5]{margin-bottom:20px}.jn_imageView[data-v-1e2b2aae]{display:block;width:100%;height:100%}.jn_imageView .jn_imageView_error[data-v-1e2b2aae]{display:flex;align-items:center;justify-content:center;width:100%;height:100%;font-size:.8em;line-height:1.1em;text-align:center;filter:opacity(.7)}.jn_image_view_icon[data-v-1e2b2aae]:hover{color:var(--jnrs-color-primary);transform:scale(1.2);transition:all .3s ease}.jn_fileView[data-v-a380f9e9]{display:block;width:100%;height:100%;line-height:1em;cursor:pointer}.jn_fileView:hover .jn_fileView_button[data-v-a380f9e9]{color:var(--jnrs-color-primary)}.jn_fileView .jn_fileView_fileName[data-v-a380f9e9]{font-size:.8em;color:var(--jnrs-font-primary-06);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.jn_fileView .jn_fileView_button[data-v-a380f9e9]{height:auto;padding:0;text-decoration:underline;font-size:.9em;transition:all .3s ease}.jn_fileUpload[data-v-0d09f340]{position:relative;width:100%;color:var(--jnrs-font-primary-06)}.jn_fileUpload[data-v-0d09f340] .el-upload-dragger{padding:30px 0 10px}.jn_fileUpload .jn_uploadTips[data-v-0d09f340]{display:block;width:100%;margin-top:5px;line-height:1.2em}.jn_fileUpload .jn_uploadTips span[data-v-0d09f340]{display:inline-block;margin-right:10px}.jn_fileUpload .jn_uploadTips b[data-v-0d09f340]{color:var(--el-color-danger, #ff3300)}.jn_fileUpload .jn_uploadTips_isDrag[data-v-0d09f340]{position:absolute;top:4px;left:0;text-align:center}.jn_fileUpload .jn_fileList[data-v-0d09f340]{width:100%}.jn_fileUpload .jn_fileList .jn_fileLis_item[data-v-0d09f340]{display:flex;align-items:center;justify-content:space-between;width:100%;margin-top:8px;padding:5px 0;border:1px solid var(--jnrs-font-primary-03);background:var(--jnrs-background-primary)}.jn_fileUpload .jn_fileList .jn_fileLis_item .fileLis_item_left[data-v-0d09f340]{flex:1;position:relative;display:flex;align-items:center;justify-content:flex-start;padding-right:50px;line-height:1.1em}.jn_fileUpload .jn_fileList .jn_fileLis_item .fileLis_item_right[data-v-0d09f340]{flex-shrink:0;width:60px;display:flex;align-items:center;justify-content:flex-end;padding-right:4px}.jn_fileUpload .jn_fileList .jn_fileLis_item .fileLis_item_index[data-v-0d09f340]{flex-shrink:0;width:20px;height:20px;line-height:20px;text-align:center}.jn_fileUpload .jn_fileList .jn_fileLis_item .fileLis_item_icon[data-v-0d09f340]{flex-shrink:0;width:20px;height:20px}.jn_fileUpload .jn_fileList .jn_fileLis_item .fileLis_item_name[data-v-0d09f340]{padding:0 4px;word-break:break-all}.jn_fileUpload .jn_fileList .jn_fileLis_item .fileLis_item_size[data-v-0d09f340]{position:absolute;right:0;width:50px;color:#999;white-space:nowrap;text-align:right}.jn_fileUpload .jn_fileList .jn_fileLis_item .fileLis_item_btn[data-v-0d09f340]{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:20px;height:20px;margin:0 2px;border-radius:3px;font-size:16px;color:var(--el-color-primary, #5887f7);transition:all .3s ease;cursor:pointer}.jn_fileUpload .jn_fileList .jn_fileLis_item .fileLis_item_btn[data-v-0d09f340]:hover{background-color:var(--jnrs-card-primary)}.jn_fileUpload .jn_fileList .jn_fileLis_item .fileLis_item_btn_danger[data-v-0d09f340]{color:var(--el-color-danger, #ff3300)}.jnImportAndExport_button.is-text[data-v-7f168c95]{padding:0}.jnImportAndExport_underlineBtn[data-v-7f168c95]{display:inline-block;margin-right:36px;color:#3697fc;text-decoration:underline;cursor:pointer}.jnImportAndExport_underlineBtn[data-v-7f168c95]:hover{opacity:.8}.jn_table[data-v-252ccc6e]{width:100%}.jn_table[data-v-252ccc6e] .jn_table_header{color:var(--jnrs-font-primary)!important;background:var(--jnrs-background-head)!important}.jn_table[data-v-252ccc6e] .jn_table_header .cell{padding:0 8px;line-height:1.2em}.jn-main-table[data-v-252ccc6e] .el-table__row{cursor:pointer}.jn-main-table[data-v-252ccc6e] .el-table__row:hover td{background-color:var(--jnrs-background-hover)!important}.jn-main-table[data-v-252ccc6e] .jn-row-selected td{background-color:var(--jnrs-color-primary)!important;color:#fff!important}.jn_selectTemplate[data-v-6ec9d84c]{display:flex;align-items:center;font-size:0}.jn_selectTemplate .jn_select[data-v-6ec9d84c]{flex:1;right:-1px;z-index:1}.jn_selectTemplate .jn_select[data-v-6ec9d84c] .el-select__wrapper{border-top-right-radius:0;border-bottom-right-radius:0}.jn_selectTemplate .jn_select_button[data-v-6ec9d84c]{border-radius:0 3px 3px 0}.jn_selectTemplate .jn_select_button[data-v-6ec9d84c]:hover{z-index:1}.t_select_button_only[data-v-6ec9d84c]{margin-left:0;border-top-left-radius:3px;border-bottom-left-radius:3px}.jn_dialog_header[data-v-6ec9d84c]{display:flex;align-items:center}[data-v-6ec9d84c] .el-input__validateIcon{display:none}[data-v-6ec9d84c] th .el-checkbox--small{display:none!important}[data-v-6ec9d84c] .el-table__row{cursor:pointer}.tableIsSingle[data-v-6ec9d84c] .el-checkbox__inner{border-radius:50%}")),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}})();
1
+ (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".jn_globalSetting_header{margin-bottom:0;padding-bottom:20px}.jn_globalSetting_item[data-v-2b8b00a5]{margin-bottom:20px}.jn_imageView[data-v-1e2b2aae]{display:block;width:100%;height:100%}.jn_imageView .jn_imageView_error[data-v-1e2b2aae]{display:flex;align-items:center;justify-content:center;width:100%;height:100%;font-size:.8em;line-height:1.1em;text-align:center;filter:opacity(.7)}.jn_image_view_icon[data-v-1e2b2aae]:hover{color:var(--jnrs-color-primary);transform:scale(1.2);transition:all .3s ease}.jn_fileView[data-v-00dee50f]{display:block;width:100%;height:100%;line-height:1em;cursor:pointer}.jn_fileView:hover .jn_fileView_button[data-v-00dee50f]{color:var(--jnrs-color-primary)}.jn_fileView .jn_fileView_fileName[data-v-00dee50f]{font-size:.8em;color:var(--jnrs-font-primary-05);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.jn_fileView .jn_fileView_button[data-v-00dee50f]{height:auto;padding:0;text-decoration:underline;font-size:.9em;transition:all .3s ease}.jn_fileUpload[data-v-40647e72]{position:relative;width:100%;color:var(--jnrs-font-primary-05)}.jn_fileUpload[data-v-40647e72] .el-upload-dragger{padding:30px 0 10px}.jn_fileUpload .jn_uploadTips[data-v-40647e72]{display:block;width:100%;margin-top:5px;line-height:1.2em}.jn_fileUpload .jn_uploadTips span[data-v-40647e72]{display:inline-block;margin-right:10px}.jn_fileUpload .jn_uploadTips b[data-v-40647e72]{color:var(--el-color-danger, #ff3300)}.jn_fileUpload .jn_uploadTips_isDrag[data-v-40647e72]{position:absolute;top:4px;left:0;text-align:center}.jn_fileUpload .jn_fileList[data-v-40647e72]{width:100%}.jn_fileUpload .jn_fileList .jn_fileLis_item[data-v-40647e72]{display:flex;align-items:center;justify-content:space-between;width:100%;margin-top:8px;padding:5px 0;border:1px solid var(--jnrs-font-primary-03);background:var(--jnrs-background-primary)}.jn_fileUpload .jn_fileList .jn_fileLis_item .fileLis_item_left[data-v-40647e72]{flex:1;position:relative;display:flex;align-items:center;justify-content:flex-start;padding-right:50px;line-height:1.1em}.jn_fileUpload .jn_fileList .jn_fileLis_item .fileLis_item_right[data-v-40647e72]{flex-shrink:0;width:60px;display:flex;align-items:center;justify-content:flex-end;padding-right:4px}.jn_fileUpload .jn_fileList .jn_fileLis_item .fileLis_item_index[data-v-40647e72]{flex-shrink:0;width:20px;height:20px;line-height:20px;text-align:center}.jn_fileUpload .jn_fileList .jn_fileLis_item .fileLis_item_icon[data-v-40647e72]{flex-shrink:0;width:20px;height:20px}.jn_fileUpload .jn_fileList .jn_fileLis_item .fileLis_item_name[data-v-40647e72]{padding:0 4px;word-break:break-all}.jn_fileUpload .jn_fileList .jn_fileLis_item .fileLis_item_size[data-v-40647e72]{position:absolute;right:0;width:50px;color:#999;white-space:nowrap;text-align:right}.jn_fileUpload .jn_fileList .jn_fileLis_item .fileLis_item_btn[data-v-40647e72]{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:20px;height:20px;margin:0 2px;border-radius:3px;font-size:16px;color:var(--el-color-primary, #5887f7);transition:all .3s ease;cursor:pointer}.jn_fileUpload .jn_fileList .jn_fileLis_item .fileLis_item_btn[data-v-40647e72]:hover{background-color:var(--jnrs-card-primary)}.jn_fileUpload .jn_fileList .jn_fileLis_item .fileLis_item_btn_danger[data-v-40647e72]{color:var(--el-color-danger, #ff3300)}.jnImportAndExport_button.is-text[data-v-7f168c95]{padding:0}.jnImportAndExport_underlineBtn[data-v-7f168c95]{display:inline-block;margin-right:36px;color:#3697fc;text-decoration:underline;cursor:pointer}.jnImportAndExport_underlineBtn[data-v-7f168c95]:hover{opacity:.8}.jn_table[data-v-080c5c53]{width:100%}.jn_table[data-v-080c5c53] .jn_table_header{color:var(--jnrs-font-primary)!important;background:var(--jnrs-background-head)!important}.jn_table[data-v-080c5c53] .jn_table_header .cell{padding:0 8px;line-height:1.2em}.jn-main-table[data-v-080c5c53] .el-table__row{cursor:pointer}.jn-main-table[data-v-080c5c53] .jn-row-selected td{background-color:var(--jnrs-color-primary-fade03)!important}.jn_selectTemplate[data-v-6ec9d84c]{display:flex;align-items:center;font-size:0}.jn_selectTemplate .jn_select[data-v-6ec9d84c]{flex:1;right:-1px;z-index:1}.jn_selectTemplate .jn_select[data-v-6ec9d84c] .el-select__wrapper{border-top-right-radius:0;border-bottom-right-radius:0}.jn_selectTemplate .jn_select_button[data-v-6ec9d84c]{border-radius:0 3px 3px 0}.jn_selectTemplate .jn_select_button[data-v-6ec9d84c]:hover{z-index:1}.t_select_button_only[data-v-6ec9d84c]{margin-left:0;border-top-left-radius:3px;border-bottom-left-radius:3px}.jn_dialog_header[data-v-6ec9d84c]{display:flex;align-items:center}[data-v-6ec9d84c] .el-input__validateIcon{display:none}[data-v-6ec9d84c] th .el-checkbox--small{display:none!important}[data-v-6ec9d84c] .el-table__row{cursor:pointer}.tableIsSingle[data-v-6ec9d84c] .el-checkbox__inner{border-radius:50%}")),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}})();
2
2
  import { defineComponent as x, ref as B, createBlock as U, openBlock as I, unref as i, withCtx as g, createElementVNode as Q, createVNode as h, toDisplayString as y, isRef as zt, createElementBlock as p, Fragment as X, renderList as ee, createTextVNode as D, computed as N, normalizeStyle as Ce, createCommentVNode as P, renderSlot as le, withDirectives as Pe, normalizeClass as fe, vShow as Vt, nextTick as te, withModifiers as Be, watch as Ae, onMounted as Ft, mergeProps as Xt } from "vue";
3
3
  import { storeToRefs as Ht } from "pinia";
4
4
  import { ElDrawer as xt, ElSwitch as Ot, ElRadioGroup as pe, ElRadio as Qe, ElImage as Kt, ElIcon as L, ElButton as V, ElDialog as mt, ElUpload as Mt, vLoading as De, ElMessage as H, ElForm as vt, ElFormItem as Rt, ElMessageBox as Ke, ElLoading as je, ElPagination as ht, ElTable as It, ElTableColumn as ge, ElSelect as Gt, ElOption as Nt, ElCheckbox as Jt } from "element-plus";
@@ -259,7 +259,7 @@ const ga = { class: "jn_globalSetting_item" }, ma = { class: "jn_globalSetting_i
259
259
  })
260
260
  ], 8, Ea))), 128));
261
261
  }
262
- }), kr = /* @__PURE__ */ Y(Qa, [["__scopeId", "data-v-a380f9e9"]]), ja = /* @__PURE__ */ x({
262
+ }), kr = /* @__PURE__ */ Y(Qa, [["__scopeId", "data-v-00dee50f"]]), ja = /* @__PURE__ */ x({
263
263
  __name: "JnDialog",
264
264
  props: {
265
265
  title: { default: "" },
@@ -506,7 +506,7 @@ const ga = { class: "jn_globalSetting_item" }, ma = { class: "jn_globalSetting_i
506
506
  ]) : P("", !0)
507
507
  ]));
508
508
  }
509
- }), dn = /* @__PURE__ */ Y(An, [["__scopeId", "data-v-0d09f340"]]), fn = /* @__PURE__ */ x({
509
+ }), dn = /* @__PURE__ */ Y(An, [["__scopeId", "data-v-40647e72"]]), fn = /* @__PURE__ */ x({
510
510
  __name: "JnImportAndExport",
511
511
  props: {
512
512
  importTemplateApi: { type: Function },
@@ -1502,7 +1502,7 @@ const sr = /* @__PURE__ */ x({
1502
1502
  _: 3
1503
1503
  }, 8, ["class", "row-key", "data", "height", "showScrollbar-always-on", "onMousedown"]));
1504
1504
  }
1505
- }), Tr = /* @__PURE__ */ Y(sr, [["__scopeId", "data-v-252ccc6e"]]), ur = { key: 0 }, cr = { style: { float: "left" } }, Ar = {
1505
+ }), Tr = /* @__PURE__ */ Y(sr, [["__scopeId", "data-v-080c5c53"]]), ur = { key: 0 }, cr = { style: { float: "left" } }, Ar = {
1506
1506
  key: 0,
1507
1507
  style: { float: "right", color: "var(--el-text-color-secondary)", "font-size": "0.8em", "padding-left": "2em" }
1508
1508
  }, dr = { key: 0 }, fr = { class: "jn_dialog_header" }, gr = { style: { color: "#999", "font-size": "0.8em" } }, mr = {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jnrs/vue-core",
3
- "version": "1.2.25",
4
- "description": "巨能前端工程化开发,Vue 专用核心功能包。",
3
+ "version": "1.2.27",
4
+ "description": "巨能(JNRS)前端工程化开发,Vue 专用核心功能包。",
5
5
  "keywords": [
6
6
  "jnrs",
7
7
  "vue-core"
@@ -60,7 +60,7 @@
60
60
  "vue": "^3.5.22",
61
61
  "vue-i18n": "^11.2.8",
62
62
  "vue-router": "^4.5.1",
63
- "@jnrs/shared": "1.1.31"
63
+ "@jnrs/shared": "1.1.34"
64
64
  },
65
65
  "devDependencies": {
66
66
  "@vitejs/plugin-vue": "^6.0.1",