@bsgoal/common 1.8.1 → 1.8.3

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/dist/index.mjs CHANGED
@@ -9,7 +9,7 @@ var xe = (e, s, a) => s in e ? ke(e, s, { enumerable: !0, configurable: !0, writ
9
9
  De.call(s, a) && xe(e, a, s[a]);
10
10
  return e;
11
11
  };
12
- import { computed as K, resolveComponent as g, openBlock as o, createElementBlock as p, createVNode as B, withCtx as A, renderSlot as J, createTextVNode as H, toDisplayString as z, ref as w, watchEffect as fe, unref as c, createElementVNode as D, withDirectives as X, createBlock as y, Fragment as j, renderList as W, createCommentVNode as M, nextTick as $e, inject as Ve, watch as _e, resolveDirective as Oe, normalizeClass as me, vShow as le, isProxy as Ie, toRaw as Fe, provide as Re, useSlots as Ce, createSlots as Ue, normalizeStyle as Le } from "vue";
12
+ import { computed as X, resolveComponent as g, openBlock as o, createElementBlock as p, createVNode as B, withCtx as A, renderSlot as J, createTextVNode as H, toDisplayString as z, ref as w, watchEffect as fe, unref as c, createElementVNode as D, withDirectives as Q, createBlock as y, Fragment as j, renderList as W, createCommentVNode as M, nextTick as Ve, inject as $e, watch as _e, resolveDirective as Oe, normalizeClass as me, vShow as le, isProxy as Ie, toRaw as Fe, provide as Re, useSlots as Ce, createSlots as Ue, normalizeStyle as Le } from "vue";
13
13
  import { ElMessage as Pe } from "element-plus";
14
14
  const l = {
15
15
  INPUT: "text",
@@ -38,8 +38,8 @@ const Ee = (e) => {
38
38
  const s = [], a = [], i = (u = []) => {
39
39
  const t = u.map((_) => _.width), d = Math.max(...t);
40
40
  u.forEach((_) => {
41
- const { labelEl: $ } = _;
42
- $.style.width = `${d}px`;
41
+ const { labelEl: V } = _;
42
+ V.style.width = `${d}px`;
43
43
  });
44
44
  }, r = () => {
45
45
  if (e) {
@@ -48,8 +48,8 @@ const Ee = (e) => {
48
48
  let t = 0;
49
49
  u.forEach((d, _) => {
50
50
  d.style.width = "initial", d.style.whiteSpace = "nowrap";
51
- const { x: $ = 0, width: N = 0 } = d.getBoundingClientRect(), S = { x: $, width: N, labelEl: d };
52
- _ === 0 && (t = $), $ === t ? s.push(S) : a.push(S);
51
+ const { x: V = 0, width: N = 0 } = d.getBoundingClientRect(), S = { x: V, width: N, labelEl: d };
52
+ _ === 0 && (t = V), V === t ? s.push(S) : a.push(S);
53
53
  });
54
54
  }
55
55
  }
@@ -126,12 +126,12 @@ const je = { class: "bsgoal-base-tooltip" }, ze = {
126
126
  }
127
127
  },
128
128
  setup(e) {
129
- const s = e, a = K(() => {
129
+ const s = e, a = X(() => {
130
130
  const { content: r = "", limit: u = 0, none: t = "" } = s;
131
131
  let d = r;
132
132
  const _ = r.length;
133
133
  return u && _ > u && (d = `${r.substring(0, u)}...`), d || t;
134
- }), i = K(() => {
134
+ }), i = X(() => {
135
135
  const { content: r = "", limit: u = 0 } = s;
136
136
  return r.length < u || !u;
137
137
  });
@@ -218,24 +218,33 @@ const Ge = { class: "bsgoal-base-form" }, Ye = { class: "base_form" }, He = { ke
218
218
  none: {
219
219
  type: [String],
220
220
  default: "无"
221
+ },
222
+ /**
223
+ * 绑定的 mdel
224
+ */
225
+ bindModel: {
226
+ type: [Object],
227
+ default: () => ({})
221
228
  }
222
229
  },
223
230
  emits: ["on-form", "on-clear", "on-change", "on-fold"],
224
231
  setup(e, { expose: s, emit: a }) {
225
- const i = e, r = w(null), u = be.align, t = w({});
232
+ const i = e, r = w(null), u = be.align, t = w(i.bindModel);
226
233
  fe(() => {
227
- const { configOptions: h, values: b } = i, x = c(h), V = c(b);
234
+ const { configOptions: h, values: b } = i, x = c(h), $ = c(b);
228
235
  x.forEach((C) => {
229
236
  const { value: E = "", prop: O = "", type: I = "" } = C;
230
- [l.INPUT, l.INPUT_TEXT_AREA].includes(I), t.value[O] = V[O] || E;
237
+ [l.INPUT, l.INPUT_TEXT_AREA].includes(I);
238
+ const U = c(t)[O];
239
+ console.log("bindValue", U), console.log("valuesModel[prop]", $[O]), t.value[O] = U || $[O] || E;
231
240
  });
232
241
  });
233
- const d = K(() => {
242
+ const d = X(() => {
234
243
  const { configOptions: h } = i;
235
- return c(h).map((V) => {
236
- let { rules: C = !1, label: E = "" } = V;
244
+ return c(h).map(($) => {
245
+ let { rules: C = !1, label: E = "" } = $;
237
246
  const O = { required: !0, message: `${E}不能为空`, trigger: "blur" };
238
- return C && (typeof C == "boolean" ? C = [O] : Array.isArray(C) ? C = [O, ...C] : C = [O, C]), V.rules = C, V;
247
+ return C && (typeof C == "boolean" ? C = [O] : Array.isArray(C) ? C = [O, ...C] : C = [O, C]), $.rules = C, $;
239
248
  });
240
249
  }), _ = (h = "", b = "", x = "") => {
241
250
  if (!x)
@@ -260,7 +269,7 @@ const Ge = { class: "bsgoal-base-form" }, Ye = { class: "base_form" }, He = { ke
260
269
  return ["开始月份", "结束月份"];
261
270
  }
262
271
  return x;
263
- }, $ = (h = "", b = "") => {
272
+ }, V = (h = "", b = "") => {
264
273
  if (!b)
265
274
  switch (h) {
266
275
  case l.WEEK:
@@ -284,11 +293,11 @@ const Ge = { class: "bsgoal-base-form" }, Ye = { class: "base_form" }, He = { ke
284
293
  return b;
285
294
  }, N = () => {
286
295
  const h = c(t), { configOptions: b } = i, x = c(b);
287
- for (const V of x) {
288
- const { type: C = "", range: E = [], prop: O = "" } = V;
296
+ for (const $ of x) {
297
+ const { type: C = "", range: E = [], prop: O = "" } = $;
289
298
  if (C.endsWith("range") && E && E.length === 2) {
290
- const { 0: I = "", 1: L = "" } = h[O], { 0: U = "", 1: G = "" } = E;
291
- h[U] = I, h[G] = L;
299
+ const { 0: I = "", 1: U = "" } = h[O], { 0: L = "", 1: G = "" } = E;
300
+ h[L] = I, h[G] = U;
292
301
  }
293
302
  }
294
303
  return a("on-form", h), h;
@@ -309,12 +318,12 @@ const Ge = { class: "bsgoal-base-form" }, Ye = { class: "base_form" }, He = { ke
309
318
  }) => {
310
319
  r.value.validate((b = !1, x = {}) => {
311
320
  if (b) {
312
- const V = N();
313
- h(V);
321
+ const $ = N();
322
+ h($);
314
323
  } else {
315
324
  h(!1);
316
- const V = Object.keys(x)[0], {
317
- [V]: {
325
+ const $ = Object.keys(x)[0], {
326
+ [$]: {
318
327
  0: { message: C = "" }
319
328
  }
320
329
  } = x;
@@ -323,10 +332,10 @@ const Ge = { class: "bsgoal-base-form" }, Ye = { class: "base_form" }, He = { ke
323
332
  });
324
333
  }
325
334
  }), (h, b) => {
326
- const x = g("el-input"), V = g("el-input-number"), C = g("el-radio"), E = g("el-radio-group"), O = g("el-option"), I = g("el-select"), L = g("el-slider"), U = g("el-switch"), G = g("el-date-picker"), F = g("el-time-picker"), Q = g("el-checkbox"), q = g("el-checkbox-group"), ne = g("el-form-item"), oe = g("el-col"), re = g("el-row"), ie = g("el-form");
335
+ const x = g("el-input"), $ = g("el-input-number"), C = g("el-radio"), E = g("el-radio-group"), O = g("el-option"), I = g("el-select"), U = g("el-slider"), L = g("el-switch"), G = g("el-date-picker"), F = g("el-time-picker"), Z = g("el-checkbox"), q = g("el-checkbox-group"), ne = g("el-form-item"), oe = g("el-col"), re = g("el-row"), ie = g("el-form");
327
336
  return o(), p("div", Ge, [
328
337
  D("div", Ye, [
329
- X((o(), y(ie, {
338
+ Q((o(), y(ie, {
330
339
  ref_key: "EL_FORM_REF",
331
340
  ref: r,
332
341
  "label-suffix": ":",
@@ -390,7 +399,7 @@ const Ge = { class: "bsgoal-base-form" }, Ye = { class: "base_form" }, He = { ke
390
399
  placeholder: _(m, P, f),
391
400
  onChange: (n) => k(m, T)
392
401
  }, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : M("", !0),
393
- m === c(l).INPUT_NUMBER ? (o(), y(V, {
402
+ m === c(l).INPUT_NUMBER ? (o(), y($, {
394
403
  key: 2,
395
404
  modelValue: h.num,
396
405
  "onUpdate:modelValue": b[0] || (b[0] = (n) => h.num = n),
@@ -405,8 +414,8 @@ const Ge = { class: "bsgoal-base-form" }, Ye = { class: "base_form" }, He = { ke
405
414
  onChange: (n) => k(m, T)
406
415
  }, {
407
416
  default: A(() => [
408
- (o(!0), p(j, null, W(ee, (n, Z) => (o(), y(C, {
409
- key: Z,
417
+ (o(!0), p(j, null, W(ee, (n, K) => (o(), y(C, {
418
+ key: K,
410
419
  label: n.value
411
420
  }, {
412
421
  default: A(() => [
@@ -425,15 +434,15 @@ const Ge = { class: "bsgoal-base-form" }, Ye = { class: "base_form" }, He = { ke
425
434
  onChange: (n) => k(m, T)
426
435
  }, {
427
436
  default: A(() => [
428
- (o(!0), p(j, null, W(ee, (n, Z) => (o(), y(O, {
429
- key: Z,
437
+ (o(!0), p(j, null, W(ee, (n, K) => (o(), y(O, {
438
+ key: K,
430
439
  label: n.label,
431
440
  value: n.value
432
441
  }, null, 8, ["label", "value"]))), 128))
433
442
  ]),
434
443
  _: 2
435
444
  }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : M("", !0),
436
- m === c(l).SLIDER ? (o(), y(L, {
445
+ m === c(l).SLIDER ? (o(), y(U, {
437
446
  key: 5,
438
447
  modelValue: t.value[T],
439
448
  "onUpdate:modelValue": (n) => t.value[T] = n,
@@ -441,7 +450,7 @@ const Ge = { class: "bsgoal-base-form" }, Ye = { class: "base_form" }, He = { ke
441
450
  max: ge,
442
451
  onChange: (n) => k(m, T)
443
452
  }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : M("", !0),
444
- m === c(l).SWITCH ? (o(), y(U, {
453
+ m === c(l).SWITCH ? (o(), y(L, {
445
454
  key: 6,
446
455
  modelValue: t.value[T],
447
456
  "onUpdate:modelValue": (n) => t.value[T] = n,
@@ -455,8 +464,8 @@ const Ge = { class: "bsgoal-base-form" }, Ye = { class: "base_form" }, He = { ke
455
464
  key: 7,
456
465
  modelValue: t.value[T],
457
466
  "onUpdate:modelValue": (n) => t.value[T] = n,
458
- format: $(m, te),
459
- "value-format": $(m, te),
467
+ format: V(m, te),
468
+ "value-format": V(m, te),
460
469
  type: m,
461
470
  placeholder: _(m, P, f),
462
471
  onChange: (n) => k(m, T)
@@ -470,7 +479,7 @@ const Ge = { class: "bsgoal-base-form" }, Ye = { class: "base_form" }, He = { ke
470
479
  modelValue: t.value[T],
471
480
  "onUpdate:modelValue": (n) => t.value[T] = n,
472
481
  type: m,
473
- "value-format": $(m, te),
482
+ "value-format": V(m, te),
474
483
  "start-placeholder": _(m, P, f)[0],
475
484
  "end-placeholder": _(m, P, f)[1],
476
485
  onChange: (n) => k(m, T)
@@ -480,7 +489,7 @@ const Ge = { class: "bsgoal-base-form" }, Ye = { class: "base_form" }, He = { ke
480
489
  modelValue: t.value[T],
481
490
  "onUpdate:modelValue": (n) => t.value[T] = n,
482
491
  "arrow-control": "",
483
- "value-format": $(m, te),
492
+ "value-format": V(m, te),
484
493
  placeholder: _(m, P, f),
485
494
  onChange: (n) => k(m, T)
486
495
  }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : M("", !0),
@@ -489,7 +498,7 @@ const Ge = { class: "bsgoal-base-form" }, Ye = { class: "base_form" }, He = { ke
489
498
  modelValue: t.value[T],
490
499
  "onUpdate:modelValue": (n) => t.value[T] = n,
491
500
  "is-range": "",
492
- "value-format": $(m, te),
501
+ "value-format": V(m, te),
493
502
  "start-placeholder": _(m, P, f)[0],
494
503
  "end-placeholder": _(m, P, f)[1],
495
504
  onChange: (n) => k(m, T)
@@ -501,8 +510,8 @@ const Ge = { class: "bsgoal-base-form" }, Ye = { class: "base_form" }, He = { ke
501
510
  onChange: (n) => k(m, T)
502
511
  }, {
503
512
  default: A(() => [
504
- (o(!0), p(j, null, W(ee, (n, Z) => (o(), y(Q, {
505
- key: Z,
513
+ (o(!0), p(j, null, W(ee, (n, K) => (o(), y(Z, {
514
+ key: K,
506
515
  label: n.value
507
516
  }, {
508
517
  default: A(() => [
@@ -754,7 +763,7 @@ const tt = { class: "bsgoal-base-table-pagination" }, at = { class: "base_table_
754
763
  background: "",
755
764
  layout: "total, sizes, prev, pager, next, jumper",
756
765
  "current-page": r.value,
757
- "onUpdate:currentPage": t[0] || (t[0] = ($) => r.value = $),
766
+ "onUpdate:currentPage": t[0] || (t[0] = (V) => r.value = V),
758
767
  "page-sizes": e.pageSizes,
759
768
  "page-size": e.pageSize,
760
769
  total: e.total,
@@ -799,7 +808,7 @@ const dt = /* @__PURE__ */ Be(st, [["render", it]]), _t = (e = null, { expressio
799
808
  const r = c(e);
800
809
  if (r) {
801
810
  const u = r.querySelector(".el-table");
802
- u && $e(() => {
811
+ u && Ve(() => {
803
812
  const { y: t = 0 } = u.getBoundingClientRect();
804
813
  let d = `calc(100vh - ${t + s}px)`;
805
814
  const _ = Number.parseInt(i);
@@ -951,15 +960,15 @@ const ft = { class: "bsgoal-base-table" }, vt = { class: "base_table" }, pt = {
951
960
  }
952
961
  },
953
962
  setup(e, { expose: s }) {
954
- const a = e, i = K(() => {
955
- const { configOptions: E = [], operation: O = !1, operationWidth: I = 0 } = a, L = c(E), U = [];
956
- return O && U.push({
963
+ const a = e, i = X(() => {
964
+ const { configOptions: E = [], operation: O = !1, operationWidth: I = 0 } = a, U = c(E), L = [];
965
+ return O && L.push({
957
966
  label: "操作",
958
967
  fixed: "right",
959
968
  prop: "operation",
960
969
  width: I
961
- }), [...L, ...U];
962
- }), r = w(null), u = Ve("transferFoldStatus");
970
+ }), [...U, ...L];
971
+ }), r = w(null), u = $e("transferFoldStatus");
963
972
  fe(() => {
964
973
  const { height: E } = a, O = u ? u.value : !1, I = c(a.expression);
965
974
  gt(E) || _t(r, { arg: O, expression: I, height: E });
@@ -969,9 +978,9 @@ const ft = { class: "bsgoal-base-table" }, vt = { class: "base_table" }, pt = {
969
978
  pageSize: "pageSize",
970
979
  rows: "rows",
971
980
  total: "total"
972
- }, t), _ = w(1), $ = w(10), N = w(0), S = w({}), k = w(a.loading), R = w(), h = w({}), b = () => {
973
- const { fetch: E, call: O, hasPage: I } = a, L = S.value, U = _.value, G = $.value, F = pe({}, L);
974
- I && (F[d.currentPage] = U, F[d.pageSize] = G), ye(E(F), O, k, h);
981
+ }, t), _ = w(1), V = w(10), N = w(0), S = w({}), k = w(a.loading), R = w(), h = w({}), b = () => {
982
+ const { fetch: E, call: O, hasPage: I } = a, U = S.value, L = _.value, G = V.value, F = pe({}, U);
983
+ I && (F[d.currentPage] = L, F[d.pageSize] = G), ye(E(F), O, k, h);
975
984
  };
976
985
  fe(() => {
977
986
  R.value = a.data;
@@ -980,17 +989,17 @@ const ft = { class: "bsgoal-base-table" }, vt = { class: "base_table" }, pt = {
980
989
  });
981
990
  const x = (E = {}) => {
982
991
  S.value = E, _.value = 1, b();
983
- }, V = (E = 1) => {
992
+ }, $ = (E = 1) => {
984
993
  _.value = E;
985
994
  }, C = (E = 10) => {
986
- $.value = E;
995
+ V.value = E;
987
996
  };
988
- return _e([_, $], () => {
997
+ return _e([_, V], () => {
989
998
  b();
990
999
  }), s({
991
1000
  refreshList: x
992
1001
  }), (E, O) => {
993
- const I = g("el-table-column"), L = g("el-table"), U = Oe("loading");
1002
+ const I = g("el-table-column"), U = g("el-table"), L = Oe("loading");
994
1003
  return o(), p("div", ft, [
995
1004
  D("div", vt, [
996
1005
  E.$slots.menu ? (o(), p("div", pt, [
@@ -1000,7 +1009,7 @@ const ft = { class: "bsgoal-base-table" }, vt = { class: "base_table" }, pt = {
1000
1009
  ref_key: "EL_TABLE_WRAP_REF",
1001
1010
  ref: r
1002
1011
  }, [
1003
- X((o(), y(L, {
1012
+ Q((o(), y(U, {
1004
1013
  stripe: "",
1005
1014
  border: "",
1006
1015
  "highlight-current-row": "",
@@ -1026,7 +1035,7 @@ const ft = { class: "bsgoal-base-table" }, vt = { class: "base_table" }, pt = {
1026
1035
  (o(!0), p(j, null, W(i.value, ({
1027
1036
  prop: G = "",
1028
1037
  label: F = "",
1029
- align: Q = "center",
1038
+ align: Z = "center",
1030
1039
  width: q = "",
1031
1040
  fixed: ne = !1,
1032
1041
  tooltip: oe = !1,
@@ -1034,7 +1043,7 @@ const ft = { class: "bsgoal-base-table" }, vt = { class: "base_table" }, pt = {
1034
1043
  } = {}, ie) => (o(), y(I, {
1035
1044
  key: ie,
1036
1045
  label: F,
1037
- align: Q,
1046
+ align: Z,
1038
1047
  width: q,
1039
1048
  fixed: ne,
1040
1049
  "min-width": `${F.length * 14 + 24}px`
@@ -1053,13 +1062,13 @@ const ft = { class: "bsgoal-base-table" }, vt = { class: "base_table" }, pt = {
1053
1062
  ]),
1054
1063
  _: 3
1055
1064
  }, 8, ["data", "header-cell-style"])), [
1056
- [U, k.value]
1065
+ [L, k.value]
1057
1066
  ])
1058
1067
  ], 512),
1059
1068
  e.hasPage ? (o(), y(ot, {
1060
1069
  key: 1,
1061
1070
  total: N.value,
1062
- onOnCurrentChange: V,
1071
+ onOnCurrentChange: $,
1063
1072
  onOnSizeChange: C
1064
1073
  }, null, 8, ["total"])) : M("", !0)
1065
1074
  ])
@@ -1115,7 +1124,7 @@ var ue = (e, s) => {
1115
1124
  function xt(e, s, a, i, r, u) {
1116
1125
  return o(), p("svg", yt, Tt);
1117
1126
  }
1118
- var $t = /* @__PURE__ */ ue(bt, [["render", xt], ["__file", "arrow-down.vue"]]), Vt = {
1127
+ var Vt = /* @__PURE__ */ ue(bt, [["render", xt], ["__file", "arrow-down.vue"]]), $t = {
1119
1128
  name: "ArrowLeft"
1120
1129
  }, Ct = {
1121
1130
  xmlns: "http://www.w3.org/2000/svg",
@@ -1135,7 +1144,7 @@ var $t = /* @__PURE__ */ ue(bt, [["render", xt], ["__file", "arrow-down.vue"]]),
1135
1144
  function Nt(e, s, a, i, r, u) {
1136
1145
  return o(), p("svg", Ct, Bt);
1137
1146
  }
1138
- var wt = /* @__PURE__ */ ue(Vt, [["render", Nt], ["__file", "arrow-left.vue"]]), kt = {
1147
+ var wt = /* @__PURE__ */ ue($t, [["render", Nt], ["__file", "arrow-left.vue"]]), kt = {
1139
1148
  name: "ArrowRight"
1140
1149
  }, St = {
1141
1150
  xmlns: "http://www.w3.org/2000/svg",
@@ -1284,10 +1293,10 @@ const ua = { class: "bsgoal-base-search-operation" }, ca = {
1284
1293
  H(z(a.value ? "收起" : "展开"), 1),
1285
1294
  B(d, { color: "#409EFC" }, {
1286
1295
  default: A(() => [
1287
- X(B(c(zt), null, null, 512), [
1296
+ Q(B(c(zt), null, null, 512), [
1288
1297
  [le, a.value]
1289
1298
  ]),
1290
- X(B(c($t), null, null, 512), [
1299
+ Q(B(c(Vt), null, null, 512), [
1291
1300
  [le, !a.value]
1292
1301
  ])
1293
1302
  ]),
@@ -1408,17 +1417,17 @@ const ma = { class: "bsgoal-base-search" }, ga = { class: "base_search" }, fa =
1408
1417
  [l.INPUT, l.INPUT_TEXT_AREA].includes(I), t.value[O] = [0, !1].includes(E) ? E : "";
1409
1418
  });
1410
1419
  });
1411
- const d = K(() => {
1412
- const { configOptions: x } = i, V = c(x), C = {
1420
+ const d = X(() => {
1421
+ const { configOptions: x } = i, $ = c(x), C = {
1413
1422
  type: l.OPERATION
1414
1423
  };
1415
- return [...V, C];
1416
- }), _ = (x = "", V = "", C = "") => {
1424
+ return [...$, C];
1425
+ }), _ = (x = "", $ = "", C = "") => {
1417
1426
  if (!C)
1418
1427
  switch (x) {
1419
1428
  case l.INPUT:
1420
1429
  case l.INPUT_TEXT_AREA:
1421
- return `请输入${V}`;
1430
+ return `请输入${$}`;
1422
1431
  case l.SELECT:
1423
1432
  case l.DATE:
1424
1433
  case l.WEEK:
@@ -1427,7 +1436,7 @@ const ma = { class: "bsgoal-base-search" }, ga = { class: "base_search" }, fa =
1427
1436
  case l.DATE_TIME:
1428
1437
  case l.TIME:
1429
1438
  case l.CASCADER:
1430
- return `请选择${V}`;
1439
+ return `请选择${$}`;
1431
1440
  case l.DATE_RANGE:
1432
1441
  case l.DATE_TIME_RANGE:
1433
1442
  return ["开始日期", "结束日期"];
@@ -1437,8 +1446,8 @@ const ma = { class: "bsgoal-base-search" }, ga = { class: "base_search" }, fa =
1437
1446
  return ["开始月份", "结束月份"];
1438
1447
  }
1439
1448
  return C;
1440
- }, $ = (x = "", V = "") => {
1441
- if (!V)
1449
+ }, V = (x = "", $ = "") => {
1450
+ if (!$)
1442
1451
  switch (x) {
1443
1452
  case l.WEEK:
1444
1453
  return "ww";
@@ -1458,46 +1467,46 @@ const ma = { class: "bsgoal-base-search" }, ga = { class: "base_search" }, fa =
1458
1467
  case l.DATE_TIME_RANGE:
1459
1468
  return "YYYY-MM-DD HH:mm:ss";
1460
1469
  }
1461
- return V;
1470
+ return $;
1462
1471
  }, N = () => {
1463
- const { configOptions: x } = i, V = c(t), C = c(x), E = {};
1472
+ const { configOptions: x } = i, $ = c(t), C = c(x), E = {};
1464
1473
  for (const O of C) {
1465
- const { type: I = "", range: L = [], prop: U = "", single: G = !1 } = O, F = V[U];
1474
+ const { type: I = "", range: U = [], prop: L = "", single: G = !1 } = O, F = $[L];
1466
1475
  if ([l.CASCADER].includes(I) && Array.isArray(F) && G) {
1467
- const Q = F.length;
1468
- Q ? E[U] = F[Q - 1] : E[U] = F;
1476
+ const Z = F.length;
1477
+ Z ? E[L] = F[Z - 1] : E[L] = F;
1469
1478
  } else
1470
- Ie(F) ? E[U] = Fe(F) : E[U] = F;
1471
- if (I.endsWith("range") && L && L.length === 2) {
1472
- const { 0: Q = "", 1: q = "" } = F, { 0: ne = "", 1: oe = "" } = L;
1473
- E[ne] = Q, E[oe] = q;
1479
+ Ie(F) ? E[L] = Fe(F) : E[L] = F;
1480
+ if (I.endsWith("range") && U && U.length === 2) {
1481
+ const { 0: Z = "", 1: q = "" } = F, { 0: ne = "", 1: oe = "" } = U;
1482
+ E[ne] = Z, E[oe] = q;
1474
1483
  }
1475
1484
  }
1476
1485
  a("on-search", E), a("update:modelValue", E);
1477
1486
  };
1478
- $e(() => {
1487
+ Ve(() => {
1479
1488
  N();
1480
1489
  });
1481
1490
  const S = () => {
1482
1491
  r.value.resetFields(), a("on-clear", t.value);
1483
- }, k = Ve("transferFoldStatus"), R = w(!1), h = (x = !1) => {
1492
+ }, k = $e("transferFoldStatus"), R = w(!1), h = (x = !1) => {
1484
1493
  R.value = x, k && (k.value = x), a("on-fold", R);
1485
- }, b = (x, V) => {
1494
+ }, b = (x, $) => {
1486
1495
  N();
1487
1496
  const C = {
1488
1497
  type: x,
1489
- prop: V,
1490
- value: t.value[V] || ""
1498
+ prop: $,
1499
+ value: t.value[$] || ""
1491
1500
  };
1492
1501
  a("on-change", C);
1493
1502
  };
1494
1503
  return s({
1495
1504
  triggerOperationSearch: N
1496
- }), (x, V) => {
1497
- const C = g("el-input"), E = g("el-input-number"), O = g("el-radio"), I = g("el-radio-group"), L = g("el-option"), U = g("el-select"), G = g("el-slider"), F = g("el-switch"), Q = g("el-date-picker"), q = g("el-time-picker"), ne = g("el-checkbox"), oe = g("el-checkbox-group"), re = g("el-form-item"), ie = g("el-col"), P = g("el-row"), T = g("el-form");
1505
+ }), (x, $) => {
1506
+ const C = g("el-input"), E = g("el-input-number"), O = g("el-radio"), I = g("el-radio-group"), U = g("el-option"), L = g("el-select"), G = g("el-slider"), F = g("el-switch"), Z = g("el-date-picker"), q = g("el-time-picker"), ne = g("el-checkbox"), oe = g("el-checkbox-group"), re = g("el-form-item"), ie = g("el-col"), P = g("el-row"), T = g("el-form");
1498
1507
  return o(), p("div", ma, [
1499
1508
  D("div", ga, [
1500
- X((o(), y(T, {
1509
+ Q((o(), y(T, {
1501
1510
  ref_key: "EL_FORM_REF",
1502
1511
  ref: r,
1503
1512
  "label-suffix": ":",
@@ -1519,7 +1528,7 @@ const ma = { class: "bsgoal-base-search" }, ga = { class: "base_search" }, fa =
1519
1528
  max: te = 10,
1520
1529
  range: ae = [],
1521
1530
  format: se = ""
1522
- } = {}, ce) => X((o(), y(ie, {
1531
+ } = {}, ce) => Q((o(), y(ie, {
1523
1532
  key: ce,
1524
1533
  xs: 24,
1525
1534
  sm: 12,
@@ -1552,7 +1561,7 @@ const ma = { class: "bsgoal-base-search" }, ga = { class: "base_search" }, fa =
1552
1561
  v === c(l).INPUT_NUMBER ? (o(), y(E, {
1553
1562
  key: 2,
1554
1563
  modelValue: x.num,
1555
- "onUpdate:modelValue": V[0] || (V[0] = (n) => x.num = n),
1564
+ "onUpdate:modelValue": $[0] || ($[0] = (n) => x.num = n),
1556
1565
  min: ee,
1557
1566
  max: te,
1558
1567
  onChange: b
@@ -1564,8 +1573,8 @@ const ma = { class: "bsgoal-base-search" }, ga = { class: "base_search" }, fa =
1564
1573
  onChange: (n) => b(v, f)
1565
1574
  }, {
1566
1575
  default: A(() => [
1567
- (o(!0), p(j, null, W(ae, (n, Z) => (o(), y(O, {
1568
- key: Z,
1576
+ (o(!0), p(j, null, W(ae, (n, K) => (o(), y(O, {
1577
+ key: K,
1569
1578
  label: n.value
1570
1579
  }, {
1571
1580
  default: A(() => [
@@ -1576,7 +1585,7 @@ const ma = { class: "bsgoal-base-search" }, ga = { class: "base_search" }, fa =
1576
1585
  ]),
1577
1586
  _: 2
1578
1587
  }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : M("", !0),
1579
- v === c(l).SELECT ? (o(), y(U, {
1588
+ v === c(l).SELECT ? (o(), y(L, {
1580
1589
  key: 4,
1581
1590
  modelValue: t.value[f],
1582
1591
  "onUpdate:modelValue": (n) => t.value[f] = n,
@@ -1584,8 +1593,8 @@ const ma = { class: "bsgoal-base-search" }, ga = { class: "base_search" }, fa =
1584
1593
  onChange: (n) => b(v, f)
1585
1594
  }, {
1586
1595
  default: A(() => [
1587
- (o(!0), p(j, null, W(ae, (n, Z) => (o(), y(L, {
1588
- key: Z,
1596
+ (o(!0), p(j, null, W(ae, (n, K) => (o(), y(U, {
1597
+ key: K,
1589
1598
  label: n.label,
1590
1599
  value: n.value
1591
1600
  }, null, 8, ["label", "value"]))), 128))
@@ -1610,12 +1619,12 @@ const ma = { class: "bsgoal-base-search" }, ga = { class: "base_search" }, fa =
1610
1619
  }, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : M("", !0),
1611
1620
  [c(l).DATE, c(l).MONTH, c(l).YEAR, c(l).DATE_TIME].includes(
1612
1621
  v
1613
- ) ? (o(), y(Q, {
1622
+ ) ? (o(), y(Z, {
1614
1623
  key: 7,
1615
1624
  modelValue: t.value[f],
1616
1625
  "onUpdate:modelValue": (n) => t.value[f] = n,
1617
- format: $(v, se),
1618
- "value-format": $(v, se),
1626
+ format: V(v, se),
1627
+ "value-format": V(v, se),
1619
1628
  type: v,
1620
1629
  placeholder: _(v, m, Y),
1621
1630
  onChange: (n) => b(v, f)
@@ -1624,12 +1633,12 @@ const ma = { class: "bsgoal-base-search" }, ga = { class: "base_search" }, fa =
1624
1633
  c(l).DATE_RANGE,
1625
1634
  c(l).MONTH_RANGE,
1626
1635
  c(l).DATE_TIME_RANGE
1627
- ].includes(v) ? (o(), y(Q, {
1636
+ ].includes(v) ? (o(), y(Z, {
1628
1637
  key: 8,
1629
1638
  modelValue: t.value[f],
1630
1639
  "onUpdate:modelValue": (n) => t.value[f] = n,
1631
1640
  type: v,
1632
- "value-format": $(v, se),
1641
+ "value-format": V(v, se),
1633
1642
  "start-placeholder": _(v, m, Y)[0],
1634
1643
  "end-placeholder": _(v, m, Y)[1],
1635
1644
  onChange: (n) => b(v, f)
@@ -1639,7 +1648,7 @@ const ma = { class: "bsgoal-base-search" }, ga = { class: "base_search" }, fa =
1639
1648
  modelValue: t.value[f],
1640
1649
  "onUpdate:modelValue": (n) => t.value[f] = n,
1641
1650
  "arrow-control": "",
1642
- "value-format": $(v, se),
1651
+ "value-format": V(v, se),
1643
1652
  placeholder: _(v, m, Y),
1644
1653
  onChange: (n) => b(v, f)
1645
1654
  }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : M("", !0),
@@ -1648,7 +1657,7 @@ const ma = { class: "bsgoal-base-search" }, ga = { class: "base_search" }, fa =
1648
1657
  modelValue: t.value[f],
1649
1658
  "onUpdate:modelValue": (n) => t.value[f] = n,
1650
1659
  "is-range": "",
1651
- "value-format": $(v, se),
1660
+ "value-format": V(v, se),
1652
1661
  "start-placeholder": _(v, m, Y)[0],
1653
1662
  "end-placeholder": _(v, m, Y)[1],
1654
1663
  onChange: (n) => b(v, f)
@@ -1660,8 +1669,8 @@ const ma = { class: "bsgoal-base-search" }, ga = { class: "base_search" }, fa =
1660
1669
  onChange: (n) => b(v, f)
1661
1670
  }, {
1662
1671
  default: A(() => [
1663
- (o(!0), p(j, null, W(ae, (n, Z) => (o(), y(ne, {
1664
- key: Z,
1672
+ (o(!0), p(j, null, W(ae, (n, K) => (o(), y(ne, {
1673
+ key: K,
1665
1674
  label: n.value
1666
1675
  }, {
1667
1676
  default: A(() => [
@@ -1822,15 +1831,15 @@ const ha = { class: "bsgoal-base-search-table" }, Ea = { class: "base_search_tab
1822
1831
  setup(e, { expose: s }) {
1823
1832
  const a = e, i = w(!1);
1824
1833
  Re("transferFoldStatus", i);
1825
- const r = c(a.configOptions), u = K(() => r.filter((h) => {
1834
+ const r = c(a.configOptions), u = X(() => r.filter((h) => {
1826
1835
  const { type: b = "" } = h;
1827
1836
  return !!b;
1828
- })), t = K(() => r.filter((h) => {
1837
+ })), t = X(() => r.filter((h) => {
1829
1838
  const { item: b = !1 } = h;
1830
1839
  return !b;
1831
- })), d = Ce(), _ = w(Object.keys(d)), $ = w(null), N = (h) => {
1832
- $.value.refreshList(h);
1833
- }, S = K(() => {
1840
+ })), d = Ce(), _ = w(Object.keys(d)), V = w(null), N = (h) => {
1841
+ V.value.refreshList(h);
1842
+ }, S = X(() => {
1834
1843
  const { expression: h, hasPage: b } = a;
1835
1844
  return b === !1 ? 25 : h;
1836
1845
  }), k = w(null);
@@ -1841,7 +1850,7 @@ const ha = { class: "bsgoal-base-search-table" }, Ea = { class: "base_search_tab
1841
1850
  }
1842
1851
  }), (h, b) => (o(), p("div", ha, [
1843
1852
  D("div", Ea, [
1844
- X(B(pa, {
1853
+ Q(B(pa, {
1845
1854
  ref_key: "BSGOAL_BASE_SEARCH_REF",
1846
1855
  ref: k,
1847
1856
  "config-options": u.value,
@@ -1852,7 +1861,7 @@ const ha = { class: "bsgoal-base-search-table" }, Ea = { class: "base_search_tab
1852
1861
  ]),
1853
1862
  B(Ne, {
1854
1863
  ref_key: "BSGOAL_BASE_TABLE_REF",
1855
- ref: $,
1864
+ ref: V,
1856
1865
  "map-props": e.mapProps,
1857
1866
  operationWidth: e.operationWidth,
1858
1867
  "config-options": t.value,
@@ -1866,8 +1875,8 @@ const ha = { class: "bsgoal-base-search-table" }, Ea = { class: "base_search_tab
1866
1875
  }, Ue({ _: 2 }, [
1867
1876
  W(_.value, (x) => ({
1868
1877
  name: x,
1869
- fn: A(({ row: V = {} }) => [
1870
- J(h.$slots, x, { row: V })
1878
+ fn: A(({ row: $ = {} }) => [
1879
+ J(h.$slots, x, { row: $ })
1871
1880
  ])
1872
1881
  }))
1873
1882
  ]), 1032, ["map-props", "operationWidth", "config-options", "data", "selection", "operation", "expression", "fetch", "call", "has-page"])
@@ -1894,10 +1903,10 @@ const Aa = { class: "bsgoal-base-tree-fold" }, Ta = {
1894
1903
  }, [
1895
1904
  B(t, { color: "#fff" }, {
1896
1905
  default: A(() => [
1897
- X(B(c(wt), null, null, 512), [
1906
+ Q(B(c(wt), null, null, 512), [
1898
1907
  [le, c(a)]
1899
1908
  ]),
1900
- X(B(c(Ft), null, null, 512), [
1909
+ Q(B(c(Ft), null, null, 512), [
1901
1910
  [le, !c(a)]
1902
1911
  ])
1903
1912
  ]),
@@ -1908,7 +1917,7 @@ const Aa = { class: "bsgoal-base-tree-fold" }, Ta = {
1908
1917
  };
1909
1918
  }
1910
1919
  });
1911
- const $a = { class: "bsgoal-base-tree" }, Va = { class: "base_tree" }, Ca = { class: "base_tree_main" }, Ma = {
1920
+ const Va = { class: "bsgoal-base-tree" }, $a = { class: "base_tree" }, Ca = { class: "base_tree_main" }, Ma = {
1912
1921
  name: "BsgoalBaseTree"
1913
1922
  }, Ba = /* @__PURE__ */ Object.assign(Ma, {
1914
1923
  props: {
@@ -1970,7 +1979,7 @@ const $a = { class: "bsgoal-base-tree" }, Va = { class: "base_tree" }, Ca = { cl
1970
1979
  });
1971
1980
  const t = (N, S) => N ? S.label.includes(N) : !0, d = w(!0), _ = (N, S, k, R) => {
1972
1981
  s("on-click", N, S, k, R);
1973
- }, $ = async (N, S, k) => {
1982
+ }, V = async (N, S, k) => {
1974
1983
  if (N.level === 0) {
1975
1984
  const R = await k.initNode(N);
1976
1985
  return S(R || []);
@@ -1981,9 +1990,9 @@ const $a = { class: "bsgoal-base-tree" }, Va = { class: "base_tree" }, Ca = { cl
1981
1990
  };
1982
1991
  return (N, S) => {
1983
1992
  const k = g("el-input"), R = g("el-tree");
1984
- return o(), p("div", $a, [
1985
- X((o(), p("div", Va, [
1986
- X(D("div", Ca, [
1993
+ return o(), p("div", Va, [
1994
+ Q((o(), p("div", $a, [
1995
+ Q(D("div", Ca, [
1987
1996
  B(k, {
1988
1997
  modelValue: r.value,
1989
1998
  "onUpdate:modelValue": S[0] || (S[0] = (h) => r.value = h),
@@ -1996,7 +2005,7 @@ const $a = { class: "bsgoal-base-tree" }, Va = { class: "base_tree" }, Ca = { cl
1996
2005
  lazy: "",
1997
2006
  "highlight-current": "",
1998
2007
  "empty-text": "暂无数据",
1999
- load: (h, b) => $(h, b, a),
2008
+ load: (h, b) => V(h, b, a),
2000
2009
  "expand-on-click-node": !1,
2001
2010
  props: e.treeProps,
2002
2011
  "filter-node-method": t,
@@ -2005,7 +2014,7 @@ const $a = { class: "bsgoal-base-tree" }, Va = { class: "base_tree" }, Ca = { cl
2005
2014
  ], 512), [
2006
2015
  [le, d.value]
2007
2016
  ]),
2008
- X(B(Ae, { vertical: "" }, null, 512), [
2017
+ Q(B(Ae, { vertical: "" }, null, 512), [
2009
2018
  [le, d.value]
2010
2019
  ]),
2011
2020
  B(xa, {
@@ -2098,7 +2107,7 @@ const Na = { class: "bsgoal-base-dialog" }, wa = { class: "base_dialog" }, ka =
2098
2107
  ), _e(i, (d) => {
2099
2108
  s("update:modelValue", d);
2100
2109
  });
2101
- const t = K(() => {
2110
+ const t = X(() => {
2102
2111
  const { width: d, size: _ } = a;
2103
2112
  if (d)
2104
2113
  return d;
@@ -2118,7 +2127,7 @@ const Na = { class: "bsgoal-base-dialog" }, wa = { class: "base_dialog" }, ka =
2118
2127
  }
2119
2128
  });
2120
2129
  return (d, _) => {
2121
- const $ = g("el-button"), N = g("el-dialog");
2130
+ const V = g("el-button"), N = g("el-dialog");
2122
2131
  return o(), p("div", Na, [
2123
2132
  D("div", wa, [
2124
2133
  B(N, {
@@ -2134,13 +2143,13 @@ const Na = { class: "bsgoal-base-dialog" }, wa = { class: "base_dialog" }, ka =
2134
2143
  footer: A(() => [
2135
2144
  e.footer ? J(d.$slots, "footer", { key: 0 }, () => [
2136
2145
  D("span", Sa, [
2137
- B($, { onClick: r }, {
2146
+ B(V, { onClick: r }, {
2138
2147
  default: A(() => [
2139
2148
  H(z(e.cancelTxt), 1)
2140
2149
  ]),
2141
2150
  _: 1
2142
2151
  }),
2143
- B($, {
2152
+ B(V, {
2144
2153
  type: "primary",
2145
2154
  onClick: u
2146
2155
  }, {
@@ -2191,7 +2200,7 @@ const Ia = { class: "bsgoal-base-tabs" }, Fa = {
2191
2200
  type: {
2192
2201
  type: [String],
2193
2202
  default: "",
2194
- validator: (e) => ["card", "border-card"].includes(e)
2203
+ validator: (e) => ["card", "border-card", ""].includes(e)
2195
2204
  },
2196
2205
  /**
2197
2206
  * 组件绑定的值
@@ -2210,10 +2219,10 @@ const Ia = { class: "bsgoal-base-tabs" }, Fa = {
2210
2219
  },
2211
2220
  emits: ["update:modelValue"],
2212
2221
  setup(e, { emit: s }) {
2213
- const a = e, i = () => {
2214
- const { modelValue: u = "", configOptions: t = [] } = a, d = c(t).map(($) => $.value);
2222
+ const a = e, i = X(() => {
2223
+ const { modelValue: u = "", configOptions: t = [] } = a, d = c(t).map((V) => V.value);
2215
2224
  return c(u) || d[0];
2216
- }, r = (u = "") => {
2225
+ }), r = (u = "") => {
2217
2226
  s("update:modelValue", u);
2218
2227
  };
2219
2228
  return (u, t) => {
@@ -2223,25 +2232,25 @@ const Ia = { class: "bsgoal-base-tabs" }, Fa = {
2223
2232
  class: "bsgoal_base_tabs",
2224
2233
  stretch: e.stretch,
2225
2234
  type: e.type,
2226
- "model-value": i,
2235
+ "model-value": i.value,
2227
2236
  onTabChange: r
2228
2237
  }, {
2229
2238
  default: A(() => [
2230
- (o(!0), p(j, null, W(e.configOptions, ({ label: $, value: N }, S) => (o(), y(d, {
2239
+ (o(!0), p(j, null, W(e.configOptions, ({ label: V, value: N }, S) => (o(), y(d, {
2231
2240
  key: S,
2232
- label: $,
2241
+ label: V,
2233
2242
  name: N
2234
2243
  }, {
2235
2244
  default: A(() => [
2236
2245
  J(u.$slots, N, {}, () => [
2237
- H(z($), 1)
2246
+ H(z(V), 1)
2238
2247
  ])
2239
2248
  ]),
2240
2249
  _: 2
2241
2250
  }, 1032, ["label", "name"]))), 128))
2242
2251
  ]),
2243
2252
  _: 3
2244
- }, 8, ["stretch", "type"])
2253
+ }, 8, ["stretch", "type", "model-value"])
2245
2254
  ]);
2246
2255
  };
2247
2256
  }
@@ -2342,14 +2351,14 @@ const za = { class: "bsgoal-base-button" }, Ga = {
2342
2351
  c(t)(() => {
2343
2352
  a.value = !1;
2344
2353
  }, s.values);
2345
- }, r = K(() => {
2354
+ }, r = X(() => {
2346
2355
  const { mode: t = "", type: d = "" } = s;
2347
2356
  switch (t) {
2348
2357
  case "delete":
2349
2358
  return "danger";
2350
2359
  }
2351
2360
  return d;
2352
- }), u = K(() => {
2361
+ }), u = X(() => {
2353
2362
  const { mode: t = "", icon: d = "" } = s;
2354
2363
  switch (t) {
2355
2364
  case "delete":