@jnrs/vue-core 1.2.30 → 1.2.32

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/CHANGELOG.md CHANGED
@@ -1,6 +1,18 @@
1
1
  # 发版日志
2
2
 
3
- ## [1.2.30] - 2026-07-27 【latest】
3
+ ## [1.2.32] - 2026-07-27 【latest】
4
+
5
+ ### Fixed
6
+
7
+ - `JnDateQuery`:修复 `switcher-style="select"` 时切换时间类型导致 `modelValue` 错乱的问题,将 `v-model="currentType"` 改为 `:model-value="currentType"` + `@change` 手动处理,确保类型切换逻辑通过 `handleTypeChange` 统一处理,避免 v-model 提前更新跳过值转换
8
+
9
+ ## [1.2.31] - 2026-07-27
10
+
11
+ ### Fixed
12
+
13
+ - `JnDateQuery`:修复 `switcher-style="select"` 时切换时间类型导致 `modelValue` 错乱的问题(初始修复使用 `:value` 导致显示为空,已更正为 `:model-value`)
14
+
15
+ ## [1.2.30] - 2026-07-27
4
16
 
5
17
  ### Fixed
6
18
 
@@ -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-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-1634df13]{display:flex;align-items:center;font-size:0}.jn_selectTemplate .jn_select[data-v-1634df13]{flex:1;right:-1px;z-index:1}.jn_selectTemplate .jn_select[data-v-1634df13] .el-select__wrapper{border-top-right-radius:0;border-bottom-right-radius:0}.jn_selectTemplate .jn_select_button[data-v-1634df13]{border-radius:0 3px 3px 0}.jn_selectTemplate .jn_select_button[data-v-1634df13]:hover{z-index:1}.t_select_button_only[data-v-1634df13]{margin-left:0;border-top-left-radius:3px;border-bottom-left-radius:3px}.jn_dialog_header[data-v-1634df13]{display:flex;align-items:center}[data-v-1634df13] .el-input__validateIcon{display:none}[data-v-1634df13] th .el-checkbox--small{display:none!important}[data-v-1634df13] .el-table__row{cursor:pointer}.tableIsSingle[data-v-1634df13] .el-checkbox__inner{border-radius:50%}.jn-date-query[data-v-4663860e]{display:flex;align-items:center;gap:12px}.jn-date-query__main[data-v-4663860e]{display:flex;align-items:center;gap:8px}.jn-date-query__switcher[data-v-4663860e]{display:flex;align-items:center}")),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-1634df13]{display:flex;align-items:center;font-size:0}.jn_selectTemplate .jn_select[data-v-1634df13]{flex:1;right:-1px;z-index:1}.jn_selectTemplate .jn_select[data-v-1634df13] .el-select__wrapper{border-top-right-radius:0;border-bottom-right-radius:0}.jn_selectTemplate .jn_select_button[data-v-1634df13]{border-radius:0 3px 3px 0}.jn_selectTemplate .jn_select_button[data-v-1634df13]:hover{z-index:1}.t_select_button_only[data-v-1634df13]{margin-left:0;border-top-left-radius:3px;border-bottom-left-radius:3px}.jn_dialog_header[data-v-1634df13]{display:flex;align-items:center}[data-v-1634df13] .el-input__validateIcon{display:none}[data-v-1634df13] th .el-checkbox--small{display:none!important}[data-v-1634df13] .el-table__row{cursor:pointer}.tableIsSingle[data-v-1634df13] .el-checkbox__inner{border-radius:50%}.jn-date-query[data-v-66564241]{display:flex;align-items:center;gap:12px}.jn-date-query__main[data-v-66564241]{display:flex;align-items:center;gap:8px}.jn-date-query__switcher[data-v-66564241]{display:flex;align-items:center}")),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}})();
2
2
  import { defineComponent as N, ref as L, createBlock as z, openBlock as f, unref as l, withCtx as m, createElementVNode as D, createVNode as b, toDisplayString as C, isRef as Rt, createElementBlock as w, Fragment as O, renderList as Z, createTextVNode as V, computed as H, normalizeStyle as ke, createCommentVNode as U, renderSlot as Ae, withDirectives as Le, normalizeClass as be, vShow as Gt, nextTick as se, withModifiers as Ve, watch as ue, onMounted as Nt, mergeProps as Jt } from "vue";
3
3
  import { storeToRefs as qt } from "pinia";
4
4
  import { ElDrawer as Yt, ElSwitch as Zt, ElRadioGroup as je, ElRadio as Pe, ElImage as Wt, ElIcon as M, ElButton as F, ElDialog as Et, ElUpload as $t, vLoading as Fe, ElMessage as q, ElForm as pt, ElFormItem as _t, ElMessageBox as qe, ElLoading as Be, ElPagination as wt, ElTable as kt, ElTableColumn as Ie, ElSelect as Qt, ElOption as St, ElCheckbox as ea, ElDatePicker as ta, ElButtonGroup as Ye } from "element-plus";
@@ -375,7 +375,7 @@ const wa = { class: "jn_globalSetting_item" }, ka = { class: "jn_globalSetting_i
375
375
  o(e.autoUploadApi?.(s.file)), d(new Error("上传失败"));
376
376
  }), c = (s) => {
377
377
  e.downloadFileFn?.(s);
378
- }, S = (s) => {
378
+ }, Q = (s) => {
379
379
  const o = e.modelValue, d = e.modelValue?.findIndex((k) => {
380
380
  if ("id" in s && "id" in k)
381
381
  return k.id === s.id;
@@ -463,7 +463,7 @@ const wa = { class: "jn_globalSetting_item" }, ka = { class: "jn_globalSetting_i
463
463
  ], 8, An)) : U("", !0),
464
464
  D("span", {
465
465
  class: "fileLis_item_btn fileLis_item_btn_danger",
466
- onClick: (P) => S(d)
466
+ onClick: (P) => Q(d)
467
467
  }, [
468
468
  b(l(M), null, {
469
469
  default: m(() => [
@@ -488,7 +488,7 @@ const wa = { class: "jn_globalSetting_item" }, ka = { class: "jn_globalSetting_i
488
488
  D("div", bn, [
489
489
  D("span", {
490
490
  class: "fileLis_item_btn fileLis_item_btn_danger",
491
- onClick: (P) => S(d)
491
+ onClick: (P) => Q(d)
492
492
  }, [
493
493
  b(l(M), null, {
494
494
  default: m(() => [
@@ -610,7 +610,7 @@ const wa = { class: "jn_globalSetting_item" }, ka = { class: "jn_globalSetting_i
610
610
  } finally {
611
611
  s.close();
612
612
  }
613
- }, S = () => {
613
+ }, Q = () => {
614
614
  if (!e.importApi)
615
615
  return q.error(n("@jnrs/vue-core.components.JnImportAndExport.noImportApi")), !1;
616
616
  A.value?.validate(async (s) => {
@@ -686,7 +686,7 @@ const wa = { class: "jn_globalSetting_item" }, ka = { class: "jn_globalSetting_i
686
686
  b(l(F), {
687
687
  type: "success",
688
688
  icon: "Select",
689
- onClick: S
689
+ onClick: Q
690
690
  }, {
691
691
  default: m(() => [
692
692
  V(C(l(n)("@jnrs/vue-core.components.JnImportAndExport.submit")), 1)
@@ -1263,9 +1263,9 @@ function ye(e, t, a, n, u, i) {
1263
1263
  }) : Ai(e) && e.forEach(function(s, o) {
1264
1264
  A.set(o, ye(s, t, a, o, e, i));
1265
1265
  });
1266
- var c = xe, S = h ? void 0 : c(e);
1267
- return Mn(S || e, function(s, o) {
1268
- S && (o = s, s = e[o]), Zn(A, o, ye(s, t, a, o, e, i));
1266
+ var c = xe, Q = h ? void 0 : c(e);
1267
+ return Mn(Q || e, function(s, o) {
1268
+ Q && (o = s, s = e[o]), Zn(A, o, ye(s, t, a, o, e, i));
1269
1269
  }), A;
1270
1270
  }
1271
1271
  var xi = 1, Hi = 4;
@@ -1303,7 +1303,7 @@ function Ot(e, t, a, n, u, i) {
1303
1303
  var r = i.get(e), g = i.get(t);
1304
1304
  if (r && g)
1305
1305
  return r == t && g == e;
1306
- var c = -1, S = !0, s = a & Ji ? new we() : void 0;
1306
+ var c = -1, Q = !0, s = a & Ji ? new we() : void 0;
1307
1307
  for (i.set(e, t), i.set(t, e); ++c < h; ) {
1308
1308
  var o = e[c], d = t[c];
1309
1309
  if (n)
@@ -1311,7 +1311,7 @@ function Ot(e, t, a, n, u, i) {
1311
1311
  if (k !== void 0) {
1312
1312
  if (k)
1313
1313
  continue;
1314
- S = !1;
1314
+ Q = !1;
1315
1315
  break;
1316
1316
  }
1317
1317
  if (s) {
@@ -1319,15 +1319,15 @@ function Ot(e, t, a, n, u, i) {
1319
1319
  if (!Gi(s, X) && (o === P || u(o, P, a, n, i)))
1320
1320
  return s.push(X);
1321
1321
  })) {
1322
- S = !1;
1322
+ Q = !1;
1323
1323
  break;
1324
1324
  }
1325
1325
  } else if (!(o === d || u(o, d, a, n, i))) {
1326
- S = !1;
1326
+ Q = !1;
1327
1327
  break;
1328
1328
  }
1329
1329
  }
1330
- return i.delete(e), i.delete(t), S;
1330
+ return i.delete(e), i.delete(t), Q;
1331
1331
  }
1332
1332
  function qi(e) {
1333
1333
  var t = -1, a = Array(e.size);
@@ -1383,8 +1383,8 @@ function fr(e, t, a, n, u, i) {
1383
1383
  if (y != g && !A)
1384
1384
  return !1;
1385
1385
  for (var c = y; c--; ) {
1386
- var S = h[c];
1387
- if (!(A ? S in t : Ar.call(t, S)))
1386
+ var Q = h[c];
1387
+ if (!(A ? Q in t : Ar.call(t, Q)))
1388
1388
  return !1;
1389
1389
  }
1390
1390
  var s = i.get(e), o = i.get(t);
@@ -1393,15 +1393,15 @@ function fr(e, t, a, n, u, i) {
1393
1393
  var d = !0;
1394
1394
  i.set(e, t), i.set(t, e);
1395
1395
  for (var k = A; ++c < y; ) {
1396
- S = h[c];
1397
- var P = e[S], X = t[S];
1396
+ Q = h[c];
1397
+ var P = e[Q], X = t[Q];
1398
1398
  if (n)
1399
- var ee = A ? n(X, P, S, t, e, i) : n(P, X, S, e, t, i);
1399
+ var ee = A ? n(X, P, Q, t, e, i) : n(P, X, Q, e, t, i);
1400
1400
  if (!(ee === void 0 ? P === X || u(P, X, a, n, i) : ee)) {
1401
1401
  d = !1;
1402
1402
  break;
1403
1403
  }
1404
- k || (k = S == "constructor");
1404
+ k || (k = Q == "constructor");
1405
1405
  }
1406
1406
  if (d && !k) {
1407
1407
  var x = e.constructor, K = t.constructor;
@@ -1413,13 +1413,13 @@ var gr = 1, bt = "[object Arguments]", It = "[object Array]", he = "[object Obje
1413
1413
  function vr(e, t, a, n, u, i) {
1414
1414
  var A = fe(e), h = fe(t), y = A ? It : G(e), r = h ? It : G(t);
1415
1415
  y = y == bt ? he : y, r = r == bt ? he : r;
1416
- var g = y == he, c = r == he, S = y == r;
1417
- if (S && Ee(e)) {
1416
+ var g = y == he, c = r == he, Q = y == r;
1417
+ if (Q && Ee(e)) {
1418
1418
  if (!Ee(t))
1419
1419
  return !1;
1420
1420
  A = !0, g = !1;
1421
1421
  }
1422
- if (S && !g)
1422
+ if (Q && !g)
1423
1423
  return i || (i = new W()), A || Lt(e) ? Ot(e, t, a, n, u, i) : ur(e, t, y, a, n, u, i);
1424
1424
  if (!(a & gr)) {
1425
1425
  var s = g && Ct.call(e, "__wrapped__"), o = c && Ct.call(t, "__wrapped__");
@@ -1428,7 +1428,7 @@ function vr(e, t, a, n, u, i) {
1428
1428
  return i || (i = new W()), u(d, k, a, n, i);
1429
1429
  }
1430
1430
  }
1431
- return S ? (i || (i = new W()), fr(e, t, a, n, u, i)) : !1;
1431
+ return Q ? (i || (i = new W()), fr(e, t, a, n, u, i)) : !1;
1432
1432
  }
1433
1433
  function Kt(e, t, a, n, u) {
1434
1434
  return e === t ? !0 : e == null || t == null || !ne(e) && !ne(t) ? e !== e && t !== t : vr(e, t, a, n, Kt, u);
@@ -1546,7 +1546,7 @@ const yr = /* @__PURE__ */ N({
1546
1546
  set: (I) => {
1547
1547
  a("update:modelValue", I || (s.value ? "" : []));
1548
1548
  }
1549
- }), S = H(() => typeof e.modelValue == "string" || typeof e.modelValue == "number" ? 0 : s.value ? e.modelValue && Object.hasOwn(e.modelValue, e.keyValue.id) ? 1 : 0 : e.modelValue ? e.modelValue.length : 0), s = H(() => e.limit === 1);
1549
+ }), Q = H(() => typeof e.modelValue == "string" || typeof e.modelValue == "number" ? 0 : s.value ? e.modelValue && Object.hasOwn(e.modelValue, e.keyValue.id) ? 1 : 0 : e.modelValue ? e.modelValue.length : 0), s = H(() => e.limit === 1);
1550
1550
  ue(
1551
1551
  () => e.modelValue,
1552
1552
  (I) => {
@@ -1673,7 +1673,7 @@ const yr = /* @__PURE__ */ N({
1673
1673
  }, {
1674
1674
  default: m(() => [
1675
1675
  V(C(e.buttonDialogText) + " ", 1),
1676
- e.limit !== 1 ? (f(), w("span", br, "(" + C(S.value) + "/" + C(e.limit) + ")", 1)) : U("", !0)
1676
+ e.limit !== 1 ? (f(), w("span", br, "(" + C(Q.value) + "/" + C(e.limit) + ")", 1)) : U("", !0)
1677
1677
  ]),
1678
1678
  _: 1
1679
1679
  }, 8, ["class", "plain", "size", "loading"])) : Le((f(), w("div", {
@@ -1738,7 +1738,7 @@ const yr = /* @__PURE__ */ N({
1738
1738
  }, {
1739
1739
  default: m(() => [
1740
1740
  V(C(e.buttonDialogText) + " ", 1),
1741
- e.limit !== 1 ? (f(), w("span", Er, "(" + C(S.value) + "/" + C(e.limit) + ")", 1)) : U("", !0)
1741
+ e.limit !== 1 ? (f(), w("span", Er, "(" + C(Q.value) + "/" + C(e.limit) + ")", 1)) : U("", !0)
1742
1742
  ]),
1743
1743
  _: 1
1744
1744
  }, 8, ["plain", "size"]))
@@ -1901,36 +1901,36 @@ const yr = /* @__PURE__ */ N({
1901
1901
  emits: ["update:modelValue", "change", "type-change"],
1902
1902
  setup(e, { emit: t }) {
1903
1903
  function a(v) {
1904
- const Q = v.getFullYear(), p = String(v.getMonth() + 1).padStart(2, "0"), Y = String(v.getDate()).padStart(2, "0");
1905
- return `${Q}-${p}-${Y}`;
1904
+ const S = v.getFullYear(), p = String(v.getMonth() + 1).padStart(2, "0"), Y = String(v.getDate()).padStart(2, "0");
1905
+ return `${S}-${p}-${Y}`;
1906
1906
  }
1907
1907
  function n(v) {
1908
1908
  return new Date(v.replace(/\//g, "-"));
1909
1909
  }
1910
- function u(v, Q) {
1910
+ function u(v, S) {
1911
1911
  const p = new Date(v);
1912
- return p.setDate(p.getDate() + Q), p;
1912
+ return p.setDate(p.getDate() + S), p;
1913
1913
  }
1914
- function i(v, Q) {
1914
+ function i(v, S) {
1915
1915
  const p = new Date(v);
1916
- return p.setMonth(p.getMonth() + Q), p;
1916
+ return p.setMonth(p.getMonth() + S), p;
1917
1917
  }
1918
- function A(v, Q) {
1918
+ function A(v, S) {
1919
1919
  const p = new Date(v);
1920
- return p.setFullYear(p.getFullYear() + Q), p;
1920
+ return p.setFullYear(p.getFullYear() + S), p;
1921
1921
  }
1922
1922
  function h(v) {
1923
- const Q = new Date(v);
1924
- return Q.setDate(Q.getDate() - Q.getDay()), Q;
1923
+ const S = new Date(v);
1924
+ return S.setDate(S.getDate() - S.getDay()), S;
1925
1925
  }
1926
1926
  function y(v) {
1927
1927
  return u(h(v), 6);
1928
1928
  }
1929
- const r = e, g = t, c = L(r.type), S = L(r.modelValue);
1929
+ const r = e, g = t, c = L(r.type), Q = L(r.modelValue);
1930
1930
  ue(
1931
1931
  () => r.modelValue,
1932
1932
  (v) => {
1933
- S.value = v;
1933
+ Q.value = v;
1934
1934
  }
1935
1935
  ), ue(
1936
1936
  () => r.type,
@@ -1955,31 +1955,31 @@ const yr = /* @__PURE__ */ N({
1955
1955
  daterange: "任意区间"
1956
1956
  }, k = H(() => r.typeOptions.map((v) => ({ label: d[v], value: v })));
1957
1957
  function P(v) {
1958
- S.value = v, g("update:modelValue", v), g("change", v, c.value);
1958
+ Q.value = v, g("update:modelValue", v), g("change", v, c.value);
1959
1959
  }
1960
1960
  function X(v) {
1961
1961
  if (v === c.value) return;
1962
1962
  c.value = v;
1963
- const Q = S.value;
1963
+ const S = Q.value;
1964
1964
  let p;
1965
1965
  if (v === "week" || v === "daterange")
1966
- if (Array.isArray(Q))
1967
- p = Q;
1966
+ if (Array.isArray(S))
1967
+ p = S;
1968
1968
  else {
1969
- const Y = Q ? n(Q) : /* @__PURE__ */ new Date();
1969
+ const Y = S ? n(S) : /* @__PURE__ */ new Date();
1970
1970
  v === "week" ? p = [a(h(Y)), a(y(Y))] : p = [a(Y), a(Y)];
1971
1971
  }
1972
1972
  else
1973
- Array.isArray(Q) ? p = Q[0] || a(/* @__PURE__ */ new Date()) : p = Q || a(/* @__PURE__ */ new Date());
1973
+ Array.isArray(S) ? p = S[0] || a(/* @__PURE__ */ new Date()) : p = S || a(/* @__PURE__ */ new Date());
1974
1974
  P(p), g("type-change", v);
1975
1975
  }
1976
1976
  function ee() {
1977
- const v = S.value;
1977
+ const v = Q.value;
1978
1978
  return Array.isArray(v) ? v[0] ? n(v[0]) : /* @__PURE__ */ new Date() : v ? n(v) : /* @__PURE__ */ new Date();
1979
1979
  }
1980
1980
  function x(v) {
1981
- const Q = v === 0 ? /* @__PURE__ */ new Date() : ee();
1982
- P(a(u(Q, v)));
1981
+ const S = v === 0 ? /* @__PURE__ */ new Date() : ee();
1982
+ P(a(u(S, v)));
1983
1983
  }
1984
1984
  function K(v) {
1985
1985
  if (v === 0) {
@@ -1987,21 +1987,21 @@ const yr = /* @__PURE__ */ N({
1987
1987
  P([a(h(Je)), a(y(Je))]);
1988
1988
  return;
1989
1989
  }
1990
- const Q = S.value, p = n(Q[0]), Y = n(Q[1]);
1990
+ const S = Q.value, p = n(S[0]), Y = n(S[1]);
1991
1991
  P([a(u(p, v)), a(u(Y, v))]);
1992
1992
  }
1993
1993
  function ae(v) {
1994
1994
  if (v === 0) {
1995
- const Q = /* @__PURE__ */ new Date();
1996
- P(a(new Date(Q.getFullYear(), Q.getMonth(), 1)));
1995
+ const S = /* @__PURE__ */ new Date();
1996
+ P(a(new Date(S.getFullYear(), S.getMonth(), 1)));
1997
1997
  return;
1998
1998
  }
1999
1999
  P(a(i(ee(), v)));
2000
2000
  }
2001
2001
  function J(v) {
2002
2002
  if (v === 0) {
2003
- const Q = /* @__PURE__ */ new Date();
2004
- P(a(new Date(Q.getFullYear(), 0, 1)));
2003
+ const S = /* @__PURE__ */ new Date();
2004
+ P(a(new Date(S.getFullYear(), 0, 1)));
2005
2005
  return;
2006
2006
  }
2007
2007
  P(a(A(ee(), v)));
@@ -2070,7 +2070,7 @@ const yr = /* @__PURE__ */ N({
2070
2070
  break;
2071
2071
  }
2072
2072
  }
2073
- return (v, Q) => (f(), w("div", Dr, [
2073
+ return (v, S) => (f(), w("div", Dr, [
2074
2074
  D("div", jr, [
2075
2075
  E.value ? (f(), z(l(F), {
2076
2076
  key: 0,
@@ -2079,8 +2079,8 @@ const yr = /* @__PURE__ */ N({
2079
2079
  onClick: R
2080
2080
  }, null, 8, ["icon", "size"])) : U("", !0),
2081
2081
  b(l(ta), {
2082
- modelValue: S.value,
2083
- "onUpdate:modelValue": Q[0] || (Q[0] = (p) => S.value = p),
2082
+ modelValue: Q.value,
2083
+ "onUpdate:modelValue": S[0] || (S[0] = (p) => Q.value = p),
2084
2084
  type: s.value,
2085
2085
  placeholder: e.placeholder,
2086
2086
  "start-placeholder": e.startPlaceholder,
@@ -2118,11 +2118,10 @@ const yr = /* @__PURE__ */ N({
2118
2118
  e.showTypeSwitcher ? (f(), w("div", Pr, [
2119
2119
  e.switcherStyle === "select" ? (f(), z(l(Qt), {
2120
2120
  key: 0,
2121
- modelValue: c.value,
2122
- "onUpdate:modelValue": Q[1] || (Q[1] = (p) => c.value = p),
2121
+ "model-value": c.value,
2123
2122
  size: e.size,
2124
2123
  style: { width: "120px" },
2125
- onChange: Q[2] || (Q[2] = (p) => X(p))
2124
+ onChange: S[1] || (S[1] = (p) => X(p))
2126
2125
  }, {
2127
2126
  default: m(() => [
2128
2127
  (f(!0), w(O, null, Z(k.value, (p) => (f(), z(l(St), {
@@ -2132,7 +2131,7 @@ const yr = /* @__PURE__ */ N({
2132
2131
  }, null, 8, ["label", "value"]))), 128))
2133
2132
  ]),
2134
2133
  _: 1
2135
- }, 8, ["modelValue", "size"])) : (f(), z(l(Ye), { key: 1 }, {
2134
+ }, 8, ["model-value", "size"])) : (f(), z(l(Ye), { key: 1 }, {
2136
2135
  default: m(() => [
2137
2136
  (f(!0), w(O, null, Z(k.value, (p) => (f(), z(l(F), {
2138
2137
  key: p.value,
@@ -2151,7 +2150,7 @@ const yr = /* @__PURE__ */ N({
2151
2150
  ])) : U("", !0)
2152
2151
  ]));
2153
2152
  }
2154
- }), qr = /* @__PURE__ */ te(Br, [["__scopeId", "data-v-4663860e"]]);
2153
+ }), qr = /* @__PURE__ */ te(Br, [["__scopeId", "data-v-66564241"]]);
2155
2154
  export {
2156
2155
  Hr as GlobalSetting,
2157
2156
  qr as JnDateQuery,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jnrs/vue-core",
3
- "version": "1.2.30",
3
+ "version": "1.2.32",
4
4
  "description": "巨能(JNRS)前端工程化开发,Vue 专用核心功能包。",
5
5
  "keywords": [
6
6
  "jnrs",