@bsgoal/common 1.7.0 → 1.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,16 +1,17 @@
1
- var Be = Object.defineProperty;
2
- var Te = Object.getOwnPropertySymbols;
3
- var we = Object.prototype.hasOwnProperty, De = Object.prototype.propertyIsEnumerable;
4
- var xe = (e, s, l) => s in e ? Be(e, s, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[s] = l, ve = (e, s) => {
5
- for (var l in s || (s = {}))
6
- we.call(s, l) && xe(e, l, s[l]);
7
- if (Te)
8
- for (var l of Te(s))
9
- De.call(s, l) && xe(e, l, s[l]);
1
+ var Se = Object.defineProperty;
2
+ var Ae = Object.getOwnPropertySymbols;
3
+ var ke = Object.prototype.hasOwnProperty, De = Object.prototype.propertyIsEnumerable;
4
+ var Te = (e, u, l) => u in e ? Se(e, u, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[u] = l, fe = (e, u) => {
5
+ for (var l in u || (u = {}))
6
+ ke.call(u, l) && Te(e, l, u[l]);
7
+ if (Ae)
8
+ for (var l of Ae(u))
9
+ De.call(u, l) && Te(e, l, u[l]);
10
10
  return e;
11
11
  };
12
- import { computed as K, resolveComponent as g, openBlock as o, createElementBlock as y, createVNode as N, unref as u, withCtx as x, renderSlot as ae, createTextVNode as H, toDisplayString as G, ref as D, watchEffect as Ee, createElementVNode as k, withDirectives as W, createBlock as b, Fragment as z, renderList as Z, createCommentVNode as $, nextTick as Ce, inject as Ve, watch as _e, resolveDirective as Se, normalizeClass as me, vShow as le, isProxy as ke, toRaw as Oe, provide as Ie, useSlots as Re, createSlots as Fe, normalizeStyle as Ue } from "vue";
13
- import { ElMessage as Le } from "element-plus";
12
+ import { computed as K, resolveComponent as g, openBlock as o, createElementBlock as C, createVNode as B, unref as s, withCtx as A, renderSlot as J, createTextVNode as H, toDisplayString as z, ref as k, watchEffect as ve, createElementVNode as R, withDirectives as W, createBlock as b, Fragment as L, renderList as Z, createCommentVNode as N, nextTick as Ce, inject as Ve, watch as de, resolveDirective as $e, normalizeClass as _e, vShow as ne, isProxy as Oe, toRaw as Ie, provide as Fe, useSlots as Re, createSlots as we, normalizeStyle as Ue } from "vue";
13
+ import { ElMessage as Pe } from "element-plus";
14
+ import { Search as je, Delete as Me, ArrowUp as Le, ArrowDown as ze, ArrowLeft as Ye, ArrowRight as Ge, Plus as He } from "@element-plus/icons-vue";
14
15
  const a = {
15
16
  INPUT: "text",
16
17
  INPUT_NUMBER: "number",
@@ -33,60 +34,60 @@ const a = {
33
34
  OPERATION: "operation",
34
35
  CASCADER: "cascader"
35
36
  };
36
- let he = null;
37
- const pe = (e) => {
38
- const s = [], l = [], i = (c = []) => {
39
- const t = c.map((_) => _.width), m = Math.max(...t);
37
+ let pe = null;
38
+ const he = (e) => {
39
+ const u = [], l = [], i = (c = []) => {
40
+ const t = c.map((_) => _.width), d = Math.max(...t);
40
41
  c.forEach((_) => {
41
- const { labelEl: V } = _;
42
- V.style.width = `${m}px`;
42
+ const { labelEl: M } = _;
43
+ M.style.width = `${d}px`;
43
44
  });
44
45
  }, r = () => {
45
46
  if (e) {
46
47
  const c = e.querySelectorAll(".el-form-item__label");
47
48
  if (c && c.length) {
48
49
  let t = 0;
49
- c.forEach((m, _) => {
50
- m.style.width = "initial", m.style.whiteSpace = "nowrap";
51
- const { x: V = 0, width: B = 0 } = m.getBoundingClientRect(), S = { x: V, width: B, labelEl: m };
52
- _ === 0 && (t = V), V === t ? s.push(S) : l.push(S);
50
+ c.forEach((d, _) => {
51
+ d.style.width = "initial", d.style.whiteSpace = "nowrap";
52
+ const { x: M = 0, width: S = 0 } = d.getBoundingClientRect(), $ = { x: M, width: S, labelEl: d };
53
+ _ === 0 && (t = M), M === t ? u.push($) : l.push($);
53
54
  });
54
55
  }
55
56
  }
56
57
  };
57
- he && clearTimeout(he), he = setTimeout(() => {
58
- r(), i(s), i(l);
58
+ pe && clearTimeout(pe), pe = setTimeout(() => {
59
+ r(), i(u), i(l);
59
60
  }, 50);
60
- }, be = {
61
+ }, Ee = {
61
62
  /**
62
63
  * 表单自动左对齐
63
64
  */
64
65
  align: {
65
66
  created(e) {
66
67
  window.addEventListener("resize", () => {
67
- pe(e);
68
+ he(e);
68
69
  });
69
70
  },
70
71
  mounted(e) {
71
- pe(e);
72
+ he(e);
72
73
  },
73
74
  unmounted(e) {
74
- window.removeEventListener("resize", pe(e));
75
+ window.removeEventListener("resize", he(e));
75
76
  }
76
77
  },
77
78
  /**
78
79
  * 表格自动高度
79
80
  */
80
- height: (e, { value: s = 65, arg: l = "" }) => {
81
+ height: (e, { value: u = 65, arg: l = "" }) => {
81
82
  if (e) {
82
83
  const { y: i = 0 } = e.getBoundingClientRect();
83
- e.style.height = `calc(100vh - ${i + s}px)`;
84
+ e.style.height = `calc(100vh - ${i + u}px)`;
84
85
  }
85
86
  }
86
87
  };
87
- const Pe = { class: "bsgoal-base-tooltip" }, ze = {
88
+ const We = { class: "bsgoal-base-tooltip" }, Xe = {
88
89
  name: "BsgoalBaseTooltip"
89
- }, Me = /* @__PURE__ */ Object.assign(ze, {
90
+ }, xe = /* @__PURE__ */ Object.assign(Xe, {
90
91
  props: {
91
92
  /**
92
93
  * 文字提示内容
@@ -126,29 +127,29 @@ const Pe = { class: "bsgoal-base-tooltip" }, ze = {
126
127
  }
127
128
  },
128
129
  setup(e) {
129
- const s = e, l = K(() => {
130
- const { content: r = "", limit: c = 0, none: t = "" } = s;
131
- let m = r;
130
+ const u = e, l = K(() => {
131
+ const { content: r = "", limit: c = 0, none: t = "" } = u;
132
+ let d = r;
132
133
  const _ = r.length;
133
- return c && _ > c && (m = `${r.substring(0, c)}...`), m || t;
134
+ return c && _ > c && (d = `${r.substring(0, c)}...`), d || t;
134
135
  }), i = K(() => {
135
- const { content: r = "", limit: c = 0 } = s;
136
+ const { content: r = "", limit: c = 0 } = u;
136
137
  return r.length < c || !c;
137
138
  });
138
139
  return (r, c) => {
139
140
  const t = g("el-tooltip");
140
- return o(), y("div", Pe, [
141
- N(t, {
141
+ return o(), C("div", We, [
142
+ B(t, {
142
143
  class: "base_tooltip",
143
144
  effect: "dark",
144
145
  "popper-class": "base_tooltip_popper",
145
146
  placement: "top-start",
146
147
  content: e.content,
147
- disabled: u(i)
148
+ disabled: s(i)
148
149
  }, {
149
- default: x(() => [
150
- ae(r.$slots, "default", {}, () => [
151
- H(G(u(l)), 1)
150
+ default: A(() => [
151
+ J(r.$slots, "default", {}, () => [
152
+ H(z(s(l)), 1)
152
153
  ])
153
154
  ]),
154
155
  _: 3
@@ -157,9 +158,9 @@ const Pe = { class: "bsgoal-base-tooltip" }, ze = {
157
158
  };
158
159
  }
159
160
  });
160
- const je = { class: "bsgoal-base-form" }, Ye = { class: "base_form" }, Ge = { key: 1 }, He = {
161
+ const Qe = { class: "bsgoal-base-form" }, Ze = { class: "base_form" }, Ke = { key: 1 }, Je = {
161
162
  name: "BsgoalBaseForm"
162
- }, We = /* @__PURE__ */ Object.assign(He, {
163
+ }, qe = /* @__PURE__ */ Object.assign(Je, {
163
164
  props: {
164
165
  /**
165
166
  * >----------props----------<
@@ -221,24 +222,24 @@ const je = { class: "bsgoal-base-form" }, Ye = { class: "base_form" }, Ge = { ke
221
222
  }
222
223
  },
223
224
  emits: ["on-form", "on-clear", "on-change", "on-fold"],
224
- setup(e, { expose: s, emit: l }) {
225
- const i = e, r = D(null), c = be.align, t = D({});
226
- Ee(() => {
227
- const { configOptions: h, values: E } = i, A = u(h), C = u(E);
228
- A.forEach((M) => {
229
- const { value: p = "", prop: O = "", type: I = "" } = M;
230
- [a.INPUT, a.INPUT_TEXT_AREA].includes(I), t.value[O] = C[O] || p;
225
+ setup(e, { expose: u, emit: l }) {
226
+ const i = e, r = k(null), c = Ee.align, t = k({});
227
+ ve(() => {
228
+ const { configOptions: h, values: E } = i, y = s(h), V = s(E);
229
+ y.forEach((x) => {
230
+ const { value: v = "", prop: O = "", type: I = "" } = x;
231
+ [a.INPUT, a.INPUT_TEXT_AREA].includes(I), t.value[O] = V[O] || v;
231
232
  });
232
233
  });
233
- const m = K(() => {
234
+ const d = K(() => {
234
235
  const { configOptions: h } = i;
235
- return u(h).map((C) => {
236
- let { rules: M = !1, label: p = "" } = C;
237
- const O = { required: !0, message: `${p}不能为空`, trigger: "blur" };
238
- return M && (typeof M == "boolean" ? M = [O] : Array.isArray(M) ? M = [O, ...M] : M = [O, M]), C.rules = M, C;
236
+ return s(h).map((V) => {
237
+ let { rules: x = !1, label: v = "" } = V;
238
+ const O = { required: !0, message: `${v}不能为空`, trigger: "blur" };
239
+ return x && (typeof x == "boolean" ? x = [O] : Array.isArray(x) ? x = [O, ...x] : x = [O, x]), V.rules = x, V;
239
240
  });
240
- }), _ = (h = "", E = "", A = "") => {
241
- if (!A)
241
+ }), _ = (h = "", E = "", y = "") => {
242
+ if (!y)
242
243
  switch (h) {
243
244
  case a.INPUT:
244
245
  case a.INPUT_TEXT_AREA:
@@ -259,8 +260,8 @@ const je = { class: "bsgoal-base-form" }, Ye = { class: "base_form" }, Ge = { ke
259
260
  case a.MONTH_RANGE:
260
261
  return ["开始月份", "结束月份"];
261
262
  }
262
- return A;
263
- }, V = (h = "", E = "") => {
263
+ return y;
264
+ }, M = (h = "", E = "") => {
264
265
  if (!E)
265
266
  switch (h) {
266
267
  case a.WEEK:
@@ -282,235 +283,235 @@ const je = { class: "bsgoal-base-form" }, Ye = { class: "base_form" }, Ge = { ke
282
283
  return "YYYY-MM-DD HH:mm:ss";
283
284
  }
284
285
  return E;
285
- }, B = () => {
286
- const h = u(t), { configOptions: E } = i, A = u(E);
287
- for (const C of A) {
288
- const { type: M = "", range: p = [], prop: O = "" } = C;
289
- if (M.endsWith("range") && p && p.length === 2) {
290
- const { 0: I = "", 1: L = "" } = h[O], { 0: F = "", 1: j = "" } = p;
291
- h[F] = I, h[j] = L;
286
+ }, S = () => {
287
+ const h = s(t), { configOptions: E } = i, y = s(E);
288
+ for (const V of y) {
289
+ const { type: x = "", range: v = [], prop: O = "" } = V;
290
+ if (x.endsWith("range") && v && v.length === 2) {
291
+ const { 0: I = "", 1: P = "" } = h[O], { 0: w = "", 1: Y = "" } = v;
292
+ h[w] = I, h[Y] = P;
292
293
  }
293
294
  }
294
295
  return l("on-form", h), h;
295
- }, S = () => {
296
+ }, $ = () => {
296
297
  r.value.resetFields(), l("on-clear", t.value);
297
- }, w = (h, E) => {
298
- const A = {
298
+ }, D = (h, E) => {
299
+ const y = {
299
300
  type: h,
300
301
  prop: E,
301
302
  value: t.value[E] || ""
302
303
  };
303
- l("on-change", A);
304
+ l("on-change", y);
304
305
  };
305
- return s({
306
- triggerOperationClear: S,
307
- triggerOperationForm: B,
306
+ return u({
307
+ triggerOperationClear: $,
308
+ triggerOperationForm: S,
308
309
  validateForm: (h = () => {
309
310
  }) => {
310
- r.value.validate((E = !1, A = {}) => {
311
+ r.value.validate((E = !1, y = {}) => {
311
312
  if (E) {
312
- const C = B();
313
- h(C);
313
+ const V = S();
314
+ h(V);
314
315
  } else {
315
316
  h(!1);
316
- const C = Object.keys(A)[0], {
317
- [C]: {
318
- 0: { message: M = "" }
317
+ const V = Object.keys(y)[0], {
318
+ [V]: {
319
+ 0: { message: x = "" }
319
320
  }
320
- } = A;
321
- Le.error(M);
321
+ } = y;
322
+ Pe.error(x);
322
323
  }
323
324
  });
324
325
  }
325
326
  }), (h, E) => {
326
- const A = g("el-input"), C = g("el-input-number"), M = g("el-radio"), p = g("el-radio-group"), O = g("el-option"), I = g("el-select"), L = g("el-slider"), F = g("el-switch"), j = g("el-date-picker"), R = g("el-time-picker"), X = g("el-checkbox"), J = g("el-checkbox-group"), ne = g("el-form-item"), oe = g("el-col"), re = g("el-row"), ie = g("el-form");
327
- return o(), y("div", je, [
328
- k("div", Ye, [
329
- W((o(), b(ie, {
327
+ const y = g("el-input"), V = g("el-input-number"), x = g("el-radio"), v = g("el-radio-group"), O = g("el-option"), I = g("el-select"), P = g("el-slider"), w = g("el-switch"), Y = g("el-date-picker"), F = g("el-time-picker"), X = g("el-checkbox"), q = g("el-checkbox-group"), le = g("el-form-item"), oe = g("el-col"), ce = g("el-row"), re = g("el-form");
328
+ return o(), C("div", Qe, [
329
+ R("div", Ze, [
330
+ W((o(), b(re, {
330
331
  ref_key: "EL_FORM_REF",
331
332
  ref: r,
332
333
  "label-suffix": ":",
333
334
  model: t.value
334
335
  }, {
335
- default: x(() => [
336
- N(re, null, {
337
- default: x(() => [
338
- (o(!0), y(z, null, Z(u(m), ({
339
- label: P = "",
336
+ default: A(() => [
337
+ B(ce, null, {
338
+ default: A(() => [
339
+ (o(!0), C(L, null, Z(s(d), ({
340
+ label: j = "",
340
341
  prop: T = "",
341
- type: d = "text",
342
+ type: m = "text",
342
343
  placeholder: f = "",
343
- readonly: v = e.readonlys,
344
- clearable: Y = !0,
345
- rows: fe = 2,
346
- min: de = 1,
347
- max: ge = 10,
348
- range: q = [],
349
- format: ee = "",
350
- rules: te = [],
351
- limit: ue = e.limits
352
- } = {}, se) => (o(), b(oe, {
353
- key: se,
344
+ readonly: p = e.readonlys,
345
+ clearable: G = !0,
346
+ rows: ge = 2,
347
+ min: ie = 1,
348
+ max: me = 10,
349
+ range: ee = [],
350
+ format: te = "",
351
+ rules: ae = [],
352
+ limit: se = e.limits
353
+ } = {}, ue) => (o(), b(oe, {
354
+ key: ue,
354
355
  xs: 24,
355
356
  sm: 24,
356
357
  md: e.medium
357
358
  }, {
358
- default: x(() => [
359
- N(ne, {
360
- label: P,
359
+ default: A(() => [
360
+ B(le, {
361
+ label: j,
361
362
  prop: T,
362
- rules: te
363
+ rules: ae
363
364
  }, {
364
- default: x(() => [
365
- v ? (o(), y("div", Ge, [
366
- N(Me, {
365
+ default: A(() => [
366
+ p ? (o(), C("div", Ke, [
367
+ B(xe, {
367
368
  content: t.value[T],
368
- limit: ue,
369
+ limit: se,
369
370
  none: e.none
370
371
  }, null, 8, ["content", "limit", "none"])
371
- ])) : (o(), y(z, { key: 0 }, [
372
- d === u(a).INPUT ? (o(), b(A, {
372
+ ])) : (o(), C(L, { key: 0 }, [
373
+ m === s(a).INPUT ? (o(), b(y, {
373
374
  key: 0,
374
375
  modelValue: t.value[T],
375
376
  "onUpdate:modelValue": (n) => t.value[T] = n,
376
- placeholder: _(d, P, f),
377
- clearable: Y,
378
- onChange: (n) => w(d, T)
379
- }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : $("", !0),
380
- d === u(a).INPUT_TEXT_AREA ? (o(), b(A, {
377
+ placeholder: _(m, j, f),
378
+ clearable: G,
379
+ onChange: (n) => D(m, T)
380
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : N("", !0),
381
+ m === s(a).INPUT_TEXT_AREA ? (o(), b(y, {
381
382
  key: 1,
382
383
  modelValue: t.value[T],
383
384
  "onUpdate:modelValue": (n) => t.value[T] = n,
384
385
  type: "textarea",
385
- rows: fe,
386
- clearable: Y,
387
- placeholder: _(d, P, f),
388
- onChange: (n) => w(d, T)
389
- }, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : $("", !0),
390
- d === u(a).INPUT_NUMBER ? (o(), b(C, {
386
+ rows: ge,
387
+ clearable: G,
388
+ placeholder: _(m, j, f),
389
+ onChange: (n) => D(m, T)
390
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : N("", !0),
391
+ m === s(a).INPUT_NUMBER ? (o(), b(V, {
391
392
  key: 2,
392
393
  modelValue: h.num,
393
394
  "onUpdate:modelValue": E[0] || (E[0] = (n) => h.num = n),
394
- min: de,
395
- max: ge,
396
- onChange: w
397
- }, null, 8, ["modelValue", "min", "max"])) : $("", !0),
398
- d === u(a).RADIO ? (o(), b(p, {
395
+ min: ie,
396
+ max: me,
397
+ onChange: D
398
+ }, null, 8, ["modelValue", "min", "max"])) : N("", !0),
399
+ m === s(a).RADIO ? (o(), b(v, {
399
400
  key: 3,
400
401
  modelValue: t.value[T],
401
402
  "onUpdate:modelValue": (n) => t.value[T] = n,
402
- onChange: (n) => w(d, T)
403
+ onChange: (n) => D(m, T)
403
404
  }, {
404
- default: x(() => [
405
- (o(!0), y(z, null, Z(q, (n, Q) => (o(), b(M, {
405
+ default: A(() => [
406
+ (o(!0), C(L, null, Z(ee, (n, Q) => (o(), b(x, {
406
407
  key: Q,
407
408
  label: n.value
408
409
  }, {
409
- default: x(() => [
410
- H(G(n.label), 1)
410
+ default: A(() => [
411
+ H(z(n.label), 1)
411
412
  ]),
412
413
  _: 2
413
414
  }, 1032, ["label"]))), 128))
414
415
  ]),
415
416
  _: 2
416
- }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : $("", !0),
417
- d === u(a).SELECT ? (o(), b(I, {
417
+ }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : N("", !0),
418
+ m === s(a).SELECT ? (o(), b(I, {
418
419
  key: 4,
419
420
  modelValue: t.value[T],
420
421
  "onUpdate:modelValue": (n) => t.value[T] = n,
421
- placeholder: _(d, P, f),
422
- onChange: (n) => w(d, T)
422
+ placeholder: _(m, j, f),
423
+ onChange: (n) => D(m, T)
423
424
  }, {
424
- default: x(() => [
425
- (o(!0), y(z, null, Z(q, (n, Q) => (o(), b(O, {
425
+ default: A(() => [
426
+ (o(!0), C(L, null, Z(ee, (n, Q) => (o(), b(O, {
426
427
  key: Q,
427
428
  label: n.label,
428
429
  value: n.value
429
430
  }, null, 8, ["label", "value"]))), 128))
430
431
  ]),
431
432
  _: 2
432
- }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : $("", !0),
433
- d === u(a).SLIDER ? (o(), b(L, {
433
+ }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : N("", !0),
434
+ m === s(a).SLIDER ? (o(), b(P, {
434
435
  key: 5,
435
436
  modelValue: t.value[T],
436
437
  "onUpdate:modelValue": (n) => t.value[T] = n,
437
- min: de,
438
- max: ge,
439
- onChange: (n) => w(d, T)
440
- }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : $("", !0),
441
- d === u(a).SWITCH ? (o(), b(F, {
438
+ min: ie,
439
+ max: me,
440
+ onChange: (n) => D(m, T)
441
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : N("", !0),
442
+ m === s(a).SWITCH ? (o(), b(w, {
442
443
  key: 6,
443
444
  modelValue: t.value[T],
444
445
  "onUpdate:modelValue": (n) => t.value[T] = n,
445
- "active-value": q[0] || !0,
446
- "inactive-value": q[1] || !1,
447
- onChange: (n) => w(d, T)
448
- }, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : $("", !0),
449
- [u(a).DATE, u(a).MONTH, u(a).YEAR, u(a).DATE_TIME].includes(
450
- d
451
- ) ? (o(), b(j, {
446
+ "active-value": ee[0] || !0,
447
+ "inactive-value": ee[1] || !1,
448
+ onChange: (n) => D(m, T)
449
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : N("", !0),
450
+ [s(a).DATE, s(a).MONTH, s(a).YEAR, s(a).DATE_TIME].includes(
451
+ m
452
+ ) ? (o(), b(Y, {
452
453
  key: 7,
453
454
  modelValue: t.value[T],
454
455
  "onUpdate:modelValue": (n) => t.value[T] = n,
455
- format: V(d, ee),
456
- "value-format": V(d, ee),
457
- type: d,
458
- placeholder: _(d, P, f),
459
- onChange: (n) => w(d, T)
460
- }, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : $("", !0),
456
+ format: M(m, te),
457
+ "value-format": M(m, te),
458
+ type: m,
459
+ placeholder: _(m, j, f),
460
+ onChange: (n) => D(m, T)
461
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : N("", !0),
461
462
  [
462
- u(a).DATE_RANGE,
463
- u(a).MONTH_RANGE,
464
- u(a).DATE_TIME_RANGE
465
- ].includes(d) ? (o(), b(j, {
463
+ s(a).DATE_RANGE,
464
+ s(a).MONTH_RANGE,
465
+ s(a).DATE_TIME_RANGE
466
+ ].includes(m) ? (o(), b(Y, {
466
467
  key: 8,
467
468
  modelValue: t.value[T],
468
469
  "onUpdate:modelValue": (n) => t.value[T] = n,
469
- type: d,
470
- "value-format": V(d, ee),
471
- "start-placeholder": _(d, P, f)[0],
472
- "end-placeholder": _(d, P, f)[1],
473
- onChange: (n) => w(d, T)
474
- }, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : $("", !0),
475
- [u(a).TIME].includes(d) ? (o(), b(R, {
470
+ type: m,
471
+ "value-format": M(m, te),
472
+ "start-placeholder": _(m, j, f)[0],
473
+ "end-placeholder": _(m, j, f)[1],
474
+ onChange: (n) => D(m, T)
475
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : N("", !0),
476
+ [s(a).TIME].includes(m) ? (o(), b(F, {
476
477
  key: 9,
477
478
  modelValue: t.value[T],
478
479
  "onUpdate:modelValue": (n) => t.value[T] = n,
479
480
  "arrow-control": "",
480
- "value-format": V(d, ee),
481
- placeholder: _(d, P, f),
482
- onChange: (n) => w(d, T)
483
- }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : $("", !0),
484
- [u(a).TIME_RANGE].includes(d) ? (o(), b(R, {
481
+ "value-format": M(m, te),
482
+ placeholder: _(m, j, f),
483
+ onChange: (n) => D(m, T)
484
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : N("", !0),
485
+ [s(a).TIME_RANGE].includes(m) ? (o(), b(F, {
485
486
  key: 10,
486
487
  modelValue: t.value[T],
487
488
  "onUpdate:modelValue": (n) => t.value[T] = n,
488
489
  "is-range": "",
489
- "value-format": V(d, ee),
490
- "start-placeholder": _(d, P, f)[0],
491
- "end-placeholder": _(d, P, f)[1],
492
- onChange: (n) => w(d, T)
493
- }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : $("", !0),
494
- [u(a).CHECKBOX].includes(d) ? (o(), b(J, {
490
+ "value-format": M(m, te),
491
+ "start-placeholder": _(m, j, f)[0],
492
+ "end-placeholder": _(m, j, f)[1],
493
+ onChange: (n) => D(m, T)
494
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : N("", !0),
495
+ [s(a).CHECKBOX].includes(m) ? (o(), b(q, {
495
496
  key: 11,
496
497
  modelValue: t.value[T],
497
498
  "onUpdate:modelValue": (n) => t.value[T] = n,
498
- onChange: (n) => w(d, T)
499
+ onChange: (n) => D(m, T)
499
500
  }, {
500
- default: x(() => [
501
- (o(!0), y(z, null, Z(q, (n, Q) => (o(), b(X, {
501
+ default: A(() => [
502
+ (o(!0), C(L, null, Z(ee, (n, Q) => (o(), b(X, {
502
503
  key: Q,
503
504
  label: n.value
504
505
  }, {
505
- default: x(() => [
506
- H(G(n.label), 1)
506
+ default: A(() => [
507
+ H(z(n.label), 1)
507
508
  ]),
508
509
  _: 2
509
510
  }, 1032, ["label"]))), 128))
510
511
  ]),
511
512
  _: 2
512
- }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : $("", !0),
513
- [].includes(d) ? (o(), y(z, { key: 12 }, [], 64)) : $("", !0)
513
+ }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : N("", !0),
514
+ [].includes(m) ? (o(), C(L, { key: 12 }, [], 64)) : N("", !0)
514
515
  ], 64))
515
516
  ]),
516
517
  _: 2
@@ -524,19 +525,19 @@ const je = { class: "bsgoal-base-form" }, Ye = { class: "base_form" }, Ge = { ke
524
525
  ]),
525
526
  _: 1
526
527
  }, 8, ["model"])), [
527
- [u(c)]
528
+ [s(c)]
528
529
  ])
529
530
  ])
530
531
  ]);
531
532
  };
532
533
  }
533
534
  });
534
- const Xe = { class: "bsgoal-base-table-content" }, Qe = { class: "base_table_content" }, Ze = {
535
+ const et = { class: "bsgoal-base-table-content" }, tt = { class: "base_table_content" }, at = {
535
536
  key: 1,
536
537
  class: "base_table_table_txt"
537
- }, Ke = {
538
+ }, nt = {
538
539
  name: "BsgoalBaseTableContent"
539
- }, Je = /* @__PURE__ */ Object.assign(Ke, {
540
+ }, lt = /* @__PURE__ */ Object.assign(nt, {
540
541
  props: {
541
542
  /**
542
543
  * 数据
@@ -561,19 +562,19 @@ const Xe = { class: "bsgoal-base-table-content" }, Qe = { class: "base_table_con
561
562
  }
562
563
  },
563
564
  setup(e) {
564
- return (s, l) => (o(), y("div", Xe, [
565
- k("div", Qe, [
566
- e.tooltip ? (o(), b(Me, {
565
+ return (u, l) => (o(), C("div", et, [
566
+ R("div", tt, [
567
+ e.tooltip ? (o(), b(xe, {
567
568
  key: 0,
568
569
  content: e.data,
569
570
  limit: e.limit
570
- }, null, 8, ["content", "limit"])) : (o(), y("div", Ze, G(e.data), 1))
571
+ }, null, 8, ["content", "limit"])) : (o(), C("div", at, z(e.data), 1))
571
572
  ])
572
573
  ]));
573
574
  }
574
575
  });
575
576
  /*! Element Plus v2.3.3 */
576
- var qe = {
577
+ var ot = {
577
578
  name: "zh-cn",
578
579
  el: {
579
580
  colorpicker: {
@@ -700,9 +701,9 @@ var qe = {
700
701
  }
701
702
  }
702
703
  };
703
- const et = { class: "bsgoal-base-table-pagination" }, tt = { class: "base_table_pagination" }, at = /* @__PURE__ */ k("span", null, "总数", -1), lt = {
704
+ const st = { class: "bsgoal-base-table-pagination" }, ut = { class: "base_table_pagination" }, ct = /* @__PURE__ */ R("span", null, "总数", -1), rt = {
704
705
  name: "BsgoalBaseTablePagination"
705
- }, nt = /* @__PURE__ */ Object.assign(lt, {
706
+ }, it = /* @__PURE__ */ Object.assign(rt, {
706
707
  props: {
707
708
  /**
708
709
  * 当前页数
@@ -734,31 +735,31 @@ const et = { class: "bsgoal-base-table-pagination" }, tt = { class: "base_table_
734
735
  }
735
736
  },
736
737
  emits: ["on-size-change", "on-current-change"],
737
- setup(e, { emit: s }) {
738
+ setup(e, { emit: u }) {
738
739
  const l = (c = 0) => {
739
- s("on-size-change", c);
740
+ u("on-size-change", c);
740
741
  }, i = (c = 1) => {
741
- s("on-current-change", c);
742
- }, r = D(1);
742
+ u("on-current-change", c);
743
+ }, r = k(1);
743
744
  return (c, t) => {
744
- const m = g("el-pagination"), _ = g("el-config-provider");
745
- return o(), y("div", et, [
746
- k("div", tt, [
747
- N(_, { locale: u(qe) }, {
748
- default: x(() => [
749
- N(m, {
745
+ const d = g("el-pagination"), _ = g("el-config-provider");
746
+ return o(), C("div", st, [
747
+ R("div", ut, [
748
+ B(_, { locale: s(ot) }, {
749
+ default: A(() => [
750
+ B(d, {
750
751
  background: "",
751
752
  layout: "total, sizes, prev, pager, next, jumper",
752
753
  "current-page": r.value,
753
- "onUpdate:currentPage": t[0] || (t[0] = (V) => r.value = V),
754
+ "onUpdate:currentPage": t[0] || (t[0] = (M) => r.value = M),
754
755
  "page-sizes": e.pageSizes,
755
756
  "page-size": e.pageSize,
756
757
  total: e.total,
757
758
  onSizeChange: l,
758
759
  onCurrentChange: i
759
760
  }, {
760
- next: x(() => [
761
- at
761
+ next: A(() => [
762
+ ct
762
763
  ]),
763
764
  _: 1
764
765
  }, 8, ["current-page", "page-sizes", "page-size", "total"])
@@ -770,54 +771,54 @@ const et = { class: "bsgoal-base-table-pagination" }, tt = { class: "base_table_
770
771
  };
771
772
  }
772
773
  });
773
- const $e = (e, s) => {
774
+ const Ne = (e, u) => {
774
775
  const l = e.__vccOpts || e;
775
- for (const [i, r] of s)
776
+ for (const [i, r] of u)
776
777
  l[i] = r;
777
778
  return l;
778
- }, ot = {
779
+ }, dt = {
779
780
  name: "BsgoalBaseTableEmpty"
780
- }, ut = { class: "bsgoal-base-table-empty" }, st = /* @__PURE__ */ k("div", { class: "base_table_empty" }, [
781
- /* @__PURE__ */ k("div", { class: "base_table_empty_img" }, [
782
- /* @__PURE__ */ k("img", {
781
+ }, _t = { class: "bsgoal-base-table-empty" }, mt = /* @__PURE__ */ R("div", { class: "base_table_empty" }, [
782
+ /* @__PURE__ */ R("div", { class: "base_table_empty_img" }, [
783
+ /* @__PURE__ */ R("img", {
783
784
  src: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjQiIGhlaWdodD0iNDEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCAxKSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgIDxlbGxpcHNlIGZpbGw9IiNGNUY1RjUiIGN4PSIzMiIgY3k9IjMzIiByeD0iMzIiIHJ5PSI3Ii8+CiAgICA8ZyBmaWxsLXJ1bGU9Im5vbnplcm8iIHN0cm9rZT0iI0Q5RDlEOSI+CiAgICAgIDxwYXRoIGQ9Ik01NSAxMi43Nkw0NC44NTQgMS4yNThDNDQuMzY3LjQ3NCA0My42NTYgMCA0Mi45MDcgMEgyMS4wOTNjLS43NDkgMC0xLjQ2LjQ3NC0xLjk0NyAxLjI1N0w5IDEyLjc2MVYyMmg0NnYtOS4yNHoiLz4KICAgICAgPHBhdGggZD0iTTQxLjYxMyAxNS45MzFjMC0xLjYwNS45OTQtMi45MyAyLjIyNy0yLjkzMUg1NXYxOC4xMzdDNTUgMzMuMjYgNTMuNjggMzUgNTIuMDUgMzVoLTQwLjFDMTAuMzIgMzUgOSAzMy4yNTkgOSAzMS4xMzdWMTNoMTEuMTZjMS4yMzMgMCAyLjIyNyAxLjMyMyAyLjIyNyAyLjkyOHYuMDIyYzAgMS42MDUgMS4wMDUgMi45MDEgMi4yMzcgMi45MDFoMTQuNzUyYzEuMjMyIDAgMi4yMzctMS4zMDggMi4yMzctMi45MTN2LS4wMDd6IiBmaWxsPSIjRkFGQUZBIi8+CiAgICA8L2c+CiAgPC9nPgo8L3N2Zz4K",
784
785
  alt: ""
785
786
  })
786
787
  ]),
787
- /* @__PURE__ */ k("div", { class: "base_table_empty_text" }, "暂无数据")
788
- ], -1), ct = [
789
- st
788
+ /* @__PURE__ */ R("div", { class: "base_table_empty_text" }, "暂无数据")
789
+ ], -1), gt = [
790
+ mt
790
791
  ];
791
- function rt(e, s, l, i, r, c) {
792
- return o(), y("div", ut, ct);
792
+ function ft(e, u, l, i, r, c) {
793
+ return o(), C("div", _t, gt);
793
794
  }
794
- const it = /* @__PURE__ */ $e(ot, [["render", rt]]), dt = (e = null, { expression: s = 75, arg: l = {}, height: i = "" } = {}) => {
795
- const r = u(e);
795
+ const pt = /* @__PURE__ */ Ne(dt, [["render", ft]]), ht = (e = null, { expression: u = 75, arg: l = {}, height: i = "" } = {}) => {
796
+ const r = s(e);
796
797
  if (r) {
797
798
  const c = r.querySelector(".el-table");
798
799
  c && Ce(() => {
799
800
  const { y: t = 0 } = c.getBoundingClientRect();
800
- let m = `calc(100vh - ${t + s}px)`;
801
+ let d = `calc(100vh - ${t + u}px)`;
801
802
  const _ = Number.parseInt(i);
802
- i && (_ ? m = `${i}px` : m = i), c.style.height = m;
803
+ i && (_ ? d = `${i}px` : d = i), c.style.height = d;
803
804
  });
804
805
  }
805
- }, ye = (e = Promise.resolve(), s = null, l = D(!1), i = D(null)) => {
806
- const r = D("");
806
+ }, be = (e = Promise.resolve(), u = null, l = k(!1), i = k(null)) => {
807
+ const r = k("");
807
808
  return l.value = !0, e.then((c = {}) => {
808
- const { data: t = {}, message: m = "" } = c;
809
- i.value = t, r.value = m, s && s(!0, t), l.value = !1;
809
+ const { data: t = {}, message: d = "" } = c;
810
+ i.value = t, r.value = d, u && u(!0, t), l.value = !1;
810
811
  }).catch((c = {}) => {
811
812
  if (typeof c == "object") {
812
813
  const { message: t = "" } = c;
813
814
  r.value = t;
814
815
  } else
815
816
  r.value = c;
816
- s && s(!1, c), l.value = !1;
817
+ u && u(!1, c), l.value = !1;
817
818
  }).finally(() => {
818
819
  l.value = !1;
819
820
  }), { data: i, message: r, loading: l };
820
- }, _t = (e = null) => {
821
+ }, vt = (e = null) => {
821
822
  switch (toString.apply(e)) {
822
823
  case "[object Object]":
823
824
  return "object";
@@ -834,13 +835,13 @@ const it = /* @__PURE__ */ $e(ot, [["render", rt]]), dt = (e = null, { expressio
834
835
  case "[object Undefind]":
835
836
  return "undefind";
836
837
  }
837
- }, mt = (e) => _t(e) === "boolean";
838
- const gt = { class: "bsgoal-base-table" }, ft = { class: "base_table" }, vt = {
838
+ }, Et = (e) => vt(e) === "boolean";
839
+ const bt = { class: "bsgoal-base-table" }, yt = { class: "base_table" }, At = {
839
840
  key: 0,
840
841
  class: "base_table_menu"
841
- }, ht = {
842
+ }, Tt = {
842
843
  name: "BsgoalBaseTable"
843
- }, Ne = /* @__PURE__ */ Object.assign(ht, {
844
+ }, Be = /* @__PURE__ */ Object.assign(Tt, {
844
845
  props: {
845
846
  /**
846
847
  * >----------props----------<
@@ -946,55 +947,55 @@ const gt = { class: "bsgoal-base-table" }, ft = { class: "base_table" }, vt = {
946
947
  default: !0
947
948
  }
948
949
  },
949
- setup(e, { expose: s }) {
950
+ setup(e, { expose: u }) {
950
951
  const l = e, i = K(() => {
951
- const { configOptions: p = [], operation: O = !1, operationWidth: I = 0 } = l, L = u(p), F = [];
952
- return O && F.push({
952
+ const { configOptions: v = [], operation: O = !1, operationWidth: I = 0 } = l, P = s(v), w = [];
953
+ return O && w.push({
953
954
  label: "操作",
954
955
  fixed: "right",
955
956
  prop: "operation",
956
957
  width: I
957
- }), [...L, ...F];
958
- }), r = D(null), c = Ve("transferFoldStatus");
959
- Ee(() => {
960
- const { height: p } = l, O = c ? c.value : !1, I = u(l.expression);
961
- mt(p) || dt(r, { arg: O, expression: I, height: p });
958
+ }), [...P, ...w];
959
+ }), r = k(null), c = Ve("transferFoldStatus");
960
+ ve(() => {
961
+ const { height: v } = l, O = c ? c.value : !1, I = s(l.expression);
962
+ Et(v) || ht(r, { arg: O, expression: I, height: v });
962
963
  });
963
- const t = u(l.mapProps), m = ve({
964
+ const t = s(l.mapProps), d = fe({
964
965
  currentPage: "currentPage",
965
966
  pageSize: "pageSize",
966
967
  rows: "rows",
967
968
  total: "total"
968
- }, t), _ = D(1), V = D(10), B = D(0), S = D({}), w = D(l.loading), U = D(l.data), h = D({}), E = () => {
969
- const { fetch: p, call: O, hasPage: I } = l, L = S.value, F = _.value, j = V.value, R = ve({}, L);
970
- I && (R[m.currentPage] = F, R[m.pageSize] = j), ye(p(R), O, w, h);
969
+ }, t), _ = k(1), M = k(10), S = k(0), $ = k({}), D = k(l.loading), U = k(l.data), h = k({}), E = () => {
970
+ const { fetch: v, call: O, hasPage: I } = l, P = $.value, w = _.value, Y = M.value, F = fe({}, P);
971
+ I && (F[d.currentPage] = w, F[d.pageSize] = Y), be(v(F), O, D, h);
971
972
  };
972
- _e(h, (p) => {
973
- l.hasPage ? (U.value = p[m.rows], B.value = p[m.total]) : U.value = p;
973
+ de(h, (v) => {
974
+ l.hasPage ? (U.value = v[d.rows], S.value = v[d.total]) : U.value = v;
974
975
  });
975
- const A = (p = {}) => {
976
- S.value = p, _.value = 1, E();
977
- }, C = (p = 1) => {
978
- _.value = p;
979
- }, M = (p = 10) => {
980
- V.value = p;
976
+ const y = (v = {}) => {
977
+ $.value = v, _.value = 1, E();
978
+ }, V = (v = 1) => {
979
+ _.value = v;
980
+ }, x = (v = 10) => {
981
+ M.value = v;
981
982
  };
982
- return _e([_, V], () => {
983
+ return de([_, M], () => {
983
984
  E();
984
- }), s({
985
- refreshList: A
986
- }), (p, O) => {
987
- const I = g("el-table-column"), L = g("el-table"), F = Se("loading");
988
- return o(), y("div", gt, [
989
- k("div", ft, [
990
- p.$slots.menu ? (o(), y("div", vt, [
991
- ae(p.$slots, "menu")
992
- ])) : $("", !0),
993
- k("div", {
985
+ }), u({
986
+ refreshList: y
987
+ }), (v, O) => {
988
+ const I = g("el-table-column"), P = g("el-table"), w = $e("loading");
989
+ return o(), C("div", bt, [
990
+ R("div", yt, [
991
+ v.$slots.menu ? (o(), C("div", At, [
992
+ J(v.$slots, "menu")
993
+ ])) : N("", !0),
994
+ R("div", {
994
995
  ref_key: "EL_TABLE_WRAP_REF",
995
996
  ref: r
996
997
  }, [
997
- W((o(), b(L, {
998
+ W((o(), b(P, {
998
999
  stripe: "",
999
1000
  border: "",
1000
1001
  "highlight-current-row": "",
@@ -1007,38 +1008,38 @@ const gt = { class: "bsgoal-base-table" }, ft = { class: "base_table" }, vt = {
1007
1008
  fontSize: "14px"
1008
1009
  }
1009
1010
  }, {
1010
- empty: x(() => [
1011
- N(it)
1011
+ empty: A(() => [
1012
+ B(pt)
1012
1013
  ]),
1013
- default: x(() => [
1014
+ default: A(() => [
1014
1015
  e.selection ? (o(), b(I, {
1015
1016
  key: 0,
1016
1017
  fixed: "left",
1017
1018
  type: "selection",
1018
1019
  width: "40"
1019
- })) : $("", !0),
1020
- (o(!0), y(z, null, Z(u(i), ({
1021
- prop: j = "",
1022
- label: R = "",
1020
+ })) : N("", !0),
1021
+ (o(!0), C(L, null, Z(s(i), ({
1022
+ prop: Y = "",
1023
+ label: F = "",
1023
1024
  align: X = "center",
1024
- width: J = "",
1025
- fixed: ne = !1,
1025
+ width: q = "",
1026
+ fixed: le = !1,
1026
1027
  tooltip: oe = !1,
1027
- limit: re = 0
1028
- } = {}, ie) => (o(), b(I, {
1029
- key: ie,
1030
- label: R,
1028
+ limit: ce = 0
1029
+ } = {}, re) => (o(), b(I, {
1030
+ key: re,
1031
+ label: F,
1031
1032
  align: X,
1032
- width: J,
1033
- fixed: ne,
1034
- "min-width": `${R.length * 14 + 24}px`
1033
+ width: q,
1034
+ fixed: le,
1035
+ "min-width": `${F.length * 14 + 24}px`
1035
1036
  }, {
1036
- default: x(({ row: P }) => [
1037
- ae(p.$slots, j, { row: P }, () => [
1038
- N(Je, {
1039
- limit: re,
1037
+ default: A(({ row: j }) => [
1038
+ J(v.$slots, Y, { row: j }, () => [
1039
+ B(lt, {
1040
+ limit: ce,
1040
1041
  tooltip: oe,
1041
- data: P[j]
1042
+ data: j[Y]
1042
1043
  }, null, 8, ["limit", "tooltip", "data"])
1043
1044
  ])
1044
1045
  ]),
@@ -1047,23 +1048,23 @@ const gt = { class: "bsgoal-base-table" }, ft = { class: "base_table" }, vt = {
1047
1048
  ]),
1048
1049
  _: 3
1049
1050
  }, 8, ["data", "header-cell-style"])), [
1050
- [F, w.value]
1051
+ [w, D.value]
1051
1052
  ])
1052
1053
  ], 512),
1053
- e.hasPage ? (o(), b(nt, {
1054
+ e.hasPage ? (o(), b(it, {
1054
1055
  key: 1,
1055
- total: B.value,
1056
- onOnCurrentChange: C,
1057
- onOnSizeChange: M
1058
- }, null, 8, ["total"])) : $("", !0)
1056
+ total: S.value,
1057
+ onOnCurrentChange: V,
1058
+ onOnSizeChange: x
1059
+ }, null, 8, ["total"])) : N("", !0)
1059
1060
  ])
1060
1061
  ]);
1061
1062
  };
1062
1063
  }
1063
1064
  });
1064
- const pt = {
1065
+ const Ct = {
1065
1066
  name: "BsgoalBaseLine"
1066
- }, Ae = /* @__PURE__ */ Object.assign(pt, {
1067
+ }, ye = /* @__PURE__ */ Object.assign(Ct, {
1067
1068
  props: {
1068
1069
  /**
1069
1070
  * 是否为垂直
@@ -1074,145 +1075,18 @@ const pt = {
1074
1075
  }
1075
1076
  },
1076
1077
  setup(e) {
1077
- return (s, l) => (o(), y("div", {
1078
- class: me(["bsgoal-base-line", { "bsgoal-base-line__vertical": e.vertical }])
1078
+ return (u, l) => (o(), C("div", {
1079
+ class: _e(["bsgoal-base-line", { "bsgoal-base-line__vertical": e.vertical }])
1079
1080
  }, [
1080
- k("div", {
1081
- class: me(["base_line", { base_line__vertical: e.vertical }])
1081
+ R("div", {
1082
+ class: _e(["base_line", { base_line__vertical: e.vertical }])
1082
1083
  }, null, 2)
1083
1084
  ], 2));
1084
1085
  }
1085
1086
  });
1086
- /*! Element Plus Icons Vue v2.1.0 */
1087
- var ce = (e, s) => {
1088
- let l = e.__vccOpts || e;
1089
- for (let [i, r] of s)
1090
- l[i] = r;
1091
- return l;
1092
- }, Et = {
1093
- name: "ArrowDown"
1094
- }, bt = {
1095
- xmlns: "http://www.w3.org/2000/svg",
1096
- viewBox: "0 0 1024 1024"
1097
- }, yt = /* @__PURE__ */ k(
1098
- "path",
1099
- {
1100
- fill: "currentColor",
1101
- d: "M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"
1102
- },
1103
- null,
1104
- -1
1105
- /* HOISTED */
1106
- ), At = [
1107
- yt
1108
- ];
1109
- function Tt(e, s, l, i, r, c) {
1110
- return o(), y("svg", bt, At);
1111
- }
1112
- var xt = /* @__PURE__ */ ce(Et, [["render", Tt], ["__file", "arrow-down.vue"]]), Ct = {
1113
- name: "ArrowLeft"
1114
- }, Vt = {
1115
- xmlns: "http://www.w3.org/2000/svg",
1116
- viewBox: "0 0 1024 1024"
1117
- }, Mt = /* @__PURE__ */ k(
1118
- "path",
1119
- {
1120
- fill: "currentColor",
1121
- d: "M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"
1122
- },
1123
- null,
1124
- -1
1125
- /* HOISTED */
1126
- ), $t = [
1127
- Mt
1128
- ];
1129
- function Nt(e, s, l, i, r, c) {
1130
- return o(), y("svg", Vt, $t);
1131
- }
1132
- var Bt = /* @__PURE__ */ ce(Ct, [["render", Nt], ["__file", "arrow-left.vue"]]), wt = {
1133
- name: "ArrowRight"
1134
- }, Dt = {
1135
- xmlns: "http://www.w3.org/2000/svg",
1136
- viewBox: "0 0 1024 1024"
1137
- }, St = /* @__PURE__ */ k(
1138
- "path",
1139
- {
1140
- fill: "currentColor",
1141
- d: "M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"
1142
- },
1143
- null,
1144
- -1
1145
- /* HOISTED */
1146
- ), kt = [
1147
- St
1148
- ];
1149
- function Ot(e, s, l, i, r, c) {
1150
- return o(), y("svg", Dt, kt);
1151
- }
1152
- var It = /* @__PURE__ */ ce(wt, [["render", Ot], ["__file", "arrow-right.vue"]]), Rt = {
1153
- name: "ArrowUp"
1154
- }, Ft = {
1155
- xmlns: "http://www.w3.org/2000/svg",
1156
- viewBox: "0 0 1024 1024"
1157
- }, Ut = /* @__PURE__ */ k(
1158
- "path",
1159
- {
1160
- fill: "currentColor",
1161
- d: "m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0z"
1162
- },
1163
- null,
1164
- -1
1165
- /* HOISTED */
1166
- ), Lt = [
1167
- Ut
1168
- ];
1169
- function Pt(e, s, l, i, r, c) {
1170
- return o(), y("svg", Ft, Lt);
1171
- }
1172
- var zt = /* @__PURE__ */ ce(Rt, [["render", Pt], ["__file", "arrow-up.vue"]]), jt = {
1173
- name: "Delete"
1174
- }, Yt = {
1175
- xmlns: "http://www.w3.org/2000/svg",
1176
- viewBox: "0 0 1024 1024"
1177
- }, Gt = /* @__PURE__ */ k(
1178
- "path",
1179
- {
1180
- fill: "currentColor",
1181
- d: "M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z"
1182
- },
1183
- null,
1184
- -1
1185
- /* HOISTED */
1186
- ), Ht = [
1187
- Gt
1188
- ];
1189
- function Wt(e, s, l, i, r, c) {
1190
- return o(), y("svg", Yt, Ht);
1191
- }
1192
- var Xt = /* @__PURE__ */ ce(jt, [["render", Wt], ["__file", "delete.vue"]]), Qt = {
1193
- name: "Search"
1194
- }, Zt = {
1195
- xmlns: "http://www.w3.org/2000/svg",
1196
- viewBox: "0 0 1024 1024"
1197
- }, Kt = /* @__PURE__ */ k(
1198
- "path",
1199
- {
1200
- fill: "currentColor",
1201
- d: "m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704z"
1202
- },
1203
- null,
1204
- -1
1205
- /* HOISTED */
1206
- ), Jt = [
1207
- Kt
1208
- ];
1209
- function qt(e, s, l, i, r, c) {
1210
- return o(), y("svg", Zt, Jt);
1211
- }
1212
- var ea = /* @__PURE__ */ ce(Qt, [["render", qt], ["__file", "search.vue"]]);
1213
- const ta = { class: "bsgoal-base-search-operation" }, aa = {
1087
+ const Vt = { class: "bsgoal-base-search-operation" }, Mt = {
1214
1088
  name: "BsgoalBaseSearchOperation"
1215
- }, la = /* @__PURE__ */ Object.assign(aa, {
1089
+ }, xt = /* @__PURE__ */ Object.assign(Mt, {
1216
1090
  props: {
1217
1091
  /**
1218
1092
  * 是否显示折叠按钮
@@ -1223,58 +1097,58 @@ const ta = { class: "bsgoal-base-search-operation" }, aa = {
1223
1097
  }
1224
1098
  },
1225
1099
  emits: ["on-fold"],
1226
- setup(e, { emit: s }) {
1227
- const l = D(!1), i = () => {
1228
- l.value = !u(l), s("on-fold", l.value);
1100
+ setup(e, { emit: u }) {
1101
+ const l = k(!1), i = () => {
1102
+ l.value = !s(l), u("on-fold", l.value);
1229
1103
  };
1230
1104
  return (r, c) => {
1231
- const t = g("el-button"), m = g("el-icon");
1232
- return o(), y("div", ta, [
1233
- N(t, {
1105
+ const t = g("el-button"), d = g("el-icon");
1106
+ return o(), C("div", Vt, [
1107
+ B(t, {
1234
1108
  type: "primary",
1235
- icon: u(ea),
1109
+ icon: s(je),
1236
1110
  onClick: c[0] || (c[0] = (_) => r.$emit("on-search"))
1237
1111
  }, {
1238
- default: x(() => [
1112
+ default: A(() => [
1239
1113
  H("搜索")
1240
1114
  ]),
1241
1115
  _: 1
1242
1116
  }, 8, ["icon"]),
1243
- N(t, {
1244
- icon: u(Xt),
1117
+ B(t, {
1118
+ icon: s(Me),
1245
1119
  onClick: c[1] || (c[1] = (_) => r.$emit("on-clear"))
1246
1120
  }, {
1247
- default: x(() => [
1121
+ default: A(() => [
1248
1122
  H("清空")
1249
1123
  ]),
1250
1124
  _: 1
1251
1125
  }, 8, ["icon"]),
1252
- e.fold ? (o(), y("div", {
1126
+ e.fold ? (o(), C("div", {
1253
1127
  key: 0,
1254
1128
  class: "operation_fold",
1255
1129
  style: { color: "var(--el-color-primary)" },
1256
1130
  onClick: i
1257
1131
  }, [
1258
- H(G(l.value ? "收起" : "展开"), 1),
1259
- N(m, { color: "#409EFC" }, {
1260
- default: x(() => [
1261
- W(N(u(zt), null, null, 512), [
1262
- [le, l.value]
1132
+ H(z(l.value ? "收起" : "展开"), 1),
1133
+ B(d, { color: "#409EFC" }, {
1134
+ default: A(() => [
1135
+ W(B(s(Le), null, null, 512), [
1136
+ [ne, l.value]
1263
1137
  ]),
1264
- W(N(u(xt), null, null, 512), [
1265
- [le, !l.value]
1138
+ W(B(s(ze), null, null, 512), [
1139
+ [ne, !l.value]
1266
1140
  ])
1267
1141
  ]),
1268
1142
  _: 1
1269
1143
  })
1270
- ])) : $("", !0)
1144
+ ])) : N("", !0)
1271
1145
  ]);
1272
1146
  };
1273
1147
  }
1274
1148
  });
1275
- const na = { class: "bsgoal-base-cascader" }, oa = {
1149
+ const Nt = { class: "bsgoal-base-cascader" }, Bt = {
1276
1150
  name: "BsgoalBaseCascader"
1277
- }, ua = /* @__PURE__ */ Object.assign(oa, {
1151
+ }, St = /* @__PURE__ */ Object.assign(Bt, {
1278
1152
  props: {
1279
1153
  /**
1280
1154
  * 绑定的值
@@ -1306,17 +1180,17 @@ const na = { class: "bsgoal-base-cascader" }, oa = {
1306
1180
  }
1307
1181
  },
1308
1182
  emits: ["update:model-value", "on-change"],
1309
- setup(e, { emit: s }) {
1310
- const l = D({
1183
+ setup(e, { emit: u }) {
1184
+ const l = k({
1311
1185
  checkStrictly: !0,
1312
1186
  multiple: !1
1313
1187
  }), i = (r) => {
1314
- s("update:model-value", r), s("on-change", r);
1188
+ u("update:model-value", r), u("on-change", r);
1315
1189
  };
1316
1190
  return (r, c) => {
1317
1191
  const t = g("el-cascader");
1318
- return o(), y("div", na, [
1319
- N(t, {
1192
+ return o(), C("div", Nt, [
1193
+ B(t, {
1320
1194
  clearable: "",
1321
1195
  class: "base_cascader",
1322
1196
  "show-all-levels": !1,
@@ -1330,9 +1204,9 @@ const na = { class: "bsgoal-base-cascader" }, oa = {
1330
1204
  };
1331
1205
  }
1332
1206
  });
1333
- const sa = { class: "bsgoal-base-search" }, ca = { class: "base_search" }, ra = { key: 1 }, ia = {
1207
+ const kt = { class: "bsgoal-base-search" }, Dt = { class: "base_search" }, $t = { key: 1 }, Ot = {
1334
1208
  name: "BsgoalBaseSearch"
1335
- }, da = /* @__PURE__ */ Object.assign(ia, {
1209
+ }, It = /* @__PURE__ */ Object.assign(Ot, {
1336
1210
  props: {
1337
1211
  /**
1338
1212
  * >----------props----------<
@@ -1373,26 +1247,26 @@ const sa = { class: "bsgoal-base-search" }, ca = { class: "base_search" }, ra =
1373
1247
  }
1374
1248
  },
1375
1249
  emits: ["on-search", "on-clear", "on-change", "on-fold"],
1376
- setup(e, { expose: s, emit: l }) {
1377
- const i = e, r = D(null), c = be.align, t = D({});
1378
- Ee(() => {
1379
- const { configOptions: A } = i;
1380
- u(A).forEach((M) => {
1381
- const { value: p, prop: O = "", type: I = "" } = M;
1382
- [a.INPUT, a.INPUT_TEXT_AREA].includes(I), t.value[O] = [0, !1].includes(p) ? p : "";
1250
+ setup(e, { expose: u, emit: l }) {
1251
+ const i = e, r = k(null), c = Ee.align, t = k({});
1252
+ ve(() => {
1253
+ const { configOptions: y } = i;
1254
+ s(y).forEach((x) => {
1255
+ const { value: v, prop: O = "", type: I = "" } = x;
1256
+ [a.INPUT, a.INPUT_TEXT_AREA].includes(I), t.value[O] = [0, !1].includes(v) ? v : "";
1383
1257
  });
1384
1258
  });
1385
- const m = K(() => {
1386
- const { configOptions: A } = i, C = u(A), M = {
1259
+ const d = K(() => {
1260
+ const { configOptions: y } = i, V = s(y), x = {
1387
1261
  type: a.OPERATION
1388
1262
  };
1389
- return [...C, M];
1390
- }), _ = (A = "", C = "", M = "") => {
1391
- if (!M)
1392
- switch (A) {
1263
+ return [...V, x];
1264
+ }), _ = (y = "", V = "", x = "") => {
1265
+ if (!x)
1266
+ switch (y) {
1393
1267
  case a.INPUT:
1394
1268
  case a.INPUT_TEXT_AREA:
1395
- return `请输入${C}`;
1269
+ return `请输入${V}`;
1396
1270
  case a.SELECT:
1397
1271
  case a.DATE:
1398
1272
  case a.WEEK:
@@ -1401,7 +1275,7 @@ const sa = { class: "bsgoal-base-search" }, ca = { class: "base_search" }, ra =
1401
1275
  case a.DATE_TIME:
1402
1276
  case a.TIME:
1403
1277
  case a.CASCADER:
1404
- return `请选择${C}`;
1278
+ return `请选择${V}`;
1405
1279
  case a.DATE_RANGE:
1406
1280
  case a.DATE_TIME_RANGE:
1407
1281
  return ["开始日期", "结束日期"];
@@ -1410,10 +1284,10 @@ const sa = { class: "bsgoal-base-search" }, ca = { class: "base_search" }, ra =
1410
1284
  case a.MONTH_RANGE:
1411
1285
  return ["开始月份", "结束月份"];
1412
1286
  }
1413
- return M;
1414
- }, V = (A = "", C = "") => {
1415
- if (!C)
1416
- switch (A) {
1287
+ return x;
1288
+ }, M = (y = "", V = "") => {
1289
+ if (!V)
1290
+ switch (y) {
1417
1291
  case a.WEEK:
1418
1292
  return "ww";
1419
1293
  case a.DATE:
@@ -1432,45 +1306,45 @@ const sa = { class: "bsgoal-base-search" }, ca = { class: "base_search" }, ra =
1432
1306
  case a.DATE_TIME_RANGE:
1433
1307
  return "YYYY-MM-DD HH:mm:ss";
1434
1308
  }
1435
- return C;
1436
- }, B = () => {
1437
- const { configOptions: A } = i, C = u(t), M = u(A), p = {};
1438
- for (const O of M) {
1439
- const { type: I = "", range: L = [], prop: F = "", single: j = !1 } = O, R = C[F];
1440
- if ([a.CASCADER].includes(I) && Array.isArray(R) && j) {
1441
- const X = R.length;
1442
- X ? p[F] = R[X - 1] : p[F] = R;
1309
+ return V;
1310
+ }, S = () => {
1311
+ const { configOptions: y } = i, V = s(t), x = s(y), v = {};
1312
+ for (const O of x) {
1313
+ const { type: I = "", range: P = [], prop: w = "", single: Y = !1 } = O, F = V[w];
1314
+ if ([a.CASCADER].includes(I) && Array.isArray(F) && Y) {
1315
+ const X = F.length;
1316
+ X ? v[w] = F[X - 1] : v[w] = F;
1443
1317
  } else
1444
- ke(R) ? p[F] = Oe(R) : p[F] = R;
1445
- if (I.endsWith("range") && L && L.length === 2) {
1446
- const { 0: X = "", 1: J = "" } = R, { 0: ne = "", 1: oe = "" } = L;
1447
- p[ne] = X, p[oe] = J;
1318
+ Oe(F) ? v[w] = Ie(F) : v[w] = F;
1319
+ if (I.endsWith("range") && P && P.length === 2) {
1320
+ const { 0: X = "", 1: q = "" } = F, { 0: le = "", 1: oe = "" } = P;
1321
+ v[le] = X, v[oe] = q;
1448
1322
  }
1449
1323
  }
1450
- l("on-search", p), l("update:modelValue", p);
1324
+ l("on-search", v), l("update:modelValue", v);
1451
1325
  };
1452
1326
  Ce(() => {
1453
- B();
1327
+ S();
1454
1328
  });
1455
- const S = () => {
1329
+ const $ = () => {
1456
1330
  r.value.resetFields(), l("on-clear", t.value);
1457
- }, w = Ve("transferFoldStatus"), U = D(!1), h = (A = !1) => {
1458
- U.value = A, w && (w.value = A), l("on-fold", U);
1459
- }, E = (A, C) => {
1460
- B();
1461
- const M = {
1462
- type: A,
1463
- prop: C,
1464
- value: t.value[C] || ""
1331
+ }, D = Ve("transferFoldStatus"), U = k(!1), h = (y = !1) => {
1332
+ U.value = y, D && (D.value = y), l("on-fold", U);
1333
+ }, E = (y, V) => {
1334
+ S();
1335
+ const x = {
1336
+ type: y,
1337
+ prop: V,
1338
+ value: t.value[V] || ""
1465
1339
  };
1466
- l("on-change", M);
1340
+ l("on-change", x);
1467
1341
  };
1468
- return s({
1469
- triggerOperationSearch: B
1470
- }), (A, C) => {
1471
- const M = g("el-input"), p = g("el-input-number"), O = g("el-radio"), I = g("el-radio-group"), L = g("el-option"), F = g("el-select"), j = g("el-slider"), R = g("el-switch"), X = g("el-date-picker"), J = g("el-time-picker"), ne = g("el-checkbox"), oe = g("el-checkbox-group"), re = g("el-form-item"), ie = g("el-col"), P = g("el-row"), T = g("el-form");
1472
- return o(), y("div", sa, [
1473
- k("div", ca, [
1342
+ return u({
1343
+ triggerOperationSearch: S
1344
+ }), (y, V) => {
1345
+ const x = g("el-input"), v = g("el-input-number"), O = g("el-radio"), I = g("el-radio-group"), P = g("el-option"), w = g("el-select"), Y = g("el-slider"), F = g("el-switch"), X = g("el-date-picker"), q = g("el-time-picker"), le = g("el-checkbox"), oe = g("el-checkbox-group"), ce = g("el-form-item"), re = g("el-col"), j = g("el-row"), T = g("el-form");
1346
+ return o(), C("div", kt, [
1347
+ R("div", Dt, [
1474
1348
  W((o(), b(T, {
1475
1349
  ref_key: "EL_FORM_REF",
1476
1350
  ref: r,
@@ -1478,190 +1352,190 @@ const sa = { class: "bsgoal-base-search" }, ca = { class: "base_search" }, ra =
1478
1352
  "show-message": !1,
1479
1353
  model: t.value
1480
1354
  }, {
1481
- default: x(() => [
1482
- N(P, null, {
1483
- default: x(() => [
1484
- (o(!0), y(z, null, Z(u(m), ({
1485
- label: d = "",
1355
+ default: A(() => [
1356
+ B(j, null, {
1357
+ default: A(() => [
1358
+ (o(!0), C(L, null, Z(s(d), ({
1359
+ label: m = "",
1486
1360
  prop: f = "",
1487
- type: v = "text",
1488
- placeholder: Y = "",
1489
- readonly: fe = !1,
1490
- clearable: de = !0,
1491
- rows: ge = 2,
1492
- min: q = 1,
1493
- max: ee = 10,
1494
- range: te = [],
1495
- format: ue = ""
1496
- } = {}, se) => W((o(), b(ie, {
1497
- key: se,
1361
+ type: p = "text",
1362
+ placeholder: G = "",
1363
+ readonly: ge = !1,
1364
+ clearable: ie = !0,
1365
+ rows: me = 2,
1366
+ min: ee = 1,
1367
+ max: te = 10,
1368
+ range: ae = [],
1369
+ format: se = ""
1370
+ } = {}, ue) => W((o(), b(re, {
1371
+ key: ue,
1498
1372
  xs: 24,
1499
1373
  sm: 12,
1500
1374
  md: e.medium
1501
1375
  }, {
1502
- default: x(() => [
1503
- N(re, {
1504
- label: d,
1376
+ default: A(() => [
1377
+ B(ce, {
1378
+ label: m,
1505
1379
  prop: f
1506
1380
  }, {
1507
- default: x(() => [
1508
- fe ? (o(), y("div", ra, G(t.value[f]), 1)) : (o(), y(z, { key: 0 }, [
1509
- v === u(a).INPUT ? (o(), b(M, {
1381
+ default: A(() => [
1382
+ ge ? (o(), C("div", $t, z(t.value[f]), 1)) : (o(), C(L, { key: 0 }, [
1383
+ p === s(a).INPUT ? (o(), b(x, {
1510
1384
  key: 0,
1511
1385
  modelValue: t.value[f],
1512
1386
  "onUpdate:modelValue": (n) => t.value[f] = n,
1513
- placeholder: _(v, d, Y),
1514
- clearable: de
1515
- }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable"])) : $("", !0),
1516
- v === u(a).INPUT_TEXT_AREA ? (o(), b(M, {
1387
+ placeholder: _(p, m, G),
1388
+ clearable: ie
1389
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable"])) : N("", !0),
1390
+ p === s(a).INPUT_TEXT_AREA ? (o(), b(x, {
1517
1391
  key: 1,
1518
1392
  modelValue: t.value[f],
1519
1393
  "onUpdate:modelValue": (n) => t.value[f] = n,
1520
1394
  type: "textarea",
1521
- rows: ge,
1522
- clearable: de,
1523
- placeholder: _(v, d, Y),
1524
- onChange: (n) => E(v, f)
1525
- }, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : $("", !0),
1526
- v === u(a).INPUT_NUMBER ? (o(), b(p, {
1395
+ rows: me,
1396
+ clearable: ie,
1397
+ placeholder: _(p, m, G),
1398
+ onChange: (n) => E(p, f)
1399
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : N("", !0),
1400
+ p === s(a).INPUT_NUMBER ? (o(), b(v, {
1527
1401
  key: 2,
1528
- modelValue: A.num,
1529
- "onUpdate:modelValue": C[0] || (C[0] = (n) => A.num = n),
1530
- min: q,
1531
- max: ee,
1402
+ modelValue: y.num,
1403
+ "onUpdate:modelValue": V[0] || (V[0] = (n) => y.num = n),
1404
+ min: ee,
1405
+ max: te,
1532
1406
  onChange: E
1533
- }, null, 8, ["modelValue", "min", "max"])) : $("", !0),
1534
- v === u(a).RADIO ? (o(), b(I, {
1407
+ }, null, 8, ["modelValue", "min", "max"])) : N("", !0),
1408
+ p === s(a).RADIO ? (o(), b(I, {
1535
1409
  key: 3,
1536
1410
  modelValue: t.value[f],
1537
1411
  "onUpdate:modelValue": (n) => t.value[f] = n,
1538
- onChange: (n) => E(v, f)
1412
+ onChange: (n) => E(p, f)
1539
1413
  }, {
1540
- default: x(() => [
1541
- (o(!0), y(z, null, Z(te, (n, Q) => (o(), b(O, {
1414
+ default: A(() => [
1415
+ (o(!0), C(L, null, Z(ae, (n, Q) => (o(), b(O, {
1542
1416
  key: Q,
1543
1417
  label: n.value
1544
1418
  }, {
1545
- default: x(() => [
1546
- H(G(n.label), 1)
1419
+ default: A(() => [
1420
+ H(z(n.label), 1)
1547
1421
  ]),
1548
1422
  _: 2
1549
1423
  }, 1032, ["label"]))), 128))
1550
1424
  ]),
1551
1425
  _: 2
1552
- }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : $("", !0),
1553
- v === u(a).SELECT ? (o(), b(F, {
1426
+ }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : N("", !0),
1427
+ p === s(a).SELECT ? (o(), b(w, {
1554
1428
  key: 4,
1555
1429
  modelValue: t.value[f],
1556
1430
  "onUpdate:modelValue": (n) => t.value[f] = n,
1557
- placeholder: _(v, d, Y),
1558
- onChange: (n) => E(v, f)
1431
+ placeholder: _(p, m, G),
1432
+ onChange: (n) => E(p, f)
1559
1433
  }, {
1560
- default: x(() => [
1561
- (o(!0), y(z, null, Z(te, (n, Q) => (o(), b(L, {
1434
+ default: A(() => [
1435
+ (o(!0), C(L, null, Z(ae, (n, Q) => (o(), b(P, {
1562
1436
  key: Q,
1563
1437
  label: n.label,
1564
1438
  value: n.value
1565
1439
  }, null, 8, ["label", "value"]))), 128))
1566
1440
  ]),
1567
1441
  _: 2
1568
- }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : $("", !0),
1569
- v === u(a).SLIDER ? (o(), b(j, {
1442
+ }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : N("", !0),
1443
+ p === s(a).SLIDER ? (o(), b(Y, {
1570
1444
  key: 5,
1571
1445
  modelValue: t.value[f],
1572
1446
  "onUpdate:modelValue": (n) => t.value[f] = n,
1573
- min: q,
1574
- max: ee,
1575
- onChange: (n) => E(v, f)
1576
- }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : $("", !0),
1577
- v === u(a).SWITCH ? (o(), b(R, {
1447
+ min: ee,
1448
+ max: te,
1449
+ onChange: (n) => E(p, f)
1450
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : N("", !0),
1451
+ p === s(a).SWITCH ? (o(), b(F, {
1578
1452
  key: 6,
1579
1453
  modelValue: t.value[f],
1580
1454
  "onUpdate:modelValue": (n) => t.value[f] = n,
1581
- "active-value": te[0] || !0,
1582
- "inactive-value": te[1] || !1,
1583
- onChange: (n) => E(v, f)
1584
- }, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : $("", !0),
1585
- [u(a).DATE, u(a).MONTH, u(a).YEAR, u(a).DATE_TIME].includes(
1586
- v
1455
+ "active-value": ae[0] || !0,
1456
+ "inactive-value": ae[1] || !1,
1457
+ onChange: (n) => E(p, f)
1458
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : N("", !0),
1459
+ [s(a).DATE, s(a).MONTH, s(a).YEAR, s(a).DATE_TIME].includes(
1460
+ p
1587
1461
  ) ? (o(), b(X, {
1588
1462
  key: 7,
1589
1463
  modelValue: t.value[f],
1590
1464
  "onUpdate:modelValue": (n) => t.value[f] = n,
1591
- format: V(v, ue),
1592
- "value-format": V(v, ue),
1593
- type: v,
1594
- placeholder: _(v, d, Y),
1595
- onChange: (n) => E(v, f)
1596
- }, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : $("", !0),
1465
+ format: M(p, se),
1466
+ "value-format": M(p, se),
1467
+ type: p,
1468
+ placeholder: _(p, m, G),
1469
+ onChange: (n) => E(p, f)
1470
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : N("", !0),
1597
1471
  [
1598
- u(a).DATE_RANGE,
1599
- u(a).MONTH_RANGE,
1600
- u(a).DATE_TIME_RANGE
1601
- ].includes(v) ? (o(), b(X, {
1472
+ s(a).DATE_RANGE,
1473
+ s(a).MONTH_RANGE,
1474
+ s(a).DATE_TIME_RANGE
1475
+ ].includes(p) ? (o(), b(X, {
1602
1476
  key: 8,
1603
1477
  modelValue: t.value[f],
1604
1478
  "onUpdate:modelValue": (n) => t.value[f] = n,
1605
- type: v,
1606
- "value-format": V(v, ue),
1607
- "start-placeholder": _(v, d, Y)[0],
1608
- "end-placeholder": _(v, d, Y)[1],
1609
- onChange: (n) => E(v, f)
1610
- }, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : $("", !0),
1611
- [u(a).TIME].includes(v) ? (o(), b(J, {
1479
+ type: p,
1480
+ "value-format": M(p, se),
1481
+ "start-placeholder": _(p, m, G)[0],
1482
+ "end-placeholder": _(p, m, G)[1],
1483
+ onChange: (n) => E(p, f)
1484
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : N("", !0),
1485
+ [s(a).TIME].includes(p) ? (o(), b(q, {
1612
1486
  key: 9,
1613
1487
  modelValue: t.value[f],
1614
1488
  "onUpdate:modelValue": (n) => t.value[f] = n,
1615
1489
  "arrow-control": "",
1616
- "value-format": V(v, ue),
1617
- placeholder: _(v, d, Y),
1618
- onChange: (n) => E(v, f)
1619
- }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : $("", !0),
1620
- [u(a).TIME_RANGE].includes(v) ? (o(), b(J, {
1490
+ "value-format": M(p, se),
1491
+ placeholder: _(p, m, G),
1492
+ onChange: (n) => E(p, f)
1493
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : N("", !0),
1494
+ [s(a).TIME_RANGE].includes(p) ? (o(), b(q, {
1621
1495
  key: 10,
1622
1496
  modelValue: t.value[f],
1623
1497
  "onUpdate:modelValue": (n) => t.value[f] = n,
1624
1498
  "is-range": "",
1625
- "value-format": V(v, ue),
1626
- "start-placeholder": _(v, d, Y)[0],
1627
- "end-placeholder": _(v, d, Y)[1],
1628
- onChange: (n) => E(v, f)
1629
- }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : $("", !0),
1630
- [u(a).CHECKBOX].includes(v) ? (o(), b(oe, {
1499
+ "value-format": M(p, se),
1500
+ "start-placeholder": _(p, m, G)[0],
1501
+ "end-placeholder": _(p, m, G)[1],
1502
+ onChange: (n) => E(p, f)
1503
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : N("", !0),
1504
+ [s(a).CHECKBOX].includes(p) ? (o(), b(oe, {
1631
1505
  key: 11,
1632
1506
  modelValue: t.value[f],
1633
1507
  "onUpdate:modelValue": (n) => t.value[f] = n,
1634
- onChange: (n) => E(v, f)
1508
+ onChange: (n) => E(p, f)
1635
1509
  }, {
1636
- default: x(() => [
1637
- (o(!0), y(z, null, Z(te, (n, Q) => (o(), b(ne, {
1510
+ default: A(() => [
1511
+ (o(!0), C(L, null, Z(ae, (n, Q) => (o(), b(le, {
1638
1512
  key: Q,
1639
1513
  label: n.value
1640
1514
  }, {
1641
- default: x(() => [
1642
- H(G(n.label), 1)
1515
+ default: A(() => [
1516
+ H(z(n.label), 1)
1643
1517
  ]),
1644
1518
  _: 2
1645
1519
  }, 1032, ["label"]))), 128))
1646
1520
  ]),
1647
1521
  _: 2
1648
- }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : $("", !0),
1649
- [u(a).CASCADER].includes(v) ? (o(), b(ua, {
1522
+ }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : N("", !0),
1523
+ [s(a).CASCADER].includes(p) ? (o(), b(St, {
1650
1524
  key: 12,
1651
1525
  modelValue: t.value[f],
1652
1526
  "onUpdate:modelValue": (n) => t.value[f] = n,
1653
- "data-options": te,
1654
- placeholder: _(v, d, Y),
1655
- onOnChange: (n) => E(v, f)
1656
- }, null, 8, ["modelValue", "onUpdate:modelValue", "data-options", "placeholder", "onOnChange"])) : $("", !0),
1657
- [].includes(v) ? (o(), y(z, { key: 13 }, [], 64)) : $("", !0),
1658
- [u(a).OPERATION].includes(v) ? (o(), b(la, {
1527
+ "data-options": ae,
1528
+ placeholder: _(p, m, G),
1529
+ onOnChange: (n) => E(p, f)
1530
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "data-options", "placeholder", "onOnChange"])) : N("", !0),
1531
+ [].includes(p) ? (o(), C(L, { key: 13 }, [], 64)) : N("", !0),
1532
+ [s(a).OPERATION].includes(p) ? (o(), b(xt, {
1659
1533
  key: 14,
1660
- fold: se >= 7,
1661
- onOnSearch: B,
1662
- onOnClear: S,
1534
+ fold: ue >= 7,
1535
+ onOnSearch: S,
1536
+ onOnClear: $,
1663
1537
  onOnFold: h
1664
- }, null, 8, ["fold"])) : $("", !0)
1538
+ }, null, 8, ["fold"])) : N("", !0)
1665
1539
  ], 64))
1666
1540
  ]),
1667
1541
  _: 2
@@ -1669,7 +1543,7 @@ const sa = { class: "bsgoal-base-search" }, ca = { class: "base_search" }, ra =
1669
1543
  ]),
1670
1544
  _: 2
1671
1545
  }, 1032, ["md"])), [
1672
- [le, se < 7 || v === u(a).OPERATION || se >= 7 && U.value]
1546
+ [ne, ue < 7 || p === s(a).OPERATION || ue >= 7 && U.value]
1673
1547
  ])), 128))
1674
1548
  ]),
1675
1549
  _: 1
@@ -1677,17 +1551,17 @@ const sa = { class: "bsgoal-base-search" }, ca = { class: "base_search" }, ra =
1677
1551
  ]),
1678
1552
  _: 1
1679
1553
  }, 8, ["model"])), [
1680
- [u(c)]
1554
+ [s(c)]
1681
1555
  ])
1682
1556
  ]),
1683
- N(Ae)
1557
+ B(ye)
1684
1558
  ]);
1685
1559
  };
1686
1560
  }
1687
1561
  });
1688
- const _a = { class: "bsgoal-base-search-table" }, ma = { class: "base_search_table" }, ga = {
1562
+ const Ft = { class: "bsgoal-base-search-table" }, Rt = { class: "base_search_table" }, wt = {
1689
1563
  name: "BsgoalBaseSearchTable"
1690
- }, fa = /* @__PURE__ */ Object.assign(ga, {
1564
+ }, Ut = /* @__PURE__ */ Object.assign(wt, {
1691
1565
  props: {
1692
1566
  /**
1693
1567
  * >----------props----------<
@@ -1793,55 +1667,55 @@ const _a = { class: "bsgoal-base-search-table" }, ma = { class: "base_search_tab
1793
1667
  default: !0
1794
1668
  }
1795
1669
  },
1796
- setup(e, { expose: s }) {
1797
- const l = e, i = D(!1);
1798
- Ie("transferFoldStatus", i);
1799
- const r = u(l.configOptions), c = K(() => r.filter((h) => {
1670
+ setup(e, { expose: u }) {
1671
+ const l = e, i = k(!1);
1672
+ Fe("transferFoldStatus", i);
1673
+ const r = s(l.configOptions), c = K(() => r.filter((h) => {
1800
1674
  const { type: E = "" } = h;
1801
1675
  return !!E;
1802
1676
  })), t = K(() => r.filter((h) => {
1803
1677
  const { item: E = !1 } = h;
1804
1678
  return !E;
1805
- })), m = Re(), _ = D(Object.keys(m)), V = D(null), B = (h) => {
1806
- V.value.refreshList(h);
1807
- }, S = K(() => {
1679
+ })), d = Re(), _ = k(Object.keys(d)), M = k(null), S = (h) => {
1680
+ M.value.refreshList(h);
1681
+ }, $ = K(() => {
1808
1682
  const { expression: h, hasPage: E } = l;
1809
1683
  return E === !1 ? 25 : h;
1810
- }), w = D(null);
1811
- return s({
1684
+ }), D = k(null);
1685
+ return u({
1812
1686
  refresh: () => {
1813
1687
  const { hasSearch: h } = l;
1814
- u(h) && w.value.triggerOperationSearch();
1688
+ s(h) && D.value.triggerOperationSearch();
1815
1689
  }
1816
- }), (h, E) => (o(), y("div", _a, [
1817
- k("div", ma, [
1818
- W(N(da, {
1690
+ }), (h, E) => (o(), C("div", Ft, [
1691
+ R("div", Rt, [
1692
+ W(B(It, {
1819
1693
  ref_key: "BSGOAL_BASE_SEARCH_REF",
1820
- ref: w,
1821
- "config-options": u(c),
1822
- onOnSearch: B,
1823
- onOnClear: B
1694
+ ref: D,
1695
+ "config-options": s(c),
1696
+ onOnSearch: S,
1697
+ onOnClear: S
1824
1698
  }, null, 8, ["config-options"]), [
1825
- [le, e.hasSearch]
1699
+ [ne, e.hasSearch]
1826
1700
  ]),
1827
- N(Ne, {
1701
+ B(Be, {
1828
1702
  ref_key: "BSGOAL_BASE_TABLE_REF",
1829
- ref: V,
1703
+ ref: M,
1830
1704
  "map-props": e.mapProps,
1831
1705
  operationWidth: e.operationWidth,
1832
- "config-options": u(t),
1706
+ "config-options": s(t),
1833
1707
  data: e.tableData,
1834
1708
  selection: e.selection,
1835
1709
  operation: e.operation,
1836
- expression: u(S),
1710
+ expression: s($),
1837
1711
  fetch: e.fetch,
1838
1712
  call: e.call,
1839
1713
  "has-page": e.hasPage
1840
- }, Fe({ _: 2 }, [
1841
- Z(_.value, (A) => ({
1842
- name: A,
1843
- fn: x(({ row: C = {} }) => [
1844
- ae(h.$slots, A, { row: C })
1714
+ }, we({ _: 2 }, [
1715
+ Z(_.value, (y) => ({
1716
+ name: y,
1717
+ fn: A(({ row: V = {} }) => [
1718
+ J(h.$slots, y, { row: V })
1845
1719
  ])
1846
1720
  }))
1847
1721
  ]), 1032, ["map-props", "operationWidth", "config-options", "data", "selection", "operation", "expression", "fetch", "call", "has-page"])
@@ -1849,30 +1723,30 @@ const _a = { class: "bsgoal-base-search-table" }, ma = { class: "base_search_tab
1849
1723
  ]));
1850
1724
  }
1851
1725
  });
1852
- const va = { class: "bsgoal-base-tree-fold" }, ha = {
1726
+ const Pt = { class: "bsgoal-base-tree-fold" }, jt = {
1853
1727
  name: "BsgoalBaseTreeFold"
1854
- }, pa = /* @__PURE__ */ Object.assign(ha, {
1728
+ }, Lt = /* @__PURE__ */ Object.assign(jt, {
1855
1729
  props: ["modelValue"],
1856
1730
  emits: ["update:modelValue"],
1857
- setup(e, { emit: s }) {
1858
- let l = D(!0);
1731
+ setup(e, { emit: u }) {
1732
+ let l = k(!0);
1859
1733
  const i = () => {
1860
- l.value = !l.value, s("update:modelValue", l.value);
1734
+ l.value = !l.value, u("update:modelValue", l.value);
1861
1735
  };
1862
1736
  return (r, c) => {
1863
1737
  const t = g("el-icon");
1864
- return o(), y("div", va, [
1865
- k("div", {
1866
- class: me(["base_tree_fold", { "base_tree_fold--hide": !u(l) }]),
1738
+ return o(), C("div", Pt, [
1739
+ R("div", {
1740
+ class: _e(["base_tree_fold", { "base_tree_fold--hide": !s(l) }]),
1867
1741
  onClick: i
1868
1742
  }, [
1869
- N(t, { color: "#fff" }, {
1870
- default: x(() => [
1871
- W(N(u(Bt), null, null, 512), [
1872
- [le, u(l)]
1743
+ B(t, { color: "#fff" }, {
1744
+ default: A(() => [
1745
+ W(B(s(Ye), null, null, 512), [
1746
+ [ne, s(l)]
1873
1747
  ]),
1874
- W(N(u(It), null, null, 512), [
1875
- [le, !u(l)]
1748
+ W(B(s(Ge), null, null, 512), [
1749
+ [ne, !s(l)]
1876
1750
  ])
1877
1751
  ]),
1878
1752
  _: 1
@@ -1882,9 +1756,9 @@ const va = { class: "bsgoal-base-tree-fold" }, ha = {
1882
1756
  };
1883
1757
  }
1884
1758
  });
1885
- const Ea = { class: "bsgoal-base-tree" }, ba = { class: "base_tree" }, ya = { class: "base_tree_main" }, Aa = {
1759
+ const zt = { class: "bsgoal-base-tree" }, Yt = { class: "base_tree" }, Gt = { class: "base_tree_main" }, Ht = {
1886
1760
  name: "BsgoalBaseTree"
1887
- }, Ta = /* @__PURE__ */ Object.assign(Aa, {
1761
+ }, Wt = /* @__PURE__ */ Object.assign(Ht, {
1888
1762
  props: {
1889
1763
  /**
1890
1764
  * 树结构 的下边距
@@ -1937,65 +1811,65 @@ const Ea = { class: "bsgoal-base-tree" }, ba = { class: "base_tree" }, ya = { cl
1937
1811
  }
1938
1812
  },
1939
1813
  emits: ["on-click"],
1940
- setup(e, { emit: s }) {
1941
- const l = e, i = be.height, r = D(""), c = D(null);
1942
- _e(r, (B) => {
1943
- c.value.filter(B);
1814
+ setup(e, { emit: u }) {
1815
+ const l = e, i = Ee.height, r = k(""), c = k(null);
1816
+ de(r, (S) => {
1817
+ c.value.filter(S);
1944
1818
  });
1945
- const t = (B, S) => B ? S.label.includes(B) : !0, m = D(!0), _ = (B, S, w, U) => {
1946
- s("on-click", B, S, w, U);
1947
- }, V = async (B, S, w) => {
1948
- if (B.level === 0) {
1949
- const U = await w.initNode(B);
1950
- return S(U || []);
1819
+ const t = (S, $) => S ? $.label.includes(S) : !0, d = k(!0), _ = (S, $, D, U) => {
1820
+ u("on-click", S, $, D, U);
1821
+ }, M = async (S, $, D) => {
1822
+ if (S.level === 0) {
1823
+ const U = await D.initNode(S);
1824
+ return $(U || []);
1951
1825
  } else {
1952
- const U = await w.lazyLoad(B);
1953
- S(U || []);
1826
+ const U = await D.lazyLoad(S);
1827
+ $(U || []);
1954
1828
  }
1955
1829
  };
1956
- return (B, S) => {
1957
- const w = g("el-input"), U = g("el-tree");
1958
- return o(), y("div", Ea, [
1959
- W((o(), y("div", ba, [
1960
- W(k("div", ya, [
1961
- N(w, {
1830
+ return (S, $) => {
1831
+ const D = g("el-input"), U = g("el-tree");
1832
+ return o(), C("div", zt, [
1833
+ W((o(), C("div", Yt, [
1834
+ W(R("div", Gt, [
1835
+ B(D, {
1962
1836
  modelValue: r.value,
1963
- "onUpdate:modelValue": S[0] || (S[0] = (h) => r.value = h),
1837
+ "onUpdate:modelValue": $[0] || ($[0] = (h) => r.value = h),
1964
1838
  class: "base_tree_main_input",
1965
1839
  placeholder: "输入关键字过滤"
1966
1840
  }, null, 8, ["modelValue"]),
1967
- N(U, {
1841
+ B(U, {
1968
1842
  ref_key: "EL_TREE_REF",
1969
1843
  ref: c,
1970
1844
  lazy: "",
1971
1845
  "highlight-current": "",
1972
1846
  "empty-text": "暂无数据",
1973
- load: (h, E) => V(h, E, l),
1847
+ load: (h, E) => M(h, E, l),
1974
1848
  "expand-on-click-node": !1,
1975
1849
  props: e.treeProps,
1976
1850
  "filter-node-method": t,
1977
1851
  onNodeClick: _
1978
1852
  }, null, 8, ["load", "props"])
1979
1853
  ], 512), [
1980
- [le, m.value]
1854
+ [ne, d.value]
1981
1855
  ]),
1982
- W(N(Ae, { vertical: "" }, null, 512), [
1983
- [le, m.value]
1856
+ W(B(ye, { vertical: "" }, null, 512), [
1857
+ [ne, d.value]
1984
1858
  ]),
1985
- N(pa, {
1986
- modelValue: m.value,
1987
- "onUpdate:modelValue": S[1] || (S[1] = (h) => m.value = h)
1859
+ B(Lt, {
1860
+ modelValue: d.value,
1861
+ "onUpdate:modelValue": $[1] || ($[1] = (h) => d.value = h)
1988
1862
  }, null, 8, ["modelValue"])
1989
1863
  ])), [
1990
- [u(i), e.gasket]
1864
+ [s(i), e.gasket]
1991
1865
  ])
1992
1866
  ]);
1993
1867
  };
1994
1868
  }
1995
1869
  });
1996
- const xa = { class: "bsgoal-base-dialog" }, Ca = { class: "base_dialog" }, Va = { class: "base_dialog_header" }, Ma = { class: "base_dialog_footer" }, $a = {
1870
+ const Xt = { class: "bsgoal-base-dialog" }, Qt = { class: "base_dialog" }, Zt = { class: "base_dialog_header" }, Kt = { class: "base_dialog_footer" }, Jt = {
1997
1871
  name: "BsgoalBaseDialog"
1998
- }, Na = /* @__PURE__ */ Object.assign($a, {
1872
+ }, qt = /* @__PURE__ */ Object.assign(Jt, {
1999
1873
  props: {
2000
1874
  /**
2001
1875
  * 弹窗状态
@@ -2056,26 +1930,26 @@ const xa = { class: "bsgoal-base-dialog" }, Ca = { class: "base_dialog" }, Va =
2056
1930
  }
2057
1931
  },
2058
1932
  emits: ["update:modelValue", "on-confirm"],
2059
- setup(e, { emit: s }) {
2060
- const l = e, i = D(l.modelValue.value), r = () => {
1933
+ setup(e, { emit: u }) {
1934
+ const l = e, i = k(l.modelValue.value), r = () => {
2061
1935
  i.value = !1;
2062
1936
  }, c = () => {
2063
- s("on-confirm", () => {
1937
+ u("on-confirm", () => {
2064
1938
  i.value = !1;
2065
1939
  });
2066
1940
  };
2067
- _e(
1941
+ de(
2068
1942
  () => l.modelValue,
2069
- (m) => {
2070
- i.value = m;
1943
+ (d) => {
1944
+ i.value = d;
2071
1945
  }
2072
- ), _e(i, (m) => {
2073
- s("update:modelValue", m);
1946
+ ), de(i, (d) => {
1947
+ u("update:modelValue", d);
2074
1948
  });
2075
1949
  const t = K(() => {
2076
- const { width: m, size: _ } = l;
2077
- if (m)
2078
- return m;
1950
+ const { width: d, size: _ } = l;
1951
+ if (d)
1952
+ return d;
2079
1953
  switch (_) {
2080
1954
  case "small":
2081
1955
  return "480px";
@@ -2088,49 +1962,49 @@ const xa = { class: "bsgoal-base-dialog" }, Ca = { class: "base_dialog" }, Va =
2088
1962
  case "dnymic":
2089
1963
  return "80%";
2090
1964
  default:
2091
- return m;
1965
+ return d;
2092
1966
  }
2093
1967
  });
2094
- return (m, _) => {
2095
- const V = g("el-button"), B = g("el-dialog");
2096
- return o(), y("div", xa, [
2097
- k("div", Ca, [
2098
- N(B, {
1968
+ return (d, _) => {
1969
+ const M = g("el-button"), S = g("el-dialog");
1970
+ return o(), C("div", Xt, [
1971
+ R("div", Qt, [
1972
+ B(S, {
2099
1973
  modelValue: i.value,
2100
- "onUpdate:modelValue": _[0] || (_[0] = (S) => i.value = S),
1974
+ "onUpdate:modelValue": _[0] || (_[0] = ($) => i.value = $),
2101
1975
  "custom-class": "bsgoal_base_dialog_main",
2102
- class: me({ "bsgoal-dialog__footer--conceal": !e.footer }),
2103
- width: u(t)
1976
+ class: _e({ "bsgoal-dialog__footer--conceal": !e.footer }),
1977
+ width: s(t)
2104
1978
  }, {
2105
- header: x(() => [
2106
- k("div", Va, G(e.title), 1)
1979
+ header: A(() => [
1980
+ R("div", Zt, z(e.title), 1)
2107
1981
  ]),
2108
- footer: x(() => [
2109
- e.footer ? ae(m.$slots, "footer", { key: 0 }, () => [
2110
- k("span", Ma, [
2111
- N(V, { onClick: r }, {
2112
- default: x(() => [
2113
- H(G(e.cancelTxt), 1)
1982
+ footer: A(() => [
1983
+ e.footer ? J(d.$slots, "footer", { key: 0 }, () => [
1984
+ R("span", Kt, [
1985
+ B(M, { onClick: r }, {
1986
+ default: A(() => [
1987
+ H(z(e.cancelTxt), 1)
2114
1988
  ]),
2115
1989
  _: 1
2116
1990
  }),
2117
- N(V, {
1991
+ B(M, {
2118
1992
  type: "primary",
2119
1993
  onClick: c
2120
1994
  }, {
2121
- default: x(() => [
2122
- H(G(e.confirmTxt), 1)
1995
+ default: A(() => [
1996
+ H(z(e.confirmTxt), 1)
2123
1997
  ]),
2124
1998
  _: 1
2125
1999
  })
2126
2000
  ])
2127
- ]) : $("", !0)
2001
+ ]) : N("", !0)
2128
2002
  ]),
2129
- default: x(() => [
2130
- k("div", {
2131
- class: me(["base_dialog_content", { "base_dialog_content--form": e.type === "form" }])
2003
+ default: A(() => [
2004
+ R("div", {
2005
+ class: _e(["base_dialog_content", { "base_dialog_content--form": e.type === "form" }])
2132
2006
  }, [
2133
- ae(m.$slots, "default")
2007
+ J(d.$slots, "default")
2134
2008
  ], 2)
2135
2009
  ]),
2136
2010
  _: 3
@@ -2140,9 +2014,9 @@ const xa = { class: "bsgoal-base-dialog" }, Ca = { class: "base_dialog" }, Va =
2140
2014
  };
2141
2015
  }
2142
2016
  });
2143
- const Ba = { class: "bsgoal-base-tabs" }, wa = {
2017
+ const ea = { class: "bsgoal-base-tabs" }, ta = {
2144
2018
  name: "BsgoalBaseTabs"
2145
- }, Da = /* @__PURE__ */ Object.assign(wa, {
2019
+ }, aa = /* @__PURE__ */ Object.assign(ta, {
2146
2020
  props: {
2147
2021
  /**
2148
2022
  * 配置项
@@ -2176,29 +2050,29 @@ const Ba = { class: "bsgoal-base-tabs" }, wa = {
2176
2050
  }
2177
2051
  },
2178
2052
  emits: ["update:modelValue"],
2179
- setup(e, { emit: s }) {
2053
+ setup(e, { emit: u }) {
2180
2054
  const l = (i = "") => {
2181
- s("update:modelValue", i);
2055
+ u("update:modelValue", i);
2182
2056
  };
2183
2057
  return (i, r) => {
2184
2058
  const c = g("el-tab-pane"), t = g("el-tabs");
2185
- return o(), y("div", Ba, [
2186
- N(t, {
2059
+ return o(), C("div", ea, [
2060
+ B(t, {
2187
2061
  stretch: "",
2188
2062
  class: "bsgoal_base_tabs",
2189
2063
  type: e.type,
2190
2064
  "model-value": e.modelValue,
2191
2065
  onTabChange: l
2192
2066
  }, {
2193
- default: x(() => [
2194
- (o(!0), y(z, null, Z(e.configOptions, ({ label: m, value: _ }, V) => (o(), b(c, {
2195
- key: V,
2196
- label: m,
2067
+ default: A(() => [
2068
+ (o(!0), C(L, null, Z(e.configOptions, ({ label: d, value: _ }, M) => (o(), b(c, {
2069
+ key: M,
2070
+ label: d,
2197
2071
  name: _
2198
2072
  }, {
2199
- default: x(() => [
2200
- ae(i.$slots, _, {}, () => [
2201
- H(G(m), 1)
2073
+ default: A(() => [
2074
+ J(i.$slots, _, {}, () => [
2075
+ H(z(d), 1)
2202
2076
  ])
2203
2077
  ]),
2204
2078
  _: 2
@@ -2210,9 +2084,9 @@ const Ba = { class: "bsgoal-base-tabs" }, wa = {
2210
2084
  };
2211
2085
  }
2212
2086
  });
2213
- const Sa = { class: "bsgoal-base-link" }, ka = {
2087
+ const na = { class: "bsgoal-base-link" }, la = {
2214
2088
  name: "BsgoalBaseLink"
2215
- }, Oa = /* @__PURE__ */ Object.assign(ka, {
2089
+ }, oa = /* @__PURE__ */ Object.assign(la, {
2216
2090
  props: {
2217
2091
  /**
2218
2092
  * 内容
@@ -2237,23 +2111,23 @@ const Sa = { class: "bsgoal-base-link" }, ka = {
2237
2111
  }
2238
2112
  },
2239
2113
  emits: ["on-click"],
2240
- setup(e, { emit: s }) {
2114
+ setup(e, { emit: u }) {
2241
2115
  const l = () => {
2242
- s("on-click");
2116
+ u("on-click");
2243
2117
  };
2244
2118
  return (i, r) => {
2245
2119
  const c = g("el-link");
2246
- return o(), y("div", Sa, [
2247
- N(c, {
2120
+ return o(), C("div", na, [
2121
+ B(c, {
2248
2122
  class: "bsgoal_base_link",
2249
2123
  type: "primary",
2250
2124
  underline: e.underline,
2251
2125
  style: Ue(e.styler),
2252
2126
  onClick: l
2253
2127
  }, {
2254
- default: x(() => [
2255
- ae(i.$slots, "default", {}, () => [
2256
- H(G(e.content), 1)
2128
+ default: A(() => [
2129
+ J(i.$slots, "default", {}, () => [
2130
+ H(z(e.content), 1)
2257
2131
  ], !0)
2258
2132
  ]),
2259
2133
  _: 3
@@ -2261,27 +2135,103 @@ const Sa = { class: "bsgoal-base-link" }, ka = {
2261
2135
  ]);
2262
2136
  };
2263
2137
  }
2264
- }), Ia = /* @__PURE__ */ $e(Oa, [["__scopeId", "data-v-3b0290b0"]]), La = a, Pa = ye, za = {
2265
- install(e, s = {}) {
2266
- const { exclude: l = [] } = s, i = {
2267
- BsgoalBaseForm: We,
2268
- BsgoalBaseTable: Ne,
2269
- BsgoalBaseLine: Ae,
2270
- BsgoalBaseSearchTable: fa,
2271
- BsgoalBaseTree: Ta,
2272
- BsgoalBaseDialog: Na,
2273
- BsgoalBaseTabs: Da,
2274
- BsgoalBaseLink: Ia
2138
+ }), sa = /* @__PURE__ */ Ne(oa, [["__scopeId", "data-v-3b0290b0"]]);
2139
+ const ua = { class: "bsgoal-base-button" }, ca = {
2140
+ name: "BsgoalBaseButton"
2141
+ }, ra = /* @__PURE__ */ Object.assign(ca, {
2142
+ props: {
2143
+ task: {
2144
+ type: [Object, Function],
2145
+ default: () => {
2146
+ Promise.resolve();
2147
+ }
2148
+ },
2149
+ type: {
2150
+ type: [String],
2151
+ default: "primary",
2152
+ validator: (e) => ["primary", "success", "warning", "danger", "info"].includes(e)
2153
+ },
2154
+ icon: {
2155
+ type: [String, Object],
2156
+ default: He
2157
+ },
2158
+ content: {
2159
+ type: [String],
2160
+ default: "新增"
2161
+ },
2162
+ mode: {
2163
+ type: [String],
2164
+ default: "add",
2165
+ validator: (e) => ["add", "delete", "edit", "detail"].includes(e)
2166
+ }
2167
+ },
2168
+ setup(e) {
2169
+ const u = e, l = k(!1), i = () => {
2170
+ l.value = !0;
2171
+ const { task: t } = u;
2172
+ s(t)().then().finally(() => {
2173
+ l.value = !1;
2174
+ });
2175
+ }, r = K(() => {
2176
+ const { mode: t = "", type: d = "" } = u;
2177
+ switch (t) {
2178
+ case "delete":
2179
+ return "danger";
2180
+ }
2181
+ return d;
2182
+ }), c = K(() => {
2183
+ const { mode: t = "", icon: d = "" } = u;
2184
+ switch (t) {
2185
+ case "delete":
2186
+ return Me;
2187
+ }
2188
+ return d;
2189
+ });
2190
+ return (t, d) => {
2191
+ const _ = g("el-button");
2192
+ return o(), C("div", ua, [
2193
+ R("div", {
2194
+ class: "base_button",
2195
+ onClick: i
2196
+ }, [
2197
+ J(t.$slots, "default", { loading: l.value }, () => [
2198
+ B(_, {
2199
+ type: s(r),
2200
+ icon: s(c),
2201
+ loading: l.value
2202
+ }, {
2203
+ default: A(() => [
2204
+ H(z(e.content), 1)
2205
+ ]),
2206
+ _: 1
2207
+ }, 8, ["type", "icon", "loading"])
2208
+ ])
2209
+ ])
2210
+ ]);
2211
+ };
2212
+ }
2213
+ }), ga = a, fa = be, pa = {
2214
+ install(e, u = {}) {
2215
+ const { exclude: l = [] } = u, i = {
2216
+ BsgoalBaseForm: qe,
2217
+ BsgoalBaseTable: Be,
2218
+ BsgoalBaseLine: ye,
2219
+ BsgoalBaseSearchTable: Ut,
2220
+ BsgoalBaseTree: Wt,
2221
+ BsgoalBaseDialog: qt,
2222
+ BsgoalBaseTabs: aa,
2223
+ BsgoalBaseLink: sa,
2224
+ BsgoalBaseButton: ra
2275
2225
  };
2276
2226
  for (const [r, c] of Object.entries(i))
2277
2227
  l.includes(r) || e.component(r, c);
2278
2228
  },
2279
2229
  enumType: a,
2280
- useFetch: ye
2230
+ useFetch: be
2281
2231
  };
2282
2232
  export {
2283
- La as EnumType,
2284
- za as default,
2285
- Pa as useFetchApi
2233
+ ga as EnumType,
2234
+ pa as default,
2235
+ fa as useFetchApi
2286
2236
  };
2287
2237
  //# sourceMappingURL=index.mjs.map