@bsgoal/common 1.6.3 → 1.6.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.
package/dist/index.mjs CHANGED
@@ -1,16 +1,16 @@
1
- var Be = Object.defineProperty;
2
- var Te = Object.getOwnPropertySymbols;
3
- var we = Object.prototype.hasOwnProperty, De = Object.prototype.propertyIsEnumerable;
4
- var Ae = (e, s, l) => s in e ? Be(e, s, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[s] = l, xe = (e, s) => {
1
+ var we = Object.defineProperty;
2
+ var Ae = Object.getOwnPropertySymbols;
3
+ var Be = Object.prototype.hasOwnProperty, De = Object.prototype.propertyIsEnumerable;
4
+ var xe = (e, s, l) => s in e ? we(e, s, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[s] = l, ve = (e, s) => {
5
5
  for (var l in s || (s = {}))
6
- we.call(s, l) && Ae(e, l, s[l]);
7
- if (Te)
8
- for (var l of Te(s))
9
- De.call(s, l) && Ae(e, l, s[l]);
6
+ Be.call(s, l) && xe(e, l, s[l]);
7
+ if (Ae)
8
+ for (var l of Ae(s))
9
+ De.call(s, l) && xe(e, l, s[l]);
10
10
  return e;
11
11
  };
12
- import { computed as J, resolveComponent as f, openBlock as n, createElementBlock as y, createVNode as $, unref as u, withCtx as x, renderSlot as q, createTextVNode as W, toDisplayString as j, ref as k, watchEffect as pe, createElementVNode as O, withDirectives as Q, createBlock as b, Fragment as z, renderList as X, createCommentVNode as V, nextTick as Ce, inject as Ve, watch as ie, resolveDirective as ke, normalizeClass as de, vShow as le, isProxy as Oe, toRaw as Se, provide as Ie, useSlots as Fe, createSlots as Re, normalizeStyle as Ue } from "vue";
13
- import { ElMessage as Le } from "element-plus";
12
+ import { computed as Z, resolveComponent as f, openBlock as n, createElementBlock as b, createVNode as w, unref as u, withCtx as T, renderSlot as q, createTextVNode as W, toDisplayString as Y, ref as D, watchEffect as Ee, createElementVNode as S, withDirectives as X, createBlock as E, Fragment as j, renderList as Q, createCommentVNode as $, nextTick as Ce, inject as Ve, watch as de, resolveDirective as ke, normalizeClass as _e, vShow as ee, isProxy as Se, toRaw as Oe, provide as Ie, useSlots as Fe, createSlots as Re, normalizeStyle as Ue } from "vue";
13
+ import { ElMessage as Pe } from "element-plus";
14
14
  const a = {
15
15
  INPUT: "text",
16
16
  INPUT_NUMBER: "number",
@@ -33,12 +33,12 @@ const a = {
33
33
  OPERATION: "operation",
34
34
  CASCADER: "cascader"
35
35
  };
36
- let ve = null;
37
- const he = (e) => {
36
+ let he = null;
37
+ const pe = (e) => {
38
38
  const s = [], l = [], r = (t = []) => {
39
- const c = t.map((p) => p.width), d = Math.max(...c);
40
- t.forEach((p) => {
41
- const { labelEl: N } = p;
39
+ const c = t.map((v) => v.width), d = Math.max(...c);
40
+ t.forEach((v) => {
41
+ const { labelEl: N } = v;
42
42
  N.style.width = `${d}px`;
43
43
  });
44
44
  }, i = () => {
@@ -46,32 +46,32 @@ const he = (e) => {
46
46
  const t = e.querySelectorAll(".el-form-item__label");
47
47
  if (t && t.length) {
48
48
  let c = 0;
49
- t.forEach((d, p) => {
49
+ t.forEach((d, v) => {
50
50
  d.style.width = "initial", d.style.whiteSpace = "nowrap";
51
- const { x: N = 0, width: M = 0 } = d.getBoundingClientRect(), B = { x: N, width: M, labelEl: d };
52
- p === 0 && (c = N), N === c ? s.push(B) : l.push(B);
51
+ const { x: N = 0, width: k = 0 } = d.getBoundingClientRect(), x = { x: N, width: k, labelEl: d };
52
+ v === 0 && (c = N), N === c ? s.push(x) : l.push(x);
53
53
  });
54
54
  }
55
55
  }
56
56
  };
57
- ve && clearTimeout(ve), ve = setTimeout(() => {
57
+ he && clearTimeout(he), he = setTimeout(() => {
58
58
  i(), r(s), r(l);
59
59
  }, 50);
60
- }, Ee = {
60
+ }, be = {
61
61
  /**
62
62
  * 表单自动左对齐
63
63
  */
64
64
  align: {
65
65
  created(e) {
66
66
  window.addEventListener("resize", () => {
67
- he(e);
67
+ pe(e);
68
68
  });
69
69
  },
70
70
  mounted(e) {
71
- he(e);
71
+ pe(e);
72
72
  },
73
73
  unmounted(e) {
74
- window.removeEventListener("resize", he(e));
74
+ window.removeEventListener("resize", pe(e));
75
75
  }
76
76
  },
77
77
  /**
@@ -84,9 +84,9 @@ const he = (e) => {
84
84
  }
85
85
  }
86
86
  };
87
- const ze = { class: "bsgoal-base-tooltip" }, je = {
87
+ const Le = { class: "bsgoal-base-tooltip" }, ze = {
88
88
  name: "BsgoalBaseTooltip"
89
- }, Me = /* @__PURE__ */ Object.assign(je, {
89
+ }, Me = /* @__PURE__ */ Object.assign(ze, {
90
90
  props: {
91
91
  /**
92
92
  * 文字提示内容
@@ -126,19 +126,19 @@ const ze = { class: "bsgoal-base-tooltip" }, je = {
126
126
  }
127
127
  },
128
128
  setup(e) {
129
- const s = e, l = J(() => {
129
+ const s = e, l = Z(() => {
130
130
  const { content: i = "", limit: t = 0, none: c = "" } = s;
131
131
  let d = i;
132
- const p = i.length;
133
- return t && p > t && (d = `${i.substring(0, t)}...`), d || c;
134
- }), r = J(() => {
132
+ const v = i.length;
133
+ return t && v > t && (d = `${i.substring(0, t)}...`), d || c;
134
+ }), r = Z(() => {
135
135
  const { content: i = "", limit: t = 0 } = s;
136
136
  return i.length < t || !t;
137
137
  });
138
138
  return (i, t) => {
139
139
  const c = f("el-tooltip");
140
- return n(), y("div", ze, [
141
- $(c, {
140
+ return n(), b("div", Le, [
141
+ w(c, {
142
142
  class: "base_tooltip",
143
143
  effect: "dark",
144
144
  "popper-class": "base_tooltip_popper",
@@ -146,9 +146,9 @@ const ze = { class: "bsgoal-base-tooltip" }, je = {
146
146
  content: e.content,
147
147
  disabled: u(r)
148
148
  }, {
149
- default: x(() => [
149
+ default: T(() => [
150
150
  q(i.$slots, "default", {}, () => [
151
- W(j(u(l)), 1)
151
+ W(Y(u(l)), 1)
152
152
  ])
153
153
  ]),
154
154
  _: 3
@@ -157,7 +157,7 @@ const ze = { class: "bsgoal-base-tooltip" }, je = {
157
157
  };
158
158
  }
159
159
  });
160
- const Pe = { class: "bsgoal-base-form" }, Ye = { class: "base_form" }, Ge = { key: 1 }, He = {
160
+ const je = { class: "bsgoal-base-form" }, Ye = { class: "base_form" }, Ge = { key: 1 }, He = {
161
161
  name: "BsgoalBaseForm"
162
162
  }, We = /* @__PURE__ */ Object.assign(He, {
163
163
  props: {
@@ -222,27 +222,27 @@ const Pe = { class: "bsgoal-base-form" }, Ye = { class: "base_form" }, Ge = { ke
222
222
  },
223
223
  emits: ["on-form", "on-clear", "on-change", "on-fold"],
224
224
  setup(e, { expose: s, emit: l }) {
225
- const r = e, i = k(null), t = Ee.align, c = k({});
226
- pe(() => {
227
- const { configOptions: E, values: T } = r, C = u(E), v = u(T);
228
- C.forEach((A) => {
229
- const { value: D = "", prop: S = "", type: F = "" } = A;
230
- [a.INPUT, a.INPUT_TEXT_AREA].includes(F), c.value[S] = v[S] || D;
225
+ const r = e, i = D(null), t = be.align, c = D({});
226
+ Ee(() => {
227
+ const { configOptions: p, values: y } = r, C = u(p), B = u(y);
228
+ C.forEach((M) => {
229
+ const { value: A = "", prop: O = "", type: I = "" } = M;
230
+ [a.INPUT, a.INPUT_TEXT_AREA].includes(I), c.value[O] = B[O] || A;
231
231
  });
232
232
  });
233
- const d = J(() => {
234
- const { configOptions: E } = r;
235
- return u(E).map((v) => {
236
- let { rules: A = !1, label: D = "" } = v;
237
- const S = { required: !0, message: `${D}不能为空`, trigger: "blur" };
238
- return A && (typeof A == "boolean" ? A = [S] : Array.isArray(A) ? A = [S, ...A] : A = [S, A]), v.rules = A, v;
233
+ const d = Z(() => {
234
+ const { configOptions: p } = r;
235
+ return u(p).map((B) => {
236
+ let { rules: M = !1, label: A = "" } = B;
237
+ const O = { required: !0, message: `${A}不能为空`, trigger: "blur" };
238
+ return M && (typeof M == "boolean" ? M = [O] : Array.isArray(M) ? M = [O, ...M] : M = [O, M]), B.rules = M, B;
239
239
  });
240
- }), p = (E = "", T = "", C = "") => {
240
+ }), v = (p = "", y = "", C = "") => {
241
241
  if (!C)
242
- switch (E) {
242
+ switch (p) {
243
243
  case a.INPUT:
244
244
  case a.INPUT_TEXT_AREA:
245
- return `请输入${T}`;
245
+ return `请输入${y}`;
246
246
  case a.SELECT:
247
247
  case a.DATE:
248
248
  case a.WEEK:
@@ -250,7 +250,7 @@ const Pe = { class: "bsgoal-base-form" }, Ye = { class: "base_form" }, Ge = { ke
250
250
  case a.YEAR:
251
251
  case a.DATE_TIME:
252
252
  case a.TIME:
253
- return `请选择${T}`;
253
+ return `请选择${y}`;
254
254
  case a.DATE_RANGE:
255
255
  case a.DATE_TIME_RANGE:
256
256
  return ["开始日期", "结束日期"];
@@ -260,9 +260,9 @@ const Pe = { class: "bsgoal-base-form" }, Ye = { class: "base_form" }, Ge = { ke
260
260
  return ["开始月份", "结束月份"];
261
261
  }
262
262
  return C;
263
- }, N = (E = "", T = "") => {
264
- if (!T)
265
- switch (E) {
263
+ }, N = (p = "", y = "") => {
264
+ if (!y)
265
+ switch (p) {
266
266
  case a.WEEK:
267
267
  return "ww";
268
268
  case a.DATE:
@@ -281,236 +281,236 @@ const Pe = { class: "bsgoal-base-form" }, Ye = { class: "base_form" }, Ge = { ke
281
281
  case a.DATE_TIME_RANGE:
282
282
  return "YYYY-MM-DD HH:mm:ss";
283
283
  }
284
- return T;
285
- }, M = () => {
286
- const E = u(c), { configOptions: T } = r, C = u(T);
287
- for (const v of C) {
288
- const { type: A = "", range: D = [], prop: S = "" } = v;
289
- if (A.endsWith("range") && D && D.length === 2) {
290
- const { 0: F = "", 1: R = "" } = E[S], { 0: L = "", 1: I = "" } = D;
291
- E[L] = F, E[I] = R;
284
+ return y;
285
+ }, k = () => {
286
+ const p = u(c), { configOptions: y } = r, C = u(y);
287
+ for (const B of C) {
288
+ const { type: M = "", range: A = [], prop: O = "" } = B;
289
+ if (M.endsWith("range") && A && A.length === 2) {
290
+ const { 0: I = "", 1: U = "" } = p[O], { 0: z = "", 1: F = "" } = A;
291
+ p[z] = I, p[F] = U;
292
292
  }
293
293
  }
294
- return l("on-form", E), E;
295
- }, B = () => {
294
+ return l("on-form", p), p;
295
+ }, x = () => {
296
296
  i.value.resetFields(), l("on-clear", c.value);
297
- }, w = (E, T) => {
297
+ }, V = (p, y) => {
298
298
  const C = {
299
- type: E,
300
- prop: T,
301
- value: c.value[T] || ""
299
+ type: p,
300
+ prop: y,
301
+ value: c.value[y] || ""
302
302
  };
303
303
  l("on-change", C);
304
304
  };
305
305
  return s({
306
- triggerOperationClear: B,
307
- triggerOperationForm: M,
308
- validateForm: (E = () => {
306
+ triggerOperationClear: x,
307
+ triggerOperationForm: k,
308
+ validateForm: (p = () => {
309
309
  }) => {
310
- i.value.validate((T = !1, C = {}) => {
311
- if (T) {
312
- const v = M();
313
- E(v);
310
+ i.value.validate((y = !1, C = {}) => {
311
+ if (y) {
312
+ const B = k();
313
+ p(B);
314
314
  } else {
315
- E(!1);
316
- const v = Object.keys(C)[0], {
317
- [v]: {
318
- 0: { message: A = "" }
315
+ p(!1);
316
+ const B = Object.keys(C)[0], {
317
+ [B]: {
318
+ 0: { message: M = "" }
319
319
  }
320
320
  } = C;
321
- Le.error(A);
321
+ Pe.error(M);
322
322
  }
323
323
  });
324
324
  }
325
- }), (E, T) => {
326
- const C = f("el-input"), v = f("el-input-number"), A = f("el-radio"), D = f("el-radio-group"), S = f("el-option"), F = f("el-select"), R = f("el-slider"), L = f("el-switch"), I = f("el-date-picker"), P = f("el-time-picker"), Z = f("el-checkbox"), ee = f("el-checkbox-group"), te = f("el-form-item"), se = f("el-col"), ne = f("el-row"), fe = f("el-form");
327
- return n(), y("div", Pe, [
328
- O("div", Ye, [
329
- Q((n(), b(fe, {
325
+ }), (p, y) => {
326
+ const C = f("el-input"), B = f("el-input-number"), M = f("el-radio"), A = f("el-radio-group"), O = f("el-option"), I = f("el-select"), U = f("el-slider"), z = f("el-switch"), F = f("el-date-picker"), P = f("el-time-picker"), K = f("el-checkbox"), te = f("el-checkbox-group"), ae = f("el-form-item"), ue = f("el-col"), se = f("el-row"), ce = f("el-form");
327
+ return n(), b("div", je, [
328
+ S("div", Ye, [
329
+ X((n(), E(ce, {
330
330
  ref_key: "EL_FORM_REF",
331
331
  ref: i,
332
332
  "label-suffix": ":",
333
333
  model: c.value
334
334
  }, {
335
- default: x(() => [
336
- $(ne, null, {
337
- default: x(() => [
338
- (n(!0), y(z, null, X(u(d), ({
339
- label: Y = "",
335
+ default: T(() => [
336
+ w(se, null, {
337
+ default: T(() => [
338
+ (n(!0), b(j, null, Q(u(d), ({
339
+ label: L = "",
340
340
  prop: h = "",
341
341
  type: o = "text",
342
342
  placeholder: _ = "",
343
343
  readonly: G = e.readonlys,
344
- clearable: _e = !0,
345
- rows: me = 2,
346
- min: ge = 1,
347
- max: ce = 10,
348
- range: K = [],
344
+ clearable: me = !0,
345
+ rows: ge = 2,
346
+ min: fe = 1,
347
+ max: re = 10,
348
+ range: J = [],
349
349
  format: H = "",
350
- rules: ae = [],
351
- limit: oe = e.limits
352
- } = {}, g) => (n(), b(se, {
350
+ rules: le = [],
351
+ limit: ne = e.limits
352
+ } = {}, g) => (n(), E(ue, {
353
353
  key: g,
354
354
  xs: 24,
355
355
  sm: 24,
356
356
  md: e.medium
357
357
  }, {
358
- default: x(() => [
359
- $(te, {
360
- label: Y,
358
+ default: T(() => [
359
+ w(ae, {
360
+ label: L,
361
361
  prop: h,
362
- rules: ae
362
+ rules: le
363
363
  }, {
364
- default: x(() => [
365
- G ? (n(), y("div", Ge, [
366
- $(Me, {
364
+ default: T(() => [
365
+ G ? (n(), b("div", Ge, [
366
+ w(Me, {
367
367
  content: c.value[h],
368
- limit: oe,
368
+ limit: ne,
369
369
  none: e.none
370
370
  }, null, 8, ["content", "limit", "none"])
371
- ])) : (n(), y(z, { key: 0 }, [
372
- o === u(a).INPUT ? (n(), b(C, {
371
+ ])) : (n(), b(j, { key: 0 }, [
372
+ o === u(a).INPUT ? (n(), E(C, {
373
373
  key: 0,
374
374
  modelValue: c.value[h],
375
375
  "onUpdate:modelValue": (m) => c.value[h] = m,
376
- placeholder: p(o, Y, _),
377
- clearable: _e,
378
- onChange: (m) => w(o, h)
379
- }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : V("", !0),
380
- o === u(a).INPUT_TEXT_AREA ? (n(), b(C, {
376
+ placeholder: v(o, L, _),
377
+ clearable: me,
378
+ onChange: (m) => V(o, h)
379
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : $("", !0),
380
+ o === u(a).INPUT_TEXT_AREA ? (n(), E(C, {
381
381
  key: 1,
382
382
  modelValue: c.value[h],
383
383
  "onUpdate:modelValue": (m) => c.value[h] = m,
384
384
  type: "textarea",
385
- rows: me,
386
- clearable: _e,
387
- placeholder: p(o, Y, _),
388
- onChange: (m) => w(o, h)
389
- }, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : V("", !0),
390
- o === u(a).INPUT_NUMBER ? (n(), b(v, {
385
+ rows: ge,
386
+ clearable: me,
387
+ placeholder: v(o, L, _),
388
+ onChange: (m) => V(o, h)
389
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : $("", !0),
390
+ o === u(a).INPUT_NUMBER ? (n(), E(B, {
391
391
  key: 2,
392
- modelValue: E.num,
393
- "onUpdate:modelValue": T[0] || (T[0] = (m) => E.num = m),
394
- min: ge,
395
- max: ce,
396
- onChange: w
397
- }, null, 8, ["modelValue", "min", "max"])) : V("", !0),
398
- o === u(a).RADIO ? (n(), b(D, {
392
+ modelValue: p.num,
393
+ "onUpdate:modelValue": y[0] || (y[0] = (m) => p.num = m),
394
+ min: fe,
395
+ max: re,
396
+ onChange: V
397
+ }, null, 8, ["modelValue", "min", "max"])) : $("", !0),
398
+ o === u(a).RADIO ? (n(), E(A, {
399
399
  key: 3,
400
400
  modelValue: c.value[h],
401
401
  "onUpdate:modelValue": (m) => c.value[h] = m,
402
- onChange: (m) => w(o, h)
402
+ onChange: (m) => V(o, h)
403
403
  }, {
404
- default: x(() => [
405
- (n(!0), y(z, null, X(K, (m, re) => (n(), b(A, {
406
- key: re,
404
+ default: T(() => [
405
+ (n(!0), b(j, null, Q(J, (m, ie) => (n(), E(M, {
406
+ key: ie,
407
407
  label: m.value
408
408
  }, {
409
- default: x(() => [
410
- W(j(m.label), 1)
409
+ default: T(() => [
410
+ W(Y(m.label), 1)
411
411
  ]),
412
412
  _: 2
413
413
  }, 1032, ["label"]))), 128))
414
414
  ]),
415
415
  _: 2
416
- }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : V("", !0),
417
- o === u(a).SELECT ? (n(), b(F, {
416
+ }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : $("", !0),
417
+ o === u(a).SELECT ? (n(), E(I, {
418
418
  key: 4,
419
419
  modelValue: c.value[h],
420
420
  "onUpdate:modelValue": (m) => c.value[h] = m,
421
- placeholder: p(o, Y, _),
422
- onChange: (m) => w(o, h)
421
+ placeholder: v(o, L, _),
422
+ onChange: (m) => V(o, h)
423
423
  }, {
424
- default: x(() => [
425
- (n(!0), y(z, null, X(K, (m, re) => (n(), b(S, {
426
- key: re,
424
+ default: T(() => [
425
+ (n(!0), b(j, null, Q(J, (m, ie) => (n(), E(O, {
426
+ key: ie,
427
427
  label: m.label,
428
428
  value: m.value
429
429
  }, null, 8, ["label", "value"]))), 128))
430
430
  ]),
431
431
  _: 2
432
- }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : V("", !0),
433
- o === u(a).SLIDER ? (n(), b(R, {
432
+ }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : $("", !0),
433
+ o === u(a).SLIDER ? (n(), E(U, {
434
434
  key: 5,
435
435
  modelValue: c.value[h],
436
436
  "onUpdate:modelValue": (m) => c.value[h] = m,
437
- min: ge,
438
- max: ce,
439
- onChange: (m) => w(o, h)
440
- }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : V("", !0),
441
- o === u(a).SWITCH ? (n(), b(L, {
437
+ min: fe,
438
+ max: re,
439
+ onChange: (m) => V(o, h)
440
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : $("", !0),
441
+ o === u(a).SWITCH ? (n(), E(z, {
442
442
  key: 6,
443
443
  modelValue: c.value[h],
444
444
  "onUpdate:modelValue": (m) => c.value[h] = m,
445
- "active-value": K[0] || !0,
446
- "inactive-value": K[1] || !1,
447
- onChange: (m) => w(o, h)
448
- }, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : V("", !0),
445
+ "active-value": J[0] || !0,
446
+ "inactive-value": J[1] || !1,
447
+ onChange: (m) => V(o, h)
448
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : $("", !0),
449
449
  [u(a).DATE, u(a).MONTH, u(a).YEAR, u(a).DATE_TIME].includes(
450
450
  o
451
- ) ? (n(), b(I, {
451
+ ) ? (n(), E(F, {
452
452
  key: 7,
453
453
  modelValue: c.value[h],
454
454
  "onUpdate:modelValue": (m) => c.value[h] = m,
455
455
  format: N(o, H),
456
456
  "value-format": N(o, H),
457
457
  type: o,
458
- placeholder: p(o, Y, _),
459
- onChange: (m) => w(o, h)
460
- }, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : V("", !0),
458
+ placeholder: v(o, L, _),
459
+ onChange: (m) => V(o, h)
460
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : $("", !0),
461
461
  [
462
462
  u(a).DATE_RANGE,
463
463
  u(a).MONTH_RANGE,
464
464
  u(a).DATE_TIME_RANGE
465
- ].includes(o) ? (n(), b(I, {
465
+ ].includes(o) ? (n(), E(F, {
466
466
  key: 8,
467
467
  modelValue: c.value[h],
468
468
  "onUpdate:modelValue": (m) => c.value[h] = m,
469
469
  type: o,
470
470
  "value-format": N(o, H),
471
- "start-placeholder": p(o, Y, _)[0],
472
- "end-placeholder": p(o, Y, _)[1],
473
- onChange: (m) => w(o, h)
474
- }, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : V("", !0),
475
- [u(a).TIME].includes(o) ? (n(), b(P, {
471
+ "start-placeholder": v(o, L, _)[0],
472
+ "end-placeholder": v(o, L, _)[1],
473
+ onChange: (m) => V(o, h)
474
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : $("", !0),
475
+ [u(a).TIME].includes(o) ? (n(), E(P, {
476
476
  key: 9,
477
477
  modelValue: c.value[h],
478
478
  "onUpdate:modelValue": (m) => c.value[h] = m,
479
479
  "arrow-control": "",
480
480
  "value-format": N(o, H),
481
- placeholder: p(o, Y, _),
482
- onChange: (m) => w(o, h)
483
- }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : V("", !0),
484
- [u(a).TIME_RANGE].includes(o) ? (n(), b(P, {
481
+ placeholder: v(o, L, _),
482
+ onChange: (m) => V(o, h)
483
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : $("", !0),
484
+ [u(a).TIME_RANGE].includes(o) ? (n(), E(P, {
485
485
  key: 10,
486
486
  modelValue: c.value[h],
487
487
  "onUpdate:modelValue": (m) => c.value[h] = m,
488
488
  "is-range": "",
489
489
  "value-format": N(o, H),
490
- "start-placeholder": p(o, Y, _)[0],
491
- "end-placeholder": p(o, Y, _)[1],
492
- onChange: (m) => w(o, h)
493
- }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : V("", !0),
494
- [u(a).CHECKBOX].includes(o) ? (n(), b(ee, {
490
+ "start-placeholder": v(o, L, _)[0],
491
+ "end-placeholder": v(o, L, _)[1],
492
+ onChange: (m) => V(o, h)
493
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : $("", !0),
494
+ [u(a).CHECKBOX].includes(o) ? (n(), E(te, {
495
495
  key: 11,
496
496
  modelValue: c.value[h],
497
497
  "onUpdate:modelValue": (m) => c.value[h] = m,
498
- onChange: (m) => w(o, h)
498
+ onChange: (m) => V(o, h)
499
499
  }, {
500
- default: x(() => [
501
- (n(!0), y(z, null, X(K, (m, re) => (n(), b(Z, {
502
- key: re,
500
+ default: T(() => [
501
+ (n(!0), b(j, null, Q(J, (m, ie) => (n(), E(K, {
502
+ key: ie,
503
503
  label: m.value
504
504
  }, {
505
- default: x(() => [
506
- W(j(m.label), 1)
505
+ default: T(() => [
506
+ W(Y(m.label), 1)
507
507
  ]),
508
508
  _: 2
509
509
  }, 1032, ["label"]))), 128))
510
510
  ]),
511
511
  _: 2
512
- }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : V("", !0),
513
- [].includes(o) ? (n(), y(z, { key: 12 }, [], 64)) : V("", !0)
512
+ }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : $("", !0),
513
+ [].includes(o) ? (n(), b(j, { key: 12 }, [], 64)) : $("", !0)
514
514
  ], 64))
515
515
  ]),
516
516
  _: 2
@@ -561,13 +561,13 @@ const Xe = { class: "bsgoal-base-table-content" }, Qe = { class: "base_table_con
561
561
  }
562
562
  },
563
563
  setup(e) {
564
- return (s, l) => (n(), y("div", Xe, [
565
- O("div", Qe, [
566
- e.tooltip ? (n(), b(Me, {
564
+ return (s, l) => (n(), b("div", Xe, [
565
+ S("div", Qe, [
566
+ e.tooltip ? (n(), E(Me, {
567
567
  key: 0,
568
568
  content: e.data,
569
569
  limit: e.limit
570
- }, null, 8, ["content", "limit"])) : (n(), y("div", Ze, j(e.data), 1))
570
+ }, null, 8, ["content", "limit"])) : (n(), b("div", Ze, Y(e.data), 1))
571
571
  ])
572
572
  ]));
573
573
  }
@@ -700,7 +700,7 @@ var qe = {
700
700
  }
701
701
  }
702
702
  };
703
- const et = { class: "bsgoal-base-table-pagination" }, tt = { class: "base_table_pagination" }, at = /* @__PURE__ */ O("span", null, "总数", -1), lt = {
703
+ const et = { class: "bsgoal-base-table-pagination" }, tt = { class: "base_table_pagination" }, at = /* @__PURE__ */ S("span", null, "总数", -1), lt = {
704
704
  name: "BsgoalBaseTablePagination"
705
705
  }, nt = /* @__PURE__ */ Object.assign(lt, {
706
706
  props: {
@@ -739,14 +739,14 @@ const et = { class: "bsgoal-base-table-pagination" }, tt = { class: "base_table_
739
739
  s("on-size-change", t);
740
740
  }, r = (t = 1) => {
741
741
  s("on-current-change", t);
742
- }, i = k(1);
742
+ }, i = D(1);
743
743
  return (t, c) => {
744
- const d = f("el-pagination"), p = f("el-config-provider");
745
- return n(), y("div", et, [
746
- O("div", tt, [
747
- $(p, { locale: u(qe) }, {
748
- default: x(() => [
749
- $(d, {
744
+ const d = f("el-pagination"), v = f("el-config-provider");
745
+ return n(), b("div", et, [
746
+ S("div", tt, [
747
+ w(v, { locale: u(qe) }, {
748
+ default: T(() => [
749
+ w(d, {
750
750
  background: "",
751
751
  layout: "total, sizes, prev, pager, next, jumper",
752
752
  "current-page": i.value,
@@ -757,7 +757,7 @@ const et = { class: "bsgoal-base-table-pagination" }, tt = { class: "base_table_
757
757
  onSizeChange: l,
758
758
  onCurrentChange: r
759
759
  }, {
760
- next: x(() => [
760
+ next: T(() => [
761
761
  at
762
762
  ]),
763
763
  _: 1
@@ -777,19 +777,19 @@ const $e = (e, s) => {
777
777
  return l;
778
778
  }, ot = {
779
779
  name: "BsgoalBaseTableEmpty"
780
- }, ut = { class: "bsgoal-base-table-empty" }, st = /* @__PURE__ */ O("div", { class: "base_table_empty" }, [
781
- /* @__PURE__ */ O("div", { class: "base_table_empty_img" }, [
782
- /* @__PURE__ */ O("img", {
780
+ }, ut = { class: "bsgoal-base-table-empty" }, st = /* @__PURE__ */ S("div", { class: "base_table_empty" }, [
781
+ /* @__PURE__ */ S("div", { class: "base_table_empty_img" }, [
782
+ /* @__PURE__ */ S("img", {
783
783
  src: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjQiIGhlaWdodD0iNDEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCAxKSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgIDxlbGxpcHNlIGZpbGw9IiNGNUY1RjUiIGN4PSIzMiIgY3k9IjMzIiByeD0iMzIiIHJ5PSI3Ii8+CiAgICA8ZyBmaWxsLXJ1bGU9Im5vbnplcm8iIHN0cm9rZT0iI0Q5RDlEOSI+CiAgICAgIDxwYXRoIGQ9Ik01NSAxMi43Nkw0NC44NTQgMS4yNThDNDQuMzY3LjQ3NCA0My42NTYgMCA0Mi45MDcgMEgyMS4wOTNjLS43NDkgMC0xLjQ2LjQ3NC0xLjk0NyAxLjI1N0w5IDEyLjc2MVYyMmg0NnYtOS4yNHoiLz4KICAgICAgPHBhdGggZD0iTTQxLjYxMyAxNS45MzFjMC0xLjYwNS45OTQtMi45MyAyLjIyNy0yLjkzMUg1NXYxOC4xMzdDNTUgMzMuMjYgNTMuNjggMzUgNTIuMDUgMzVoLTQwLjFDMTAuMzIgMzUgOSAzMy4yNTkgOSAzMS4xMzdWMTNoMTEuMTZjMS4yMzMgMCAyLjIyNyAxLjMyMyAyLjIyNyAyLjkyOHYuMDIyYzAgMS42MDUgMS4wMDUgMi45MDEgMi4yMzcgMi45MDFoMTQuNzUyYzEuMjMyIDAgMi4yMzctMS4zMDggMi4yMzctMi45MTN2LS4wMDd6IiBmaWxsPSIjRkFGQUZBIi8+CiAgICA8L2c+CiAgPC9nPgo8L3N2Zz4K",
784
784
  alt: ""
785
785
  })
786
786
  ]),
787
- /* @__PURE__ */ O("div", { class: "base_table_empty_text" }, "暂无数据")
787
+ /* @__PURE__ */ S("div", { class: "base_table_empty_text" }, "暂无数据")
788
788
  ], -1), ct = [
789
789
  st
790
790
  ];
791
791
  function rt(e, s, l, r, i, t) {
792
- return n(), y("div", ut, ct);
792
+ return n(), b("div", ut, ct);
793
793
  }
794
794
  const it = /* @__PURE__ */ $e(ot, [["render", rt]]), dt = (e = null, { expression: s = 75, arg: l = {}, height: r = "" } = {}) => {
795
795
  const i = u(e);
@@ -798,12 +798,12 @@ const it = /* @__PURE__ */ $e(ot, [["render", rt]]), dt = (e = null, { expressio
798
798
  t && Ce(() => {
799
799
  const { y: c = 0 } = t.getBoundingClientRect();
800
800
  let d = `calc(100vh - ${c + s}px)`;
801
- const p = Number.parseInt(r);
802
- r && (p ? d = `${r}px` : d = r), t.style.height = d;
801
+ const v = Number.parseInt(r);
802
+ r && (v ? d = `${r}px` : d = r), t.style.height = d;
803
803
  });
804
804
  }
805
- }, be = (e = Promise.resolve(), s = null, l = k(!1), r = k(null)) => {
806
- const i = k("");
805
+ }, ye = (e = Promise.resolve(), s = null, l = D(!1), r = D(null)) => {
806
+ const i = D("");
807
807
  return l.value = !0, e.then((t = {}) => {
808
808
  const { data: c = {}, message: d = "" } = t;
809
809
  r.value = c, i.value = d, s && s(!0, c), l.value = !1;
@@ -928,7 +928,7 @@ const gt = { class: "bsgoal-base-table" }, ft = { class: "base_table" }, vt = {
928
928
  },
929
929
  /**
930
930
  * 表格高度
931
- *
931
+ *
932
932
  * 默认 : 自动计算
933
933
  * 布尔值 : 默认表格高度
934
934
  * 字符串 : 直接赋值给 height
@@ -941,61 +941,65 @@ const gt = { class: "bsgoal-base-table" }, ft = { class: "base_table" }, vt = {
941
941
  /**
942
942
  * 是否显示分页
943
943
  */
944
- page: {
944
+ hasPage: {
945
945
  type: Boolean,
946
946
  default: !0
947
947
  }
948
948
  },
949
949
  setup(e, { expose: s }) {
950
- const l = e, r = J(() => {
951
- const { configOptions: v = [], operation: A = !1, operationWidth: D = 0 } = l, S = u(v), F = [];
952
- return A && F.push({
950
+ const l = e, r = Z(() => {
951
+ const { configOptions: A = [], operation: O = !1, operationWidth: I = 0 } = l, U = u(A), z = [];
952
+ return O && z.push({
953
953
  label: "操作",
954
954
  fixed: "right",
955
955
  prop: "operation",
956
- width: D
957
- }), [...S, ...F];
958
- }), i = k(null), t = Ve("transferFoldStatus");
959
- pe(() => {
960
- const { height: v } = l, A = t ? t.value : !1, D = u(l.expression);
961
- mt(v) || dt(i, { arg: A, expression: D, height: v });
956
+ width: I
957
+ }), [...U, ...z];
958
+ }), i = D(null), t = Ve("transferFoldStatus");
959
+ Ee(() => {
960
+ const { height: A } = l, O = t ? t.value : !1, I = u(l.expression);
961
+ mt(A) || dt(i, { arg: O, expression: I, height: A });
962
962
  });
963
- const c = k(1), d = k(10), p = k(0), N = k({}), M = k(l.loading), B = k(l.data), w = k({}), U = () => {
964
- const { fetch: v, call: A, mapProps: D } = l, S = N.value, F = c.value, R = d.value, L = xe({}, S), I = u(D);
965
- L[I.currentPage] = F, L[I.pageSize] = R, be(v(L), A, M, w);
963
+ const c = u(l.mapProps), d = ve({
964
+ currentPage: "currentPage",
965
+ pageSize: "pageSize",
966
+ rows: "rows",
967
+ total: "total"
968
+ }, c), v = D(1), N = D(10), k = D(0), x = D({}), V = D(l.loading), R = D(l.data), p = D({}), y = () => {
969
+ const { fetch: A, call: O, hasPage: I } = l, U = x.value, z = v.value, F = N.value, P = ve({}, U);
970
+ I && (P[d.currentPage] = z, P[d.pageSize] = F), ye(A(P), O, V, p);
966
971
  };
967
- ie(w, (v) => {
968
- const { mapProps: A } = l, D = u(A);
969
- B.value = v[D.rows], p.value = v[D.total];
972
+ de(p, (A) => {
973
+ l.hasPage ? (R.value = A[d.rows], k.value = A[d.total]) : R.value = A;
970
974
  });
971
- const E = (v = {}) => {
972
- N.value = v, c.value = 1, U();
973
- }, T = (v = 1) => {
974
- c.value = v;
975
- }, C = (v = 10) => {
976
- d.value = v;
975
+ const C = (A = {}) => {
976
+ x.value = A, v.value = 1, y();
977
+ }, B = (A = 1) => {
978
+ v.value = A;
979
+ }, M = (A = 10) => {
980
+ N.value = A;
977
981
  };
978
- return ie([c, d], () => {
979
- U();
982
+ return de([v, N], () => {
983
+ y();
980
984
  }), s({
981
- refreshList: E
982
- }), (v, A) => {
983
- const D = f("el-table-column"), S = f("el-table"), F = ke("loading");
984
- return n(), y("div", gt, [
985
- O("div", ft, [
986
- v.$slots.menu ? (n(), y("div", vt, [
987
- q(v.$slots, "menu")
988
- ])) : V("", !0),
989
- O("div", {
985
+ refreshList: C
986
+ }), (A, O) => {
987
+ const I = f("el-table-column"), U = f("el-table"), z = ke("loading");
988
+ return n(), b("div", gt, [
989
+ S("div", ft, [
990
+ A.$slots.menu ? (n(), b("div", vt, [
991
+ q(A.$slots, "menu")
992
+ ])) : $("", !0),
993
+ S("div", {
990
994
  ref_key: "EL_TABLE_WRAP_REF",
991
995
  ref: i
992
996
  }, [
993
- Q((n(), b(S, {
997
+ X((n(), E(U, {
994
998
  stripe: "",
995
999
  border: "",
996
1000
  "highlight-current-row": "",
997
1001
  style: { width: "100%" },
998
- data: B.value,
1002
+ data: R.value,
999
1003
  "header-cell-style": {
1000
1004
  fontWeight: "bold",
1001
1005
  backgroundColor: "#EBEEF5",
@@ -1003,30 +1007,38 @@ const gt = { class: "bsgoal-base-table" }, ft = { class: "base_table" }, vt = {
1003
1007
  fontSize: "14px"
1004
1008
  }
1005
1009
  }, {
1006
- empty: x(() => [
1007
- $(it)
1010
+ empty: T(() => [
1011
+ w(it)
1008
1012
  ]),
1009
- default: x(() => [
1010
- e.selection ? (n(), b(D, {
1013
+ default: T(() => [
1014
+ e.selection ? (n(), E(I, {
1011
1015
  key: 0,
1012
1016
  fixed: "left",
1013
1017
  type: "selection",
1014
1018
  width: "40"
1015
- })) : V("", !0),
1016
- (n(!0), y(z, null, X(u(r), ({ prop: R = "", label: L = "", align: I = "center", width: P = "", fixed: Z = !1, tooltip: ee = !1, limit: te = 0 } = {}, se) => (n(), b(D, {
1017
- key: se,
1018
- label: L,
1019
- align: I,
1020
- width: P,
1021
- fixed: Z,
1022
- "min-width": `${L.length * 14 + 24}px`
1019
+ })) : $("", !0),
1020
+ (n(!0), b(j, null, Q(u(r), ({
1021
+ prop: F = "",
1022
+ label: P = "",
1023
+ align: K = "center",
1024
+ width: te = "",
1025
+ fixed: ae = !1,
1026
+ tooltip: ue = !1,
1027
+ limit: se = 0
1028
+ } = {}, ce) => (n(), E(I, {
1029
+ key: ce,
1030
+ label: P,
1031
+ align: K,
1032
+ width: te,
1033
+ fixed: ae,
1034
+ "min-width": `${P.length * 14 + 24}px`
1023
1035
  }, {
1024
- default: x(({ row: ne }) => [
1025
- q(v.$slots, R, { row: ne }, () => [
1026
- $(Je, {
1027
- limit: te,
1028
- tooltip: ee,
1029
- data: ne[R]
1036
+ default: T(({ row: L }) => [
1037
+ q(A.$slots, F, { row: L }, () => [
1038
+ w(Je, {
1039
+ limit: se,
1040
+ tooltip: ue,
1041
+ data: L[F]
1030
1042
  }, null, 8, ["limit", "tooltip", "data"])
1031
1043
  ])
1032
1044
  ]),
@@ -1035,15 +1047,15 @@ const gt = { class: "bsgoal-base-table" }, ft = { class: "base_table" }, vt = {
1035
1047
  ]),
1036
1048
  _: 3
1037
1049
  }, 8, ["data", "header-cell-style"])), [
1038
- [F, M.value]
1050
+ [z, V.value]
1039
1051
  ])
1040
1052
  ], 512),
1041
- e.page ? (n(), b(nt, {
1053
+ e.hasPage ? (n(), E(nt, {
1042
1054
  key: 1,
1043
- total: p.value,
1044
- onOnCurrentChange: T,
1045
- onOnSizeChange: C
1046
- }, null, 8, ["total"])) : V("", !0)
1055
+ total: k.value,
1056
+ onOnCurrentChange: B,
1057
+ onOnSizeChange: M
1058
+ }, null, 8, ["total"])) : $("", !0)
1047
1059
  ])
1048
1060
  ]);
1049
1061
  };
@@ -1051,7 +1063,7 @@ const gt = { class: "bsgoal-base-table" }, ft = { class: "base_table" }, vt = {
1051
1063
  });
1052
1064
  const pt = {
1053
1065
  name: "BsgoalBaseLine"
1054
- }, ye = /* @__PURE__ */ Object.assign(pt, {
1066
+ }, Te = /* @__PURE__ */ Object.assign(pt, {
1055
1067
  props: {
1056
1068
  /**
1057
1069
  * 是否为垂直
@@ -1062,17 +1074,17 @@ const pt = {
1062
1074
  }
1063
1075
  },
1064
1076
  setup(e) {
1065
- return (s, l) => (n(), y("div", {
1066
- class: de(["bsgoal-base-line", { "bsgoal-base-line__vertical": e.vertical }])
1077
+ return (s, l) => (n(), b("div", {
1078
+ class: _e(["bsgoal-base-line", { "bsgoal-base-line__vertical": e.vertical }])
1067
1079
  }, [
1068
- O("div", {
1069
- class: de(["base_line", { base_line__vertical: e.vertical }])
1080
+ S("div", {
1081
+ class: _e(["base_line", { base_line__vertical: e.vertical }])
1070
1082
  }, null, 2)
1071
1083
  ], 2));
1072
1084
  }
1073
1085
  });
1074
1086
  /*! Element Plus Icons Vue v2.1.0 */
1075
- var ue = (e, s) => {
1087
+ var oe = (e, s) => {
1076
1088
  let l = e.__vccOpts || e;
1077
1089
  for (let [r, i] of s)
1078
1090
  l[r] = i;
@@ -1082,7 +1094,7 @@ var ue = (e, s) => {
1082
1094
  }, bt = {
1083
1095
  xmlns: "http://www.w3.org/2000/svg",
1084
1096
  viewBox: "0 0 1024 1024"
1085
- }, yt = /* @__PURE__ */ O(
1097
+ }, yt = /* @__PURE__ */ S(
1086
1098
  "path",
1087
1099
  {
1088
1100
  fill: "currentColor",
@@ -1095,14 +1107,14 @@ var ue = (e, s) => {
1095
1107
  yt
1096
1108
  ];
1097
1109
  function At(e, s, l, r, i, t) {
1098
- return n(), y("svg", bt, Tt);
1110
+ return n(), b("svg", bt, Tt);
1099
1111
  }
1100
- var xt = /* @__PURE__ */ ue(Et, [["render", At], ["__file", "arrow-down.vue"]]), Ct = {
1112
+ var xt = /* @__PURE__ */ oe(Et, [["render", At], ["__file", "arrow-down.vue"]]), Ct = {
1101
1113
  name: "ArrowLeft"
1102
1114
  }, Vt = {
1103
1115
  xmlns: "http://www.w3.org/2000/svg",
1104
1116
  viewBox: "0 0 1024 1024"
1105
- }, Mt = /* @__PURE__ */ O(
1117
+ }, Mt = /* @__PURE__ */ S(
1106
1118
  "path",
1107
1119
  {
1108
1120
  fill: "currentColor",
@@ -1115,14 +1127,14 @@ var xt = /* @__PURE__ */ ue(Et, [["render", At], ["__file", "arrow-down.vue"]]),
1115
1127
  Mt
1116
1128
  ];
1117
1129
  function Nt(e, s, l, r, i, t) {
1118
- return n(), y("svg", Vt, $t);
1130
+ return n(), b("svg", Vt, $t);
1119
1131
  }
1120
- var Bt = /* @__PURE__ */ ue(Ct, [["render", Nt], ["__file", "arrow-left.vue"]]), wt = {
1132
+ var wt = /* @__PURE__ */ oe(Ct, [["render", Nt], ["__file", "arrow-left.vue"]]), Bt = {
1121
1133
  name: "ArrowRight"
1122
1134
  }, Dt = {
1123
1135
  xmlns: "http://www.w3.org/2000/svg",
1124
1136
  viewBox: "0 0 1024 1024"
1125
- }, kt = /* @__PURE__ */ O(
1137
+ }, kt = /* @__PURE__ */ S(
1126
1138
  "path",
1127
1139
  {
1128
1140
  fill: "currentColor",
@@ -1131,18 +1143,18 @@ var Bt = /* @__PURE__ */ ue(Ct, [["render", Nt], ["__file", "arrow-left.vue"]]),
1131
1143
  null,
1132
1144
  -1
1133
1145
  /* HOISTED */
1134
- ), Ot = [
1146
+ ), St = [
1135
1147
  kt
1136
1148
  ];
1137
- function St(e, s, l, r, i, t) {
1138
- return n(), y("svg", Dt, Ot);
1149
+ function Ot(e, s, l, r, i, t) {
1150
+ return n(), b("svg", Dt, St);
1139
1151
  }
1140
- var It = /* @__PURE__ */ ue(wt, [["render", St], ["__file", "arrow-right.vue"]]), Ft = {
1152
+ var It = /* @__PURE__ */ oe(Bt, [["render", Ot], ["__file", "arrow-right.vue"]]), Ft = {
1141
1153
  name: "ArrowUp"
1142
1154
  }, Rt = {
1143
1155
  xmlns: "http://www.w3.org/2000/svg",
1144
1156
  viewBox: "0 0 1024 1024"
1145
- }, Ut = /* @__PURE__ */ O(
1157
+ }, Ut = /* @__PURE__ */ S(
1146
1158
  "path",
1147
1159
  {
1148
1160
  fill: "currentColor",
@@ -1151,18 +1163,18 @@ var It = /* @__PURE__ */ ue(wt, [["render", St], ["__file", "arrow-right.vue"]])
1151
1163
  null,
1152
1164
  -1
1153
1165
  /* HOISTED */
1154
- ), Lt = [
1166
+ ), Pt = [
1155
1167
  Ut
1156
1168
  ];
1157
- function zt(e, s, l, r, i, t) {
1158
- return n(), y("svg", Rt, Lt);
1169
+ function Lt(e, s, l, r, i, t) {
1170
+ return n(), b("svg", Rt, Pt);
1159
1171
  }
1160
- var jt = /* @__PURE__ */ ue(Ft, [["render", zt], ["__file", "arrow-up.vue"]]), Pt = {
1172
+ var zt = /* @__PURE__ */ oe(Ft, [["render", Lt], ["__file", "arrow-up.vue"]]), jt = {
1161
1173
  name: "Delete"
1162
1174
  }, Yt = {
1163
1175
  xmlns: "http://www.w3.org/2000/svg",
1164
1176
  viewBox: "0 0 1024 1024"
1165
- }, Gt = /* @__PURE__ */ O(
1177
+ }, Gt = /* @__PURE__ */ S(
1166
1178
  "path",
1167
1179
  {
1168
1180
  fill: "currentColor",
@@ -1175,14 +1187,14 @@ var jt = /* @__PURE__ */ ue(Ft, [["render", zt], ["__file", "arrow-up.vue"]]), P
1175
1187
  Gt
1176
1188
  ];
1177
1189
  function Wt(e, s, l, r, i, t) {
1178
- return n(), y("svg", Yt, Ht);
1190
+ return n(), b("svg", Yt, Ht);
1179
1191
  }
1180
- var Xt = /* @__PURE__ */ ue(Pt, [["render", Wt], ["__file", "delete.vue"]]), Qt = {
1192
+ var Xt = /* @__PURE__ */ oe(jt, [["render", Wt], ["__file", "delete.vue"]]), Qt = {
1181
1193
  name: "Search"
1182
1194
  }, Zt = {
1183
1195
  xmlns: "http://www.w3.org/2000/svg",
1184
1196
  viewBox: "0 0 1024 1024"
1185
- }, Kt = /* @__PURE__ */ O(
1197
+ }, Kt = /* @__PURE__ */ S(
1186
1198
  "path",
1187
1199
  {
1188
1200
  fill: "currentColor",
@@ -1195,9 +1207,9 @@ var Xt = /* @__PURE__ */ ue(Pt, [["render", Wt], ["__file", "delete.vue"]]), Qt
1195
1207
  Kt
1196
1208
  ];
1197
1209
  function qt(e, s, l, r, i, t) {
1198
- return n(), y("svg", Zt, Jt);
1210
+ return n(), b("svg", Zt, Jt);
1199
1211
  }
1200
- var ea = /* @__PURE__ */ ue(Qt, [["render", qt], ["__file", "search.vue"]]);
1212
+ var ea = /* @__PURE__ */ oe(Qt, [["render", qt], ["__file", "search.vue"]]);
1201
1213
  const ta = { class: "bsgoal-base-search-operation" }, aa = {
1202
1214
  name: "BsgoalBaseSearchOperation"
1203
1215
  }, la = /* @__PURE__ */ Object.assign(aa, {
@@ -1212,50 +1224,50 @@ const ta = { class: "bsgoal-base-search-operation" }, aa = {
1212
1224
  },
1213
1225
  emits: ["on-fold"],
1214
1226
  setup(e, { emit: s }) {
1215
- const l = k(!1), r = () => {
1227
+ const l = D(!1), r = () => {
1216
1228
  l.value = !u(l), s("on-fold", l.value);
1217
1229
  };
1218
1230
  return (i, t) => {
1219
1231
  const c = f("el-button"), d = f("el-icon");
1220
- return n(), y("div", ta, [
1221
- $(c, {
1232
+ return n(), b("div", ta, [
1233
+ w(c, {
1222
1234
  type: "primary",
1223
1235
  icon: u(ea),
1224
- onClick: t[0] || (t[0] = (p) => i.$emit("on-search"))
1236
+ onClick: t[0] || (t[0] = (v) => i.$emit("on-search"))
1225
1237
  }, {
1226
- default: x(() => [
1238
+ default: T(() => [
1227
1239
  W("搜索")
1228
1240
  ]),
1229
1241
  _: 1
1230
1242
  }, 8, ["icon"]),
1231
- $(c, {
1243
+ w(c, {
1232
1244
  icon: u(Xt),
1233
- onClick: t[1] || (t[1] = (p) => i.$emit("on-clear"))
1245
+ onClick: t[1] || (t[1] = (v) => i.$emit("on-clear"))
1234
1246
  }, {
1235
- default: x(() => [
1247
+ default: T(() => [
1236
1248
  W("清空")
1237
1249
  ]),
1238
1250
  _: 1
1239
1251
  }, 8, ["icon"]),
1240
- e.fold ? (n(), y("div", {
1252
+ e.fold ? (n(), b("div", {
1241
1253
  key: 0,
1242
1254
  class: "operation_fold",
1243
1255
  style: { color: "var(--el-color-primary)" },
1244
1256
  onClick: r
1245
1257
  }, [
1246
- W(j(l.value ? "收起" : "展开"), 1),
1247
- $(d, { color: "#409EFC" }, {
1248
- default: x(() => [
1249
- Q($(u(jt), null, null, 512), [
1250
- [le, l.value]
1258
+ W(Y(l.value ? "收起" : "展开"), 1),
1259
+ w(d, { color: "#409EFC" }, {
1260
+ default: T(() => [
1261
+ X(w(u(zt), null, null, 512), [
1262
+ [ee, l.value]
1251
1263
  ]),
1252
- Q($(u(xt), null, null, 512), [
1253
- [le, !l.value]
1264
+ X(w(u(xt), null, null, 512), [
1265
+ [ee, !l.value]
1254
1266
  ])
1255
1267
  ]),
1256
1268
  _: 1
1257
1269
  })
1258
- ])) : V("", !0)
1270
+ ])) : $("", !0)
1259
1271
  ]);
1260
1272
  };
1261
1273
  }
@@ -1295,7 +1307,7 @@ const na = { class: "bsgoal-base-cascader" }, oa = {
1295
1307
  },
1296
1308
  emits: ["update:model-value", "on-change"],
1297
1309
  setup(e, { emit: s }) {
1298
- const l = k({
1310
+ const l = D({
1299
1311
  checkStrictly: !0,
1300
1312
  multiple: !1
1301
1313
  }), r = (i) => {
@@ -1303,8 +1315,8 @@ const na = { class: "bsgoal-base-cascader" }, oa = {
1303
1315
  };
1304
1316
  return (i, t) => {
1305
1317
  const c = f("el-cascader");
1306
- return n(), y("div", na, [
1307
- $(c, {
1318
+ return n(), b("div", na, [
1319
+ w(c, {
1308
1320
  clearable: "",
1309
1321
  class: "base_cascader",
1310
1322
  "show-all-levels": !1,
@@ -1362,22 +1374,22 @@ const sa = { class: "bsgoal-base-search" }, ca = { class: "base_search" }, ra =
1362
1374
  },
1363
1375
  emits: ["on-search", "on-clear", "on-change", "on-fold"],
1364
1376
  setup(e, { emit: s }) {
1365
- const l = e, r = k(null), i = Ee.align, t = k({});
1366
- pe(() => {
1367
- const { configOptions: T } = l;
1368
- u(T).forEach((v) => {
1369
- const { value: A, prop: D = "", type: S = "" } = v;
1370
- [a.INPUT, a.INPUT_TEXT_AREA].includes(S), t.value[D] = [0, !1].includes(A) ? A : "";
1377
+ const l = e, r = D(null), i = be.align, t = D({});
1378
+ Ee(() => {
1379
+ const { configOptions: y } = l;
1380
+ u(y).forEach((B) => {
1381
+ const { value: M, prop: A = "", type: O = "" } = B;
1382
+ [a.INPUT, a.INPUT_TEXT_AREA].includes(O), t.value[A] = [0, !1].includes(M) ? M : "";
1371
1383
  });
1372
1384
  });
1373
- const c = J(() => {
1374
- const { configOptions: T } = l, C = u(T), v = {
1385
+ const c = Z(() => {
1386
+ const { configOptions: y } = l, C = u(y), B = {
1375
1387
  type: a.OPERATION
1376
1388
  };
1377
- return [...C, v];
1378
- }), d = (T = "", C = "", v = "") => {
1379
- if (!v)
1380
- switch (T) {
1389
+ return [...C, B];
1390
+ }), d = (y = "", C = "", B = "") => {
1391
+ if (!B)
1392
+ switch (y) {
1381
1393
  case a.INPUT:
1382
1394
  case a.INPUT_TEXT_AREA:
1383
1395
  return `请输入${C}`;
@@ -1398,10 +1410,10 @@ const sa = { class: "bsgoal-base-search" }, ca = { class: "base_search" }, ra =
1398
1410
  case a.MONTH_RANGE:
1399
1411
  return ["开始月份", "结束月份"];
1400
1412
  }
1401
- return v;
1402
- }, p = (T = "", C = "") => {
1413
+ return B;
1414
+ }, v = (y = "", C = "") => {
1403
1415
  if (!C)
1404
- switch (T) {
1416
+ switch (y) {
1405
1417
  case a.WEEK:
1406
1418
  return "ww";
1407
1419
  case a.DATE:
@@ -1422,233 +1434,233 @@ const sa = { class: "bsgoal-base-search" }, ca = { class: "base_search" }, ra =
1422
1434
  }
1423
1435
  return C;
1424
1436
  }, N = () => {
1425
- const { configOptions: T } = l, C = u(t), v = u(T), A = {};
1426
- for (const D of v) {
1427
- const { type: S = "", range: F = [], prop: R = "", single: L = !1 } = D, I = C[R];
1428
- if ([a.CASCADER].includes(S) && Array.isArray(I) && L) {
1429
- const P = I.length;
1430
- P ? A[R] = I[P - 1] : A[R] = I;
1437
+ const { configOptions: y } = l, C = u(t), B = u(y), M = {};
1438
+ for (const A of B) {
1439
+ const { type: O = "", range: I = [], prop: U = "", single: z = !1 } = A, F = C[U];
1440
+ if ([a.CASCADER].includes(O) && Array.isArray(F) && z) {
1441
+ const P = F.length;
1442
+ P ? M[U] = F[P - 1] : M[U] = F;
1431
1443
  } else
1432
- Oe(I) ? A[R] = Se(I) : A[R] = I;
1433
- if (S.endsWith("range") && F && F.length === 2) {
1434
- const { 0: P = "", 1: Z = "" } = I, { 0: ee = "", 1: te = "" } = F;
1435
- A[ee] = P, A[te] = Z;
1444
+ Se(F) ? M[U] = Oe(F) : M[U] = F;
1445
+ if (O.endsWith("range") && I && I.length === 2) {
1446
+ const { 0: P = "", 1: K = "" } = F, { 0: te = "", 1: ae = "" } = I;
1447
+ M[te] = P, M[ae] = K;
1436
1448
  }
1437
1449
  }
1438
- s("on-search", A), s("update:modelValue", A);
1450
+ s("on-search", M), s("update:modelValue", M);
1439
1451
  };
1440
1452
  Ce(() => {
1441
1453
  N();
1442
1454
  });
1443
- const M = () => {
1455
+ const k = () => {
1444
1456
  r.value.resetFields(), s("on-clear", t.value);
1445
- }, B = Ve("transferFoldStatus"), w = k(!1), U = (T = !1) => {
1446
- w.value = T, B && (B.value = T), s("on-fold", w);
1447
- }, E = (T, C) => {
1457
+ }, x = Ve("transferFoldStatus"), V = D(!1), R = (y = !1) => {
1458
+ V.value = y, x && (x.value = y), s("on-fold", V);
1459
+ }, p = (y, C) => {
1448
1460
  N();
1449
- const v = {
1450
- type: T,
1461
+ const B = {
1462
+ type: y,
1451
1463
  prop: C,
1452
1464
  value: t.value[C] || ""
1453
1465
  };
1454
- s("on-change", v);
1466
+ s("on-change", B);
1455
1467
  };
1456
- return (T, C) => {
1457
- const v = f("el-input"), A = f("el-input-number"), D = f("el-radio"), S = f("el-radio-group"), F = f("el-option"), R = f("el-select"), L = f("el-slider"), I = f("el-switch"), P = f("el-date-picker"), Z = f("el-time-picker"), ee = f("el-checkbox"), te = f("el-checkbox-group"), se = f("el-form-item"), ne = f("el-col"), fe = f("el-row"), Y = f("el-form");
1458
- return n(), y("div", sa, [
1459
- O("div", ca, [
1460
- Q((n(), b(Y, {
1468
+ return (y, C) => {
1469
+ const B = f("el-input"), M = f("el-input-number"), A = f("el-radio"), O = f("el-radio-group"), I = f("el-option"), U = f("el-select"), z = f("el-slider"), F = f("el-switch"), P = f("el-date-picker"), K = f("el-time-picker"), te = f("el-checkbox"), ae = f("el-checkbox-group"), ue = f("el-form-item"), se = f("el-col"), ce = f("el-row"), L = f("el-form");
1470
+ return n(), b("div", sa, [
1471
+ S("div", ca, [
1472
+ X((n(), E(L, {
1461
1473
  ref_key: "EL_FORM_REF",
1462
1474
  ref: r,
1463
1475
  "label-suffix": ":",
1464
1476
  "show-message": !1,
1465
1477
  model: t.value
1466
1478
  }, {
1467
- default: x(() => [
1468
- $(fe, null, {
1469
- default: x(() => [
1470
- (n(!0), y(z, null, X(u(c), ({
1479
+ default: T(() => [
1480
+ w(ce, null, {
1481
+ default: T(() => [
1482
+ (n(!0), b(j, null, Q(u(c), ({
1471
1483
  label: h = "",
1472
1484
  prop: o = "",
1473
1485
  type: _ = "text",
1474
1486
  placeholder: G = "",
1475
- readonly: _e = !1,
1476
- clearable: me = !0,
1477
- rows: ge = 2,
1478
- min: ce = 1,
1479
- max: K = 10,
1487
+ readonly: me = !1,
1488
+ clearable: ge = !0,
1489
+ rows: fe = 2,
1490
+ min: re = 1,
1491
+ max: J = 10,
1480
1492
  range: H = [],
1481
- format: ae = ""
1482
- } = {}, oe) => Q((n(), b(ne, {
1483
- key: oe,
1493
+ format: le = ""
1494
+ } = {}, ne) => X((n(), E(se, {
1495
+ key: ne,
1484
1496
  xs: 24,
1485
1497
  sm: 12,
1486
1498
  md: e.medium
1487
1499
  }, {
1488
- default: x(() => [
1489
- $(se, {
1500
+ default: T(() => [
1501
+ w(ue, {
1490
1502
  label: h,
1491
1503
  prop: o
1492
1504
  }, {
1493
- default: x(() => [
1494
- _e ? (n(), y("div", ra, j(t.value[o]), 1)) : (n(), y(z, { key: 0 }, [
1495
- _ === u(a).INPUT ? (n(), b(v, {
1505
+ default: T(() => [
1506
+ me ? (n(), b("div", ra, Y(t.value[o]), 1)) : (n(), b(j, { key: 0 }, [
1507
+ _ === u(a).INPUT ? (n(), E(B, {
1496
1508
  key: 0,
1497
1509
  modelValue: t.value[o],
1498
1510
  "onUpdate:modelValue": (g) => t.value[o] = g,
1499
1511
  placeholder: d(_, h, G),
1500
- clearable: me,
1501
- onChange: (g) => E(_, o)
1502
- }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : V("", !0),
1503
- _ === u(a).INPUT_TEXT_AREA ? (n(), b(v, {
1512
+ clearable: ge,
1513
+ onChange: (g) => p(_, o)
1514
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : $("", !0),
1515
+ _ === u(a).INPUT_TEXT_AREA ? (n(), E(B, {
1504
1516
  key: 1,
1505
1517
  modelValue: t.value[o],
1506
1518
  "onUpdate:modelValue": (g) => t.value[o] = g,
1507
1519
  type: "textarea",
1508
- rows: ge,
1509
- clearable: me,
1520
+ rows: fe,
1521
+ clearable: ge,
1510
1522
  placeholder: d(_, h, G),
1511
- onChange: (g) => E(_, o)
1512
- }, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : V("", !0),
1513
- _ === u(a).INPUT_NUMBER ? (n(), b(A, {
1523
+ onChange: (g) => p(_, o)
1524
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : $("", !0),
1525
+ _ === u(a).INPUT_NUMBER ? (n(), E(M, {
1514
1526
  key: 2,
1515
- modelValue: T.num,
1516
- "onUpdate:modelValue": C[0] || (C[0] = (g) => T.num = g),
1517
- min: ce,
1518
- max: K,
1519
- onChange: E
1520
- }, null, 8, ["modelValue", "min", "max"])) : V("", !0),
1521
- _ === u(a).RADIO ? (n(), b(S, {
1527
+ modelValue: y.num,
1528
+ "onUpdate:modelValue": C[0] || (C[0] = (g) => y.num = g),
1529
+ min: re,
1530
+ max: J,
1531
+ onChange: p
1532
+ }, null, 8, ["modelValue", "min", "max"])) : $("", !0),
1533
+ _ === u(a).RADIO ? (n(), E(O, {
1522
1534
  key: 3,
1523
1535
  modelValue: t.value[o],
1524
1536
  "onUpdate:modelValue": (g) => t.value[o] = g,
1525
- onChange: (g) => E(_, o)
1537
+ onChange: (g) => p(_, o)
1526
1538
  }, {
1527
- default: x(() => [
1528
- (n(!0), y(z, null, X(H, (g, m) => (n(), b(D, {
1539
+ default: T(() => [
1540
+ (n(!0), b(j, null, Q(H, (g, m) => (n(), E(A, {
1529
1541
  key: m,
1530
1542
  label: g.value
1531
1543
  }, {
1532
- default: x(() => [
1533
- W(j(g.label), 1)
1544
+ default: T(() => [
1545
+ W(Y(g.label), 1)
1534
1546
  ]),
1535
1547
  _: 2
1536
1548
  }, 1032, ["label"]))), 128))
1537
1549
  ]),
1538
1550
  _: 2
1539
- }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : V("", !0),
1540
- _ === u(a).SELECT ? (n(), b(R, {
1551
+ }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : $("", !0),
1552
+ _ === u(a).SELECT ? (n(), E(U, {
1541
1553
  key: 4,
1542
1554
  modelValue: t.value[o],
1543
1555
  "onUpdate:modelValue": (g) => t.value[o] = g,
1544
1556
  placeholder: d(_, h, G),
1545
- onChange: (g) => E(_, o)
1557
+ onChange: (g) => p(_, o)
1546
1558
  }, {
1547
- default: x(() => [
1548
- (n(!0), y(z, null, X(H, (g, m) => (n(), b(F, {
1559
+ default: T(() => [
1560
+ (n(!0), b(j, null, Q(H, (g, m) => (n(), E(I, {
1549
1561
  key: m,
1550
1562
  label: g.label,
1551
1563
  value: g.value
1552
1564
  }, null, 8, ["label", "value"]))), 128))
1553
1565
  ]),
1554
1566
  _: 2
1555
- }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : V("", !0),
1556
- _ === u(a).SLIDER ? (n(), b(L, {
1567
+ }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : $("", !0),
1568
+ _ === u(a).SLIDER ? (n(), E(z, {
1557
1569
  key: 5,
1558
1570
  modelValue: t.value[o],
1559
1571
  "onUpdate:modelValue": (g) => t.value[o] = g,
1560
- min: ce,
1561
- max: K,
1562
- onChange: (g) => E(_, o)
1563
- }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : V("", !0),
1564
- _ === u(a).SWITCH ? (n(), b(I, {
1572
+ min: re,
1573
+ max: J,
1574
+ onChange: (g) => p(_, o)
1575
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : $("", !0),
1576
+ _ === u(a).SWITCH ? (n(), E(F, {
1565
1577
  key: 6,
1566
1578
  modelValue: t.value[o],
1567
1579
  "onUpdate:modelValue": (g) => t.value[o] = g,
1568
1580
  "active-value": H[0] || !0,
1569
1581
  "inactive-value": H[1] || !1,
1570
- onChange: (g) => E(_, o)
1571
- }, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : V("", !0),
1582
+ onChange: (g) => p(_, o)
1583
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : $("", !0),
1572
1584
  [u(a).DATE, u(a).MONTH, u(a).YEAR, u(a).DATE_TIME].includes(
1573
1585
  _
1574
- ) ? (n(), b(P, {
1586
+ ) ? (n(), E(P, {
1575
1587
  key: 7,
1576
1588
  modelValue: t.value[o],
1577
1589
  "onUpdate:modelValue": (g) => t.value[o] = g,
1578
- format: p(_, ae),
1579
- "value-format": p(_, ae),
1590
+ format: v(_, le),
1591
+ "value-format": v(_, le),
1580
1592
  type: _,
1581
1593
  placeholder: d(_, h, G),
1582
- onChange: (g) => E(_, o)
1583
- }, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : V("", !0),
1594
+ onChange: (g) => p(_, o)
1595
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : $("", !0),
1584
1596
  [
1585
1597
  u(a).DATE_RANGE,
1586
1598
  u(a).MONTH_RANGE,
1587
1599
  u(a).DATE_TIME_RANGE
1588
- ].includes(_) ? (n(), b(P, {
1600
+ ].includes(_) ? (n(), E(P, {
1589
1601
  key: 8,
1590
1602
  modelValue: t.value[o],
1591
1603
  "onUpdate:modelValue": (g) => t.value[o] = g,
1592
1604
  type: _,
1593
- "value-format": p(_, ae),
1605
+ "value-format": v(_, le),
1594
1606
  "start-placeholder": d(_, h, G)[0],
1595
1607
  "end-placeholder": d(_, h, G)[1],
1596
- onChange: (g) => E(_, o)
1597
- }, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : V("", !0),
1598
- [u(a).TIME].includes(_) ? (n(), b(Z, {
1608
+ onChange: (g) => p(_, o)
1609
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : $("", !0),
1610
+ [u(a).TIME].includes(_) ? (n(), E(K, {
1599
1611
  key: 9,
1600
1612
  modelValue: t.value[o],
1601
1613
  "onUpdate:modelValue": (g) => t.value[o] = g,
1602
1614
  "arrow-control": "",
1603
- "value-format": p(_, ae),
1615
+ "value-format": v(_, le),
1604
1616
  placeholder: d(_, h, G),
1605
- onChange: (g) => E(_, o)
1606
- }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : V("", !0),
1607
- [u(a).TIME_RANGE].includes(_) ? (n(), b(Z, {
1617
+ onChange: (g) => p(_, o)
1618
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : $("", !0),
1619
+ [u(a).TIME_RANGE].includes(_) ? (n(), E(K, {
1608
1620
  key: 10,
1609
1621
  modelValue: t.value[o],
1610
1622
  "onUpdate:modelValue": (g) => t.value[o] = g,
1611
1623
  "is-range": "",
1612
- "value-format": p(_, ae),
1624
+ "value-format": v(_, le),
1613
1625
  "start-placeholder": d(_, h, G)[0],
1614
1626
  "end-placeholder": d(_, h, G)[1],
1615
- onChange: (g) => E(_, o)
1616
- }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : V("", !0),
1617
- [u(a).CHECKBOX].includes(_) ? (n(), b(te, {
1627
+ onChange: (g) => p(_, o)
1628
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : $("", !0),
1629
+ [u(a).CHECKBOX].includes(_) ? (n(), E(ae, {
1618
1630
  key: 11,
1619
1631
  modelValue: t.value[o],
1620
1632
  "onUpdate:modelValue": (g) => t.value[o] = g,
1621
- onChange: (g) => E(_, o)
1633
+ onChange: (g) => p(_, o)
1622
1634
  }, {
1623
- default: x(() => [
1624
- (n(!0), y(z, null, X(H, (g, m) => (n(), b(ee, {
1635
+ default: T(() => [
1636
+ (n(!0), b(j, null, Q(H, (g, m) => (n(), E(te, {
1625
1637
  key: m,
1626
1638
  label: g.value
1627
1639
  }, {
1628
- default: x(() => [
1629
- W(j(g.label), 1)
1640
+ default: T(() => [
1641
+ W(Y(g.label), 1)
1630
1642
  ]),
1631
1643
  _: 2
1632
1644
  }, 1032, ["label"]))), 128))
1633
1645
  ]),
1634
1646
  _: 2
1635
- }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : V("", !0),
1636
- [u(a).CASCADER].includes(_) ? (n(), b(ua, {
1647
+ }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : $("", !0),
1648
+ [u(a).CASCADER].includes(_) ? (n(), E(ua, {
1637
1649
  key: 12,
1638
1650
  modelValue: t.value[o],
1639
1651
  "onUpdate:modelValue": (g) => t.value[o] = g,
1640
1652
  "data-options": H,
1641
1653
  placeholder: d(_, h, G),
1642
- onOnChange: (g) => E(_, o)
1643
- }, null, 8, ["modelValue", "onUpdate:modelValue", "data-options", "placeholder", "onOnChange"])) : V("", !0),
1644
- [].includes(_) ? (n(), y(z, { key: 13 }, [], 64)) : V("", !0),
1645
- [u(a).OPERATION].includes(_) ? (n(), b(la, {
1654
+ onOnChange: (g) => p(_, o)
1655
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "data-options", "placeholder", "onOnChange"])) : $("", !0),
1656
+ [].includes(_) ? (n(), b(j, { key: 13 }, [], 64)) : $("", !0),
1657
+ [u(a).OPERATION].includes(_) ? (n(), E(la, {
1646
1658
  key: 14,
1647
- fold: oe >= 7,
1659
+ fold: ne >= 7,
1648
1660
  onOnSearch: N,
1649
- onOnClear: M,
1650
- onOnFold: U
1651
- }, null, 8, ["fold"])) : V("", !0)
1661
+ onOnClear: k,
1662
+ onOnFold: R
1663
+ }, null, 8, ["fold"])) : $("", !0)
1652
1664
  ], 64))
1653
1665
  ]),
1654
1666
  _: 2
@@ -1656,7 +1668,7 @@ const sa = { class: "bsgoal-base-search" }, ca = { class: "base_search" }, ra =
1656
1668
  ]),
1657
1669
  _: 2
1658
1670
  }, 1032, ["md"])), [
1659
- [le, oe < 7 || _ === u(a).OPERATION || oe >= 7 && w.value]
1671
+ [ee, ne < 7 || _ === u(a).OPERATION || ne >= 7 && V.value]
1660
1672
  ])), 128))
1661
1673
  ]),
1662
1674
  _: 1
@@ -1667,7 +1679,7 @@ const sa = { class: "bsgoal-base-search" }, ca = { class: "base_search" }, ra =
1667
1679
  [u(i)]
1668
1680
  ])
1669
1681
  ]),
1670
- $(ye)
1682
+ w(Te)
1671
1683
  ]);
1672
1684
  };
1673
1685
  }
@@ -1747,51 +1759,84 @@ const _a = { class: "bsgoal-base-search-table" }, ma = { class: "base_search_tab
1747
1759
  default: null
1748
1760
  },
1749
1761
  /**
1750
- * 表格高度 下边距值
1751
- */
1762
+ * 表格高度 下边距值
1763
+ */
1752
1764
  expression: {
1753
1765
  type: [Number],
1754
1766
  default: 75
1767
+ },
1768
+ /**
1769
+ * 映射字段
1770
+ */
1771
+ mapProps: {
1772
+ type: [Object],
1773
+ default: () => ({
1774
+ currentPage: "currentPage",
1775
+ pageSize: "pageSize",
1776
+ rows: "rows",
1777
+ total: "total"
1778
+ })
1779
+ },
1780
+ /**
1781
+ * 是否显示分页
1782
+ */
1783
+ hasPage: {
1784
+ type: Boolean,
1785
+ default: !0
1786
+ },
1787
+ /**
1788
+ * 是否显示查询
1789
+ */
1790
+ hasSearch: {
1791
+ type: Boolean,
1792
+ default: !0
1755
1793
  }
1756
1794
  },
1757
1795
  setup(e) {
1758
- const s = e, l = k(!1);
1796
+ const s = e, l = D(!1);
1759
1797
  Ie("transferFoldStatus", l);
1760
- const r = u(s.configOptions), i = J(() => r.filter((M) => {
1761
- const { type: B = "" } = M;
1762
- return !!B;
1763
- })), t = J(() => r.filter((M) => {
1764
- const { item: B = !1 } = M;
1765
- return !B;
1766
- })), c = Fe(), d = k(Object.keys(c)), p = k(null), N = (M) => {
1767
- p.value.refreshList(M);
1768
- };
1769
- return (M, B) => (n(), y("div", _a, [
1770
- O("div", ma, [
1771
- $(da, {
1798
+ const r = u(s.configOptions), i = Z(() => r.filter((x) => {
1799
+ const { type: V = "" } = x;
1800
+ return !!V;
1801
+ })), t = Z(() => r.filter((x) => {
1802
+ const { item: V = !1 } = x;
1803
+ return !V;
1804
+ })), c = Fe(), d = D(Object.keys(c)), v = D(null), N = (x) => {
1805
+ v.value.refreshList(x);
1806
+ }, k = Z(() => {
1807
+ const { expression: x, hasPage: V } = s;
1808
+ return V === !1 ? 25 : x;
1809
+ });
1810
+ return (x, V) => (n(), b("div", _a, [
1811
+ S("div", ma, [
1812
+ X(w(da, {
1772
1813
  "config-options": u(i),
1773
1814
  onOnSearch: N,
1774
1815
  onOnClear: N
1775
- }, null, 8, ["config-options"]),
1776
- $(Ne, {
1816
+ }, null, 8, ["config-options"]), [
1817
+ [ee, e.hasSearch]
1818
+ ]),
1819
+ w(Ne, {
1777
1820
  ref_key: "BSGOAL_BASE_TABLE_REF",
1778
- ref: p,
1821
+ ref: v,
1822
+ "map-props": e.mapProps,
1779
1823
  operationWidth: e.operationWidth,
1780
1824
  "config-options": u(t),
1781
1825
  data: e.tableData,
1782
1826
  selection: e.selection,
1783
1827
  operation: e.operation,
1784
- expression: e.expression,
1828
+ expression: u(k),
1785
1829
  fetch: e.fetch,
1786
- call: e.call
1830
+ call: e.call,
1831
+ "has-page": e.hasPage
1787
1832
  }, Re({ _: 2 }, [
1788
- X(d.value, (w) => ({
1789
- name: w,
1790
- fn: x(({ row: U = {} }) => [
1791
- q(M.$slots, w, { row: U })
1833
+ Q(d.value, (R) => ({
1834
+ name: R,
1835
+ fn: T(({ row: p = {} }) => [
1836
+ q(x.$slots, R, { row: p })
1792
1837
  ])
1793
1838
  }))
1794
- ]), 1032, ["operationWidth", "config-options", "data", "selection", "operation", "expression", "fetch", "call"])
1839
+ ]), 1032, ["map-props", "operationWidth", "config-options", "data", "selection", "operation", "expression", "fetch", "call", "has-page"])
1795
1840
  ])
1796
1841
  ]));
1797
1842
  }
@@ -1802,24 +1847,24 @@ const va = { class: "bsgoal-base-tree-fold" }, ha = {
1802
1847
  props: ["modelValue"],
1803
1848
  emits: ["update:modelValue"],
1804
1849
  setup(e, { emit: s }) {
1805
- let l = k(!0);
1850
+ let l = D(!0);
1806
1851
  const r = () => {
1807
1852
  l.value = !l.value, s("update:modelValue", l.value);
1808
1853
  };
1809
1854
  return (i, t) => {
1810
1855
  const c = f("el-icon");
1811
- return n(), y("div", va, [
1812
- O("div", {
1813
- class: de(["base_tree_fold", { "base_tree_fold--hide": !u(l) }]),
1856
+ return n(), b("div", va, [
1857
+ S("div", {
1858
+ class: _e(["base_tree_fold", { "base_tree_fold--hide": !u(l) }]),
1814
1859
  onClick: r
1815
1860
  }, [
1816
- $(c, { color: "#fff" }, {
1817
- default: x(() => [
1818
- Q($(u(Bt), null, null, 512), [
1819
- [le, u(l)]
1861
+ w(c, { color: "#fff" }, {
1862
+ default: T(() => [
1863
+ X(w(u(wt), null, null, 512), [
1864
+ [ee, u(l)]
1820
1865
  ]),
1821
- Q($(u(It), null, null, 512), [
1822
- [le, !u(l)]
1866
+ X(w(u(It), null, null, 512), [
1867
+ [ee, !u(l)]
1823
1868
  ])
1824
1869
  ]),
1825
1870
  _: 1
@@ -1885,53 +1930,53 @@ const Ea = { class: "bsgoal-base-tree" }, ba = { class: "base_tree" }, ya = { cl
1885
1930
  },
1886
1931
  emits: ["on-click"],
1887
1932
  setup(e, { emit: s }) {
1888
- const l = e, r = Ee.height, i = k(""), t = k(null);
1889
- ie(i, (M) => {
1890
- t.value.filter(M);
1933
+ const l = e, r = be.height, i = D(""), t = D(null);
1934
+ de(i, (k) => {
1935
+ t.value.filter(k);
1891
1936
  });
1892
- const c = (M, B) => M ? B.label.includes(M) : !0, d = k(!0), p = (M, B, w, U) => {
1893
- s("on-click", M, B, w, U);
1894
- }, N = async (M, B, w) => {
1895
- if (M.level === 0) {
1896
- const U = await w.initNode(M);
1897
- return B(U || []);
1937
+ const c = (k, x) => k ? x.label.includes(k) : !0, d = D(!0), v = (k, x, V, R) => {
1938
+ s("on-click", k, x, V, R);
1939
+ }, N = async (k, x, V) => {
1940
+ if (k.level === 0) {
1941
+ const R = await V.initNode(k);
1942
+ return x(R || []);
1898
1943
  } else {
1899
- const U = await w.lazyLoad(M);
1900
- B(U || []);
1944
+ const R = await V.lazyLoad(k);
1945
+ x(R || []);
1901
1946
  }
1902
1947
  };
1903
- return (M, B) => {
1904
- const w = f("el-input"), U = f("el-tree");
1905
- return n(), y("div", Ea, [
1906
- Q((n(), y("div", ba, [
1907
- Q(O("div", ya, [
1908
- $(w, {
1948
+ return (k, x) => {
1949
+ const V = f("el-input"), R = f("el-tree");
1950
+ return n(), b("div", Ea, [
1951
+ X((n(), b("div", ba, [
1952
+ X(S("div", ya, [
1953
+ w(V, {
1909
1954
  modelValue: i.value,
1910
- "onUpdate:modelValue": B[0] || (B[0] = (E) => i.value = E),
1955
+ "onUpdate:modelValue": x[0] || (x[0] = (p) => i.value = p),
1911
1956
  class: "base_tree_main_input",
1912
1957
  placeholder: "输入关键字过滤"
1913
1958
  }, null, 8, ["modelValue"]),
1914
- $(U, {
1959
+ w(R, {
1915
1960
  ref_key: "EL_TREE_REF",
1916
1961
  ref: t,
1917
1962
  lazy: "",
1918
1963
  "highlight-current": "",
1919
1964
  "empty-text": "暂无数据",
1920
- load: (E, T) => N(E, T, l),
1965
+ load: (p, y) => N(p, y, l),
1921
1966
  "expand-on-click-node": !1,
1922
1967
  props: e.treeProps,
1923
1968
  "filter-node-method": c,
1924
- onNodeClick: p
1969
+ onNodeClick: v
1925
1970
  }, null, 8, ["load", "props"])
1926
1971
  ], 512), [
1927
- [le, d.value]
1972
+ [ee, d.value]
1928
1973
  ]),
1929
- Q($(ye, { vertical: "" }, null, 512), [
1930
- [le, d.value]
1974
+ X(w(Te, { vertical: "" }, null, 512), [
1975
+ [ee, d.value]
1931
1976
  ]),
1932
- $(pa, {
1977
+ w(pa, {
1933
1978
  modelValue: d.value,
1934
- "onUpdate:modelValue": B[1] || (B[1] = (E) => d.value = E)
1979
+ "onUpdate:modelValue": x[1] || (x[1] = (p) => d.value = p)
1935
1980
  }, null, 8, ["modelValue"])
1936
1981
  ])), [
1937
1982
  [u(r), e.gasket]
@@ -2004,24 +2049,24 @@ const xa = { class: "bsgoal-base-dialog" }, Ca = { class: "base_dialog" }, Va =
2004
2049
  },
2005
2050
  emits: ["update:modelValue", "on-confirm"],
2006
2051
  setup(e, { emit: s }) {
2007
- const l = e, r = k(l.modelValue.value), i = () => {
2052
+ const l = e, r = D(l.modelValue.value), i = () => {
2008
2053
  r.value = !1;
2009
2054
  }, t = () => {
2010
2055
  r.value = !1, s("on-confirm");
2011
2056
  };
2012
- ie(
2057
+ de(
2013
2058
  () => l.modelValue,
2014
2059
  (d) => {
2015
2060
  r.value = d;
2016
2061
  }
2017
- ), ie(r, (d) => {
2062
+ ), de(r, (d) => {
2018
2063
  s("update:modelValue", d);
2019
2064
  });
2020
- const c = J(() => {
2021
- const { width: d, size: p } = l;
2065
+ const c = Z(() => {
2066
+ const { width: d, size: v } = l;
2022
2067
  if (d)
2023
2068
  return d;
2024
- switch (p) {
2069
+ switch (v) {
2025
2070
  case "small":
2026
2071
  return "480px";
2027
2072
  case "medium":
@@ -2036,44 +2081,44 @@ const xa = { class: "bsgoal-base-dialog" }, Ca = { class: "base_dialog" }, Va =
2036
2081
  return d;
2037
2082
  }
2038
2083
  });
2039
- return (d, p) => {
2040
- const N = f("el-button"), M = f("el-dialog");
2041
- return n(), y("div", xa, [
2042
- O("div", Ca, [
2043
- $(M, {
2084
+ return (d, v) => {
2085
+ const N = f("el-button"), k = f("el-dialog");
2086
+ return n(), b("div", xa, [
2087
+ S("div", Ca, [
2088
+ w(k, {
2044
2089
  modelValue: r.value,
2045
- "onUpdate:modelValue": p[0] || (p[0] = (B) => r.value = B),
2090
+ "onUpdate:modelValue": v[0] || (v[0] = (x) => r.value = x),
2046
2091
  "custom-class": "bsgoal_base_dialog_main",
2047
- class: de({ "bsgoal-dialog__footer--conceal": !e.footer }),
2092
+ class: _e({ "bsgoal-dialog__footer--conceal": !e.footer }),
2048
2093
  width: u(c)
2049
2094
  }, {
2050
- header: x(() => [
2051
- O("div", Va, j(e.title), 1)
2095
+ header: T(() => [
2096
+ S("div", Va, Y(e.title), 1)
2052
2097
  ]),
2053
- footer: x(() => [
2098
+ footer: T(() => [
2054
2099
  e.footer ? q(d.$slots, "footer", { key: 0 }, () => [
2055
- O("span", Ma, [
2056
- $(N, { onClick: i }, {
2057
- default: x(() => [
2058
- W(j(e.cancelTxt), 1)
2100
+ S("span", Ma, [
2101
+ w(N, { onClick: i }, {
2102
+ default: T(() => [
2103
+ W(Y(e.cancelTxt), 1)
2059
2104
  ]),
2060
2105
  _: 1
2061
2106
  }),
2062
- $(N, {
2107
+ w(N, {
2063
2108
  type: "primary",
2064
2109
  onClick: t
2065
2110
  }, {
2066
- default: x(() => [
2067
- W(j(e.confirmTxt), 1)
2111
+ default: T(() => [
2112
+ W(Y(e.confirmTxt), 1)
2068
2113
  ]),
2069
2114
  _: 1
2070
2115
  })
2071
2116
  ])
2072
- ]) : V("", !0)
2117
+ ]) : $("", !0)
2073
2118
  ]),
2074
- default: x(() => [
2075
- O("div", {
2076
- class: de(["base_dialog_content", { "base_dialog_content--form": e.type === "form" }])
2119
+ default: T(() => [
2120
+ S("div", {
2121
+ class: _e(["base_dialog_content", { "base_dialog_content--form": e.type === "form" }])
2077
2122
  }, [
2078
2123
  q(d.$slots, "default")
2079
2124
  ], 2)
@@ -2085,9 +2130,9 @@ const xa = { class: "bsgoal-base-dialog" }, Ca = { class: "base_dialog" }, Va =
2085
2130
  };
2086
2131
  }
2087
2132
  });
2088
- const Ba = { class: "bsgoal-base-tabs" }, wa = {
2133
+ const wa = { class: "bsgoal-base-tabs" }, Ba = {
2089
2134
  name: "BsgoalBaseTabs"
2090
- }, Da = /* @__PURE__ */ Object.assign(wa, {
2135
+ }, Da = /* @__PURE__ */ Object.assign(Ba, {
2091
2136
  props: {
2092
2137
  /**
2093
2138
  * 配置项
@@ -2127,23 +2172,23 @@ const Ba = { class: "bsgoal-base-tabs" }, wa = {
2127
2172
  };
2128
2173
  return (r, i) => {
2129
2174
  const t = f("el-tab-pane"), c = f("el-tabs");
2130
- return n(), y("div", Ba, [
2131
- $(c, {
2175
+ return n(), b("div", wa, [
2176
+ w(c, {
2132
2177
  stretch: "",
2133
2178
  class: "bsgoal_base_tabs",
2134
2179
  type: e.type,
2135
2180
  "model-value": e.modelValue,
2136
2181
  onTabChange: l
2137
2182
  }, {
2138
- default: x(() => [
2139
- (n(!0), y(z, null, X(e.configOptions, ({ label: d, value: p }, N) => (n(), b(t, {
2183
+ default: T(() => [
2184
+ (n(!0), b(j, null, Q(e.configOptions, ({ label: d, value: v }, N) => (n(), E(t, {
2140
2185
  key: N,
2141
2186
  label: d,
2142
- name: p
2187
+ name: v
2143
2188
  }, {
2144
- default: x(() => [
2145
- q(r.$slots, p, {}, () => [
2146
- W(j(d), 1)
2189
+ default: T(() => [
2190
+ q(r.$slots, v, {}, () => [
2191
+ W(Y(d), 1)
2147
2192
  ])
2148
2193
  ]),
2149
2194
  _: 2
@@ -2155,9 +2200,9 @@ const Ba = { class: "bsgoal-base-tabs" }, wa = {
2155
2200
  };
2156
2201
  }
2157
2202
  });
2158
- const ka = { class: "bsgoal-base-link" }, Oa = {
2203
+ const ka = { class: "bsgoal-base-link" }, Sa = {
2159
2204
  name: "BsgoalBaseLink"
2160
- }, Sa = /* @__PURE__ */ Object.assign(Oa, {
2205
+ }, Oa = /* @__PURE__ */ Object.assign(Sa, {
2161
2206
  props: {
2162
2207
  /**
2163
2208
  * 内容
@@ -2188,17 +2233,17 @@ const ka = { class: "bsgoal-base-link" }, Oa = {
2188
2233
  };
2189
2234
  return (r, i) => {
2190
2235
  const t = f("el-link");
2191
- return n(), y("div", ka, [
2192
- $(t, {
2236
+ return n(), b("div", ka, [
2237
+ w(t, {
2193
2238
  class: "bsgoal_base_link",
2194
2239
  type: "primary",
2195
2240
  underline: e.underline,
2196
2241
  style: Ue(e.styler),
2197
2242
  onClick: l
2198
2243
  }, {
2199
- default: x(() => [
2244
+ default: T(() => [
2200
2245
  q(r.$slots, "default", {}, () => [
2201
- W(j(e.content), 1)
2246
+ W(Y(e.content), 1)
2202
2247
  ], !0)
2203
2248
  ]),
2204
2249
  _: 3
@@ -2206,12 +2251,12 @@ const ka = { class: "bsgoal-base-link" }, Oa = {
2206
2251
  ]);
2207
2252
  };
2208
2253
  }
2209
- }), Ia = /* @__PURE__ */ $e(Sa, [["__scopeId", "data-v-3b0290b0"]]), La = a, za = be, ja = {
2254
+ }), Ia = /* @__PURE__ */ $e(Oa, [["__scopeId", "data-v-3b0290b0"]]), Pa = a, La = ye, za = {
2210
2255
  install(e, s = {}) {
2211
2256
  const { exclude: l = [] } = s, r = {
2212
2257
  BsgoalBaseForm: We,
2213
2258
  BsgoalBaseTable: Ne,
2214
- BsgoalBaseLine: ye,
2259
+ BsgoalBaseLine: Te,
2215
2260
  BsgoalBaseSearchTable: fa,
2216
2261
  BsgoalBaseTree: Aa,
2217
2262
  BsgoalBaseDialog: Na,
@@ -2222,11 +2267,11 @@ const ka = { class: "bsgoal-base-link" }, Oa = {
2222
2267
  l.includes(i) || e.component(i, t);
2223
2268
  },
2224
2269
  enumType: a,
2225
- useFetch: be
2270
+ useFetch: ye
2226
2271
  };
2227
2272
  export {
2228
- La as EnumType,
2229
- ja as default,
2230
- za as useFetchApi
2273
+ Pa as EnumType,
2274
+ za as default,
2275
+ La as useFetchApi
2231
2276
  };
2232
2277
  //# sourceMappingURL=index.mjs.map