@bsgoal/common 1.5.7 → 1.5.9

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,8 +9,8 @@ var Ae = (e, s, l) => s in e ? $e(e, s, { enumerable: !0, configurable: !0, writ
9
9
  we.call(s, l) && Ae(e, l, s[l]);
10
10
  return e;
11
11
  };
12
- import { computed as q, resolveComponent as v, openBlock as n, createElementBlock as A, createVNode as $, unref as u, withCtx as V, renderSlot as ne, createTextVNode as X, toDisplayString as H, ref as B, watchEffect as pe, createElementVNode as k, withDirectives as Q, createBlock as T, Fragment as z, renderList as W, createCommentVNode as x, nextTick as Ce, inject as Me, watch as ce, resolveDirective as De, normalizeClass as _e, vShow as ae, isProxy as Be, toRaw as Oe, provide as ke, useSlots as Se, createSlots as Ie } from "vue";
13
- import { ElMessage as Re } from "element-plus";
12
+ import { computed as q, resolveComponent as h, openBlock as n, createElementBlock as A, createVNode as $, unref as u, withCtx as V, renderSlot as ae, createTextVNode as X, toDisplayString as H, ref as O, watchEffect as pe, createElementVNode as S, withDirectives as Q, createBlock as T, Fragment as z, renderList as W, createCommentVNode as M, nextTick as Ce, inject as Me, watch as ce, resolveDirective as De, normalizeClass as _e, vShow as le, isProxy as Be, toRaw as Oe, provide as Se, useSlots as ke, createSlots as Ie } from "vue";
13
+ import { ElMessage as Fe } from "element-plus";
14
14
  const t = {
15
15
  INPUT: "text",
16
16
  INPUT_NUMBER: "number",
@@ -35,27 +35,27 @@ const t = {
35
35
  };
36
36
  let ve = null;
37
37
  const he = (e) => {
38
- const s = [], l = [], i = (a = []) => {
39
- const c = a.map((p) => p.width), _ = Math.max(...c);
38
+ const s = [], l = [], r = (a = []) => {
39
+ const c = a.map((p) => p.width), d = Math.max(...c);
40
40
  a.forEach((p) => {
41
41
  const { labelEl: N } = p;
42
- N.style.width = `${_}px`;
42
+ N.style.width = `${d}px`;
43
43
  });
44
- }, r = () => {
44
+ }, i = () => {
45
45
  if (e) {
46
46
  const a = e.querySelectorAll(".el-form-item__label");
47
47
  if (a && a.length) {
48
48
  let c = 0;
49
- a.forEach((_, p) => {
50
- _.style.width = "initial", _.style.whiteSpace = "nowrap";
51
- const { x: N = 0, width: M = 0 } = _.getBoundingClientRect(), w = { x: N, width: M, labelEl: _ };
49
+ a.forEach((d, p) => {
50
+ d.style.width = "initial", d.style.whiteSpace = "nowrap";
51
+ const { x: N = 0, width: x = 0 } = d.getBoundingClientRect(), w = { x: N, width: x, labelEl: d };
52
52
  p === 0 && (c = N), N === c ? s.push(w) : l.push(w);
53
53
  });
54
54
  }
55
55
  }
56
56
  };
57
57
  ve && clearTimeout(ve), ve = setTimeout(() => {
58
- r(), i(s), i(l);
58
+ i(), r(s), r(l);
59
59
  }, 50);
60
60
  }, Ee = {
61
61
  /**
@@ -79,12 +79,12 @@ const he = (e) => {
79
79
  */
80
80
  height: (e, { value: s = 65, arg: l = "" }) => {
81
81
  if (e) {
82
- const { y: i = 0 } = e.getBoundingClientRect();
83
- e.style.height = `calc(100vh - ${i + s}px)`;
82
+ const { y: r = 0 } = e.getBoundingClientRect();
83
+ e.style.height = `calc(100vh - ${r + s}px)`;
84
84
  }
85
85
  }
86
86
  };
87
- const Fe = { class: "bsgoal-base-tooltip" }, Ue = {
87
+ const Re = { class: "bsgoal-base-tooltip" }, Ue = {
88
88
  name: "BsgoalBaseTooltip"
89
89
  }, Le = /* @__PURE__ */ Object.assign(Ue, {
90
90
  props: {
@@ -127,27 +127,27 @@ const Fe = { class: "bsgoal-base-tooltip" }, Ue = {
127
127
  },
128
128
  setup(e) {
129
129
  const s = e, l = q(() => {
130
- const { content: r = "", limit: a = 0, none: c = "" } = s;
131
- let _ = r;
132
- const p = r.length;
133
- return a && p > a && (_ = `${r.substring(0, a)}...`), _ || c;
134
- }), i = q(() => {
135
- const { content: r = "", limit: a = 0 } = s;
136
- return r.length < a || !a;
130
+ const { content: i = "", limit: a = 0, none: c = "" } = s;
131
+ let d = i;
132
+ const p = i.length;
133
+ return a && p > a && (d = `${i.substring(0, a)}...`), d || c;
134
+ }), r = q(() => {
135
+ const { content: i = "", limit: a = 0 } = s;
136
+ return i.length < a || !a;
137
137
  });
138
- return (r, a) => {
139
- const c = v("el-tooltip");
140
- return n(), A("div", Fe, [
138
+ return (i, a) => {
139
+ const c = h("el-tooltip");
140
+ return n(), A("div", Re, [
141
141
  $(c, {
142
142
  class: "base_tooltip",
143
143
  effect: "dark",
144
144
  "popper-class": "base_tooltip_popper",
145
145
  placement: "top-start",
146
146
  content: e.content,
147
- disabled: u(i)
147
+ disabled: u(r)
148
148
  }, {
149
149
  default: V(() => [
150
- ne(r.$slots, "default", {}, () => [
150
+ ae(i.$slots, "default", {}, () => [
151
151
  X(H(u(l)), 1)
152
152
  ])
153
153
  ]),
@@ -157,7 +157,7 @@ const Fe = { class: "bsgoal-base-tooltip" }, Ue = {
157
157
  };
158
158
  }
159
159
  });
160
- const ze = { class: "bsgoal-base-form" }, Pe = { class: "base_form" }, je = { key: 1 }, Ye = {
160
+ const ze = { class: "bsgoal-base-form" }, je = { class: "base_form" }, Pe = { key: 1 }, Ye = {
161
161
  name: "BsgoalBaseForm"
162
162
  }, Ge = /* @__PURE__ */ Object.assign(Ye, {
163
163
  props: {
@@ -222,20 +222,20 @@ const ze = { class: "bsgoal-base-form" }, Pe = { class: "base_form" }, je = { ke
222
222
  },
223
223
  emits: ["on-form", "on-clear", "on-change", "on-fold"],
224
224
  setup(e, { expose: s, emit: l }) {
225
- const i = e, r = B(null), a = Ee.align, c = B({});
225
+ const r = e, i = O(null), a = Ee.align, c = O({});
226
226
  pe(() => {
227
- const { configOptions: E, values: b } = i, C = u(E), h = u(b);
227
+ const { configOptions: E, values: b } = r, C = u(E), f = u(b);
228
228
  C.forEach((y) => {
229
- const { value: O = "", prop: S = "", type: R = "" } = y;
230
- [t.INPUT, t.INPUT_TEXT_AREA].includes(R), c.value[S] = h[S] || O;
229
+ const { value: B = "", prop: k = "", type: F = "" } = y;
230
+ [t.INPUT, t.INPUT_TEXT_AREA].includes(F), c.value[k] = f[k] || B;
231
231
  });
232
232
  });
233
- const _ = q(() => {
234
- const { configOptions: E } = i;
235
- return u(E).map((h) => {
236
- let { rules: y = !1, label: O = "" } = h;
237
- const S = { required: !0, message: `${O}不能为空`, trigger: "blur" };
238
- return y && (typeof y == "boolean" ? y = [S] : Array.isArray(y) ? y = [S, ...y] : y = [S, y]), h.rules = y, h;
233
+ const d = q(() => {
234
+ const { configOptions: E } = r;
235
+ return u(E).map((f) => {
236
+ let { rules: y = !1, label: B = "" } = f;
237
+ const k = { required: !0, message: `${B}不能为空`, trigger: "blur" };
238
+ return y && (typeof y == "boolean" ? y = [k] : Array.isArray(y) ? y = [k, ...y] : y = [k, y]), f.rules = y, f;
239
239
  });
240
240
  }), p = (E = "", b = "", C = "") => {
241
241
  if (!C)
@@ -282,18 +282,18 @@ const ze = { class: "bsgoal-base-form" }, Pe = { class: "base_form" }, je = { ke
282
282
  return "YYYY-MM-DD HH:mm:ss";
283
283
  }
284
284
  return b;
285
- }, M = () => {
286
- const E = u(c), { configOptions: b } = i, C = u(b);
287
- for (const h of C) {
288
- const { type: y = "", range: O = [], prop: S = "" } = h;
289
- if (y.endsWith("range") && O && O.length === 2) {
290
- const { 0: R = "", 1: F = "" } = E[S], { 0: L = "", 1: I = "" } = O;
291
- E[L] = R, E[I] = F;
285
+ }, x = () => {
286
+ const E = u(c), { configOptions: b } = r, C = u(b);
287
+ for (const f of C) {
288
+ const { type: y = "", range: B = [], prop: k = "" } = f;
289
+ if (y.endsWith("range") && B && B.length === 2) {
290
+ const { 0: F = "", 1: R = "" } = E[k], { 0: L = "", 1: I = "" } = B;
291
+ E[L] = F, E[I] = R;
292
292
  }
293
293
  }
294
294
  return l("on-form", E), E;
295
295
  }, w = () => {
296
- r.value.resetFields(), l("on-clear", c.value);
296
+ i.value.resetFields(), l("on-clear", c.value);
297
297
  }, D = (E, b) => {
298
298
  const C = {
299
299
  type: E,
@@ -304,42 +304,42 @@ const ze = { class: "bsgoal-base-form" }, Pe = { class: "base_form" }, je = { ke
304
304
  };
305
305
  return s({
306
306
  triggerOperationClear: w,
307
- triggerOperationForm: M,
307
+ triggerOperationForm: x,
308
308
  validateForm: (E = () => {
309
309
  }) => {
310
- r.value.validate((b = !1, C = {}) => {
310
+ i.value.validate((b = !1, C = {}) => {
311
311
  if (b) {
312
- const h = M();
313
- E(h);
312
+ const f = x();
313
+ E(f);
314
314
  } else {
315
315
  E(!1);
316
- const h = Object.keys(C)[0], {
317
- [h]: {
316
+ const f = Object.keys(C)[0], {
317
+ [f]: {
318
318
  0: { message: y = "" }
319
319
  }
320
320
  } = C;
321
- Re.error(y);
321
+ Fe.error(y);
322
322
  }
323
323
  });
324
324
  }
325
325
  }), (E, b) => {
326
- const C = v("el-input"), h = v("el-input-number"), y = v("el-radio"), O = v("el-radio-group"), S = v("el-option"), R = v("el-select"), F = v("el-slider"), L = v("el-switch"), I = v("el-date-picker"), P = v("el-time-picker"), Z = v("el-checkbox"), ee = v("el-checkbox-group"), K = v("el-form-item"), me = v("el-col"), ge = v("el-row"), fe = v("el-form");
326
+ const C = h("el-input"), f = h("el-input-number"), y = h("el-radio"), B = h("el-radio-group"), k = h("el-option"), F = h("el-select"), R = h("el-slider"), L = h("el-switch"), I = h("el-date-picker"), j = h("el-time-picker"), Z = h("el-checkbox"), ee = h("el-checkbox-group"), K = h("el-form-item"), me = h("el-col"), ge = h("el-row"), fe = h("el-form");
327
327
  return n(), A("div", ze, [
328
- k("div", Pe, [
328
+ S("div", je, [
329
329
  Q((n(), T(fe, {
330
330
  ref_key: "EL_FORM_REF",
331
- ref: r,
331
+ ref: i,
332
332
  "label-suffix": ":",
333
333
  model: c.value
334
334
  }, {
335
335
  default: V(() => [
336
336
  $(ge, null, {
337
337
  default: V(() => [
338
- (n(!0), A(z, null, W(u(_), ({
339
- label: j = "",
340
- prop: f = "",
338
+ (n(!0), A(z, null, W(u(d), ({
339
+ label: P = "",
340
+ prop: v = "",
341
341
  type: o = "text",
342
- placeholder: d = "",
342
+ placeholder: _ = "",
343
343
  readonly: Y = e.readonlys,
344
344
  clearable: re = !0,
345
345
  rows: ie = 2,
@@ -348,7 +348,7 @@ const ze = { class: "bsgoal-base-form" }, Pe = { class: "base_form" }, je = { ke
348
348
  range: J = [],
349
349
  format: G = "",
350
350
  rules: te = [],
351
- limit: le = e.limits
351
+ limit: ne = e.limits
352
352
  } = {}, g) => (n(), T(me, {
353
353
  key: g,
354
354
  xs: 24,
@@ -357,49 +357,49 @@ const ze = { class: "bsgoal-base-form" }, Pe = { class: "base_form" }, je = { ke
357
357
  }, {
358
358
  default: V(() => [
359
359
  $(K, {
360
- label: j,
361
- prop: f,
360
+ label: P,
361
+ prop: v,
362
362
  rules: te
363
363
  }, {
364
364
  default: V(() => [
365
- Y ? (n(), A("div", je, [
365
+ Y ? (n(), A("div", Pe, [
366
366
  $(Le, {
367
- content: c.value[f],
368
- limit: le,
367
+ content: c.value[v],
368
+ limit: ne,
369
369
  none: e.none
370
370
  }, null, 8, ["content", "limit", "none"])
371
371
  ])) : (n(), A(z, { key: 0 }, [
372
372
  o === u(t).INPUT ? (n(), T(C, {
373
373
  key: 0,
374
- modelValue: c.value[f],
375
- "onUpdate:modelValue": (m) => c.value[f] = m,
376
- placeholder: p(o, j, d),
374
+ modelValue: c.value[v],
375
+ "onUpdate:modelValue": (m) => c.value[v] = m,
376
+ placeholder: p(o, P, _),
377
377
  clearable: re,
378
- onChange: (m) => D(o, f)
379
- }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : x("", !0),
378
+ onChange: (m) => D(o, v)
379
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : M("", !0),
380
380
  o === u(t).INPUT_TEXT_AREA ? (n(), T(C, {
381
381
  key: 1,
382
- modelValue: c.value[f],
383
- "onUpdate:modelValue": (m) => c.value[f] = m,
382
+ modelValue: c.value[v],
383
+ "onUpdate:modelValue": (m) => c.value[v] = m,
384
384
  type: "textarea",
385
385
  rows: ie,
386
386
  clearable: re,
387
- placeholder: p(o, j, d),
388
- onChange: (m) => D(o, f)
389
- }, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : x("", !0),
390
- o === u(t).INPUT_NUMBER ? (n(), T(h, {
387
+ placeholder: p(o, P, _),
388
+ onChange: (m) => D(o, v)
389
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : M("", !0),
390
+ o === u(t).INPUT_NUMBER ? (n(), T(f, {
391
391
  key: 2,
392
392
  modelValue: E.num,
393
393
  "onUpdate:modelValue": b[0] || (b[0] = (m) => E.num = m),
394
394
  min: de,
395
395
  max: ue,
396
396
  onChange: D
397
- }, null, 8, ["modelValue", "min", "max"])) : x("", !0),
398
- o === u(t).RADIO ? (n(), T(O, {
397
+ }, null, 8, ["modelValue", "min", "max"])) : M("", !0),
398
+ o === u(t).RADIO ? (n(), T(B, {
399
399
  key: 3,
400
- modelValue: c.value[f],
401
- "onUpdate:modelValue": (m) => c.value[f] = m,
402
- onChange: (m) => D(o, f)
400
+ modelValue: c.value[v],
401
+ "onUpdate:modelValue": (m) => c.value[v] = m,
402
+ onChange: (m) => D(o, v)
403
403
  }, {
404
404
  default: V(() => [
405
405
  (n(!0), A(z, null, W(J, (m, se) => (n(), T(y, {
@@ -413,89 +413,89 @@ const ze = { class: "bsgoal-base-form" }, Pe = { class: "base_form" }, je = { ke
413
413
  }, 1032, ["label"]))), 128))
414
414
  ]),
415
415
  _: 2
416
- }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : x("", !0),
417
- o === u(t).SELECT ? (n(), T(R, {
416
+ }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : M("", !0),
417
+ o === u(t).SELECT ? (n(), T(F, {
418
418
  key: 4,
419
- modelValue: c.value[f],
420
- "onUpdate:modelValue": (m) => c.value[f] = m,
421
- placeholder: p(o, j, d),
422
- onChange: (m) => D(o, f)
419
+ modelValue: c.value[v],
420
+ "onUpdate:modelValue": (m) => c.value[v] = m,
421
+ placeholder: p(o, P, _),
422
+ onChange: (m) => D(o, v)
423
423
  }, {
424
424
  default: V(() => [
425
- (n(!0), A(z, null, W(J, (m, se) => (n(), T(S, {
425
+ (n(!0), A(z, null, W(J, (m, se) => (n(), T(k, {
426
426
  key: se,
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"])) : x("", !0),
433
- o === u(t).SLIDER ? (n(), T(F, {
432
+ }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : M("", !0),
433
+ o === u(t).SLIDER ? (n(), T(R, {
434
434
  key: 5,
435
- modelValue: c.value[f],
436
- "onUpdate:modelValue": (m) => c.value[f] = m,
435
+ modelValue: c.value[v],
436
+ "onUpdate:modelValue": (m) => c.value[v] = m,
437
437
  min: de,
438
438
  max: ue,
439
- onChange: (m) => D(o, f)
440
- }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : x("", !0),
439
+ onChange: (m) => D(o, v)
440
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : M("", !0),
441
441
  o === u(t).SWITCH ? (n(), T(L, {
442
442
  key: 6,
443
- modelValue: c.value[f],
444
- "onUpdate:modelValue": (m) => c.value[f] = m,
443
+ modelValue: c.value[v],
444
+ "onUpdate:modelValue": (m) => c.value[v] = m,
445
445
  "active-value": J[0] || !0,
446
446
  "inactive-value": J[1] || !1,
447
- onChange: (m) => D(o, f)
448
- }, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : x("", !0),
447
+ onChange: (m) => D(o, v)
448
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : M("", !0),
449
449
  [u(t).DATE, u(t).MONTH, u(t).YEAR, u(t).DATE_TIME].includes(
450
450
  o
451
451
  ) ? (n(), T(I, {
452
452
  key: 7,
453
- modelValue: c.value[f],
454
- "onUpdate:modelValue": (m) => c.value[f] = m,
453
+ modelValue: c.value[v],
454
+ "onUpdate:modelValue": (m) => c.value[v] = m,
455
455
  format: N(o, G),
456
456
  "value-format": N(o, G),
457
457
  type: o,
458
- placeholder: p(o, j, d),
459
- onChange: (m) => D(o, f)
460
- }, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : x("", !0),
458
+ placeholder: p(o, P, _),
459
+ onChange: (m) => D(o, v)
460
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : M("", !0),
461
461
  [
462
462
  u(t).DATE_RANGE,
463
463
  u(t).MONTH_RANGE,
464
464
  u(t).DATE_TIME_RANGE
465
465
  ].includes(o) ? (n(), T(I, {
466
466
  key: 8,
467
- modelValue: c.value[f],
468
- "onUpdate:modelValue": (m) => c.value[f] = m,
467
+ modelValue: c.value[v],
468
+ "onUpdate:modelValue": (m) => c.value[v] = m,
469
469
  type: o,
470
470
  "value-format": N(o, G),
471
- "start-placeholder": p(o, j, d)[0],
472
- "end-placeholder": p(o, j, d)[1],
473
- onChange: (m) => D(o, f)
474
- }, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : x("", !0),
475
- [u(t).TIME].includes(o) ? (n(), T(P, {
471
+ "start-placeholder": p(o, P, _)[0],
472
+ "end-placeholder": p(o, P, _)[1],
473
+ onChange: (m) => D(o, v)
474
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : M("", !0),
475
+ [u(t).TIME].includes(o) ? (n(), T(j, {
476
476
  key: 9,
477
- modelValue: c.value[f],
478
- "onUpdate:modelValue": (m) => c.value[f] = m,
477
+ modelValue: c.value[v],
478
+ "onUpdate:modelValue": (m) => c.value[v] = m,
479
479
  "arrow-control": "",
480
480
  "value-format": N(o, G),
481
- placeholder: p(o, j, d),
482
- onChange: (m) => D(o, f)
483
- }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : x("", !0),
484
- [u(t).TIME_RANGE].includes(o) ? (n(), T(P, {
481
+ placeholder: p(o, P, _),
482
+ onChange: (m) => D(o, v)
483
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : M("", !0),
484
+ [u(t).TIME_RANGE].includes(o) ? (n(), T(j, {
485
485
  key: 10,
486
- modelValue: c.value[f],
487
- "onUpdate:modelValue": (m) => c.value[f] = m,
486
+ modelValue: c.value[v],
487
+ "onUpdate:modelValue": (m) => c.value[v] = m,
488
488
  "is-range": "",
489
489
  "value-format": N(o, G),
490
- "start-placeholder": p(o, j, d)[0],
491
- "end-placeholder": p(o, j, d)[1],
492
- onChange: (m) => D(o, f)
493
- }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : x("", !0),
490
+ "start-placeholder": p(o, P, _)[0],
491
+ "end-placeholder": p(o, P, _)[1],
492
+ onChange: (m) => D(o, v)
493
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : M("", !0),
494
494
  [u(t).CHECKBOX].includes(o) ? (n(), T(ee, {
495
495
  key: 11,
496
- modelValue: c.value[f],
497
- "onUpdate:modelValue": (m) => c.value[f] = m,
498
- onChange: (m) => D(o, f)
496
+ modelValue: c.value[v],
497
+ "onUpdate:modelValue": (m) => c.value[v] = m,
498
+ onChange: (m) => D(o, v)
499
499
  }, {
500
500
  default: V(() => [
501
501
  (n(!0), A(z, null, W(J, (m, se) => (n(), T(Z, {
@@ -509,8 +509,8 @@ const ze = { class: "bsgoal-base-form" }, Pe = { class: "base_form" }, je = { ke
509
509
  }, 1032, ["label"]))), 128))
510
510
  ]),
511
511
  _: 2
512
- }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : x("", !0),
513
- [].includes(o) ? (n(), A(z, { key: 12 }, [], 64)) : x("", !0)
512
+ }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : M("", !0),
513
+ [].includes(o) ? (n(), A(z, { key: 12 }, [], 64)) : M("", !0)
514
514
  ], 64))
515
515
  ]),
516
516
  _: 2
@@ -542,7 +542,7 @@ const He = { class: "bsgoal-base-table-content" }, We = { class: "bas_tabl_conte
542
542
  },
543
543
  setup(e) {
544
544
  return (s, l) => (n(), A("div", He, [
545
- k("div", We, H(e.data), 1)
545
+ S("div", We, H(e.data), 1)
546
546
  ]));
547
547
  }
548
548
  });
@@ -674,7 +674,7 @@ var Ze = {
674
674
  }
675
675
  }
676
676
  };
677
- const Ke = { class: "bsgoal-base-table-pagination" }, Je = { class: "base_table_pagination" }, qe = /* @__PURE__ */ k("span", null, "总数", -1), et = {
677
+ const Ke = { class: "bsgoal-base-table-pagination" }, Je = { class: "base_table_pagination" }, qe = /* @__PURE__ */ S("span", null, "总数", -1), et = {
678
678
  name: "BsgoalBaseTablePagination"
679
679
  }, tt = /* @__PURE__ */ Object.assign(et, {
680
680
  props: {
@@ -711,25 +711,25 @@ const Ke = { class: "bsgoal-base-table-pagination" }, Je = { class: "base_table_
711
711
  setup(e, { emit: s }) {
712
712
  const l = (a = 0) => {
713
713
  s("on-size-change", a);
714
- }, i = (a = 1) => {
714
+ }, r = (a = 1) => {
715
715
  s("on-current-change", a);
716
- }, r = B(1);
716
+ }, i = O(1);
717
717
  return (a, c) => {
718
- const _ = v("el-pagination"), p = v("el-config-provider");
718
+ const d = h("el-pagination"), p = h("el-config-provider");
719
719
  return n(), A("div", Ke, [
720
- k("div", Je, [
720
+ S("div", Je, [
721
721
  $(p, { locale: u(Ze) }, {
722
722
  default: V(() => [
723
- $(_, {
723
+ $(d, {
724
724
  background: "",
725
725
  layout: "total, sizes, prev, pager, next, jumper",
726
- "current-page": r.value,
727
- "onUpdate:currentPage": c[0] || (c[0] = (N) => r.value = N),
726
+ "current-page": i.value,
727
+ "onUpdate:currentPage": c[0] || (c[0] = (N) => i.value = N),
728
728
  "page-sizes": e.pageSizes,
729
729
  "page-size": e.pageSize,
730
730
  total: e.total,
731
731
  onSizeChange: l,
732
- onCurrentChange: i
732
+ onCurrentChange: r
733
733
  }, {
734
734
  next: V(() => [
735
735
  qe
@@ -746,56 +746,75 @@ const Ke = { class: "bsgoal-base-table-pagination" }, Je = { class: "base_table_
746
746
  });
747
747
  const at = (e, s) => {
748
748
  const l = e.__vccOpts || e;
749
- for (const [i, r] of s)
750
- l[i] = r;
749
+ for (const [r, i] of s)
750
+ l[r] = i;
751
751
  return l;
752
752
  }, lt = {
753
753
  name: "BsgoalBaseTableEmpty"
754
- }, nt = { class: "bsgoal-base-table-empty" }, ot = /* @__PURE__ */ k("div", { class: "base_table_empty" }, [
755
- /* @__PURE__ */ k("div", { class: "base_table_empty_img" }, [
756
- /* @__PURE__ */ k("img", {
754
+ }, nt = { class: "bsgoal-base-table-empty" }, ot = /* @__PURE__ */ S("div", { class: "base_table_empty" }, [
755
+ /* @__PURE__ */ S("div", { class: "base_table_empty_img" }, [
756
+ /* @__PURE__ */ S("img", {
757
757
  src: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjQiIGhlaWdodD0iNDEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCAxKSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgIDxlbGxpcHNlIGZpbGw9IiNGNUY1RjUiIGN4PSIzMiIgY3k9IjMzIiByeD0iMzIiIHJ5PSI3Ii8+CiAgICA8ZyBmaWxsLXJ1bGU9Im5vbnplcm8iIHN0cm9rZT0iI0Q5RDlEOSI+CiAgICAgIDxwYXRoIGQ9Ik01NSAxMi43Nkw0NC44NTQgMS4yNThDNDQuMzY3LjQ3NCA0My42NTYgMCA0Mi45MDcgMEgyMS4wOTNjLS43NDkgMC0xLjQ2LjQ3NC0xLjk0NyAxLjI1N0w5IDEyLjc2MVYyMmg0NnYtOS4yNHoiLz4KICAgICAgPHBhdGggZD0iTTQxLjYxMyAxNS45MzFjMC0xLjYwNS45OTQtMi45MyAyLjIyNy0yLjkzMUg1NXYxOC4xMzdDNTUgMzMuMjYgNTMuNjggMzUgNTIuMDUgMzVoLTQwLjFDMTAuMzIgMzUgOSAzMy4yNTkgOSAzMS4xMzdWMTNoMTEuMTZjMS4yMzMgMCAyLjIyNyAxLjMyMyAyLjIyNyAyLjkyOHYuMDIyYzAgMS42MDUgMS4wMDUgMi45MDEgMi4yMzcgMi45MDFoMTQuNzUyYzEuMjMyIDAgMi4yMzctMS4zMDggMi4yMzctMi45MTN2LS4wMDd6IiBmaWxsPSIjRkFGQUZBIi8+CiAgICA8L2c+CiAgPC9nPgo8L3N2Zz4K",
758
758
  alt: ""
759
759
  })
760
760
  ]),
761
- /* @__PURE__ */ k("div", { class: "base_table_empty_text" }, "暂无数据")
761
+ /* @__PURE__ */ S("div", { class: "base_table_empty_text" }, "暂无数据")
762
762
  ], -1), ut = [
763
763
  ot
764
764
  ];
765
- function st(e, s, l, i, r, a) {
765
+ function st(e, s, l, r, i, a) {
766
766
  return n(), A("div", nt, ut);
767
767
  }
768
- const ct = /* @__PURE__ */ at(lt, [["render", st]]), rt = (e = null, { expression: s = 75, arg: l = {} } = {}) => {
768
+ const ct = /* @__PURE__ */ at(lt, [["render", st]]), rt = (e = null, { expression: s = 75, arg: l = {}, height: r = "" } = {}) => {
769
769
  const i = u(e);
770
770
  if (i) {
771
- const r = i.querySelector(".el-table");
772
- r && Ce(() => {
773
- const { y: a = 0 } = r.getBoundingClientRect();
774
- r.style.height = `calc(100vh - ${a + s}px)`;
771
+ const a = i.querySelector(".el-table");
772
+ a && Ce(() => {
773
+ const { y: c = 0 } = a.getBoundingClientRect();
774
+ let d = `calc(100vh - ${c + s}px)`;
775
+ const p = Number.parseInt(r);
776
+ r && (p ? d = `${r}px` : d = r), a.style.height = d;
775
777
  });
776
778
  }
777
- }, be = (e = Promise.resolve(), s = null, l = B(!1), i = B(null)) => {
778
- const r = B("");
779
+ }, be = (e = Promise.resolve(), s = null, l = O(!1), r = O(null)) => {
780
+ const i = O("");
779
781
  return l.value = !0, e.then((a = {}) => {
780
- const { data: c = {}, message: _ = "" } = a;
781
- i.value = c, r.value = _, s && s(!0, c), l.value = !1;
782
+ const { data: c = {}, message: d = "" } = a;
783
+ r.value = c, i.value = d, s && s(!0, c), l.value = !1;
782
784
  }).catch((a = {}) => {
783
785
  if (typeof a == "object") {
784
786
  const { message: c = "" } = a;
785
- r.value = c;
787
+ i.value = c;
786
788
  } else
787
- r.value = a;
789
+ i.value = a;
788
790
  s && s(!1, a), l.value = !1;
789
791
  }).finally(() => {
790
792
  l.value = !1;
791
- }), { data: i, message: r, loading: l };
792
- };
793
- const it = { class: "bsgoal-base-table" }, dt = { class: "base_table" }, _t = {
793
+ }), { data: r, message: i, loading: l };
794
+ }, it = (e = null) => {
795
+ switch (toString.apply(e)) {
796
+ case "[object Object]":
797
+ return "object";
798
+ case "[object Function]":
799
+ return "function";
800
+ case "[object String]":
801
+ return "string";
802
+ case "[object Number]":
803
+ return "number";
804
+ case "[object Null]":
805
+ return "null";
806
+ case "[object Boolean]":
807
+ return "boolean";
808
+ case "[object Undefind]":
809
+ return "undefind";
810
+ }
811
+ }, dt = (e) => it(e) === "boolean";
812
+ const _t = { class: "bsgoal-base-table" }, mt = { class: "base_table" }, gt = {
794
813
  key: 0,
795
814
  class: "base_table_menu"
796
- }, mt = {
815
+ }, ft = {
797
816
  name: "BsgoalBaseTable"
798
- }, xe = /* @__PURE__ */ Object.assign(mt, {
817
+ }, xe = /* @__PURE__ */ Object.assign(ft, {
799
818
  props: {
800
819
  /**
801
820
  * >----------props----------<
@@ -880,53 +899,65 @@ const it = { class: "bsgoal-base-table" }, dt = { class: "base_table" }, _t = {
880
899
  expression: {
881
900
  type: [Number],
882
901
  default: 75
902
+ },
903
+ /**
904
+ * 表格高度
905
+ *
906
+ * 默认 : 自动计算
907
+ * 布尔值 : 默认表格高度
908
+ * 字符串 : 直接赋值给 height
909
+ * 数字 : 直接赋值给 height + 'px'
910
+ */
911
+ height: {
912
+ type: [Number, String, Boolean],
913
+ default: ""
883
914
  }
884
915
  },
885
916
  setup(e, { expose: s }) {
886
- const l = e, i = q(() => {
887
- const { configOptions: h = [], operation: y = !1, operationWidth: O = 0 } = l, S = u(h), R = [];
888
- return y && R.push({
917
+ const l = e, r = q(() => {
918
+ const { configOptions: f = [], operation: y = !1, operationWidth: B = 0 } = l, k = u(f), F = [];
919
+ return y && F.push({
889
920
  label: "操作",
890
921
  fixed: "right",
891
922
  prop: "operation",
892
- width: O
893
- }), [...S, ...R];
894
- }), r = B(null), a = Me("transferFoldStatus");
923
+ width: B
924
+ }), [...k, ...F];
925
+ }), i = O(null), a = Me("transferFoldStatus");
895
926
  pe(() => {
896
- const h = a ? a.value : !1, y = u(l.expression);
897
- rt(r, { arg: h, expression: y });
927
+ const { height: f } = l, y = a ? a.value : !1, B = u(l.expression);
928
+ dt(f) || rt(i, { arg: y, expression: B, height: f });
898
929
  });
899
- const c = B(1), _ = B(10), p = B(0), N = B({}), M = B(l.loading), w = B(l.data), D = B({}), U = () => {
900
- const { fetch: h, call: y, mapProps: O } = l, S = N.value, R = c.value, F = _.value, L = Ve({}, S), I = u(O);
901
- L[I.currentPage] = R, L[I.pageSize] = F, be(h(L), y, M, D);
930
+ const c = O(1), d = O(10), p = O(0), N = O({}), x = O(l.loading), w = O(l.data), D = O({}), U = () => {
931
+ const { fetch: f, call: y, mapProps: B } = l, k = N.value, F = c.value, R = d.value, L = Ve({}, k), I = u(B);
932
+ L[I.currentPage] = F, L[I.pageSize] = R, be(f(L), y, x, D);
902
933
  };
903
- ce(D, (h) => {
904
- const { mapProps: y } = l, O = u(y);
905
- w.value = h[O.rows], p.value = h[O.total];
934
+ ce(D, (f) => {
935
+ const { mapProps: y } = l, B = u(y);
936
+ w.value = f[B.rows], p.value = f[B.total];
906
937
  });
907
- const E = (h = {}) => {
908
- N.value = h, c.value = 1, U();
909
- }, b = (h = 1) => {
910
- c.value = h;
911
- }, C = (h = 10) => {
912
- _.value = h;
938
+ const E = (f = {}) => {
939
+ N.value = f, c.value = 1, U();
940
+ }, b = (f = 1) => {
941
+ c.value = f;
942
+ }, C = (f = 10) => {
943
+ d.value = f;
913
944
  };
914
- return ce([c, _], () => {
945
+ return ce([c, d], () => {
915
946
  U();
916
947
  }), s({
917
948
  refreshList: E
918
- }), (h, y) => {
919
- const O = v("el-table-column"), S = v("el-table"), R = De("loading");
920
- return n(), A("div", it, [
921
- k("div", dt, [
922
- h.$slots.menu ? (n(), A("div", _t, [
923
- ne(h.$slots, "menu")
924
- ])) : x("", !0),
925
- k("div", {
949
+ }), (f, y) => {
950
+ const B = h("el-table-column"), k = h("el-table"), F = De("loading");
951
+ return n(), A("div", _t, [
952
+ S("div", mt, [
953
+ f.$slots.menu ? (n(), A("div", gt, [
954
+ ae(f.$slots, "menu")
955
+ ])) : M("", !0),
956
+ S("div", {
926
957
  ref_key: "EL_TABLE_WRAP_REF",
927
- ref: r
958
+ ref: i
928
959
  }, [
929
- Q((n(), T(S, {
960
+ Q((n(), T(k, {
930
961
  stripe: "",
931
962
  border: "",
932
963
  "highlight-current-row": "",
@@ -943,24 +974,24 @@ const it = { class: "bsgoal-base-table" }, dt = { class: "base_table" }, _t = {
943
974
  $(ct)
944
975
  ]),
945
976
  default: V(() => [
946
- e.selection ? (n(), T(O, {
977
+ e.selection ? (n(), T(B, {
947
978
  key: 0,
948
979
  fixed: "left",
949
980
  type: "selection",
950
981
  width: "40"
951
- })) : x("", !0),
952
- (n(!0), A(z, null, W(u(i), ({ prop: F = "", label: L = "", align: I = "center", width: P = "", fixed: Z = !1 } = {}, ee) => (n(), T(O, {
982
+ })) : M("", !0),
983
+ (n(!0), A(z, null, W(u(r), ({ prop: R = "", label: L = "", align: I = "center", width: j = "", fixed: Z = !1 } = {}, ee) => (n(), T(B, {
953
984
  key: ee,
954
985
  label: L,
955
986
  align: I,
956
- width: P,
987
+ width: j,
957
988
  fixed: Z,
958
989
  "min-width": `${L.length * 14 + 24}px`
959
990
  }, {
960
991
  default: V(({ row: K }) => [
961
- ne(h.$slots, F, { row: K }, () => [
992
+ ae(f.$slots, R, { row: K }, () => [
962
993
  $(Qe, {
963
- data: K[F]
994
+ data: K[R]
964
995
  }, null, 8, ["data"])
965
996
  ])
966
997
  ]),
@@ -969,7 +1000,7 @@ const it = { class: "bsgoal-base-table" }, dt = { class: "base_table" }, _t = {
969
1000
  ]),
970
1001
  _: 3
971
1002
  }, 8, ["data", "header-cell-style"])), [
972
- [R, M.value]
1003
+ [F, x.value]
973
1004
  ])
974
1005
  ], 512),
975
1006
  $(tt, {
@@ -982,9 +1013,9 @@ const it = { class: "bsgoal-base-table" }, dt = { class: "base_table" }, _t = {
982
1013
  };
983
1014
  }
984
1015
  });
985
- const gt = {
1016
+ const vt = {
986
1017
  name: "BsgoalBaseLine"
987
- }, ye = /* @__PURE__ */ Object.assign(gt, {
1018
+ }, ye = /* @__PURE__ */ Object.assign(vt, {
988
1019
  props: {
989
1020
  /**
990
1021
  * 是否为垂直
@@ -998,7 +1029,7 @@ const gt = {
998
1029
  return (s, l) => (n(), A("div", {
999
1030
  class: _e(["bsgoal-base-line", { "bsgoal-base-line__vertical": e.vertical }])
1000
1031
  }, [
1001
- k("div", {
1032
+ S("div", {
1002
1033
  class: _e(["base_line", { base_line__vertical: e.vertical }])
1003
1034
  }, null, 2)
1004
1035
  ], 2));
@@ -1007,15 +1038,15 @@ const gt = {
1007
1038
  /*! Element Plus Icons Vue v2.1.0 */
1008
1039
  var oe = (e, s) => {
1009
1040
  let l = e.__vccOpts || e;
1010
- for (let [i, r] of s)
1011
- l[i] = r;
1041
+ for (let [r, i] of s)
1042
+ l[r] = i;
1012
1043
  return l;
1013
- }, ft = {
1044
+ }, ht = {
1014
1045
  name: "ArrowDown"
1015
- }, vt = {
1046
+ }, pt = {
1016
1047
  xmlns: "http://www.w3.org/2000/svg",
1017
1048
  viewBox: "0 0 1024 1024"
1018
- }, ht = /* @__PURE__ */ k(
1049
+ }, Et = /* @__PURE__ */ S(
1019
1050
  "path",
1020
1051
  {
1021
1052
  fill: "currentColor",
@@ -1024,18 +1055,18 @@ var oe = (e, s) => {
1024
1055
  null,
1025
1056
  -1
1026
1057
  /* HOISTED */
1027
- ), pt = [
1028
- ht
1058
+ ), bt = [
1059
+ Et
1029
1060
  ];
1030
- function Et(e, s, l, i, r, a) {
1031
- return n(), A("svg", vt, pt);
1061
+ function yt(e, s, l, r, i, a) {
1062
+ return n(), A("svg", pt, bt);
1032
1063
  }
1033
- var bt = /* @__PURE__ */ oe(ft, [["render", Et], ["__file", "arrow-down.vue"]]), yt = {
1064
+ var Tt = /* @__PURE__ */ oe(ht, [["render", yt], ["__file", "arrow-down.vue"]]), At = {
1034
1065
  name: "ArrowLeft"
1035
- }, Tt = {
1066
+ }, Vt = {
1036
1067
  xmlns: "http://www.w3.org/2000/svg",
1037
1068
  viewBox: "0 0 1024 1024"
1038
- }, At = /* @__PURE__ */ k(
1069
+ }, Ct = /* @__PURE__ */ S(
1039
1070
  "path",
1040
1071
  {
1041
1072
  fill: "currentColor",
@@ -1044,18 +1075,18 @@ var bt = /* @__PURE__ */ oe(ft, [["render", Et], ["__file", "arrow-down.vue"]]),
1044
1075
  null,
1045
1076
  -1
1046
1077
  /* HOISTED */
1047
- ), Vt = [
1048
- At
1078
+ ), Mt = [
1079
+ Ct
1049
1080
  ];
1050
- function Ct(e, s, l, i, r, a) {
1051
- return n(), A("svg", Tt, Vt);
1081
+ function xt(e, s, l, r, i, a) {
1082
+ return n(), A("svg", Vt, Mt);
1052
1083
  }
1053
- var Mt = /* @__PURE__ */ oe(yt, [["render", Ct], ["__file", "arrow-left.vue"]]), xt = {
1084
+ var $t = /* @__PURE__ */ oe(At, [["render", xt], ["__file", "arrow-left.vue"]]), Nt = {
1054
1085
  name: "ArrowRight"
1055
- }, $t = {
1086
+ }, wt = {
1056
1087
  xmlns: "http://www.w3.org/2000/svg",
1057
1088
  viewBox: "0 0 1024 1024"
1058
- }, Nt = /* @__PURE__ */ k(
1089
+ }, Dt = /* @__PURE__ */ S(
1059
1090
  "path",
1060
1091
  {
1061
1092
  fill: "currentColor",
@@ -1064,18 +1095,18 @@ var Mt = /* @__PURE__ */ oe(yt, [["render", Ct], ["__file", "arrow-left.vue"]]),
1064
1095
  null,
1065
1096
  -1
1066
1097
  /* HOISTED */
1067
- ), wt = [
1068
- Nt
1098
+ ), Bt = [
1099
+ Dt
1069
1100
  ];
1070
- function Dt(e, s, l, i, r, a) {
1071
- return n(), A("svg", $t, wt);
1101
+ function Ot(e, s, l, r, i, a) {
1102
+ return n(), A("svg", wt, Bt);
1072
1103
  }
1073
- var Bt = /* @__PURE__ */ oe(xt, [["render", Dt], ["__file", "arrow-right.vue"]]), Ot = {
1104
+ var St = /* @__PURE__ */ oe(Nt, [["render", Ot], ["__file", "arrow-right.vue"]]), kt = {
1074
1105
  name: "ArrowUp"
1075
- }, kt = {
1106
+ }, It = {
1076
1107
  xmlns: "http://www.w3.org/2000/svg",
1077
1108
  viewBox: "0 0 1024 1024"
1078
- }, St = /* @__PURE__ */ k(
1109
+ }, Ft = /* @__PURE__ */ S(
1079
1110
  "path",
1080
1111
  {
1081
1112
  fill: "currentColor",
@@ -1084,18 +1115,18 @@ var Bt = /* @__PURE__ */ oe(xt, [["render", Dt], ["__file", "arrow-right.vue"]])
1084
1115
  null,
1085
1116
  -1
1086
1117
  /* HOISTED */
1087
- ), It = [
1088
- St
1118
+ ), Rt = [
1119
+ Ft
1089
1120
  ];
1090
- function Rt(e, s, l, i, r, a) {
1091
- return n(), A("svg", kt, It);
1121
+ function Ut(e, s, l, r, i, a) {
1122
+ return n(), A("svg", It, Rt);
1092
1123
  }
1093
- var Ft = /* @__PURE__ */ oe(Ot, [["render", Rt], ["__file", "arrow-up.vue"]]), Ut = {
1124
+ var Lt = /* @__PURE__ */ oe(kt, [["render", Ut], ["__file", "arrow-up.vue"]]), zt = {
1094
1125
  name: "Delete"
1095
- }, Lt = {
1126
+ }, jt = {
1096
1127
  xmlns: "http://www.w3.org/2000/svg",
1097
1128
  viewBox: "0 0 1024 1024"
1098
- }, zt = /* @__PURE__ */ k(
1129
+ }, Pt = /* @__PURE__ */ S(
1099
1130
  "path",
1100
1131
  {
1101
1132
  fill: "currentColor",
@@ -1104,18 +1135,18 @@ var Ft = /* @__PURE__ */ oe(Ot, [["render", Rt], ["__file", "arrow-up.vue"]]), U
1104
1135
  null,
1105
1136
  -1
1106
1137
  /* HOISTED */
1107
- ), Pt = [
1108
- zt
1138
+ ), Yt = [
1139
+ Pt
1109
1140
  ];
1110
- function jt(e, s, l, i, r, a) {
1111
- return n(), A("svg", Lt, Pt);
1141
+ function Gt(e, s, l, r, i, a) {
1142
+ return n(), A("svg", jt, Yt);
1112
1143
  }
1113
- var Yt = /* @__PURE__ */ oe(Ut, [["render", jt], ["__file", "delete.vue"]]), Gt = {
1144
+ var Ht = /* @__PURE__ */ oe(zt, [["render", Gt], ["__file", "delete.vue"]]), Wt = {
1114
1145
  name: "Search"
1115
- }, Ht = {
1146
+ }, Xt = {
1116
1147
  xmlns: "http://www.w3.org/2000/svg",
1117
1148
  viewBox: "0 0 1024 1024"
1118
- }, Wt = /* @__PURE__ */ k(
1149
+ }, Qt = /* @__PURE__ */ S(
1119
1150
  "path",
1120
1151
  {
1121
1152
  fill: "currentColor",
@@ -1124,16 +1155,16 @@ var Yt = /* @__PURE__ */ oe(Ut, [["render", jt], ["__file", "delete.vue"]]), Gt
1124
1155
  null,
1125
1156
  -1
1126
1157
  /* HOISTED */
1127
- ), Xt = [
1128
- Wt
1158
+ ), Zt = [
1159
+ Qt
1129
1160
  ];
1130
- function Qt(e, s, l, i, r, a) {
1131
- return n(), A("svg", Ht, Xt);
1161
+ function Kt(e, s, l, r, i, a) {
1162
+ return n(), A("svg", Xt, Zt);
1132
1163
  }
1133
- var Zt = /* @__PURE__ */ oe(Gt, [["render", Qt], ["__file", "search.vue"]]);
1134
- const Kt = { class: "bsgoal-base-search-operation" }, Jt = {
1164
+ var Jt = /* @__PURE__ */ oe(Wt, [["render", Kt], ["__file", "search.vue"]]);
1165
+ const qt = { class: "bsgoal-base-search-operation" }, ea = {
1135
1166
  name: "BsgoalBaseSearchOperation"
1136
- }, qt = /* @__PURE__ */ Object.assign(Jt, {
1167
+ }, ta = /* @__PURE__ */ Object.assign(ea, {
1137
1168
  props: {
1138
1169
  /**
1139
1170
  * 是否显示折叠按钮
@@ -1145,16 +1176,16 @@ const Kt = { class: "bsgoal-base-search-operation" }, Jt = {
1145
1176
  },
1146
1177
  emits: ["on-fold"],
1147
1178
  setup(e, { emit: s }) {
1148
- const l = B(!1), i = () => {
1179
+ const l = O(!1), r = () => {
1149
1180
  l.value = !u(l), s("on-fold", l.value);
1150
1181
  };
1151
- return (r, a) => {
1152
- const c = v("el-button"), _ = v("el-icon");
1153
- return n(), A("div", Kt, [
1182
+ return (i, a) => {
1183
+ const c = h("el-button"), d = h("el-icon");
1184
+ return n(), A("div", qt, [
1154
1185
  $(c, {
1155
1186
  type: "primary",
1156
- icon: u(Zt),
1157
- onClick: a[0] || (a[0] = (p) => r.$emit("on-search"))
1187
+ icon: u(Jt),
1188
+ onClick: a[0] || (a[0] = (p) => i.$emit("on-search"))
1158
1189
  }, {
1159
1190
  default: V(() => [
1160
1191
  X("搜索")
@@ -1162,8 +1193,8 @@ const Kt = { class: "bsgoal-base-search-operation" }, Jt = {
1162
1193
  _: 1
1163
1194
  }, 8, ["icon"]),
1164
1195
  $(c, {
1165
- icon: u(Yt),
1166
- onClick: a[1] || (a[1] = (p) => r.$emit("on-clear"))
1196
+ icon: u(Ht),
1197
+ onClick: a[1] || (a[1] = (p) => i.$emit("on-clear"))
1167
1198
  }, {
1168
1199
  default: V(() => [
1169
1200
  X("清空")
@@ -1174,28 +1205,28 @@ const Kt = { class: "bsgoal-base-search-operation" }, Jt = {
1174
1205
  key: 0,
1175
1206
  class: "operation_fold",
1176
1207
  style: { color: "var(--el-color-primary)" },
1177
- onClick: i
1208
+ onClick: r
1178
1209
  }, [
1179
1210
  X(H(l.value ? "收起" : "展开"), 1),
1180
- $(_, { color: "#409EFC" }, {
1211
+ $(d, { color: "#409EFC" }, {
1181
1212
  default: V(() => [
1182
- Q($(u(Ft), null, null, 512), [
1183
- [ae, l.value]
1213
+ Q($(u(Lt), null, null, 512), [
1214
+ [le, l.value]
1184
1215
  ]),
1185
- Q($(u(bt), null, null, 512), [
1186
- [ae, !l.value]
1216
+ Q($(u(Tt), null, null, 512), [
1217
+ [le, !l.value]
1187
1218
  ])
1188
1219
  ]),
1189
1220
  _: 1
1190
1221
  })
1191
- ])) : x("", !0)
1222
+ ])) : M("", !0)
1192
1223
  ]);
1193
1224
  };
1194
1225
  }
1195
1226
  });
1196
- const ea = { class: "bsgoal-base-cascader" }, ta = {
1227
+ const aa = { class: "bsgoal-base-cascader" }, la = {
1197
1228
  name: "BsgoalBaseCascader"
1198
- }, aa = /* @__PURE__ */ Object.assign(ta, {
1229
+ }, na = /* @__PURE__ */ Object.assign(la, {
1199
1230
  props: {
1200
1231
  /**
1201
1232
  * 绑定的值
@@ -1228,15 +1259,15 @@ const ea = { class: "bsgoal-base-cascader" }, ta = {
1228
1259
  },
1229
1260
  emits: ["update:model-value", "on-change"],
1230
1261
  setup(e, { emit: s }) {
1231
- const l = B({
1262
+ const l = O({
1232
1263
  checkStrictly: !0,
1233
1264
  multiple: !1
1234
- }), i = (r) => {
1235
- s("update:model-value", r), s("on-change", r);
1265
+ }), r = (i) => {
1266
+ s("update:model-value", i), s("on-change", i);
1236
1267
  };
1237
- return (r, a) => {
1238
- const c = v("el-cascader");
1239
- return n(), A("div", ea, [
1268
+ return (i, a) => {
1269
+ const c = h("el-cascader");
1270
+ return n(), A("div", aa, [
1240
1271
  $(c, {
1241
1272
  clearable: "",
1242
1273
  class: "base_cascader",
@@ -1245,15 +1276,15 @@ const ea = { class: "bsgoal-base-cascader" }, ta = {
1245
1276
  options: e.dataOptions,
1246
1277
  props: l.value,
1247
1278
  placeholder: e.placeholder,
1248
- onChange: i
1279
+ onChange: r
1249
1280
  }, null, 8, ["model-value", "options", "props", "placeholder"])
1250
1281
  ]);
1251
1282
  };
1252
1283
  }
1253
1284
  });
1254
- const la = { class: "bsgoal-base-search" }, na = { class: "base_search" }, oa = { key: 1 }, ua = {
1285
+ const oa = { class: "bsgoal-base-search" }, ua = { class: "base_search" }, sa = { key: 1 }, ca = {
1255
1286
  name: "BsgoalBaseSearch"
1256
- }, sa = /* @__PURE__ */ Object.assign(ua, {
1287
+ }, ra = /* @__PURE__ */ Object.assign(ca, {
1257
1288
  props: {
1258
1289
  /**
1259
1290
  * >----------props----------<
@@ -1295,21 +1326,21 @@ const la = { class: "bsgoal-base-search" }, na = { class: "base_search" }, oa =
1295
1326
  },
1296
1327
  emits: ["on-search", "on-clear", "on-change", "on-fold"],
1297
1328
  setup(e, { emit: s }) {
1298
- const l = e, i = B(null), r = Ee.align, a = B({});
1329
+ const l = e, r = O(null), i = Ee.align, a = O({});
1299
1330
  pe(() => {
1300
1331
  const { configOptions: b } = l;
1301
- u(b).forEach((h) => {
1302
- const { value: y, prop: O = "", type: S = "" } = h;
1303
- [t.INPUT, t.INPUT_TEXT_AREA].includes(S), a.value[O] = [0, !1].includes(y) ? y : "";
1332
+ u(b).forEach((f) => {
1333
+ const { value: y, prop: B = "", type: k = "" } = f;
1334
+ [t.INPUT, t.INPUT_TEXT_AREA].includes(k), a.value[B] = [0, !1].includes(y) ? y : "";
1304
1335
  });
1305
1336
  });
1306
1337
  const c = q(() => {
1307
- const { configOptions: b } = l, C = u(b), h = {
1338
+ const { configOptions: b } = l, C = u(b), f = {
1308
1339
  type: t.OPERATION
1309
1340
  };
1310
- return [...C, h];
1311
- }), _ = (b = "", C = "", h = "") => {
1312
- if (!h)
1341
+ return [...C, f];
1342
+ }), d = (b = "", C = "", f = "") => {
1343
+ if (!f)
1313
1344
  switch (b) {
1314
1345
  case t.INPUT:
1315
1346
  case t.INPUT_TEXT_AREA:
@@ -1331,7 +1362,7 @@ const la = { class: "bsgoal-base-search" }, na = { class: "base_search" }, oa =
1331
1362
  case t.MONTH_RANGE:
1332
1363
  return ["开始月份", "结束月份"];
1333
1364
  }
1334
- return h;
1365
+ return f;
1335
1366
  }, p = (b = "", C = "") => {
1336
1367
  if (!C)
1337
1368
  switch (b) {
@@ -1355,17 +1386,17 @@ const la = { class: "bsgoal-base-search" }, na = { class: "base_search" }, oa =
1355
1386
  }
1356
1387
  return C;
1357
1388
  }, N = () => {
1358
- const { configOptions: b } = l, C = u(a), h = u(b), y = {};
1359
- for (const O of h) {
1360
- const { type: S = "", range: R = [], prop: F = "", single: L = !1 } = O, I = C[F];
1361
- if ([t.CASCADER].includes(S) && Array.isArray(I) && L) {
1362
- const P = I.length;
1363
- P ? y[F] = I[P - 1] : y[F] = I;
1389
+ const { configOptions: b } = l, C = u(a), f = u(b), y = {};
1390
+ for (const B of f) {
1391
+ const { type: k = "", range: F = [], prop: R = "", single: L = !1 } = B, I = C[R];
1392
+ if ([t.CASCADER].includes(k) && Array.isArray(I) && L) {
1393
+ const j = I.length;
1394
+ j ? y[R] = I[j - 1] : y[R] = I;
1364
1395
  } else
1365
- Be(I) ? y[F] = Oe(I) : y[F] = I;
1366
- if (S.endsWith("range") && R && R.length === 2) {
1367
- const { 0: P = "", 1: Z = "" } = I, { 0: ee = "", 1: K = "" } = R;
1368
- y[ee] = P, y[K] = Z;
1396
+ Be(I) ? y[R] = Oe(I) : y[R] = I;
1397
+ if (k.endsWith("range") && F && F.length === 2) {
1398
+ const { 0: j = "", 1: Z = "" } = I, { 0: ee = "", 1: K = "" } = F;
1399
+ y[ee] = j, y[K] = Z;
1369
1400
  }
1370
1401
  }
1371
1402
  s("on-search", y), s("update:modelValue", y);
@@ -1373,26 +1404,26 @@ const la = { class: "bsgoal-base-search" }, na = { class: "base_search" }, oa =
1373
1404
  Ce(() => {
1374
1405
  N();
1375
1406
  });
1376
- const M = () => {
1377
- i.value.resetFields(), s("on-clear", a.value);
1378
- }, w = Me("transferFoldStatus"), D = B(!1), U = (b = !1) => {
1407
+ const x = () => {
1408
+ r.value.resetFields(), s("on-clear", a.value);
1409
+ }, w = Me("transferFoldStatus"), D = O(!1), U = (b = !1) => {
1379
1410
  D.value = b, w && (w.value = b), s("on-fold", D);
1380
1411
  }, E = (b, C) => {
1381
1412
  N();
1382
- const h = {
1413
+ const f = {
1383
1414
  type: b,
1384
1415
  prop: C,
1385
1416
  value: a.value[C] || ""
1386
1417
  };
1387
- s("on-change", h);
1418
+ s("on-change", f);
1388
1419
  };
1389
1420
  return (b, C) => {
1390
- const h = v("el-input"), y = v("el-input-number"), O = v("el-radio"), S = v("el-radio-group"), R = v("el-option"), F = v("el-select"), L = v("el-slider"), I = v("el-switch"), P = v("el-date-picker"), Z = v("el-time-picker"), ee = v("el-checkbox"), K = v("el-checkbox-group"), me = v("el-form-item"), ge = v("el-col"), fe = v("el-row"), j = v("el-form");
1391
- return n(), A("div", la, [
1392
- k("div", na, [
1393
- Q((n(), T(j, {
1421
+ const f = h("el-input"), y = h("el-input-number"), B = h("el-radio"), k = h("el-radio-group"), F = h("el-option"), R = h("el-select"), L = h("el-slider"), I = h("el-switch"), j = h("el-date-picker"), Z = h("el-time-picker"), ee = h("el-checkbox"), K = h("el-checkbox-group"), me = h("el-form-item"), ge = h("el-col"), fe = h("el-row"), P = h("el-form");
1422
+ return n(), A("div", oa, [
1423
+ S("div", ua, [
1424
+ Q((n(), T(P, {
1394
1425
  ref_key: "EL_FORM_REF",
1395
- ref: i,
1426
+ ref: r,
1396
1427
  "label-suffix": ":",
1397
1428
  "show-message": !1,
1398
1429
  model: a.value
@@ -1401,9 +1432,9 @@ const la = { class: "bsgoal-base-search" }, na = { class: "base_search" }, oa =
1401
1432
  $(fe, null, {
1402
1433
  default: V(() => [
1403
1434
  (n(!0), A(z, null, W(u(c), ({
1404
- label: f = "",
1435
+ label: v = "",
1405
1436
  prop: o = "",
1406
- type: d = "text",
1437
+ type: _ = "text",
1407
1438
  placeholder: Y = "",
1408
1439
  readonly: re = !1,
1409
1440
  clearable: ie = !0,
@@ -1412,53 +1443,53 @@ const la = { class: "bsgoal-base-search" }, na = { class: "base_search" }, oa =
1412
1443
  max: J = 10,
1413
1444
  range: G = [],
1414
1445
  format: te = ""
1415
- } = {}, le) => Q((n(), T(ge, {
1416
- key: le,
1446
+ } = {}, ne) => Q((n(), T(ge, {
1447
+ key: ne,
1417
1448
  xs: 24,
1418
1449
  sm: 12,
1419
1450
  md: e.medium
1420
1451
  }, {
1421
1452
  default: V(() => [
1422
1453
  $(me, {
1423
- label: f,
1454
+ label: v,
1424
1455
  prop: o
1425
1456
  }, {
1426
1457
  default: V(() => [
1427
- re ? (n(), A("div", oa, H(a.value[o]), 1)) : (n(), A(z, { key: 0 }, [
1428
- d === u(t).INPUT ? (n(), T(h, {
1458
+ re ? (n(), A("div", sa, H(a.value[o]), 1)) : (n(), A(z, { key: 0 }, [
1459
+ _ === u(t).INPUT ? (n(), T(f, {
1429
1460
  key: 0,
1430
1461
  modelValue: a.value[o],
1431
1462
  "onUpdate:modelValue": (g) => a.value[o] = g,
1432
- placeholder: _(d, f, Y),
1463
+ placeholder: d(_, v, Y),
1433
1464
  clearable: ie,
1434
- onChange: (g) => E(d, o)
1435
- }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : x("", !0),
1436
- d === u(t).INPUT_TEXT_AREA ? (n(), T(h, {
1465
+ onChange: (g) => E(_, o)
1466
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : M("", !0),
1467
+ _ === u(t).INPUT_TEXT_AREA ? (n(), T(f, {
1437
1468
  key: 1,
1438
1469
  modelValue: a.value[o],
1439
1470
  "onUpdate:modelValue": (g) => a.value[o] = g,
1440
1471
  type: "textarea",
1441
1472
  rows: de,
1442
1473
  clearable: ie,
1443
- placeholder: _(d, f, Y),
1444
- onChange: (g) => E(d, o)
1445
- }, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : x("", !0),
1446
- d === u(t).INPUT_NUMBER ? (n(), T(y, {
1474
+ placeholder: d(_, v, Y),
1475
+ onChange: (g) => E(_, o)
1476
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : M("", !0),
1477
+ _ === u(t).INPUT_NUMBER ? (n(), T(y, {
1447
1478
  key: 2,
1448
1479
  modelValue: b.num,
1449
1480
  "onUpdate:modelValue": C[0] || (C[0] = (g) => b.num = g),
1450
1481
  min: ue,
1451
1482
  max: J,
1452
1483
  onChange: E
1453
- }, null, 8, ["modelValue", "min", "max"])) : x("", !0),
1454
- d === u(t).RADIO ? (n(), T(S, {
1484
+ }, null, 8, ["modelValue", "min", "max"])) : M("", !0),
1485
+ _ === u(t).RADIO ? (n(), T(k, {
1455
1486
  key: 3,
1456
1487
  modelValue: a.value[o],
1457
1488
  "onUpdate:modelValue": (g) => a.value[o] = g,
1458
- onChange: (g) => E(d, o)
1489
+ onChange: (g) => E(_, o)
1459
1490
  }, {
1460
1491
  default: V(() => [
1461
- (n(!0), A(z, null, W(G, (g, m) => (n(), T(O, {
1492
+ (n(!0), A(z, null, W(G, (g, m) => (n(), T(B, {
1462
1493
  key: m,
1463
1494
  label: g.value
1464
1495
  }, {
@@ -1469,89 +1500,89 @@ const la = { class: "bsgoal-base-search" }, na = { class: "base_search" }, oa =
1469
1500
  }, 1032, ["label"]))), 128))
1470
1501
  ]),
1471
1502
  _: 2
1472
- }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : x("", !0),
1473
- d === u(t).SELECT ? (n(), T(F, {
1503
+ }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : M("", !0),
1504
+ _ === u(t).SELECT ? (n(), T(R, {
1474
1505
  key: 4,
1475
1506
  modelValue: a.value[o],
1476
1507
  "onUpdate:modelValue": (g) => a.value[o] = g,
1477
- placeholder: _(d, f, Y),
1478
- onChange: (g) => E(d, o)
1508
+ placeholder: d(_, v, Y),
1509
+ onChange: (g) => E(_, o)
1479
1510
  }, {
1480
1511
  default: V(() => [
1481
- (n(!0), A(z, null, W(G, (g, m) => (n(), T(R, {
1512
+ (n(!0), A(z, null, W(G, (g, m) => (n(), T(F, {
1482
1513
  key: m,
1483
1514
  label: g.label,
1484
1515
  value: g.value
1485
1516
  }, null, 8, ["label", "value"]))), 128))
1486
1517
  ]),
1487
1518
  _: 2
1488
- }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : x("", !0),
1489
- d === u(t).SLIDER ? (n(), T(L, {
1519
+ }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : M("", !0),
1520
+ _ === u(t).SLIDER ? (n(), T(L, {
1490
1521
  key: 5,
1491
1522
  modelValue: a.value[o],
1492
1523
  "onUpdate:modelValue": (g) => a.value[o] = g,
1493
1524
  min: ue,
1494
1525
  max: J,
1495
- onChange: (g) => E(d, o)
1496
- }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : x("", !0),
1497
- d === u(t).SWITCH ? (n(), T(I, {
1526
+ onChange: (g) => E(_, o)
1527
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : M("", !0),
1528
+ _ === u(t).SWITCH ? (n(), T(I, {
1498
1529
  key: 6,
1499
1530
  modelValue: a.value[o],
1500
1531
  "onUpdate:modelValue": (g) => a.value[o] = g,
1501
1532
  "active-value": G[0] || !0,
1502
1533
  "inactive-value": G[1] || !1,
1503
- onChange: (g) => E(d, o)
1504
- }, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : x("", !0),
1534
+ onChange: (g) => E(_, o)
1535
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : M("", !0),
1505
1536
  [u(t).DATE, u(t).MONTH, u(t).YEAR, u(t).DATE_TIME].includes(
1506
- d
1507
- ) ? (n(), T(P, {
1537
+ _
1538
+ ) ? (n(), T(j, {
1508
1539
  key: 7,
1509
1540
  modelValue: a.value[o],
1510
1541
  "onUpdate:modelValue": (g) => a.value[o] = g,
1511
- format: p(d, te),
1512
- "value-format": p(d, te),
1513
- type: d,
1514
- placeholder: _(d, f, Y),
1515
- onChange: (g) => E(d, o)
1516
- }, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : x("", !0),
1542
+ format: p(_, te),
1543
+ "value-format": p(_, te),
1544
+ type: _,
1545
+ placeholder: d(_, v, Y),
1546
+ onChange: (g) => E(_, o)
1547
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : M("", !0),
1517
1548
  [
1518
1549
  u(t).DATE_RANGE,
1519
1550
  u(t).MONTH_RANGE,
1520
1551
  u(t).DATE_TIME_RANGE
1521
- ].includes(d) ? (n(), T(P, {
1552
+ ].includes(_) ? (n(), T(j, {
1522
1553
  key: 8,
1523
1554
  modelValue: a.value[o],
1524
1555
  "onUpdate:modelValue": (g) => a.value[o] = g,
1525
- type: d,
1526
- "value-format": p(d, te),
1527
- "start-placeholder": _(d, f, Y)[0],
1528
- "end-placeholder": _(d, f, Y)[1],
1529
- onChange: (g) => E(d, o)
1530
- }, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : x("", !0),
1531
- [u(t).TIME].includes(d) ? (n(), T(Z, {
1556
+ type: _,
1557
+ "value-format": p(_, te),
1558
+ "start-placeholder": d(_, v, Y)[0],
1559
+ "end-placeholder": d(_, v, Y)[1],
1560
+ onChange: (g) => E(_, o)
1561
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : M("", !0),
1562
+ [u(t).TIME].includes(_) ? (n(), T(Z, {
1532
1563
  key: 9,
1533
1564
  modelValue: a.value[o],
1534
1565
  "onUpdate:modelValue": (g) => a.value[o] = g,
1535
1566
  "arrow-control": "",
1536
- "value-format": p(d, te),
1537
- placeholder: _(d, f, Y),
1538
- onChange: (g) => E(d, o)
1539
- }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : x("", !0),
1540
- [u(t).TIME_RANGE].includes(d) ? (n(), T(Z, {
1567
+ "value-format": p(_, te),
1568
+ placeholder: d(_, v, Y),
1569
+ onChange: (g) => E(_, o)
1570
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : M("", !0),
1571
+ [u(t).TIME_RANGE].includes(_) ? (n(), T(Z, {
1541
1572
  key: 10,
1542
1573
  modelValue: a.value[o],
1543
1574
  "onUpdate:modelValue": (g) => a.value[o] = g,
1544
1575
  "is-range": "",
1545
- "value-format": p(d, te),
1546
- "start-placeholder": _(d, f, Y)[0],
1547
- "end-placeholder": _(d, f, Y)[1],
1548
- onChange: (g) => E(d, o)
1549
- }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : x("", !0),
1550
- [u(t).CHECKBOX].includes(d) ? (n(), T(K, {
1576
+ "value-format": p(_, te),
1577
+ "start-placeholder": d(_, v, Y)[0],
1578
+ "end-placeholder": d(_, v, Y)[1],
1579
+ onChange: (g) => E(_, o)
1580
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : M("", !0),
1581
+ [u(t).CHECKBOX].includes(_) ? (n(), T(K, {
1551
1582
  key: 11,
1552
1583
  modelValue: a.value[o],
1553
1584
  "onUpdate:modelValue": (g) => a.value[o] = g,
1554
- onChange: (g) => E(d, o)
1585
+ onChange: (g) => E(_, o)
1555
1586
  }, {
1556
1587
  default: V(() => [
1557
1588
  (n(!0), A(z, null, W(G, (g, m) => (n(), T(ee, {
@@ -1565,23 +1596,23 @@ const la = { class: "bsgoal-base-search" }, na = { class: "base_search" }, oa =
1565
1596
  }, 1032, ["label"]))), 128))
1566
1597
  ]),
1567
1598
  _: 2
1568
- }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : x("", !0),
1569
- [u(t).CASCADER].includes(d) ? (n(), T(aa, {
1599
+ }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : M("", !0),
1600
+ [u(t).CASCADER].includes(_) ? (n(), T(na, {
1570
1601
  key: 12,
1571
1602
  modelValue: a.value[o],
1572
1603
  "onUpdate:modelValue": (g) => a.value[o] = g,
1573
1604
  "data-options": G,
1574
- placeholder: _(d, f, Y),
1575
- onOnChange: (g) => E(d, o)
1576
- }, null, 8, ["modelValue", "onUpdate:modelValue", "data-options", "placeholder", "onOnChange"])) : x("", !0),
1577
- [].includes(d) ? (n(), A(z, { key: 13 }, [], 64)) : x("", !0),
1578
- [u(t).OPERATION].includes(d) ? (n(), T(qt, {
1605
+ placeholder: d(_, v, Y),
1606
+ onOnChange: (g) => E(_, o)
1607
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "data-options", "placeholder", "onOnChange"])) : M("", !0),
1608
+ [].includes(_) ? (n(), A(z, { key: 13 }, [], 64)) : M("", !0),
1609
+ [u(t).OPERATION].includes(_) ? (n(), T(ta, {
1579
1610
  key: 14,
1580
- fold: le >= 7,
1611
+ fold: ne >= 7,
1581
1612
  onOnSearch: N,
1582
- onOnClear: M,
1613
+ onOnClear: x,
1583
1614
  onOnFold: U
1584
- }, null, 8, ["fold"])) : x("", !0)
1615
+ }, null, 8, ["fold"])) : M("", !0)
1585
1616
  ], 64))
1586
1617
  ]),
1587
1618
  _: 2
@@ -1589,7 +1620,7 @@ const la = { class: "bsgoal-base-search" }, na = { class: "base_search" }, oa =
1589
1620
  ]),
1590
1621
  _: 2
1591
1622
  }, 1032, ["md"])), [
1592
- [ae, le < 7 || d === u(t).OPERATION || le >= 7 && D.value]
1623
+ [le, ne < 7 || _ === u(t).OPERATION || ne >= 7 && D.value]
1593
1624
  ])), 128))
1594
1625
  ]),
1595
1626
  _: 1
@@ -1597,7 +1628,7 @@ const la = { class: "bsgoal-base-search" }, na = { class: "base_search" }, oa =
1597
1628
  ]),
1598
1629
  _: 1
1599
1630
  }, 8, ["model"])), [
1600
- [u(r)]
1631
+ [u(i)]
1601
1632
  ])
1602
1633
  ]),
1603
1634
  $(ye)
@@ -1605,9 +1636,9 @@ const la = { class: "bsgoal-base-search" }, na = { class: "base_search" }, oa =
1605
1636
  };
1606
1637
  }
1607
1638
  });
1608
- const ca = { class: "bsgoal-base-search-table" }, ra = { class: "base_search_table" }, ia = {
1639
+ const ia = { class: "bsgoal-base-search-table" }, da = { class: "base_search_table" }, _a = {
1609
1640
  name: "BsgoalBaseSearchTable"
1610
- }, da = /* @__PURE__ */ Object.assign(ia, {
1641
+ }, ma = /* @__PURE__ */ Object.assign(_a, {
1611
1642
  props: {
1612
1643
  /**
1613
1644
  * >----------props----------<
@@ -1688,21 +1719,21 @@ const ca = { class: "bsgoal-base-search-table" }, ra = { class: "base_search_tab
1688
1719
  }
1689
1720
  },
1690
1721
  setup(e) {
1691
- const s = e, l = B(!1);
1692
- ke("transferFoldStatus", l);
1693
- const i = u(s.configOptions), r = q(() => i.filter((M) => {
1694
- const { type: w = "" } = M;
1722
+ const s = e, l = O(!1);
1723
+ Se("transferFoldStatus", l);
1724
+ const r = u(s.configOptions), i = q(() => r.filter((x) => {
1725
+ const { type: w = "" } = x;
1695
1726
  return !!w;
1696
- })), a = q(() => i.filter((M) => {
1697
- const { item: w = !1 } = M;
1727
+ })), a = q(() => r.filter((x) => {
1728
+ const { item: w = !1 } = x;
1698
1729
  return !w;
1699
- })), c = Se(), _ = B(Object.keys(c)), p = B(null), N = (M) => {
1700
- p.value.refreshList(M);
1730
+ })), c = ke(), d = O(Object.keys(c)), p = O(null), N = (x) => {
1731
+ p.value.refreshList(x);
1701
1732
  };
1702
- return (M, w) => (n(), A("div", ca, [
1703
- k("div", ra, [
1704
- $(sa, {
1705
- "config-options": u(r),
1733
+ return (x, w) => (n(), A("div", ia, [
1734
+ S("div", da, [
1735
+ $(ra, {
1736
+ "config-options": u(i),
1706
1737
  onOnSearch: N,
1707
1738
  onOnClear: N
1708
1739
  }, null, 8, ["config-options"]),
@@ -1718,10 +1749,10 @@ const ca = { class: "bsgoal-base-search-table" }, ra = { class: "base_search_tab
1718
1749
  fetch: e.fetch,
1719
1750
  call: e.call
1720
1751
  }, Ie({ _: 2 }, [
1721
- W(_.value, (D) => ({
1752
+ W(d.value, (D) => ({
1722
1753
  name: D,
1723
1754
  fn: V(({ row: U = {} }) => [
1724
- ne(M.$slots, D, { row: U })
1755
+ ae(x.$slots, D, { row: U })
1725
1756
  ])
1726
1757
  }))
1727
1758
  ]), 1032, ["operationWidth", "config-options", "data", "selection", "operation", "expression", "fetch", "call"])
@@ -1729,30 +1760,30 @@ const ca = { class: "bsgoal-base-search-table" }, ra = { class: "base_search_tab
1729
1760
  ]));
1730
1761
  }
1731
1762
  });
1732
- const _a = { class: "bsgoal-base-tree-fold" }, ma = {
1763
+ const ga = { class: "bsgoal-base-tree-fold" }, fa = {
1733
1764
  name: "BsgoalBaseTreeFold"
1734
- }, ga = /* @__PURE__ */ Object.assign(ma, {
1765
+ }, va = /* @__PURE__ */ Object.assign(fa, {
1735
1766
  props: ["modelValue"],
1736
1767
  emits: ["update:modelValue"],
1737
1768
  setup(e, { emit: s }) {
1738
- let l = B(!0);
1739
- const i = () => {
1769
+ let l = O(!0);
1770
+ const r = () => {
1740
1771
  l.value = !l.value, s("update:modelValue", l.value);
1741
1772
  };
1742
- return (r, a) => {
1743
- const c = v("el-icon");
1744
- return n(), A("div", _a, [
1745
- k("div", {
1773
+ return (i, a) => {
1774
+ const c = h("el-icon");
1775
+ return n(), A("div", ga, [
1776
+ S("div", {
1746
1777
  class: _e(["base_tree_fold", { "base_tree_fold--hide": !u(l) }]),
1747
- onClick: i
1778
+ onClick: r
1748
1779
  }, [
1749
1780
  $(c, { color: "#fff" }, {
1750
1781
  default: V(() => [
1751
- Q($(u(Mt), null, null, 512), [
1752
- [ae, u(l)]
1782
+ Q($(u($t), null, null, 512), [
1783
+ [le, u(l)]
1753
1784
  ]),
1754
- Q($(u(Bt), null, null, 512), [
1755
- [ae, !u(l)]
1785
+ Q($(u(St), null, null, 512), [
1786
+ [le, !u(l)]
1756
1787
  ])
1757
1788
  ]),
1758
1789
  _: 1
@@ -1762,9 +1793,9 @@ const _a = { class: "bsgoal-base-tree-fold" }, ma = {
1762
1793
  };
1763
1794
  }
1764
1795
  });
1765
- const fa = { class: "bsgoal-base-tree" }, va = { class: "base_tree" }, ha = { class: "base_tree_main" }, pa = {
1796
+ const ha = { class: "bsgoal-base-tree" }, pa = { class: "base_tree" }, Ea = { class: "base_tree_main" }, ba = {
1766
1797
  name: "BsgoalBaseTree"
1767
- }, Ea = /* @__PURE__ */ Object.assign(pa, {
1798
+ }, ya = /* @__PURE__ */ Object.assign(ba, {
1768
1799
  props: {
1769
1800
  /**
1770
1801
  * 树结构 的下边距
@@ -1818,29 +1849,29 @@ const fa = { class: "bsgoal-base-tree" }, va = { class: "base_tree" }, ha = { cl
1818
1849
  },
1819
1850
  emits: ["on-click"],
1820
1851
  setup(e, { emit: s }) {
1821
- const l = e, i = Ee.height, r = B(""), a = B(null);
1822
- ce(r, (M) => {
1823
- a.value.filter(M);
1852
+ const l = e, r = Ee.height, i = O(""), a = O(null);
1853
+ ce(i, (x) => {
1854
+ a.value.filter(x);
1824
1855
  });
1825
- const c = (M, w) => M ? w.label.includes(M) : !0, _ = B(!0), p = (M, w, D, U) => {
1826
- s("on-click", M, w, D, U);
1827
- }, N = async (M, w, D) => {
1828
- if (M.level === 0) {
1829
- const U = await D.initNode(M);
1856
+ const c = (x, w) => x ? w.label.includes(x) : !0, d = O(!0), p = (x, w, D, U) => {
1857
+ s("on-click", x, w, D, U);
1858
+ }, N = async (x, w, D) => {
1859
+ if (x.level === 0) {
1860
+ const U = await D.initNode(x);
1830
1861
  return w(U || []);
1831
1862
  } else {
1832
- const U = await D.lazyLoad(M);
1863
+ const U = await D.lazyLoad(x);
1833
1864
  w(U || []);
1834
1865
  }
1835
1866
  };
1836
- return (M, w) => {
1837
- const D = v("el-input"), U = v("el-tree");
1838
- return n(), A("div", fa, [
1839
- Q((n(), A("div", va, [
1840
- Q(k("div", ha, [
1867
+ return (x, w) => {
1868
+ const D = h("el-input"), U = h("el-tree");
1869
+ return n(), A("div", ha, [
1870
+ Q((n(), A("div", pa, [
1871
+ Q(S("div", Ea, [
1841
1872
  $(D, {
1842
- modelValue: r.value,
1843
- "onUpdate:modelValue": w[0] || (w[0] = (E) => r.value = E),
1873
+ modelValue: i.value,
1874
+ "onUpdate:modelValue": w[0] || (w[0] = (E) => i.value = E),
1844
1875
  class: "base_tree_main_input",
1845
1876
  placeholder: "输入关键字过滤"
1846
1877
  }, null, 8, ["modelValue"]),
@@ -1857,25 +1888,25 @@ const fa = { class: "bsgoal-base-tree" }, va = { class: "base_tree" }, ha = { cl
1857
1888
  onNodeClick: p
1858
1889
  }, null, 8, ["load", "props"])
1859
1890
  ], 512), [
1860
- [ae, _.value]
1891
+ [le, d.value]
1861
1892
  ]),
1862
1893
  Q($(ye, { vertical: "" }, null, 512), [
1863
- [ae, _.value]
1894
+ [le, d.value]
1864
1895
  ]),
1865
- $(ga, {
1866
- modelValue: _.value,
1867
- "onUpdate:modelValue": w[1] || (w[1] = (E) => _.value = E)
1896
+ $(va, {
1897
+ modelValue: d.value,
1898
+ "onUpdate:modelValue": w[1] || (w[1] = (E) => d.value = E)
1868
1899
  }, null, 8, ["modelValue"])
1869
1900
  ])), [
1870
- [u(i), e.gasket]
1901
+ [u(r), e.gasket]
1871
1902
  ])
1872
1903
  ]);
1873
1904
  };
1874
1905
  }
1875
1906
  });
1876
- const ba = { class: "bsgoal-base-dialog" }, ya = { class: "base_dialog" }, Ta = { class: "base_dialog_header" }, Aa = { class: "base_dialog_footer" }, Va = {
1907
+ const Ta = { class: "bsgoal-base-dialog" }, Aa = { class: "base_dialog" }, Va = { class: "base_dialog_header" }, Ca = { class: "base_dialog_footer" }, Ma = {
1877
1908
  name: "BsgoalBaseDialog"
1878
- }, Ca = /* @__PURE__ */ Object.assign(Va, {
1909
+ }, xa = /* @__PURE__ */ Object.assign(Ma, {
1879
1910
  props: {
1880
1911
  /**
1881
1912
  * 弹窗状态
@@ -1926,27 +1957,34 @@ const ba = { class: "bsgoal-base-dialog" }, ya = { class: "base_dialog" }, Ta =
1926
1957
  type: [String, Number],
1927
1958
  default: "medium",
1928
1959
  validator: (e) => ["small", "medium", "lagre", "max", "dnymic"].includes(e)
1960
+ },
1961
+ /**
1962
+ * 是否显示 底部 内容
1963
+ */
1964
+ footer: {
1965
+ type: [Boolean],
1966
+ default: !0
1929
1967
  }
1930
1968
  },
1931
1969
  emits: ["update:modelValue", "on-confirm"],
1932
1970
  setup(e, { emit: s }) {
1933
- const l = e, i = B(l.modelValue.value), r = () => {
1934
- i.value = !1;
1971
+ const l = e, r = O(l.modelValue.value), i = () => {
1972
+ r.value = !1;
1935
1973
  }, a = () => {
1936
- i.value = !1, s("on-confirm");
1974
+ r.value = !1, s("on-confirm");
1937
1975
  };
1938
1976
  ce(
1939
1977
  () => l.modelValue,
1940
- (_) => {
1941
- i.value = _;
1978
+ (d) => {
1979
+ r.value = d;
1942
1980
  }
1943
- ), ce(i, (_) => {
1944
- s("update:modelValue", _);
1981
+ ), ce(r, (d) => {
1982
+ s("update:modelValue", d);
1945
1983
  });
1946
1984
  const c = q(() => {
1947
- const { width: _, size: p } = l;
1948
- if (_)
1949
- return _;
1985
+ const { width: d, size: p } = l;
1986
+ if (d)
1987
+ return d;
1950
1988
  switch (p) {
1951
1989
  case "small":
1952
1990
  return "480px";
@@ -1959,46 +1997,48 @@ const ba = { class: "bsgoal-base-dialog" }, ya = { class: "base_dialog" }, Ta =
1959
1997
  case "dnymic":
1960
1998
  return "80%";
1961
1999
  default:
1962
- return _;
2000
+ return d;
1963
2001
  }
1964
2002
  });
1965
- return (_, p) => {
1966
- const N = v("el-button"), M = v("el-dialog");
1967
- return n(), A("div", ba, [
1968
- k("div", ya, [
1969
- $(M, {
1970
- modelValue: i.value,
1971
- "onUpdate:modelValue": p[0] || (p[0] = (w) => i.value = w),
2003
+ return (d, p) => {
2004
+ const N = h("el-button"), x = h("el-dialog");
2005
+ return n(), A("div", Ta, [
2006
+ S("div", Aa, [
2007
+ $(x, {
2008
+ modelValue: r.value,
2009
+ "onUpdate:modelValue": p[0] || (p[0] = (w) => r.value = w),
1972
2010
  "custom-class": "bsgoal_base_dialog_main",
1973
2011
  width: u(c)
1974
2012
  }, {
1975
2013
  header: V(() => [
1976
- k("div", Ta, H(e.title), 1)
2014
+ S("div", Va, H(e.title), 1)
1977
2015
  ]),
1978
2016
  footer: V(() => [
1979
- k("span", Aa, [
1980
- $(N, { onClick: r }, {
1981
- default: V(() => [
1982
- X(H(e.cancelTxt), 1)
1983
- ]),
1984
- _: 1
1985
- }),
1986
- $(N, {
1987
- type: "primary",
1988
- onClick: a
1989
- }, {
1990
- default: V(() => [
1991
- X(H(e.confirmTxt), 1)
1992
- ]),
1993
- _: 1
1994
- })
1995
- ])
2017
+ e.footer ? ae(d.$slots, "footer", { key: 0 }, () => [
2018
+ S("span", Ca, [
2019
+ $(N, { onClick: i }, {
2020
+ default: V(() => [
2021
+ X(H(e.cancelTxt), 1)
2022
+ ]),
2023
+ _: 1
2024
+ }),
2025
+ $(N, {
2026
+ type: "primary",
2027
+ onClick: a
2028
+ }, {
2029
+ default: V(() => [
2030
+ X(H(e.confirmTxt), 1)
2031
+ ]),
2032
+ _: 1
2033
+ })
2034
+ ])
2035
+ ]) : M("", !0)
1996
2036
  ]),
1997
2037
  default: V(() => [
1998
- k("div", {
2038
+ S("div", {
1999
2039
  class: _e(["base_dialog_content", { "base_dialog_content--form": e.type === "form" }])
2000
2040
  }, [
2001
- ne(_.$slots, "default")
2041
+ ae(d.$slots, "default")
2002
2042
  ], 2)
2003
2043
  ]),
2004
2044
  _: 3
@@ -2008,9 +2048,9 @@ const ba = { class: "bsgoal-base-dialog" }, ya = { class: "base_dialog" }, Ta =
2008
2048
  };
2009
2049
  }
2010
2050
  });
2011
- const Ma = { class: "bsgoal-base-tabs" }, xa = {
2051
+ const $a = { class: "bsgoal-base-tabs" }, Na = {
2012
2052
  name: "BsgoalBaseTabs"
2013
- }, $a = /* @__PURE__ */ Object.assign(xa, {
2053
+ }, wa = /* @__PURE__ */ Object.assign(Na, {
2014
2054
  props: {
2015
2055
  /**
2016
2056
  * 配置项
@@ -2045,12 +2085,12 @@ const Ma = { class: "bsgoal-base-tabs" }, xa = {
2045
2085
  },
2046
2086
  emits: ["update:modelValue"],
2047
2087
  setup(e, { emit: s }) {
2048
- const l = (i = "") => {
2049
- s("update:modelValue", i);
2088
+ const l = (r = "") => {
2089
+ s("update:modelValue", r);
2050
2090
  };
2051
- return (i, r) => {
2052
- const a = v("el-tab-pane"), c = v("el-tabs");
2053
- return n(), A("div", Ma, [
2091
+ return (r, i) => {
2092
+ const a = h("el-tab-pane"), c = h("el-tabs");
2093
+ return n(), A("div", $a, [
2054
2094
  $(c, {
2055
2095
  stretch: "",
2056
2096
  class: "bsgoal_base_tabs",
@@ -2059,14 +2099,14 @@ const Ma = { class: "bsgoal-base-tabs" }, xa = {
2059
2099
  onTabChange: l
2060
2100
  }, {
2061
2101
  default: V(() => [
2062
- (n(!0), A(z, null, W(e.configOptions, ({ label: _, value: p }, N) => (n(), T(a, {
2102
+ (n(!0), A(z, null, W(e.configOptions, ({ label: d, value: p }, N) => (n(), T(a, {
2063
2103
  key: N,
2064
- label: _,
2104
+ label: d,
2065
2105
  name: p
2066
2106
  }, {
2067
2107
  default: V(() => [
2068
- ne(i.$slots, p, {}, () => [
2069
- X(H(_), 1)
2108
+ ae(r.$slots, p, {}, () => [
2109
+ X(H(d), 1)
2070
2110
  ])
2071
2111
  ]),
2072
2112
  _: 2
@@ -2077,26 +2117,26 @@ const Ma = { class: "bsgoal-base-tabs" }, xa = {
2077
2117
  ]);
2078
2118
  };
2079
2119
  }
2080
- }), Ba = t, Oa = be, ka = {
2120
+ }), Sa = t, ka = be, Ia = {
2081
2121
  install(e, s = {}) {
2082
- const { exclude: l = [] } = s, i = {
2122
+ const { exclude: l = [] } = s, r = {
2083
2123
  BsgoalBaseForm: Ge,
2084
2124
  BsgoalBaseTable: xe,
2085
2125
  BsgoalBaseLine: ye,
2086
- BsgoalBaseSearchTable: da,
2087
- BsgoalBaseTree: Ea,
2088
- BsgoalBaseDialog: Ca,
2089
- BsgoalBaseTabs: $a
2126
+ BsgoalBaseSearchTable: ma,
2127
+ BsgoalBaseTree: ya,
2128
+ BsgoalBaseDialog: xa,
2129
+ BsgoalBaseTabs: wa
2090
2130
  };
2091
- for (const [r, a] of Object.entries(i))
2092
- l.includes(r) || e.component(r, a);
2131
+ for (const [i, a] of Object.entries(r))
2132
+ l.includes(i) || e.component(i, a);
2093
2133
  },
2094
2134
  enumType: t,
2095
2135
  useFetch: be
2096
2136
  };
2097
2137
  export {
2098
- Ba as EnumType,
2099
- ka as default,
2100
- Oa as useFetchApi
2138
+ Sa as EnumType,
2139
+ Ia as default,
2140
+ ka as useFetchApi
2101
2141
  };
2102
2142
  //# sourceMappingURL=index.mjs.map