@bsgoal/common 1.6.4 → 1.6.6

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 xe = (e, s, l) => s in e ? we(e, s, { enumerable: !0, configurable: !0, writ
9
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 b, createVNode as N, unref as u, withCtx as T, renderSlot as q, createTextVNode as W, toDisplayString as Y, ref as k, watchEffect as Ee, createElementVNode as S, withDirectives as Q, createBlock as E, Fragment as P, renderList as X, createCommentVNode as V, nextTick as Ce, inject as Ve, watch as de, resolveDirective as ke, normalizeClass as _e, vShow as le, isProxy as Se, toRaw as Oe, 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 g, 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 Ve, inject as Ce, 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,28 +33,28 @@ const a = {
33
33
  OPERATION: "operation",
34
34
  CASCADER: "cascader"
35
35
  };
36
- let pe = 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((v) => v.width), d = Math.max(...c);
40
- t.forEach((v) => {
41
- const { labelEl: M } = v;
42
- M.style.width = `${d}px`;
39
+ const c = t.map((f) => f.width), d = Math.max(...c);
40
+ t.forEach((f) => {
41
+ const { labelEl: N } = f;
42
+ N.style.width = `${d}px`;
43
43
  });
44
44
  }, i = () => {
45
45
  if (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, v) => {
49
+ t.forEach((d, f) => {
50
50
  d.style.width = "initial", d.style.whiteSpace = "nowrap";
51
- const { x: M = 0, width: $ = 0 } = d.getBoundingClientRect(), w = { x: M, width: $, labelEl: d };
52
- v === 0 && (c = M), M === c ? s.push(w) : l.push(w);
51
+ const { x: N = 0, width: k = 0 } = d.getBoundingClientRect(), x = { x: N, width: k, labelEl: d };
52
+ f === 0 && (c = N), N === c ? s.push(x) : l.push(x);
53
53
  });
54
54
  }
55
55
  }
56
56
  };
57
- pe && clearTimeout(pe), pe = setTimeout(() => {
57
+ he && clearTimeout(he), he = setTimeout(() => {
58
58
  i(), r(s), r(l);
59
59
  }, 50);
60
60
  }, be = {
@@ -64,14 +64,14 @@ const he = (e) => {
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" }, Pe = {
87
+ const Le = { class: "bsgoal-base-tooltip" }, ze = {
88
88
  name: "BsgoalBaseTooltip"
89
- }, Me = /* @__PURE__ */ Object.assign(Pe, {
89
+ }, Me = /* @__PURE__ */ Object.assign(ze, {
90
90
  props: {
91
91
  /**
92
92
  * 文字提示内容
@@ -126,19 +126,19 @@ const ze = { class: "bsgoal-base-tooltip" }, Pe = {
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 v = i.length;
133
- return t && v > t && (d = `${i.substring(0, t)}...`), d || c;
134
- }), r = J(() => {
132
+ const f = i.length;
133
+ return t && f > 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
- const c = f("el-tooltip");
140
- return n(), b("div", ze, [
141
- N(c, {
139
+ const c = g("el-tooltip");
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",
@@ -222,24 +222,24 @@ const je = { 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 = be.align, c = k({});
225
+ const r = e, i = D(null), t = be.align, c = D({});
226
226
  Ee(() => {
227
- const { configOptions: h, values: y } = r, x = u(h), D = u(y);
228
- x.forEach((C) => {
229
- const { value: A = "", prop: O = "", type: F = "" } = C;
230
- [a.INPUT, a.INPUT_TEXT_AREA].includes(F), c.value[O] = D[O] || A;
227
+ const { configOptions: p, values: y } = r, V = u(p), B = u(y);
228
+ V.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: h } = r;
235
- return u(h).map((D) => {
236
- let { rules: C = !1, label: A = "" } = D;
233
+ const d = Z(() => {
234
+ const { configOptions: p } = r;
235
+ return u(p).map((B) => {
236
+ let { rules: M = !1, label: A = "" } = B;
237
237
  const O = { required: !0, message: `${A}不能为空`, trigger: "blur" };
238
- return C && (typeof C == "boolean" ? C = [O] : Array.isArray(C) ? C = [O, ...C] : C = [O, C]), D.rules = C, D;
238
+ return M && (typeof M == "boolean" ? M = [O] : Array.isArray(M) ? M = [O, ...M] : M = [O, M]), B.rules = M, B;
239
239
  });
240
- }), v = (h = "", y = "", x = "") => {
241
- if (!x)
242
- switch (h) {
240
+ }), f = (p = "", y = "", V = "") => {
241
+ if (!V)
242
+ switch (p) {
243
243
  case a.INPUT:
244
244
  case a.INPUT_TEXT_AREA:
245
245
  return `请输入${y}`;
@@ -259,10 +259,10 @@ const je = { class: "bsgoal-base-form" }, Ye = { class: "base_form" }, Ge = { ke
259
259
  case a.MONTH_RANGE:
260
260
  return ["开始月份", "结束月份"];
261
261
  }
262
- return x;
263
- }, M = (h = "", y = "") => {
262
+ return V;
263
+ }, N = (p = "", y = "") => {
264
264
  if (!y)
265
- switch (h) {
265
+ switch (p) {
266
266
  case a.WEEK:
267
267
  return "ww";
268
268
  case a.DATE:
@@ -282,62 +282,62 @@ const je = { class: "bsgoal-base-form" }, Ye = { class: "base_form" }, Ge = { ke
282
282
  return "YYYY-MM-DD HH:mm:ss";
283
283
  }
284
284
  return y;
285
- }, $ = () => {
286
- const h = u(c), { configOptions: y } = r, x = u(y);
287
- for (const D of x) {
288
- const { type: C = "", range: A = [], prop: O = "" } = D;
289
- if (C.endsWith("range") && A && A.length === 2) {
290
- const { 0: F = "", 1: R = "" } = h[O], { 0: z = "", 1: I = "" } = A;
291
- h[z] = F, h[I] = R;
285
+ }, k = () => {
286
+ const p = u(c), { configOptions: y } = r, V = u(y);
287
+ for (const B of V) {
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", h), h;
295
- }, w = () => {
294
+ return l("on-form", p), p;
295
+ }, x = () => {
296
296
  i.value.resetFields(), l("on-clear", c.value);
297
- }, B = (h, y) => {
298
- const x = {
299
- type: h,
297
+ }, C = (p, y) => {
298
+ const V = {
299
+ type: p,
300
300
  prop: y,
301
301
  value: c.value[y] || ""
302
302
  };
303
- l("on-change", x);
303
+ l("on-change", V);
304
304
  };
305
305
  return s({
306
- triggerOperationClear: w,
307
- triggerOperationForm: $,
308
- validateForm: (h = () => {
306
+ triggerOperationClear: x,
307
+ triggerOperationForm: k,
308
+ validateForm: (p = () => {
309
309
  }) => {
310
- i.value.validate((y = !1, x = {}) => {
310
+ i.value.validate((y = !1, V = {}) => {
311
311
  if (y) {
312
- const D = $();
313
- h(D);
312
+ const B = k();
313
+ p(B);
314
314
  } else {
315
- h(!1);
316
- const D = Object.keys(x)[0], {
317
- [D]: {
318
- 0: { message: C = "" }
315
+ p(!1);
316
+ const B = Object.keys(V)[0], {
317
+ [B]: {
318
+ 0: { message: M = "" }
319
319
  }
320
- } = x;
321
- Le.error(C);
320
+ } = V;
321
+ Pe.error(M);
322
322
  }
323
323
  });
324
324
  }
325
- }), (h, y) => {
326
- const x = f("el-input"), D = f("el-input-number"), C = f("el-radio"), A = f("el-radio-group"), O = f("el-option"), F = f("el-select"), R = f("el-slider"), z = f("el-switch"), I = f("el-date-picker"), j = f("el-time-picker"), Z = f("el-checkbox"), ee = f("el-checkbox-group"), te = f("el-form-item"), ue = f("el-col"), se = f("el-row"), ce = f("el-form");
325
+ }), (p, y) => {
326
+ const V = g("el-input"), B = g("el-input-number"), M = g("el-radio"), A = g("el-radio-group"), O = g("el-option"), I = g("el-select"), U = g("el-slider"), z = g("el-switch"), F = g("el-date-picker"), P = g("el-time-picker"), K = g("el-checkbox"), te = g("el-checkbox-group"), ae = g("el-form-item"), ue = g("el-col"), se = g("el-row"), ce = g("el-form");
327
327
  return n(), b("div", je, [
328
328
  S("div", Ye, [
329
- Q((n(), E(ce, {
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
335
  default: T(() => [
336
- N(se, null, {
336
+ w(se, null, {
337
337
  default: T(() => [
338
- (n(!0), b(P, null, X(u(d), ({
338
+ (n(!0), b(j, null, Q(u(d), ({
339
339
  label: L = "",
340
- prop: p = "",
340
+ prop: v = "",
341
341
  type: o = "text",
342
342
  placeholder: _ = "",
343
343
  readonly: G = e.readonlys,
@@ -345,64 +345,64 @@ const je = { class: "bsgoal-base-form" }, Ye = { class: "base_form" }, Ge = { ke
345
345
  rows: ge = 2,
346
346
  min: fe = 1,
347
347
  max: re = 10,
348
- range: K = [],
348
+ range: J = [],
349
349
  format: H = "",
350
- rules: ae = [],
350
+ rules: le = [],
351
351
  limit: ne = e.limits
352
- } = {}, g) => (n(), E(ue, {
353
- key: g,
352
+ } = {}, h) => (n(), E(ue, {
353
+ key: h,
354
354
  xs: 24,
355
355
  sm: 24,
356
356
  md: e.medium
357
357
  }, {
358
358
  default: T(() => [
359
- N(te, {
359
+ w(ae, {
360
360
  label: L,
361
- prop: p,
362
- rules: ae
361
+ prop: v,
362
+ rules: le
363
363
  }, {
364
364
  default: T(() => [
365
365
  G ? (n(), b("div", Ge, [
366
- N(Me, {
367
- content: c.value[p],
366
+ w(Me, {
367
+ content: c.value[v],
368
368
  limit: ne,
369
369
  none: e.none
370
370
  }, null, 8, ["content", "limit", "none"])
371
- ])) : (n(), b(P, { key: 0 }, [
372
- o === u(a).INPUT ? (n(), E(x, {
371
+ ])) : (n(), b(j, { key: 0 }, [
372
+ o === u(a).INPUT ? (n(), E(V, {
373
373
  key: 0,
374
- modelValue: c.value[p],
375
- "onUpdate:modelValue": (m) => c.value[p] = m,
376
- placeholder: v(o, L, _),
374
+ modelValue: c.value[v],
375
+ "onUpdate:modelValue": (m) => c.value[v] = m,
376
+ placeholder: f(o, L, _),
377
377
  clearable: me,
378
- onChange: (m) => B(o, p)
379
- }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : V("", !0),
380
- o === u(a).INPUT_TEXT_AREA ? (n(), E(x, {
378
+ onChange: (m) => C(o, v)
379
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : $("", !0),
380
+ o === u(a).INPUT_TEXT_AREA ? (n(), E(V, {
381
381
  key: 1,
382
- modelValue: c.value[p],
383
- "onUpdate:modelValue": (m) => c.value[p] = m,
382
+ modelValue: c.value[v],
383
+ "onUpdate:modelValue": (m) => c.value[v] = m,
384
384
  type: "textarea",
385
385
  rows: ge,
386
386
  clearable: me,
387
- placeholder: v(o, L, _),
388
- onChange: (m) => B(o, p)
389
- }, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : V("", !0),
390
- o === u(a).INPUT_NUMBER ? (n(), E(D, {
387
+ placeholder: f(o, L, _),
388
+ onChange: (m) => C(o, v)
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: h.num,
393
- "onUpdate:modelValue": y[0] || (y[0] = (m) => h.num = m),
392
+ modelValue: p.num,
393
+ "onUpdate:modelValue": y[0] || (y[0] = (m) => p.num = m),
394
394
  min: fe,
395
395
  max: re,
396
- onChange: B
397
- }, null, 8, ["modelValue", "min", "max"])) : V("", !0),
396
+ onChange: C
397
+ }, null, 8, ["modelValue", "min", "max"])) : $("", !0),
398
398
  o === u(a).RADIO ? (n(), E(A, {
399
399
  key: 3,
400
- modelValue: c.value[p],
401
- "onUpdate:modelValue": (m) => c.value[p] = m,
402
- onChange: (m) => B(o, p)
400
+ modelValue: c.value[v],
401
+ "onUpdate:modelValue": (m) => c.value[v] = m,
402
+ onChange: (m) => C(o, v)
403
403
  }, {
404
404
  default: T(() => [
405
- (n(!0), b(P, null, X(K, (m, ie) => (n(), E(C, {
405
+ (n(!0), b(j, null, Q(J, (m, ie) => (n(), E(M, {
406
406
  key: ie,
407
407
  label: m.value
408
408
  }, {
@@ -413,92 +413,92 @@ const je = { class: "bsgoal-base-form" }, Ye = { class: "base_form" }, Ge = { ke
413
413
  }, 1032, ["label"]))), 128))
414
414
  ]),
415
415
  _: 2
416
- }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : V("", !0),
417
- o === u(a).SELECT ? (n(), E(F, {
416
+ }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : $("", !0),
417
+ o === u(a).SELECT ? (n(), E(I, {
418
418
  key: 4,
419
- modelValue: c.value[p],
420
- "onUpdate:modelValue": (m) => c.value[p] = m,
421
- placeholder: v(o, L, _),
422
- onChange: (m) => B(o, p)
419
+ modelValue: c.value[v],
420
+ "onUpdate:modelValue": (m) => c.value[v] = m,
421
+ placeholder: f(o, L, _),
422
+ onChange: (m) => C(o, v)
423
423
  }, {
424
424
  default: T(() => [
425
- (n(!0), b(P, null, X(K, (m, ie) => (n(), E(O, {
425
+ (n(!0), b(j, null, Q(J, (m, ie) => (n(), E(O, {
426
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(), E(R, {
432
+ }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : $("", !0),
433
+ o === u(a).SLIDER ? (n(), E(U, {
434
434
  key: 5,
435
- modelValue: c.value[p],
436
- "onUpdate:modelValue": (m) => c.value[p] = m,
435
+ modelValue: c.value[v],
436
+ "onUpdate:modelValue": (m) => c.value[v] = m,
437
437
  min: fe,
438
438
  max: re,
439
- onChange: (m) => B(o, p)
440
- }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : V("", !0),
439
+ onChange: (m) => C(o, v)
440
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : $("", !0),
441
441
  o === u(a).SWITCH ? (n(), E(z, {
442
442
  key: 6,
443
- modelValue: c.value[p],
444
- "onUpdate:modelValue": (m) => c.value[p] = m,
445
- "active-value": K[0] || !0,
446
- "inactive-value": K[1] || !1,
447
- onChange: (m) => B(o, p)
448
- }, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : V("", !0),
443
+ modelValue: c.value[v],
444
+ "onUpdate:modelValue": (m) => c.value[v] = m,
445
+ "active-value": J[0] || !0,
446
+ "inactive-value": J[1] || !1,
447
+ onChange: (m) => C(o, v)
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(), E(I, {
451
+ ) ? (n(), E(F, {
452
452
  key: 7,
453
- modelValue: c.value[p],
454
- "onUpdate:modelValue": (m) => c.value[p] = m,
455
- format: M(o, H),
456
- "value-format": M(o, H),
453
+ modelValue: c.value[v],
454
+ "onUpdate:modelValue": (m) => c.value[v] = m,
455
+ format: N(o, H),
456
+ "value-format": N(o, H),
457
457
  type: o,
458
- placeholder: v(o, L, _),
459
- onChange: (m) => B(o, p)
460
- }, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : V("", !0),
458
+ placeholder: f(o, L, _),
459
+ onChange: (m) => C(o, v)
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(), E(I, {
465
+ ].includes(o) ? (n(), E(F, {
466
466
  key: 8,
467
- modelValue: c.value[p],
468
- "onUpdate:modelValue": (m) => c.value[p] = m,
467
+ modelValue: c.value[v],
468
+ "onUpdate:modelValue": (m) => c.value[v] = m,
469
469
  type: o,
470
- "value-format": M(o, H),
471
- "start-placeholder": v(o, L, _)[0],
472
- "end-placeholder": v(o, L, _)[1],
473
- onChange: (m) => B(o, p)
474
- }, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : V("", !0),
475
- [u(a).TIME].includes(o) ? (n(), E(j, {
470
+ "value-format": N(o, H),
471
+ "start-placeholder": f(o, L, _)[0],
472
+ "end-placeholder": f(o, L, _)[1],
473
+ onChange: (m) => C(o, v)
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
- modelValue: c.value[p],
478
- "onUpdate:modelValue": (m) => c.value[p] = m,
477
+ modelValue: c.value[v],
478
+ "onUpdate:modelValue": (m) => c.value[v] = m,
479
479
  "arrow-control": "",
480
- "value-format": M(o, H),
481
- placeholder: v(o, L, _),
482
- onChange: (m) => B(o, p)
483
- }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : V("", !0),
484
- [u(a).TIME_RANGE].includes(o) ? (n(), E(j, {
480
+ "value-format": N(o, H),
481
+ placeholder: f(o, L, _),
482
+ onChange: (m) => C(o, v)
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
- modelValue: c.value[p],
487
- "onUpdate:modelValue": (m) => c.value[p] = m,
486
+ modelValue: c.value[v],
487
+ "onUpdate:modelValue": (m) => c.value[v] = m,
488
488
  "is-range": "",
489
- "value-format": M(o, H),
490
- "start-placeholder": v(o, L, _)[0],
491
- "end-placeholder": v(o, L, _)[1],
492
- onChange: (m) => B(o, p)
493
- }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : V("", !0),
494
- [u(a).CHECKBOX].includes(o) ? (n(), E(ee, {
489
+ "value-format": N(o, H),
490
+ "start-placeholder": f(o, L, _)[0],
491
+ "end-placeholder": f(o, L, _)[1],
492
+ onChange: (m) => C(o, v)
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
- modelValue: c.value[p],
497
- "onUpdate:modelValue": (m) => c.value[p] = m,
498
- onChange: (m) => B(o, p)
496
+ modelValue: c.value[v],
497
+ "onUpdate:modelValue": (m) => c.value[v] = m,
498
+ onChange: (m) => C(o, v)
499
499
  }, {
500
500
  default: T(() => [
501
- (n(!0), b(P, null, X(K, (m, ie) => (n(), E(Z, {
501
+ (n(!0), b(j, null, Q(J, (m, ie) => (n(), E(K, {
502
502
  key: ie,
503
503
  label: m.value
504
504
  }, {
@@ -509,8 +509,8 @@ const je = { class: "bsgoal-base-form" }, Ye = { class: "base_form" }, Ge = { ke
509
509
  }, 1032, ["label"]))), 128))
510
510
  ]),
511
511
  _: 2
512
- }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : V("", !0),
513
- [].includes(o) ? (n(), b(P, { 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
@@ -739,18 +739,18 @@ 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"), v = f("el-config-provider");
744
+ const d = g("el-pagination"), f = g("el-config-provider");
745
745
  return n(), b("div", et, [
746
746
  S("div", tt, [
747
- N(v, { locale: u(qe) }, {
747
+ w(f, { locale: u(qe) }, {
748
748
  default: T(() => [
749
- N(d, {
749
+ w(d, {
750
750
  background: "",
751
751
  layout: "total, sizes, prev, pager, next, jumper",
752
752
  "current-page": i.value,
753
- "onUpdate:currentPage": c[0] || (c[0] = (M) => i.value = M),
753
+ "onUpdate:currentPage": c[0] || (c[0] = (N) => i.value = N),
754
754
  "page-sizes": e.pageSizes,
755
755
  "page-size": e.pageSize,
756
756
  total: e.total,
@@ -795,15 +795,15 @@ const it = /* @__PURE__ */ $e(ot, [["render", rt]]), dt = (e = null, { expressio
795
795
  const i = u(e);
796
796
  if (i) {
797
797
  const t = i.querySelector(".el-table");
798
- t && Ce(() => {
798
+ t && Ve(() => {
799
799
  const { y: c = 0 } = t.getBoundingClientRect();
800
800
  let d = `calc(100vh - ${c + s}px)`;
801
- const v = Number.parseInt(r);
802
- r && (v ? d = `${r}px` : d = r), t.style.height = d;
801
+ const f = Number.parseInt(r);
802
+ r && (f ? d = `${r}px` : d = r), t.style.height = d;
803
803
  });
804
804
  }
805
- }, ye = (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;
@@ -838,9 +838,9 @@ const it = /* @__PURE__ */ $e(ot, [["render", rt]]), dt = (e = null, { expressio
838
838
  const gt = { class: "bsgoal-base-table" }, ft = { class: "base_table" }, vt = {
839
839
  key: 0,
840
840
  class: "base_table_menu"
841
- }, pt = {
841
+ }, ht = {
842
842
  name: "BsgoalBaseTable"
843
- }, Ne = /* @__PURE__ */ Object.assign(pt, {
843
+ }, Ne = /* @__PURE__ */ Object.assign(ht, {
844
844
  props: {
845
845
  /**
846
846
  * >----------props----------<
@@ -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,65 +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: A = [], operation: O = !1, operationWidth: F = 0 } = l, R = u(A), z = [];
950
+ const l = e, r = Z(() => {
951
+ const { configOptions: A = [], operation: O = !1, operationWidth: I = 0 } = l, U = u(A), z = [];
952
952
  return O && z.push({
953
953
  label: "操作",
954
954
  fixed: "right",
955
955
  prop: "operation",
956
- width: F
957
- }), [...R, ...z];
958
- }), i = k(null), t = Ve("transferFoldStatus");
956
+ width: I
957
+ }), [...U, ...z];
958
+ }), i = D(null), t = Ce("transferFoldStatus");
959
959
  Ee(() => {
960
- const { height: A } = l, O = t ? t.value : !1, F = u(l.expression);
961
- mt(A) || dt(i, { arg: O, expression: F, height: A });
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
963
  const c = u(l.mapProps), d = ve({
964
964
  currentPage: "currentPage",
965
965
  pageSize: "pageSize",
966
966
  rows: "rows",
967
967
  total: "total"
968
- }, c), v = k(1), M = k(10), $ = k(0), w = k({}), B = k(l.loading), U = k(l.data), h = k({}), y = () => {
969
- const { fetch: A, call: O } = l, F = w.value, R = v.value, z = M.value, I = ve({}, F);
970
- I[d.currentPage] = R, I[d.pageSize] = z, ye(A(I), O, B, h);
968
+ }, c), f = D(1), N = D(10), k = D(0), x = D({}), C = D(l.loading), R = D(l.data), p = D({}), y = () => {
969
+ const { fetch: A, call: O, hasPage: I } = l, U = x.value, z = f.value, F = N.value, P = ve({}, U);
970
+ I && (P[d.currentPage] = z, P[d.pageSize] = F), ye(A(P), O, C, p);
971
971
  };
972
- de(h, (A) => {
973
- U.value = A[d.rows], $.value = A[d.total];
972
+ de(p, (A) => {
973
+ l.hasPage ? (R.value = A[d.rows], k.value = A[d.total]) : R.value = A;
974
974
  });
975
- const x = (A = {}) => {
976
- w.value = A, v.value = 1, y();
977
- }, D = (A = 1) => {
978
- v.value = A;
979
- }, C = (A = 10) => {
980
- M.value = A;
975
+ const V = (A = {}) => {
976
+ x.value = A, f.value = 1, y();
977
+ }, B = (A = 1) => {
978
+ f.value = A;
979
+ }, M = (A = 10) => {
980
+ N.value = A;
981
981
  };
982
- return de([v, M], () => {
982
+ return de([f, N], () => {
983
983
  y();
984
984
  }), s({
985
- refreshList: x
985
+ refreshList: V
986
986
  }), (A, O) => {
987
- const F = f("el-table-column"), R = f("el-table"), z = ke("loading");
987
+ const I = g("el-table-column"), U = g("el-table"), z = ke("loading");
988
988
  return n(), b("div", gt, [
989
989
  S("div", ft, [
990
990
  A.$slots.menu ? (n(), b("div", vt, [
991
991
  q(A.$slots, "menu")
992
- ])) : V("", !0),
992
+ ])) : $("", !0),
993
993
  S("div", {
994
994
  ref_key: "EL_TABLE_WRAP_REF",
995
995
  ref: i
996
996
  }, [
997
- Q((n(), E(R, {
997
+ X((n(), E(U, {
998
998
  stripe: "",
999
999
  border: "",
1000
1000
  "highlight-current-row": "",
1001
1001
  style: { width: "100%" },
1002
- data: U.value,
1002
+ data: R.value,
1003
1003
  "header-cell-style": {
1004
1004
  fontWeight: "bold",
1005
1005
  backgroundColor: "#EBEEF5",
@@ -1008,29 +1008,37 @@ const gt = { class: "bsgoal-base-table" }, ft = { class: "base_table" }, vt = {
1008
1008
  }
1009
1009
  }, {
1010
1010
  empty: T(() => [
1011
- N(it)
1011
+ w(it)
1012
1012
  ]),
1013
1013
  default: T(() => [
1014
- e.selection ? (n(), E(F, {
1014
+ e.selection ? (n(), E(I, {
1015
1015
  key: 0,
1016
1016
  fixed: "left",
1017
1017
  type: "selection",
1018
1018
  width: "40"
1019
- })) : V("", !0),
1020
- (n(!0), b(P, null, X(u(r), ({ prop: I = "", label: j = "", align: Z = "center", width: ee = "", fixed: te = !1, tooltip: ue = !1, limit: se = 0 } = {}, ce) => (n(), E(F, {
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, {
1021
1029
  key: ce,
1022
- label: j,
1023
- align: Z,
1024
- width: ee,
1025
- fixed: te,
1026
- "min-width": `${j.length * 14 + 24}px`
1030
+ label: P,
1031
+ align: K,
1032
+ width: te,
1033
+ fixed: ae,
1034
+ "min-width": `${P.length * 14 + 24}px`
1027
1035
  }, {
1028
1036
  default: T(({ row: L }) => [
1029
- q(A.$slots, I, { row: L }, () => [
1030
- N(Je, {
1037
+ q(A.$slots, F, { row: L }, () => [
1038
+ w(Je, {
1031
1039
  limit: se,
1032
1040
  tooltip: ue,
1033
- data: L[I]
1041
+ data: L[F]
1034
1042
  }, null, 8, ["limit", "tooltip", "data"])
1035
1043
  ])
1036
1044
  ]),
@@ -1039,23 +1047,23 @@ const gt = { class: "bsgoal-base-table" }, ft = { class: "base_table" }, vt = {
1039
1047
  ]),
1040
1048
  _: 3
1041
1049
  }, 8, ["data", "header-cell-style"])), [
1042
- [z, B.value]
1050
+ [z, C.value]
1043
1051
  ])
1044
1052
  ], 512),
1045
- e.page ? (n(), E(nt, {
1053
+ e.hasPage ? (n(), E(nt, {
1046
1054
  key: 1,
1047
- total: $.value,
1048
- onOnCurrentChange: D,
1049
- onOnSizeChange: C
1050
- }, null, 8, ["total"])) : V("", !0)
1055
+ total: k.value,
1056
+ onOnCurrentChange: B,
1057
+ onOnSizeChange: M
1058
+ }, null, 8, ["total"])) : $("", !0)
1051
1059
  ])
1052
1060
  ]);
1053
1061
  };
1054
1062
  }
1055
1063
  });
1056
- const ht = {
1064
+ const pt = {
1057
1065
  name: "BsgoalBaseLine"
1058
- }, Te = /* @__PURE__ */ Object.assign(ht, {
1066
+ }, Te = /* @__PURE__ */ Object.assign(pt, {
1059
1067
  props: {
1060
1068
  /**
1061
1069
  * 是否为垂直
@@ -1101,9 +1109,9 @@ var oe = (e, s) => {
1101
1109
  function At(e, s, l, r, i, t) {
1102
1110
  return n(), b("svg", bt, Tt);
1103
1111
  }
1104
- var xt = /* @__PURE__ */ oe(Et, [["render", At], ["__file", "arrow-down.vue"]]), Ct = {
1112
+ var xt = /* @__PURE__ */ oe(Et, [["render", At], ["__file", "arrow-down.vue"]]), Vt = {
1105
1113
  name: "ArrowLeft"
1106
- }, Vt = {
1114
+ }, Ct = {
1107
1115
  xmlns: "http://www.w3.org/2000/svg",
1108
1116
  viewBox: "0 0 1024 1024"
1109
1117
  }, Mt = /* @__PURE__ */ S(
@@ -1119,9 +1127,9 @@ var xt = /* @__PURE__ */ oe(Et, [["render", At], ["__file", "arrow-down.vue"]]),
1119
1127
  Mt
1120
1128
  ];
1121
1129
  function Nt(e, s, l, r, i, t) {
1122
- return n(), b("svg", Vt, $t);
1130
+ return n(), b("svg", Ct, $t);
1123
1131
  }
1124
- var wt = /* @__PURE__ */ oe(Ct, [["render", Nt], ["__file", "arrow-left.vue"]]), Bt = {
1132
+ var wt = /* @__PURE__ */ oe(Vt, [["render", Nt], ["__file", "arrow-left.vue"]]), Bt = {
1125
1133
  name: "ArrowRight"
1126
1134
  }, Dt = {
1127
1135
  xmlns: "http://www.w3.org/2000/svg",
@@ -1155,13 +1163,13 @@ var It = /* @__PURE__ */ oe(Bt, [["render", Ot], ["__file", "arrow-right.vue"]])
1155
1163
  null,
1156
1164
  -1
1157
1165
  /* HOISTED */
1158
- ), Lt = [
1166
+ ), Pt = [
1159
1167
  Ut
1160
1168
  ];
1161
- function zt(e, s, l, r, i, t) {
1162
- return n(), b("svg", Rt, Lt);
1169
+ function Lt(e, s, l, r, i, t) {
1170
+ return n(), b("svg", Rt, Pt);
1163
1171
  }
1164
- var Pt = /* @__PURE__ */ oe(Ft, [["render", zt], ["__file", "arrow-up.vue"]]), jt = {
1172
+ var zt = /* @__PURE__ */ oe(Ft, [["render", Lt], ["__file", "arrow-up.vue"]]), jt = {
1165
1173
  name: "Delete"
1166
1174
  }, Yt = {
1167
1175
  xmlns: "http://www.w3.org/2000/svg",
@@ -1216,25 +1224,25 @@ const ta = { class: "bsgoal-base-search-operation" }, aa = {
1216
1224
  },
1217
1225
  emits: ["on-fold"],
1218
1226
  setup(e, { emit: s }) {
1219
- const l = k(!1), r = () => {
1227
+ const l = D(!1), r = () => {
1220
1228
  l.value = !u(l), s("on-fold", l.value);
1221
1229
  };
1222
1230
  return (i, t) => {
1223
- const c = f("el-button"), d = f("el-icon");
1231
+ const c = g("el-button"), d = g("el-icon");
1224
1232
  return n(), b("div", ta, [
1225
- N(c, {
1233
+ w(c, {
1226
1234
  type: "primary",
1227
1235
  icon: u(ea),
1228
- onClick: t[0] || (t[0] = (v) => i.$emit("on-search"))
1236
+ onClick: t[0] || (t[0] = (f) => i.$emit("on-search"))
1229
1237
  }, {
1230
1238
  default: T(() => [
1231
1239
  W("搜索")
1232
1240
  ]),
1233
1241
  _: 1
1234
1242
  }, 8, ["icon"]),
1235
- N(c, {
1243
+ w(c, {
1236
1244
  icon: u(Xt),
1237
- onClick: t[1] || (t[1] = (v) => i.$emit("on-clear"))
1245
+ onClick: t[1] || (t[1] = (f) => i.$emit("on-clear"))
1238
1246
  }, {
1239
1247
  default: T(() => [
1240
1248
  W("清空")
@@ -1248,18 +1256,18 @@ const ta = { class: "bsgoal-base-search-operation" }, aa = {
1248
1256
  onClick: r
1249
1257
  }, [
1250
1258
  W(Y(l.value ? "收起" : "展开"), 1),
1251
- N(d, { color: "#409EFC" }, {
1259
+ w(d, { color: "#409EFC" }, {
1252
1260
  default: T(() => [
1253
- Q(N(u(Pt), null, null, 512), [
1254
- [le, l.value]
1261
+ X(w(u(zt), null, null, 512), [
1262
+ [ee, l.value]
1255
1263
  ]),
1256
- Q(N(u(xt), null, null, 512), [
1257
- [le, !l.value]
1264
+ X(w(u(xt), null, null, 512), [
1265
+ [ee, !l.value]
1258
1266
  ])
1259
1267
  ]),
1260
1268
  _: 1
1261
1269
  })
1262
- ])) : V("", !0)
1270
+ ])) : $("", !0)
1263
1271
  ]);
1264
1272
  };
1265
1273
  }
@@ -1299,16 +1307,16 @@ const na = { class: "bsgoal-base-cascader" }, oa = {
1299
1307
  },
1300
1308
  emits: ["update:model-value", "on-change"],
1301
1309
  setup(e, { emit: s }) {
1302
- const l = k({
1310
+ const l = D({
1303
1311
  checkStrictly: !0,
1304
1312
  multiple: !1
1305
1313
  }), r = (i) => {
1306
1314
  s("update:model-value", i), s("on-change", i);
1307
1315
  };
1308
1316
  return (i, t) => {
1309
- const c = f("el-cascader");
1317
+ const c = g("el-cascader");
1310
1318
  return n(), b("div", na, [
1311
- N(c, {
1319
+ w(c, {
1312
1320
  clearable: "",
1313
1321
  class: "base_cascader",
1314
1322
  "show-all-levels": !1,
@@ -1366,25 +1374,25 @@ const sa = { class: "bsgoal-base-search" }, ca = { class: "base_search" }, ra =
1366
1374
  },
1367
1375
  emits: ["on-search", "on-clear", "on-change", "on-fold"],
1368
1376
  setup(e, { emit: s }) {
1369
- const l = e, r = k(null), i = be.align, t = k({});
1377
+ const l = e, r = D(null), i = be.align, t = D({});
1370
1378
  Ee(() => {
1371
1379
  const { configOptions: y } = l;
1372
- u(y).forEach((D) => {
1373
- const { value: C, prop: A = "", type: O = "" } = D;
1374
- [a.INPUT, a.INPUT_TEXT_AREA].includes(O), t.value[A] = [0, !1].includes(C) ? C : "";
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 : "";
1375
1383
  });
1376
1384
  });
1377
- const c = J(() => {
1378
- const { configOptions: y } = l, x = u(y), D = {
1385
+ const c = Z(() => {
1386
+ const { configOptions: y } = l, V = u(y), B = {
1379
1387
  type: a.OPERATION
1380
1388
  };
1381
- return [...x, D];
1382
- }), d = (y = "", x = "", D = "") => {
1383
- if (!D)
1389
+ return [...V, B];
1390
+ }), d = (y = "", V = "", B = "") => {
1391
+ if (!B)
1384
1392
  switch (y) {
1385
1393
  case a.INPUT:
1386
1394
  case a.INPUT_TEXT_AREA:
1387
- return `请输入${x}`;
1395
+ return `请输入${V}`;
1388
1396
  case a.SELECT:
1389
1397
  case a.DATE:
1390
1398
  case a.WEEK:
@@ -1393,7 +1401,7 @@ const sa = { class: "bsgoal-base-search" }, ca = { class: "base_search" }, ra =
1393
1401
  case a.DATE_TIME:
1394
1402
  case a.TIME:
1395
1403
  case a.CASCADER:
1396
- return `请选择${x}`;
1404
+ return `请选择${V}`;
1397
1405
  case a.DATE_RANGE:
1398
1406
  case a.DATE_TIME_RANGE:
1399
1407
  return ["开始日期", "结束日期"];
@@ -1402,9 +1410,9 @@ const sa = { class: "bsgoal-base-search" }, ca = { class: "base_search" }, ra =
1402
1410
  case a.MONTH_RANGE:
1403
1411
  return ["开始月份", "结束月份"];
1404
1412
  }
1405
- return D;
1406
- }, v = (y = "", x = "") => {
1407
- if (!x)
1413
+ return B;
1414
+ }, f = (y = "", V = "") => {
1415
+ if (!V)
1408
1416
  switch (y) {
1409
1417
  case a.WEEK:
1410
1418
  return "ww";
@@ -1424,44 +1432,44 @@ const sa = { class: "bsgoal-base-search" }, ca = { class: "base_search" }, ra =
1424
1432
  case a.DATE_TIME_RANGE:
1425
1433
  return "YYYY-MM-DD HH:mm:ss";
1426
1434
  }
1427
- return x;
1428
- }, M = () => {
1429
- const { configOptions: y } = l, x = u(t), D = u(y), C = {};
1430
- for (const A of D) {
1431
- const { type: O = "", range: F = [], prop: R = "", single: z = !1 } = A, I = x[R];
1432
- if ([a.CASCADER].includes(O) && Array.isArray(I) && z) {
1433
- const j = I.length;
1434
- j ? C[R] = I[j - 1] : C[R] = I;
1435
+ return V;
1436
+ }, N = () => {
1437
+ const { configOptions: y } = l, V = 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 = V[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;
1435
1443
  } else
1436
- Se(I) ? C[R] = Oe(I) : C[R] = I;
1437
- if (O.endsWith("range") && F && F.length === 2) {
1438
- const { 0: j = "", 1: Z = "" } = I, { 0: ee = "", 1: te = "" } = F;
1439
- C[ee] = j, C[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;
1440
1448
  }
1441
1449
  }
1442
- s("on-search", C), s("update:modelValue", C);
1450
+ s("on-search", M), s("update:modelValue", M);
1443
1451
  };
1444
- Ce(() => {
1445
- M();
1452
+ Ve(() => {
1453
+ N();
1446
1454
  });
1447
- const $ = () => {
1455
+ const k = () => {
1448
1456
  r.value.resetFields(), s("on-clear", t.value);
1449
- }, w = Ve("transferFoldStatus"), B = k(!1), U = (y = !1) => {
1450
- B.value = y, w && (w.value = y), s("on-fold", B);
1451
- }, h = (y, x) => {
1452
- M();
1453
- const D = {
1457
+ }, x = Ce("transferFoldStatus"), C = D(!1), R = (y = !1) => {
1458
+ C.value = y, x && (x.value = y), s("on-fold", C);
1459
+ }, p = (y, V) => {
1460
+ N();
1461
+ const B = {
1454
1462
  type: y,
1455
- prop: x,
1456
- value: t.value[x] || ""
1463
+ prop: V,
1464
+ value: t.value[V] || ""
1457
1465
  };
1458
- s("on-change", D);
1466
+ s("on-change", B);
1459
1467
  };
1460
- return (y, x) => {
1461
- const D = f("el-input"), C = f("el-input-number"), A = f("el-radio"), O = f("el-radio-group"), F = f("el-option"), R = f("el-select"), z = f("el-slider"), I = f("el-switch"), j = f("el-date-picker"), Z = f("el-time-picker"), ee = f("el-checkbox"), te = f("el-checkbox-group"), ue = f("el-form-item"), se = f("el-col"), ce = f("el-row"), L = f("el-form");
1468
+ return (y, V) => {
1469
+ const B = g("el-input"), M = g("el-input-number"), A = g("el-radio"), O = g("el-radio-group"), I = g("el-option"), U = g("el-select"), z = g("el-slider"), F = g("el-switch"), P = g("el-date-picker"), K = g("el-time-picker"), te = g("el-checkbox"), ae = g("el-checkbox-group"), ue = g("el-form-item"), se = g("el-col"), ce = g("el-row"), L = g("el-form");
1462
1470
  return n(), b("div", sa, [
1463
1471
  S("div", ca, [
1464
- Q((n(), E(L, {
1472
+ X((n(), E(L, {
1465
1473
  ref_key: "EL_FORM_REF",
1466
1474
  ref: r,
1467
1475
  "label-suffix": ":",
@@ -1469,10 +1477,10 @@ const sa = { class: "bsgoal-base-search" }, ca = { class: "base_search" }, ra =
1469
1477
  model: t.value
1470
1478
  }, {
1471
1479
  default: T(() => [
1472
- N(ce, null, {
1480
+ w(ce, null, {
1473
1481
  default: T(() => [
1474
- (n(!0), b(P, null, X(u(c), ({
1475
- label: p = "",
1482
+ (n(!0), b(j, null, Q(u(c), ({
1483
+ label: v = "",
1476
1484
  prop: o = "",
1477
1485
  type: _ = "text",
1478
1486
  placeholder: G = "",
@@ -1480,179 +1488,178 @@ const sa = { class: "bsgoal-base-search" }, ca = { class: "base_search" }, ra =
1480
1488
  clearable: ge = !0,
1481
1489
  rows: fe = 2,
1482
1490
  min: re = 1,
1483
- max: K = 10,
1491
+ max: J = 10,
1484
1492
  range: H = [],
1485
- format: ae = ""
1486
- } = {}, ne) => Q((n(), E(se, {
1493
+ format: le = ""
1494
+ } = {}, ne) => X((n(), E(se, {
1487
1495
  key: ne,
1488
1496
  xs: 24,
1489
1497
  sm: 12,
1490
1498
  md: e.medium
1491
1499
  }, {
1492
1500
  default: T(() => [
1493
- N(ue, {
1494
- label: p,
1501
+ w(ue, {
1502
+ label: v,
1495
1503
  prop: o
1496
1504
  }, {
1497
1505
  default: T(() => [
1498
- me ? (n(), b("div", ra, Y(t.value[o]), 1)) : (n(), b(P, { key: 0 }, [
1499
- _ === u(a).INPUT ? (n(), E(D, {
1506
+ me ? (n(), b("div", ra, Y(t.value[o]), 1)) : (n(), b(j, { key: 0 }, [
1507
+ _ === u(a).INPUT ? (n(), E(B, {
1500
1508
  key: 0,
1501
1509
  modelValue: t.value[o],
1502
- "onUpdate:modelValue": (g) => t.value[o] = g,
1503
- placeholder: d(_, p, G),
1504
- clearable: ge,
1505
- onChange: (g) => h(_, o)
1506
- }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : V("", !0),
1507
- _ === u(a).INPUT_TEXT_AREA ? (n(), E(D, {
1510
+ "onUpdate:modelValue": (h) => t.value[o] = h,
1511
+ placeholder: d(_, v, G),
1512
+ clearable: ge
1513
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable"])) : $("", !0),
1514
+ _ === u(a).INPUT_TEXT_AREA ? (n(), E(B, {
1508
1515
  key: 1,
1509
1516
  modelValue: t.value[o],
1510
- "onUpdate:modelValue": (g) => t.value[o] = g,
1517
+ "onUpdate:modelValue": (h) => t.value[o] = h,
1511
1518
  type: "textarea",
1512
1519
  rows: fe,
1513
1520
  clearable: ge,
1514
- placeholder: d(_, p, G),
1515
- onChange: (g) => h(_, o)
1516
- }, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : V("", !0),
1517
- _ === u(a).INPUT_NUMBER ? (n(), E(C, {
1521
+ placeholder: d(_, v, G),
1522
+ onChange: (h) => p(_, o)
1523
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : $("", !0),
1524
+ _ === u(a).INPUT_NUMBER ? (n(), E(M, {
1518
1525
  key: 2,
1519
1526
  modelValue: y.num,
1520
- "onUpdate:modelValue": x[0] || (x[0] = (g) => y.num = g),
1527
+ "onUpdate:modelValue": V[0] || (V[0] = (h) => y.num = h),
1521
1528
  min: re,
1522
- max: K,
1523
- onChange: h
1524
- }, null, 8, ["modelValue", "min", "max"])) : V("", !0),
1529
+ max: J,
1530
+ onChange: p
1531
+ }, null, 8, ["modelValue", "min", "max"])) : $("", !0),
1525
1532
  _ === u(a).RADIO ? (n(), E(O, {
1526
1533
  key: 3,
1527
1534
  modelValue: t.value[o],
1528
- "onUpdate:modelValue": (g) => t.value[o] = g,
1529
- onChange: (g) => h(_, o)
1535
+ "onUpdate:modelValue": (h) => t.value[o] = h,
1536
+ onChange: (h) => p(_, o)
1530
1537
  }, {
1531
1538
  default: T(() => [
1532
- (n(!0), b(P, null, X(H, (g, m) => (n(), E(A, {
1539
+ (n(!0), b(j, null, Q(H, (h, m) => (n(), E(A, {
1533
1540
  key: m,
1534
- label: g.value
1541
+ label: h.value
1535
1542
  }, {
1536
1543
  default: T(() => [
1537
- W(Y(g.label), 1)
1544
+ W(Y(h.label), 1)
1538
1545
  ]),
1539
1546
  _: 2
1540
1547
  }, 1032, ["label"]))), 128))
1541
1548
  ]),
1542
1549
  _: 2
1543
- }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : V("", !0),
1544
- _ === u(a).SELECT ? (n(), E(R, {
1550
+ }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : $("", !0),
1551
+ _ === u(a).SELECT ? (n(), E(U, {
1545
1552
  key: 4,
1546
1553
  modelValue: t.value[o],
1547
- "onUpdate:modelValue": (g) => t.value[o] = g,
1548
- placeholder: d(_, p, G),
1549
- onChange: (g) => h(_, o)
1554
+ "onUpdate:modelValue": (h) => t.value[o] = h,
1555
+ placeholder: d(_, v, G),
1556
+ onChange: (h) => p(_, o)
1550
1557
  }, {
1551
1558
  default: T(() => [
1552
- (n(!0), b(P, null, X(H, (g, m) => (n(), E(F, {
1559
+ (n(!0), b(j, null, Q(H, (h, m) => (n(), E(I, {
1553
1560
  key: m,
1554
- label: g.label,
1555
- value: g.value
1561
+ label: h.label,
1562
+ value: h.value
1556
1563
  }, null, 8, ["label", "value"]))), 128))
1557
1564
  ]),
1558
1565
  _: 2
1559
- }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : V("", !0),
1566
+ }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : $("", !0),
1560
1567
  _ === u(a).SLIDER ? (n(), E(z, {
1561
1568
  key: 5,
1562
1569
  modelValue: t.value[o],
1563
- "onUpdate:modelValue": (g) => t.value[o] = g,
1570
+ "onUpdate:modelValue": (h) => t.value[o] = h,
1564
1571
  min: re,
1565
- max: K,
1566
- onChange: (g) => h(_, o)
1567
- }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : V("", !0),
1568
- _ === u(a).SWITCH ? (n(), E(I, {
1572
+ max: J,
1573
+ onChange: (h) => p(_, o)
1574
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : $("", !0),
1575
+ _ === u(a).SWITCH ? (n(), E(F, {
1569
1576
  key: 6,
1570
1577
  modelValue: t.value[o],
1571
- "onUpdate:modelValue": (g) => t.value[o] = g,
1578
+ "onUpdate:modelValue": (h) => t.value[o] = h,
1572
1579
  "active-value": H[0] || !0,
1573
1580
  "inactive-value": H[1] || !1,
1574
- onChange: (g) => h(_, o)
1575
- }, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : V("", !0),
1581
+ onChange: (h) => p(_, o)
1582
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : $("", !0),
1576
1583
  [u(a).DATE, u(a).MONTH, u(a).YEAR, u(a).DATE_TIME].includes(
1577
1584
  _
1578
- ) ? (n(), E(j, {
1585
+ ) ? (n(), E(P, {
1579
1586
  key: 7,
1580
1587
  modelValue: t.value[o],
1581
- "onUpdate:modelValue": (g) => t.value[o] = g,
1582
- format: v(_, ae),
1583
- "value-format": v(_, ae),
1588
+ "onUpdate:modelValue": (h) => t.value[o] = h,
1589
+ format: f(_, le),
1590
+ "value-format": f(_, le),
1584
1591
  type: _,
1585
- placeholder: d(_, p, G),
1586
- onChange: (g) => h(_, o)
1587
- }, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : V("", !0),
1592
+ placeholder: d(_, v, G),
1593
+ onChange: (h) => p(_, o)
1594
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : $("", !0),
1588
1595
  [
1589
1596
  u(a).DATE_RANGE,
1590
1597
  u(a).MONTH_RANGE,
1591
1598
  u(a).DATE_TIME_RANGE
1592
- ].includes(_) ? (n(), E(j, {
1599
+ ].includes(_) ? (n(), E(P, {
1593
1600
  key: 8,
1594
1601
  modelValue: t.value[o],
1595
- "onUpdate:modelValue": (g) => t.value[o] = g,
1602
+ "onUpdate:modelValue": (h) => t.value[o] = h,
1596
1603
  type: _,
1597
- "value-format": v(_, ae),
1598
- "start-placeholder": d(_, p, G)[0],
1599
- "end-placeholder": d(_, p, G)[1],
1600
- onChange: (g) => h(_, o)
1601
- }, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : V("", !0),
1602
- [u(a).TIME].includes(_) ? (n(), E(Z, {
1604
+ "value-format": f(_, le),
1605
+ "start-placeholder": d(_, v, G)[0],
1606
+ "end-placeholder": d(_, v, G)[1],
1607
+ onChange: (h) => p(_, o)
1608
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : $("", !0),
1609
+ [u(a).TIME].includes(_) ? (n(), E(K, {
1603
1610
  key: 9,
1604
1611
  modelValue: t.value[o],
1605
- "onUpdate:modelValue": (g) => t.value[o] = g,
1612
+ "onUpdate:modelValue": (h) => t.value[o] = h,
1606
1613
  "arrow-control": "",
1607
- "value-format": v(_, ae),
1608
- placeholder: d(_, p, G),
1609
- onChange: (g) => h(_, o)
1610
- }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : V("", !0),
1611
- [u(a).TIME_RANGE].includes(_) ? (n(), E(Z, {
1614
+ "value-format": f(_, le),
1615
+ placeholder: d(_, v, G),
1616
+ onChange: (h) => p(_, o)
1617
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : $("", !0),
1618
+ [u(a).TIME_RANGE].includes(_) ? (n(), E(K, {
1612
1619
  key: 10,
1613
1620
  modelValue: t.value[o],
1614
- "onUpdate:modelValue": (g) => t.value[o] = g,
1621
+ "onUpdate:modelValue": (h) => t.value[o] = h,
1615
1622
  "is-range": "",
1616
- "value-format": v(_, ae),
1617
- "start-placeholder": d(_, p, G)[0],
1618
- "end-placeholder": d(_, p, G)[1],
1619
- onChange: (g) => h(_, o)
1620
- }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : V("", !0),
1621
- [u(a).CHECKBOX].includes(_) ? (n(), E(te, {
1623
+ "value-format": f(_, le),
1624
+ "start-placeholder": d(_, v, G)[0],
1625
+ "end-placeholder": d(_, v, G)[1],
1626
+ onChange: (h) => p(_, o)
1627
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : $("", !0),
1628
+ [u(a).CHECKBOX].includes(_) ? (n(), E(ae, {
1622
1629
  key: 11,
1623
1630
  modelValue: t.value[o],
1624
- "onUpdate:modelValue": (g) => t.value[o] = g,
1625
- onChange: (g) => h(_, o)
1631
+ "onUpdate:modelValue": (h) => t.value[o] = h,
1632
+ onChange: (h) => p(_, o)
1626
1633
  }, {
1627
1634
  default: T(() => [
1628
- (n(!0), b(P, null, X(H, (g, m) => (n(), E(ee, {
1635
+ (n(!0), b(j, null, Q(H, (h, m) => (n(), E(te, {
1629
1636
  key: m,
1630
- label: g.value
1637
+ label: h.value
1631
1638
  }, {
1632
1639
  default: T(() => [
1633
- W(Y(g.label), 1)
1640
+ W(Y(h.label), 1)
1634
1641
  ]),
1635
1642
  _: 2
1636
1643
  }, 1032, ["label"]))), 128))
1637
1644
  ]),
1638
1645
  _: 2
1639
- }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : V("", !0),
1646
+ }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : $("", !0),
1640
1647
  [u(a).CASCADER].includes(_) ? (n(), E(ua, {
1641
1648
  key: 12,
1642
1649
  modelValue: t.value[o],
1643
- "onUpdate:modelValue": (g) => t.value[o] = g,
1650
+ "onUpdate:modelValue": (h) => t.value[o] = h,
1644
1651
  "data-options": H,
1645
- placeholder: d(_, p, G),
1646
- onOnChange: (g) => h(_, o)
1647
- }, null, 8, ["modelValue", "onUpdate:modelValue", "data-options", "placeholder", "onOnChange"])) : V("", !0),
1648
- [].includes(_) ? (n(), b(P, { key: 13 }, [], 64)) : V("", !0),
1652
+ placeholder: d(_, v, G),
1653
+ onOnChange: (h) => p(_, o)
1654
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "data-options", "placeholder", "onOnChange"])) : $("", !0),
1655
+ [].includes(_) ? (n(), b(j, { key: 13 }, [], 64)) : $("", !0),
1649
1656
  [u(a).OPERATION].includes(_) ? (n(), E(la, {
1650
1657
  key: 14,
1651
1658
  fold: ne >= 7,
1652
- onOnSearch: M,
1653
- onOnClear: $,
1654
- onOnFold: U
1655
- }, null, 8, ["fold"])) : V("", !0)
1659
+ onOnSearch: N,
1660
+ onOnClear: k,
1661
+ onOnFold: R
1662
+ }, null, 8, ["fold"])) : $("", !0)
1656
1663
  ], 64))
1657
1664
  ]),
1658
1665
  _: 2
@@ -1660,7 +1667,7 @@ const sa = { class: "bsgoal-base-search" }, ca = { class: "base_search" }, ra =
1660
1667
  ]),
1661
1668
  _: 2
1662
1669
  }, 1032, ["md"])), [
1663
- [le, ne < 7 || _ === u(a).OPERATION || ne >= 7 && B.value]
1670
+ [ee, ne < 7 || _ === u(a).OPERATION || ne >= 7 && C.value]
1664
1671
  ])), 128))
1665
1672
  ]),
1666
1673
  _: 1
@@ -1671,7 +1678,7 @@ const sa = { class: "bsgoal-base-search" }, ca = { class: "base_search" }, ra =
1671
1678
  [u(i)]
1672
1679
  ])
1673
1680
  ]),
1674
- N(Te)
1681
+ w(Te)
1675
1682
  ]);
1676
1683
  };
1677
1684
  }
@@ -1751,15 +1758,15 @@ const _a = { class: "bsgoal-base-search-table" }, ma = { class: "base_search_tab
1751
1758
  default: null
1752
1759
  },
1753
1760
  /**
1754
- * 表格高度 下边距值
1755
- */
1761
+ * 表格高度 下边距值
1762
+ */
1756
1763
  expression: {
1757
1764
  type: [Number],
1758
1765
  default: 75
1759
1766
  },
1760
1767
  /**
1761
1768
  * 映射字段
1762
- */
1769
+ */
1763
1770
  mapProps: {
1764
1771
  type: [Object],
1765
1772
  default: () => ({
@@ -1768,75 +1775,95 @@ const _a = { class: "bsgoal-base-search-table" }, ma = { class: "base_search_tab
1768
1775
  rows: "rows",
1769
1776
  total: "total"
1770
1777
  })
1778
+ },
1779
+ /**
1780
+ * 是否显示分页
1781
+ */
1782
+ hasPage: {
1783
+ type: Boolean,
1784
+ default: !0
1785
+ },
1786
+ /**
1787
+ * 是否显示查询
1788
+ */
1789
+ hasSearch: {
1790
+ type: Boolean,
1791
+ default: !0
1771
1792
  }
1772
1793
  },
1773
1794
  setup(e) {
1774
- const s = e, l = k(!1);
1795
+ const s = e, l = D(!1);
1775
1796
  Ie("transferFoldStatus", l);
1776
- const r = u(s.configOptions), i = J(() => r.filter(($) => {
1777
- const { type: w = "" } = $;
1778
- return !!w;
1779
- })), t = J(() => r.filter(($) => {
1780
- const { item: w = !1 } = $;
1781
- return !w;
1782
- })), c = Fe(), d = k(Object.keys(c)), v = k(null), M = ($) => {
1783
- v.value.refreshList($);
1784
- };
1785
- return ($, w) => (n(), b("div", _a, [
1797
+ const r = u(s.configOptions), i = Z(() => r.filter((x) => {
1798
+ const { type: C = "" } = x;
1799
+ return !!C;
1800
+ })), t = Z(() => r.filter((x) => {
1801
+ const { item: C = !1 } = x;
1802
+ return !C;
1803
+ })), c = Fe(), d = D(Object.keys(c)), f = D(null), N = (x) => {
1804
+ f.value.refreshList(x);
1805
+ }, k = Z(() => {
1806
+ const { expression: x, hasPage: C } = s;
1807
+ return C === !1 ? 25 : x;
1808
+ });
1809
+ return (x, C) => (n(), b("div", _a, [
1786
1810
  S("div", ma, [
1787
- N(da, {
1811
+ X(w(da, {
1788
1812
  "config-options": u(i),
1789
- onOnSearch: M,
1790
- onOnClear: M
1791
- }, null, 8, ["config-options"]),
1792
- N(Ne, {
1813
+ onOnSearch: N,
1814
+ onOnClear: N
1815
+ }, null, 8, ["config-options"]), [
1816
+ [ee, e.hasSearch]
1817
+ ]),
1818
+ w(Ne, {
1793
1819
  ref_key: "BSGOAL_BASE_TABLE_REF",
1794
- ref: v,
1820
+ ref: f,
1795
1821
  "map-props": e.mapProps,
1796
1822
  operationWidth: e.operationWidth,
1797
1823
  "config-options": u(t),
1798
1824
  data: e.tableData,
1799
1825
  selection: e.selection,
1800
1826
  operation: e.operation,
1801
- expression: e.expression,
1827
+ expression: u(k),
1802
1828
  fetch: e.fetch,
1803
- call: e.call
1829
+ call: e.call,
1830
+ "has-page": e.hasPage
1804
1831
  }, Re({ _: 2 }, [
1805
- X(d.value, (B) => ({
1806
- name: B,
1807
- fn: T(({ row: U = {} }) => [
1808
- q($.$slots, B, { row: U })
1832
+ Q(d.value, (R) => ({
1833
+ name: R,
1834
+ fn: T(({ row: p = {} }) => [
1835
+ q(x.$slots, R, { row: p })
1809
1836
  ])
1810
1837
  }))
1811
- ]), 1032, ["map-props", "operationWidth", "config-options", "data", "selection", "operation", "expression", "fetch", "call"])
1838
+ ]), 1032, ["map-props", "operationWidth", "config-options", "data", "selection", "operation", "expression", "fetch", "call", "has-page"])
1812
1839
  ])
1813
1840
  ]));
1814
1841
  }
1815
1842
  });
1816
- const va = { class: "bsgoal-base-tree-fold" }, pa = {
1843
+ const va = { class: "bsgoal-base-tree-fold" }, ha = {
1817
1844
  name: "BsgoalBaseTreeFold"
1818
- }, ha = /* @__PURE__ */ Object.assign(pa, {
1845
+ }, pa = /* @__PURE__ */ Object.assign(ha, {
1819
1846
  props: ["modelValue"],
1820
1847
  emits: ["update:modelValue"],
1821
1848
  setup(e, { emit: s }) {
1822
- let l = k(!0);
1849
+ let l = D(!0);
1823
1850
  const r = () => {
1824
1851
  l.value = !l.value, s("update:modelValue", l.value);
1825
1852
  };
1826
1853
  return (i, t) => {
1827
- const c = f("el-icon");
1854
+ const c = g("el-icon");
1828
1855
  return n(), b("div", va, [
1829
1856
  S("div", {
1830
1857
  class: _e(["base_tree_fold", { "base_tree_fold--hide": !u(l) }]),
1831
1858
  onClick: r
1832
1859
  }, [
1833
- N(c, { color: "#fff" }, {
1860
+ w(c, { color: "#fff" }, {
1834
1861
  default: T(() => [
1835
- Q(N(u(wt), null, null, 512), [
1836
- [le, u(l)]
1862
+ X(w(u(wt), null, null, 512), [
1863
+ [ee, u(l)]
1837
1864
  ]),
1838
- Q(N(u(It), null, null, 512), [
1839
- [le, !u(l)]
1865
+ X(w(u(It), null, null, 512), [
1866
+ [ee, !u(l)]
1840
1867
  ])
1841
1868
  ]),
1842
1869
  _: 1
@@ -1902,53 +1929,53 @@ const Ea = { class: "bsgoal-base-tree" }, ba = { class: "base_tree" }, ya = { cl
1902
1929
  },
1903
1930
  emits: ["on-click"],
1904
1931
  setup(e, { emit: s }) {
1905
- const l = e, r = be.height, i = k(""), t = k(null);
1906
- de(i, ($) => {
1907
- t.value.filter($);
1932
+ const l = e, r = be.height, i = D(""), t = D(null);
1933
+ de(i, (k) => {
1934
+ t.value.filter(k);
1908
1935
  });
1909
- const c = ($, w) => $ ? w.label.includes($) : !0, d = k(!0), v = ($, w, B, U) => {
1910
- s("on-click", $, w, B, U);
1911
- }, M = async ($, w, B) => {
1912
- if ($.level === 0) {
1913
- const U = await B.initNode($);
1914
- return w(U || []);
1936
+ const c = (k, x) => k ? x.label.includes(k) : !0, d = D(!0), f = (k, x, C, R) => {
1937
+ s("on-click", k, x, C, R);
1938
+ }, N = async (k, x, C) => {
1939
+ if (k.level === 0) {
1940
+ const R = await C.initNode(k);
1941
+ return x(R || []);
1915
1942
  } else {
1916
- const U = await B.lazyLoad($);
1917
- w(U || []);
1943
+ const R = await C.lazyLoad(k);
1944
+ x(R || []);
1918
1945
  }
1919
1946
  };
1920
- return ($, w) => {
1921
- const B = f("el-input"), U = f("el-tree");
1947
+ return (k, x) => {
1948
+ const C = g("el-input"), R = g("el-tree");
1922
1949
  return n(), b("div", Ea, [
1923
- Q((n(), b("div", ba, [
1924
- Q(S("div", ya, [
1925
- N(B, {
1950
+ X((n(), b("div", ba, [
1951
+ X(S("div", ya, [
1952
+ w(C, {
1926
1953
  modelValue: i.value,
1927
- "onUpdate:modelValue": w[0] || (w[0] = (h) => i.value = h),
1954
+ "onUpdate:modelValue": x[0] || (x[0] = (p) => i.value = p),
1928
1955
  class: "base_tree_main_input",
1929
1956
  placeholder: "输入关键字过滤"
1930
1957
  }, null, 8, ["modelValue"]),
1931
- N(U, {
1958
+ w(R, {
1932
1959
  ref_key: "EL_TREE_REF",
1933
1960
  ref: t,
1934
1961
  lazy: "",
1935
1962
  "highlight-current": "",
1936
1963
  "empty-text": "暂无数据",
1937
- load: (h, y) => M(h, y, l),
1964
+ load: (p, y) => N(p, y, l),
1938
1965
  "expand-on-click-node": !1,
1939
1966
  props: e.treeProps,
1940
1967
  "filter-node-method": c,
1941
- onNodeClick: v
1968
+ onNodeClick: f
1942
1969
  }, null, 8, ["load", "props"])
1943
1970
  ], 512), [
1944
- [le, d.value]
1971
+ [ee, d.value]
1945
1972
  ]),
1946
- Q(N(Te, { vertical: "" }, null, 512), [
1947
- [le, d.value]
1973
+ X(w(Te, { vertical: "" }, null, 512), [
1974
+ [ee, d.value]
1948
1975
  ]),
1949
- N(ha, {
1976
+ w(pa, {
1950
1977
  modelValue: d.value,
1951
- "onUpdate:modelValue": w[1] || (w[1] = (h) => d.value = h)
1978
+ "onUpdate:modelValue": x[1] || (x[1] = (p) => d.value = p)
1952
1979
  }, null, 8, ["modelValue"])
1953
1980
  ])), [
1954
1981
  [u(r), e.gasket]
@@ -1957,7 +1984,7 @@ const Ea = { class: "bsgoal-base-tree" }, ba = { class: "base_tree" }, ya = { cl
1957
1984
  };
1958
1985
  }
1959
1986
  });
1960
- const xa = { class: "bsgoal-base-dialog" }, Ca = { class: "base_dialog" }, Va = { class: "base_dialog_header" }, Ma = { class: "base_dialog_footer" }, $a = {
1987
+ const xa = { class: "bsgoal-base-dialog" }, Va = { class: "base_dialog" }, Ca = { class: "base_dialog_header" }, Ma = { class: "base_dialog_footer" }, $a = {
1961
1988
  name: "BsgoalBaseDialog"
1962
1989
  }, Na = /* @__PURE__ */ Object.assign($a, {
1963
1990
  props: {
@@ -2021,7 +2048,7 @@ const xa = { class: "bsgoal-base-dialog" }, Ca = { class: "base_dialog" }, Va =
2021
2048
  },
2022
2049
  emits: ["update:modelValue", "on-confirm"],
2023
2050
  setup(e, { emit: s }) {
2024
- const l = e, r = k(l.modelValue.value), i = () => {
2051
+ const l = e, r = D(l.modelValue.value), i = () => {
2025
2052
  r.value = !1;
2026
2053
  }, t = () => {
2027
2054
  r.value = !1, s("on-confirm");
@@ -2034,11 +2061,11 @@ const xa = { class: "bsgoal-base-dialog" }, Ca = { class: "base_dialog" }, Va =
2034
2061
  ), de(r, (d) => {
2035
2062
  s("update:modelValue", d);
2036
2063
  });
2037
- const c = J(() => {
2038
- const { width: d, size: v } = l;
2064
+ const c = Z(() => {
2065
+ const { width: d, size: f } = l;
2039
2066
  if (d)
2040
2067
  return d;
2041
- switch (v) {
2068
+ switch (f) {
2042
2069
  case "small":
2043
2070
  return "480px";
2044
2071
  case "medium":
@@ -2053,30 +2080,30 @@ const xa = { class: "bsgoal-base-dialog" }, Ca = { class: "base_dialog" }, Va =
2053
2080
  return d;
2054
2081
  }
2055
2082
  });
2056
- return (d, v) => {
2057
- const M = f("el-button"), $ = f("el-dialog");
2083
+ return (d, f) => {
2084
+ const N = g("el-button"), k = g("el-dialog");
2058
2085
  return n(), b("div", xa, [
2059
- S("div", Ca, [
2060
- N($, {
2086
+ S("div", Va, [
2087
+ w(k, {
2061
2088
  modelValue: r.value,
2062
- "onUpdate:modelValue": v[0] || (v[0] = (w) => r.value = w),
2089
+ "onUpdate:modelValue": f[0] || (f[0] = (x) => r.value = x),
2063
2090
  "custom-class": "bsgoal_base_dialog_main",
2064
2091
  class: _e({ "bsgoal-dialog__footer--conceal": !e.footer }),
2065
2092
  width: u(c)
2066
2093
  }, {
2067
2094
  header: T(() => [
2068
- S("div", Va, Y(e.title), 1)
2095
+ S("div", Ca, Y(e.title), 1)
2069
2096
  ]),
2070
2097
  footer: T(() => [
2071
2098
  e.footer ? q(d.$slots, "footer", { key: 0 }, () => [
2072
2099
  S("span", Ma, [
2073
- N(M, { onClick: i }, {
2100
+ w(N, { onClick: i }, {
2074
2101
  default: T(() => [
2075
2102
  W(Y(e.cancelTxt), 1)
2076
2103
  ]),
2077
2104
  _: 1
2078
2105
  }),
2079
- N(M, {
2106
+ w(N, {
2080
2107
  type: "primary",
2081
2108
  onClick: t
2082
2109
  }, {
@@ -2086,7 +2113,7 @@ const xa = { class: "bsgoal-base-dialog" }, Ca = { class: "base_dialog" }, Va =
2086
2113
  _: 1
2087
2114
  })
2088
2115
  ])
2089
- ]) : V("", !0)
2116
+ ]) : $("", !0)
2090
2117
  ]),
2091
2118
  default: T(() => [
2092
2119
  S("div", {
@@ -2143,9 +2170,9 @@ const wa = { class: "bsgoal-base-tabs" }, Ba = {
2143
2170
  s("update:modelValue", r);
2144
2171
  };
2145
2172
  return (r, i) => {
2146
- const t = f("el-tab-pane"), c = f("el-tabs");
2173
+ const t = g("el-tab-pane"), c = g("el-tabs");
2147
2174
  return n(), b("div", wa, [
2148
- N(c, {
2175
+ w(c, {
2149
2176
  stretch: "",
2150
2177
  class: "bsgoal_base_tabs",
2151
2178
  type: e.type,
@@ -2153,13 +2180,13 @@ const wa = { class: "bsgoal-base-tabs" }, Ba = {
2153
2180
  onTabChange: l
2154
2181
  }, {
2155
2182
  default: T(() => [
2156
- (n(!0), b(P, null, X(e.configOptions, ({ label: d, value: v }, M) => (n(), E(t, {
2157
- key: M,
2183
+ (n(!0), b(j, null, Q(e.configOptions, ({ label: d, value: f }, N) => (n(), E(t, {
2184
+ key: N,
2158
2185
  label: d,
2159
- name: v
2186
+ name: f
2160
2187
  }, {
2161
2188
  default: T(() => [
2162
- q(r.$slots, v, {}, () => [
2189
+ q(r.$slots, f, {}, () => [
2163
2190
  W(Y(d), 1)
2164
2191
  ])
2165
2192
  ]),
@@ -2204,9 +2231,9 @@ const ka = { class: "bsgoal-base-link" }, Sa = {
2204
2231
  s("on-click");
2205
2232
  };
2206
2233
  return (r, i) => {
2207
- const t = f("el-link");
2234
+ const t = g("el-link");
2208
2235
  return n(), b("div", ka, [
2209
- N(t, {
2236
+ w(t, {
2210
2237
  class: "bsgoal_base_link",
2211
2238
  type: "primary",
2212
2239
  underline: e.underline,
@@ -2223,7 +2250,7 @@ const ka = { class: "bsgoal-base-link" }, Sa = {
2223
2250
  ]);
2224
2251
  };
2225
2252
  }
2226
- }), Ia = /* @__PURE__ */ $e(Oa, [["__scopeId", "data-v-3b0290b0"]]), La = a, za = ye, Pa = {
2253
+ }), Ia = /* @__PURE__ */ $e(Oa, [["__scopeId", "data-v-3b0290b0"]]), Pa = a, La = ye, za = {
2227
2254
  install(e, s = {}) {
2228
2255
  const { exclude: l = [] } = s, r = {
2229
2256
  BsgoalBaseForm: We,
@@ -2242,8 +2269,8 @@ const ka = { class: "bsgoal-base-link" }, Sa = {
2242
2269
  useFetch: ye
2243
2270
  };
2244
2271
  export {
2245
- La as EnumType,
2246
- Pa as default,
2247
- za as useFetchApi
2272
+ Pa as EnumType,
2273
+ za as default,
2274
+ La as useFetchApi
2248
2275
  };
2249
2276
  //# sourceMappingURL=index.mjs.map