@bsgoal/common 0.0.10 → 0.1.1

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.
Files changed (39) hide show
  1. package/dist/index.mjs +208 -193
  2. package/dist/index.mjs.map +1 -1
  3. package/dist/index.umd.js +1 -1
  4. package/dist/index.umd.js.map +1 -1
  5. package/package.json +3 -2
  6. package/src/App.vue +9 -0
  7. package/src/combines/useComs.js +32 -0
  8. package/src/combines/useFetchs.js +48 -0
  9. package/src/components/bsgoal-base-dialog/demo.vue +50 -0
  10. package/src/components/bsgoal-base-dialog/index.vue +133 -0
  11. package/src/components/bsgoal-base-form/demo.vue +187 -0
  12. package/src/components/bsgoal-base-form/index.vue +499 -0
  13. package/src/components/bsgoal-base-frame/demo.vue +35 -0
  14. package/src/components/bsgoal-base-frame/index.vue +29 -0
  15. package/src/components/bsgoal-base-line/demo.vue +42 -0
  16. package/src/components/bsgoal-base-line/index.vue +54 -0
  17. package/src/components/bsgoal-base-search/demo.vue +197 -0
  18. package/src/components/bsgoal-base-search/index.vue +486 -0
  19. package/src/components/bsgoal-base-search-operation/index.vue +76 -0
  20. package/src/components/bsgoal-base-search-table/demo-table.vue +52 -0
  21. package/src/components/bsgoal-base-search-table/demo.vue +664 -0
  22. package/src/components/bsgoal-base-search-table/index.vue +159 -0
  23. package/src/components/bsgoal-base-table/demo.vue +270 -0
  24. package/src/components/bsgoal-base-table/index.vue +278 -0
  25. package/src/components/bsgoal-base-table-content/index.vue +42 -0
  26. package/src/components/bsgoal-base-table-pagination/index.vue +109 -0
  27. package/src/components/bsgoal-base-tree/demo.vue +113 -0
  28. package/src/components/bsgoal-base-tree/index.vue +213 -0
  29. package/src/components/bsgoal-base-tree-fold/index.vue +65 -0
  30. package/src/components/layout/layout-home.vue +60 -0
  31. package/src/components/layout/layout-left-menu.vue +48 -0
  32. package/src/components/layout/layout-right-container.vue +36 -0
  33. package/src/components/layout/layout-top-header.vue +40 -0
  34. package/src/directives/directiveBase.js +94 -0
  35. package/src/entry.js +35 -0
  36. package/src/enums/enumType.js +31 -0
  37. package/src/main.js +11 -0
  38. package/src/router/index.js +66 -0
  39. package/src/styles/index.css +14 -0
package/dist/index.mjs CHANGED
@@ -1,12 +1,12 @@
1
- var ye = Object.defineProperty;
1
+ var we = Object.defineProperty;
2
2
  var Te = Object.getOwnPropertySymbols;
3
- var xe = Object.prototype.hasOwnProperty, Be = Object.prototype.propertyIsEnumerable;
4
- var Ve = (a, c, o) => c in a ? ye(a, c, { enumerable: !0, configurable: !0, writable: !0, value: o }) : a[c] = o, Ae = (a, c) => {
5
- for (var o in c || (c = {}))
6
- xe.call(c, o) && Ve(a, o, c[o]);
3
+ var ye = Object.prototype.hasOwnProperty, Be = Object.prototype.propertyIsEnumerable;
4
+ var Ve = (a, c, n) => c in a ? we(a, c, { enumerable: !0, configurable: !0, writable: !0, value: n }) : a[c] = n, Ae = (a, c) => {
5
+ for (var n in c || (c = {}))
6
+ ye.call(c, n) && Ve(a, n, c[n]);
7
7
  if (Te)
8
- for (var o of Te(c))
9
- Be.call(c, o) && Ve(a, o, c[o]);
8
+ for (var n of Te(c))
9
+ Be.call(c, n) && Ve(a, n, c[n]);
10
10
  return a;
11
11
  };
12
12
  import { ref as B, watchEffect as he, unref as s, computed as oe, resolveComponent as g, openBlock as u, createElementBlock as V, createElementVNode as F, withDirectives as G, createBlock as p, withCtx as A, createVNode as D, Fragment as I, renderList as W, createCommentVNode as $, createTextVNode as K, toDisplayString as j, nextTick as Ce, inject as $e, watch as ue, resolveDirective as De, renderSlot as ie, normalizeClass as ge, vShow as Q, provide as ke, useSlots as Oe, createSlots as Ne } from "vue";
@@ -34,27 +34,27 @@ const e = {
34
34
  };
35
35
  let fe = null;
36
36
  const ve = (a) => {
37
- const c = [], o = [], d = (n = []) => {
38
- const r = n.map((b) => b.width), E = Math.max(...r);
39
- n.forEach((b) => {
40
- const { labelEl: y } = b;
41
- y.style.width = `${E}px`;
37
+ const c = [], n = [], d = (o = []) => {
38
+ const r = o.map((b) => b.width), E = Math.max(...r);
39
+ o.forEach((b) => {
40
+ const { labelEl: w } = b;
41
+ w.style.width = `${E}px`;
42
42
  });
43
43
  }, _ = () => {
44
44
  if (a) {
45
- const n = a.querySelectorAll(".el-form-item__label");
46
- if (n && n.length) {
45
+ const o = a.querySelectorAll(".el-form-item__label");
46
+ if (o && o.length) {
47
47
  let r = 0;
48
- n.forEach((E, b) => {
48
+ o.forEach((E, b) => {
49
49
  E.style.width = "initial", E.style.whiteSpace = "nowrap";
50
- const { x: y = 0, width: x = 0 } = E.getBoundingClientRect(), N = { x: y, width: x, labelEl: E };
51
- b === 0 && (r = y), y === r ? c.push(N) : o.push(N);
50
+ const { x: w = 0, width: y = 0 } = E.getBoundingClientRect(), N = { x: w, width: y, labelEl: E };
51
+ b === 0 && (r = w), w === r ? c.push(N) : n.push(N);
52
52
  });
53
53
  }
54
54
  }
55
55
  };
56
56
  fe && clearTimeout(fe), fe = setTimeout(() => {
57
- _(), d(c), d(o);
57
+ _(), d(c), d(n);
58
58
  }, 50);
59
59
  }, Ee = {
60
60
  /**
@@ -76,7 +76,7 @@ const ve = (a) => {
76
76
  /**
77
77
  * 表格自动高度
78
78
  */
79
- height: (a, { value: c = 65, arg: o = "" }) => {
79
+ height: (a, { value: c = 65, arg: n = "" }) => {
80
80
  if (a) {
81
81
  const { y: d = 0 } = a.getBoundingClientRect();
82
82
  a.style.height = `calc(100vh - ${d + c}px)`;
@@ -126,8 +126,8 @@ const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Ue = { ke
126
126
  }
127
127
  },
128
128
  emits: ["on-form", "on-clear", "on-change", "on-fold"],
129
- setup(a, { expose: c, emit: o }) {
130
- const d = a, _ = B(null), n = Ee.align, r = B({});
129
+ setup(a, { expose: c, emit: n }) {
130
+ const d = a, _ = B(null), o = Ee.align, r = B({});
131
131
  he(() => {
132
132
  const { configOptions: h, values: v } = d, T = s(h), m = s(v);
133
133
  T.forEach((C) => {
@@ -165,7 +165,7 @@ const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Ue = { ke
165
165
  return ["开始月份", "结束月份"];
166
166
  }
167
167
  return T;
168
- }, y = (h = "", v = "") => {
168
+ }, w = (h = "", v = "") => {
169
169
  if (!v)
170
170
  switch (h) {
171
171
  case e.WEEK:
@@ -187,7 +187,7 @@ const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Ue = { ke
187
187
  return "YYYY-MM-DD HH:mm:ss";
188
188
  }
189
189
  return v;
190
- }, x = () => {
190
+ }, y = () => {
191
191
  const h = s(r), { configOptions: v } = d, T = s(v);
192
192
  for (const m of T) {
193
193
  const { type: C = "", range: k = [], prop: O = "" } = m;
@@ -196,25 +196,25 @@ const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Ue = { ke
196
196
  h[U] = M, h[S] = P;
197
197
  }
198
198
  }
199
- return o("on-form", h), h;
199
+ return n("on-form", h), h;
200
200
  }, N = () => {
201
- _.value.resetFields(), o("on-clear", r.value);
202
- }, w = (h, v) => {
201
+ _.value.resetFields(), n("on-clear", r.value);
202
+ }, x = (h, v) => {
203
203
  const T = {
204
204
  type: h,
205
205
  prop: v,
206
206
  value: r.value[v] || ""
207
207
  };
208
- o("on-change", T);
208
+ n("on-change", T);
209
209
  };
210
210
  return c({
211
211
  triggerOperationClear: N,
212
- triggerOperationForm: x,
212
+ triggerOperationForm: y,
213
213
  validateForm: (h = () => {
214
214
  }) => {
215
215
  _.value.validate((v = !1, T = {}) => {
216
216
  if (v) {
217
- const m = x();
217
+ const m = y();
218
218
  h(m);
219
219
  } else {
220
220
  h(!1), console.log("field", T);
@@ -273,7 +273,7 @@ const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Ue = { ke
273
273
  "onUpdate:modelValue": (t) => r.value[f] = t,
274
274
  placeholder: b(l, L, i),
275
275
  clearable: se,
276
- onChange: (t) => w(l, f)
276
+ onChange: (t) => x(l, f)
277
277
  }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : $("", !0),
278
278
  l === s(e).INPUT_TEXT_AREA ? (u(), p(T, {
279
279
  key: 1,
@@ -283,7 +283,7 @@ const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Ue = { ke
283
283
  rows: re,
284
284
  clearable: se,
285
285
  placeholder: b(l, L, i),
286
- onChange: (t) => w(l, f)
286
+ onChange: (t) => x(l, f)
287
287
  }, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : $("", !0),
288
288
  l === s(e).INPUT_NUMBER ? (u(), p(m, {
289
289
  key: 2,
@@ -291,13 +291,13 @@ const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Ue = { ke
291
291
  "onUpdate:modelValue": v[0] || (v[0] = (t) => h.num = t),
292
292
  min: ce,
293
293
  max: ne,
294
- onChange: w
294
+ onChange: x
295
295
  }, null, 8, ["modelValue", "min", "max"])) : $("", !0),
296
296
  l === s(e).RADIO ? (u(), p(k, {
297
297
  key: 3,
298
298
  modelValue: r.value[f],
299
299
  "onUpdate:modelValue": (t) => r.value[f] = t,
300
- onChange: (t) => w(l, f)
300
+ onChange: (t) => x(l, f)
301
301
  }, {
302
302
  default: A(() => [
303
303
  (u(!0), V(I, null, W(q, (t, H) => (u(), p(C, {
@@ -317,7 +317,7 @@ const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Ue = { ke
317
317
  modelValue: r.value[f],
318
318
  "onUpdate:modelValue": (t) => r.value[f] = t,
319
319
  placeholder: b(l, L, i),
320
- onChange: (t) => w(l, f)
320
+ onChange: (t) => x(l, f)
321
321
  }, {
322
322
  default: A(() => [
323
323
  (u(!0), V(I, null, W(q, (t, H) => (u(), p(O, {
@@ -334,7 +334,7 @@ const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Ue = { ke
334
334
  "onUpdate:modelValue": (t) => r.value[f] = t,
335
335
  min: ce,
336
336
  max: ne,
337
- onChange: (t) => w(l, f)
337
+ onChange: (t) => x(l, f)
338
338
  }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : $("", !0),
339
339
  l === s(e).SWITCH ? (u(), p(U, {
340
340
  key: 6,
@@ -342,7 +342,7 @@ const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Ue = { ke
342
342
  "onUpdate:modelValue": (t) => r.value[f] = t,
343
343
  "active-value": q[0] || !0,
344
344
  "inactive-value": q[1] || !1,
345
- onChange: (t) => w(l, f)
345
+ onChange: (t) => x(l, f)
346
346
  }, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : $("", !0),
347
347
  [s(e).DATE, s(e).MONTH, s(e).YEAR, s(e).DATE_TIME].includes(
348
348
  l
@@ -350,11 +350,11 @@ const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Ue = { ke
350
350
  key: 7,
351
351
  modelValue: r.value[f],
352
352
  "onUpdate:modelValue": (t) => r.value[f] = t,
353
- format: y(l, Y),
354
- "value-format": y(l, Y),
353
+ format: w(l, Y),
354
+ "value-format": w(l, Y),
355
355
  type: l,
356
356
  placeholder: b(l, L, i),
357
- onChange: (t) => w(l, f)
357
+ onChange: (t) => x(l, f)
358
358
  }, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : $("", !0),
359
359
  [
360
360
  s(e).DATE_RANGE,
@@ -365,35 +365,35 @@ const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Ue = { ke
365
365
  modelValue: r.value[f],
366
366
  "onUpdate:modelValue": (t) => r.value[f] = t,
367
367
  type: l,
368
- "value-format": y(l, Y),
368
+ "value-format": w(l, Y),
369
369
  "start-placeholder": b(l, L, i)[0],
370
370
  "end-placeholder": b(l, L, i)[1],
371
- onChange: (t) => w(l, f)
371
+ onChange: (t) => x(l, f)
372
372
  }, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : $("", !0),
373
373
  [s(e).TIME].includes(l) ? (u(), p(X, {
374
374
  key: 9,
375
375
  modelValue: r.value[f],
376
376
  "onUpdate:modelValue": (t) => r.value[f] = t,
377
377
  "arrow-control": "",
378
- "value-format": y(l, Y),
378
+ "value-format": w(l, Y),
379
379
  placeholder: b(l, L, i),
380
- onChange: (t) => w(l, f)
380
+ onChange: (t) => x(l, f)
381
381
  }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : $("", !0),
382
382
  [s(e).TIME_RANGE].includes(l) ? (u(), p(X, {
383
383
  key: 10,
384
384
  modelValue: r.value[f],
385
385
  "onUpdate:modelValue": (t) => r.value[f] = t,
386
386
  "is-range": "",
387
- "value-format": y(l, Y),
387
+ "value-format": w(l, Y),
388
388
  "start-placeholder": b(l, L, i)[0],
389
389
  "end-placeholder": b(l, L, i)[1],
390
- onChange: (t) => w(l, f)
390
+ onChange: (t) => x(l, f)
391
391
  }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : $("", !0),
392
392
  [s(e).CHECKBOX].includes(l) ? (u(), p(le, {
393
393
  key: 11,
394
394
  modelValue: r.value[f],
395
395
  "onUpdate:modelValue": (t) => r.value[f] = t,
396
- onChange: (t) => w(l, f)
396
+ onChange: (t) => x(l, f)
397
397
  }, {
398
398
  default: A(() => [
399
399
  (u(!0), V(I, null, W(q, (t, H) => (u(), p(Z, {
@@ -422,7 +422,7 @@ const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Ue = { ke
422
422
  ]),
423
423
  _: 1
424
424
  }, 8, ["model"])), [
425
- [s(n)]
425
+ [s(o)]
426
426
  ])
427
427
  ])
428
428
  ]);
@@ -439,7 +439,7 @@ const Pe = { class: "bsgoal-base-table-content" }, Le = { class: "bas_tabl_conte
439
439
  }
440
440
  },
441
441
  setup(a) {
442
- return (c, o) => (u(), V("div", Pe, [
442
+ return (c, n) => (u(), V("div", Pe, [
443
443
  F("div", Le, j(a.data), 1)
444
444
  ]));
445
445
  }
@@ -607,12 +607,12 @@ const Ge = { class: "bsgoal-base-table-pagination" }, je = { class: "base_table_
607
607
  },
608
608
  emits: ["on-size-change", "on-current-change"],
609
609
  setup(a, { emit: c }) {
610
- const o = (n = 0) => {
611
- c("on-size-change", n);
612
- }, d = (n = 1) => {
613
- c("on-current-change", n);
610
+ const n = (o = 0) => {
611
+ c("on-size-change", o);
612
+ }, d = (o = 1) => {
613
+ c("on-current-change", o);
614
614
  }, _ = B(1);
615
- return (n, r) => {
615
+ return (o, r) => {
616
616
  const E = g("el-pagination"), b = g("el-config-provider");
617
617
  return u(), V("div", Ge, [
618
618
  F("div", je, [
@@ -622,11 +622,11 @@ const Ge = { class: "bsgoal-base-table-pagination" }, je = { class: "base_table_
622
622
  background: "",
623
623
  layout: "total, sizes, prev, pager, next, jumper",
624
624
  "current-page": _.value,
625
- "onUpdate:currentPage": r[0] || (r[0] = (y) => _.value = y),
625
+ "onUpdate:currentPage": r[0] || (r[0] = (w) => _.value = w),
626
626
  "page-sizes": a.pageSizes,
627
627
  "page-size": a.pageSize,
628
628
  total: a.total,
629
- onSizeChange: o,
629
+ onSizeChange: n,
630
630
  onCurrentChange: d
631
631
  }, {
632
632
  next: A(() => [
@@ -641,37 +641,37 @@ const Ge = { class: "bsgoal-base-table-pagination" }, je = { class: "base_table_
641
641
  ]);
642
642
  };
643
643
  }
644
- }), qe = (a = null, { expression: c = 65, arg: o = {} } = {}) => {
644
+ }), qe = (a = null, { expression: c = 75, arg: n = {} } = {}) => {
645
645
  const d = s(a);
646
646
  if (d) {
647
647
  const _ = d.querySelector(".el-table");
648
648
  _ && Ce(() => {
649
- const { y: n = 0 } = _.getBoundingClientRect();
650
- _.style.height = `calc(100vh - ${n + c}px)`;
649
+ const { y: o = 0 } = _.getBoundingClientRect();
650
+ _.style.height = `calc(100vh - ${o + c}px)`;
651
651
  });
652
652
  }
653
- }, pe = (a = Promise.resolve(), c = null, o = B(!1), d = B(null)) => {
653
+ }, pe = (a = Promise.resolve(), c = null, n = B(!1), d = B(null)) => {
654
654
  const _ = B("");
655
- return o.value = !0, a.then((n = {}) => {
656
- const { data: r = {}, message: E = "" } = n;
657
- d.value = r, _.value = E, c && c(!0, r), o.value = !1;
658
- }).catch((n = {}) => {
659
- if (typeof n == "object") {
660
- const { message: r = "" } = n;
655
+ return n.value = !0, a.then((o = {}) => {
656
+ const { data: r = {}, message: E = "" } = o;
657
+ d.value = r, _.value = E, c && c(!0, r), n.value = !1;
658
+ }).catch((o = {}) => {
659
+ if (typeof o == "object") {
660
+ const { message: r = "" } = o;
661
661
  _.value = r;
662
662
  } else
663
- _.value = n;
664
- c(!1, n), o.value = !1;
663
+ _.value = o;
664
+ c(!1, o), n.value = !1;
665
665
  }).finally(() => {
666
- o.value = !1;
667
- }), { data: d, message: _, loading: o };
666
+ n.value = !1;
667
+ }), { data: d, message: _, loading: n };
668
668
  };
669
669
  const Je = { class: "bsgoal-base-table" }, Qe = { class: "base_table" }, Ze = {
670
670
  key: 0,
671
671
  class: "base_table_menu"
672
672
  }, et = {
673
673
  name: "BsgoalBaseTable"
674
- }, we = /* @__PURE__ */ Object.assign(et, {
674
+ }, xe = /* @__PURE__ */ Object.assign(et, {
675
675
  props: {
676
676
  /**
677
677
  * >----------props----------<
@@ -749,32 +749,39 @@ const Je = { class: "bsgoal-base-table" }, Qe = { class: "base_table" }, Ze = {
749
749
  rows: "rows",
750
750
  total: "total"
751
751
  })
752
+ },
753
+ /**
754
+ * 表格高度 下边距值
755
+ */
756
+ expression: {
757
+ type: [Number],
758
+ default: 75
752
759
  }
753
760
  },
754
761
  setup(a, { expose: c }) {
755
- const o = a, d = oe(() => {
756
- const { configOptions: m = [], operation: C = !1, operationWidth: k = 0 } = o, O = s(m), M = [];
762
+ const n = a, d = oe(() => {
763
+ const { configOptions: m = [], operation: C = !1, operationWidth: k = 0 } = n, O = s(m), M = [];
757
764
  return C && M.push({
758
765
  label: "操作",
759
766
  fixed: "right",
760
767
  prop: "operation",
761
768
  width: k
762
769
  }), [...O, ...M];
763
- }), _ = B(null), n = $e("transferFoldStatus");
770
+ }), _ = B(null), o = $e("transferFoldStatus");
764
771
  he(() => {
765
- const m = n ? n.value : !1;
766
- qe(_, { arg: m });
772
+ const m = o ? o.value : !1, C = s(n.expression);
773
+ qe(_, { arg: m, expression: C });
767
774
  });
768
- const r = B(1), E = B(10), b = B(0), y = B({}), x = B(o.loading), N = B(o.data), w = B({}), R = () => {
769
- const { fetch: m, call: C, mapProps: k } = o, O = y.value, M = r.value, P = E.value, U = Ae({}, O), S = s(k);
770
- U[S.currentPage] = M, U[S.pageSize] = P, pe(m(U), C, x, w);
775
+ const r = B(1), E = B(10), b = B(0), w = B({}), y = B(n.loading), N = B(n.data), x = B({}), R = () => {
776
+ const { fetch: m, call: C, mapProps: k } = n, O = w.value, M = r.value, P = E.value, U = Ae({}, O), S = s(k);
777
+ U[S.currentPage] = M, U[S.pageSize] = P, pe(m(U), C, y, x);
771
778
  };
772
- ue(w, (m) => {
773
- const { mapProps: C } = o, k = s(C);
779
+ ue(x, (m) => {
780
+ const { mapProps: C } = n, k = s(C);
774
781
  N.value = m[k.rows], b.value = m[k.total];
775
782
  });
776
783
  const h = (m = {}) => {
777
- y.value = m, r.value = 1, R();
784
+ w.value = m, r.value = 1, R();
778
785
  }, v = (m = 1) => {
779
786
  r.value = m;
780
787
  }, T = (m = 10) => {
@@ -836,7 +843,7 @@ const Je = { class: "bsgoal-base-table" }, Qe = { class: "base_table" }, Ze = {
836
843
  ]),
837
844
  _: 3
838
845
  }, 8, ["data", "header-cell-style"])), [
839
- [M, x.value]
846
+ [M, y.value]
840
847
  ])
841
848
  ], 512),
842
849
  D(Ke, {
@@ -862,7 +869,7 @@ const tt = {
862
869
  }
863
870
  },
864
871
  setup(a) {
865
- return (c, o) => (u(), V("div", {
872
+ return (c, n) => (u(), V("div", {
866
873
  class: ge(["bsgoal-base-line", { "bsgoal-base-line__vertical": a.vertical }])
867
874
  }, [
868
875
  F("div", {
@@ -873,10 +880,10 @@ const tt = {
873
880
  });
874
881
  /*! Element Plus Icons Vue v2.1.0 */
875
882
  var ae = (a, c) => {
876
- let o = a.__vccOpts || a;
883
+ let n = a.__vccOpts || a;
877
884
  for (let [d, _] of c)
878
- o[d] = _;
879
- return o;
885
+ n[d] = _;
886
+ return n;
880
887
  }, at = {
881
888
  name: "ArrowDown"
882
889
  }, lt = {
@@ -894,7 +901,7 @@ var ae = (a, c) => {
894
901
  ), ot = [
895
902
  nt
896
903
  ];
897
- function ut(a, c, o, d, _, n) {
904
+ function ut(a, c, n, d, _, o) {
898
905
  return u(), V("svg", lt, ot);
899
906
  }
900
907
  var st = /* @__PURE__ */ ae(at, [["render", ut], ["__file", "arrow-down.vue"]]), rt = {
@@ -914,7 +921,7 @@ var st = /* @__PURE__ */ ae(at, [["render", ut], ["__file", "arrow-down.vue"]]),
914
921
  ), dt = [
915
922
  it
916
923
  ];
917
- function _t(a, c, o, d, _, n) {
924
+ function _t(a, c, n, d, _, o) {
918
925
  return u(), V("svg", ct, dt);
919
926
  }
920
927
  var mt = /* @__PURE__ */ ae(rt, [["render", _t], ["__file", "arrow-left.vue"]]), ft = {
@@ -934,7 +941,7 @@ var mt = /* @__PURE__ */ ae(rt, [["render", _t], ["__file", "arrow-left.vue"]]),
934
941
  ), ht = [
935
942
  gt
936
943
  ];
937
- function Et(a, c, o, d, _, n) {
944
+ function Et(a, c, n, d, _, o) {
938
945
  return u(), V("svg", vt, ht);
939
946
  }
940
947
  var pt = /* @__PURE__ */ ae(ft, [["render", Et], ["__file", "arrow-right.vue"]]), bt = {
@@ -954,15 +961,15 @@ var pt = /* @__PURE__ */ ae(ft, [["render", Et], ["__file", "arrow-right.vue"]])
954
961
  ), At = [
955
962
  Vt
956
963
  ];
957
- function Ct(a, c, o, d, _, n) {
964
+ function Ct(a, c, n, d, _, o) {
958
965
  return u(), V("svg", Tt, At);
959
966
  }
960
- var $t = /* @__PURE__ */ ae(bt, [["render", Ct], ["__file", "arrow-up.vue"]]), wt = {
967
+ var $t = /* @__PURE__ */ ae(bt, [["render", Ct], ["__file", "arrow-up.vue"]]), xt = {
961
968
  name: "Delete"
962
- }, yt = {
969
+ }, wt = {
963
970
  xmlns: "http://www.w3.org/2000/svg",
964
971
  viewBox: "0 0 1024 1024"
965
- }, xt = /* @__PURE__ */ F(
972
+ }, yt = /* @__PURE__ */ F(
966
973
  "path",
967
974
  {
968
975
  fill: "currentColor",
@@ -972,12 +979,12 @@ var $t = /* @__PURE__ */ ae(bt, [["render", Ct], ["__file", "arrow-up.vue"]]), w
972
979
  -1
973
980
  /* HOISTED */
974
981
  ), Bt = [
975
- xt
982
+ yt
976
983
  ];
977
- function Dt(a, c, o, d, _, n) {
978
- return u(), V("svg", yt, Bt);
984
+ function Dt(a, c, n, d, _, o) {
985
+ return u(), V("svg", wt, Bt);
979
986
  }
980
- var kt = /* @__PURE__ */ ae(wt, [["render", Dt], ["__file", "delete.vue"]]), Ot = {
987
+ var kt = /* @__PURE__ */ ae(xt, [["render", Dt], ["__file", "delete.vue"]]), Ot = {
981
988
  name: "Search"
982
989
  }, Nt = {
983
990
  xmlns: "http://www.w3.org/2000/svg",
@@ -994,15 +1001,15 @@ var kt = /* @__PURE__ */ ae(wt, [["render", Dt], ["__file", "delete.vue"]]), Ot
994
1001
  ), Mt = [
995
1002
  Ft
996
1003
  ];
997
- function Rt(a, c, o, d, _, n) {
1004
+ function Rt(a, c, n, d, _, o) {
998
1005
  return u(), V("svg", Nt, Mt);
999
1006
  }
1000
1007
  var Ut = /* @__PURE__ */ ae(Ot, [["render", Rt], ["__file", "search.vue"]]);
1001
1008
  const St = (a, c) => {
1002
- const o = a.__vccOpts || a;
1009
+ const n = a.__vccOpts || a;
1003
1010
  for (const [d, _] of c)
1004
- o[d] = _;
1005
- return o;
1011
+ n[d] = _;
1012
+ return n;
1006
1013
  }, It = { class: "bsgoal-base-search-operation" }, Pt = {
1007
1014
  name: "BsgoalBaseSearchOperation"
1008
1015
  }, Lt = /* @__PURE__ */ Object.assign(Pt, {
@@ -1017,16 +1024,16 @@ const St = (a, c) => {
1017
1024
  },
1018
1025
  emits: ["on-fold"],
1019
1026
  setup(a, { emit: c }) {
1020
- const o = B(!1), d = () => {
1021
- o.value = !s(o), c("on-fold", o.value);
1027
+ const n = B(!1), d = () => {
1028
+ n.value = !s(n), c("on-fold", n.value);
1022
1029
  };
1023
- return (_, n) => {
1030
+ return (_, o) => {
1024
1031
  const r = g("el-button"), E = g("el-icon");
1025
1032
  return u(), V("div", It, [
1026
1033
  D(r, {
1027
1034
  type: "primary",
1028
1035
  icon: s(Ut),
1029
- onClick: n[0] || (n[0] = (b) => _.$emit("on-search"))
1036
+ onClick: o[0] || (o[0] = (b) => _.$emit("on-search"))
1030
1037
  }, {
1031
1038
  default: A(() => [
1032
1039
  K("搜索")
@@ -1035,7 +1042,7 @@ const St = (a, c) => {
1035
1042
  }, 8, ["icon"]),
1036
1043
  D(r, {
1037
1044
  icon: s(kt),
1038
- onClick: n[1] || (n[1] = (b) => _.$emit("on-clear"))
1045
+ onClick: o[1] || (o[1] = (b) => _.$emit("on-clear"))
1039
1046
  }, {
1040
1047
  default: A(() => [
1041
1048
  K("清空")
@@ -1048,14 +1055,14 @@ const St = (a, c) => {
1048
1055
  style: { color: "var(--el-color-primary)" },
1049
1056
  onClick: d
1050
1057
  }, [
1051
- K(j(o.value ? "收起" : "展开"), 1),
1058
+ K(j(n.value ? "收起" : "展开"), 1),
1052
1059
  D(E, { color: "#409EFC" }, {
1053
1060
  default: A(() => [
1054
1061
  G(D(s($t), null, null, 512), [
1055
- [Q, o.value]
1062
+ [Q, n.value]
1056
1063
  ]),
1057
1064
  G(D(s(st), null, null, 512), [
1058
- [Q, !o.value]
1065
+ [Q, !n.value]
1059
1066
  ])
1060
1067
  ]),
1061
1068
  _: 1
@@ -1102,16 +1109,16 @@ const Yt = { class: "bsgoal-base-search" }, Ht = { class: "base_search" }, Gt =
1102
1109
  },
1103
1110
  emits: ["on-search", "on-clear", "on-change", "on-fold"],
1104
1111
  setup(a, { emit: c }) {
1105
- const o = a, d = B(null), _ = Ee.align, n = B({});
1112
+ const n = a, d = B(null), _ = Ee.align, o = B({});
1106
1113
  he(() => {
1107
- const { configOptions: v } = o;
1114
+ const { configOptions: v } = n;
1108
1115
  s(v).forEach((m) => {
1109
1116
  const { value: C = "", prop: k = "", type: O = "" } = m;
1110
- [e.INPUT, e.INPUT_TEXT_AREA].includes(O), n.value[k] = C;
1117
+ [e.INPUT, e.INPUT_TEXT_AREA].includes(O), o.value[k] = C;
1111
1118
  });
1112
1119
  });
1113
1120
  const r = oe(() => {
1114
- const { configOptions: v } = o, T = s(v), m = {
1121
+ const { configOptions: v } = n, T = s(v), m = {
1115
1122
  type: e.OPERATION
1116
1123
  };
1117
1124
  return [...T, m];
@@ -1160,8 +1167,8 @@ const Yt = { class: "bsgoal-base-search" }, Ht = { class: "base_search" }, Gt =
1160
1167
  return "YYYY-MM-DD HH:mm:ss";
1161
1168
  }
1162
1169
  return T;
1163
- }, y = () => {
1164
- const v = s(n), { configOptions: T } = o, m = s(T);
1170
+ }, w = () => {
1171
+ const v = s(o), { configOptions: T } = n, m = s(T);
1165
1172
  for (const C of m) {
1166
1173
  const { type: k = "", range: O = [], prop: M = "" } = C;
1167
1174
  if (k.endsWith("range") && O && O.length === 2) {
@@ -1172,18 +1179,18 @@ const Yt = { class: "bsgoal-base-search" }, Ht = { class: "base_search" }, Gt =
1172
1179
  c("on-search", v);
1173
1180
  };
1174
1181
  Ce(() => {
1175
- y();
1182
+ w();
1176
1183
  });
1177
- const x = () => {
1178
- d.value.resetFields(), c("on-clear", n.value);
1179
- }, N = $e("transferFoldStatus"), w = B(!1), R = (v = !1) => {
1180
- w.value = v, N && (N.value = v), c("on-fold", w);
1184
+ const y = () => {
1185
+ d.value.resetFields(), c("on-clear", o.value);
1186
+ }, N = $e("transferFoldStatus"), x = B(!1), R = (v = !1) => {
1187
+ x.value = v, N && (N.value = v), c("on-fold", x);
1181
1188
  }, h = (v, T) => {
1182
- y();
1189
+ w();
1183
1190
  const m = {
1184
1191
  type: v,
1185
1192
  prop: T,
1186
- value: n.value[T] || ""
1193
+ value: o.value[T] || ""
1187
1194
  };
1188
1195
  c("on-change", m);
1189
1196
  };
@@ -1196,7 +1203,7 @@ const Yt = { class: "bsgoal-base-search" }, Ht = { class: "base_search" }, Gt =
1196
1203
  ref: d,
1197
1204
  "label-suffix": ":",
1198
1205
  "show-message": !1,
1199
- model: n.value
1206
+ model: o.value
1200
1207
  }, {
1201
1208
  default: A(() => [
1202
1209
  D(me, null, {
@@ -1225,19 +1232,19 @@ const Yt = { class: "bsgoal-base-search" }, Ht = { class: "base_search" }, Gt =
1225
1232
  prop: l
1226
1233
  }, {
1227
1234
  default: A(() => [
1228
- se ? (u(), V("div", Gt, j(n.value[l]), 1)) : (u(), V(I, { key: 0 }, [
1235
+ se ? (u(), V("div", Gt, j(o.value[l]), 1)) : (u(), V(I, { key: 0 }, [
1229
1236
  i === s(e).INPUT ? (u(), p(m, {
1230
1237
  key: 0,
1231
- modelValue: n.value[l],
1232
- "onUpdate:modelValue": (t) => n.value[l] = t,
1238
+ modelValue: o.value[l],
1239
+ "onUpdate:modelValue": (t) => o.value[l] = t,
1233
1240
  placeholder: E(i, f, z),
1234
1241
  clearable: re,
1235
1242
  onChange: (t) => h(i, l)
1236
1243
  }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : $("", !0),
1237
1244
  i === s(e).INPUT_TEXT_AREA ? (u(), p(m, {
1238
1245
  key: 1,
1239
- modelValue: n.value[l],
1240
- "onUpdate:modelValue": (t) => n.value[l] = t,
1246
+ modelValue: o.value[l],
1247
+ "onUpdate:modelValue": (t) => o.value[l] = t,
1241
1248
  type: "textarea",
1242
1249
  rows: ce,
1243
1250
  clearable: re,
@@ -1254,8 +1261,8 @@ const Yt = { class: "bsgoal-base-search" }, Ht = { class: "base_search" }, Gt =
1254
1261
  }, null, 8, ["modelValue", "min", "max"])) : $("", !0),
1255
1262
  i === s(e).RADIO ? (u(), p(O, {
1256
1263
  key: 3,
1257
- modelValue: n.value[l],
1258
- "onUpdate:modelValue": (t) => n.value[l] = t,
1264
+ modelValue: o.value[l],
1265
+ "onUpdate:modelValue": (t) => o.value[l] = t,
1259
1266
  onChange: (t) => h(i, l)
1260
1267
  }, {
1261
1268
  default: A(() => [
@@ -1273,8 +1280,8 @@ const Yt = { class: "bsgoal-base-search" }, Ht = { class: "base_search" }, Gt =
1273
1280
  }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : $("", !0),
1274
1281
  i === s(e).SELECT ? (u(), p(P, {
1275
1282
  key: 4,
1276
- modelValue: n.value[l],
1277
- "onUpdate:modelValue": (t) => n.value[l] = t,
1283
+ modelValue: o.value[l],
1284
+ "onUpdate:modelValue": (t) => o.value[l] = t,
1278
1285
  placeholder: E(i, f, z),
1279
1286
  onChange: (t) => h(i, l)
1280
1287
  }, {
@@ -1289,16 +1296,16 @@ const Yt = { class: "bsgoal-base-search" }, Ht = { class: "base_search" }, Gt =
1289
1296
  }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : $("", !0),
1290
1297
  i === s(e).SLIDER ? (u(), p(U, {
1291
1298
  key: 5,
1292
- modelValue: n.value[l],
1293
- "onUpdate:modelValue": (t) => n.value[l] = t,
1299
+ modelValue: o.value[l],
1300
+ "onUpdate:modelValue": (t) => o.value[l] = t,
1294
1301
  min: ne,
1295
1302
  max: q,
1296
1303
  onChange: (t) => h(i, l)
1297
1304
  }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : $("", !0),
1298
1305
  i === s(e).SWITCH ? (u(), p(S, {
1299
1306
  key: 6,
1300
- modelValue: n.value[l],
1301
- "onUpdate:modelValue": (t) => n.value[l] = t,
1307
+ modelValue: o.value[l],
1308
+ "onUpdate:modelValue": (t) => o.value[l] = t,
1302
1309
  "active-value": Y[0] || !0,
1303
1310
  "inactive-value": Y[1] || !1,
1304
1311
  onChange: (t) => h(i, l)
@@ -1307,8 +1314,8 @@ const Yt = { class: "bsgoal-base-search" }, Ht = { class: "base_search" }, Gt =
1307
1314
  i
1308
1315
  ) ? (u(), p(X, {
1309
1316
  key: 7,
1310
- modelValue: n.value[l],
1311
- "onUpdate:modelValue": (t) => n.value[l] = t,
1317
+ modelValue: o.value[l],
1318
+ "onUpdate:modelValue": (t) => o.value[l] = t,
1312
1319
  format: b(i, J),
1313
1320
  "value-format": b(i, J),
1314
1321
  type: i,
@@ -1321,8 +1328,8 @@ const Yt = { class: "bsgoal-base-search" }, Ht = { class: "base_search" }, Gt =
1321
1328
  s(e).DATE_TIME_RANGE
1322
1329
  ].includes(i) ? (u(), p(X, {
1323
1330
  key: 8,
1324
- modelValue: n.value[l],
1325
- "onUpdate:modelValue": (t) => n.value[l] = t,
1331
+ modelValue: o.value[l],
1332
+ "onUpdate:modelValue": (t) => o.value[l] = t,
1326
1333
  type: i,
1327
1334
  "value-format": b(i, J),
1328
1335
  "start-placeholder": E(i, f, z)[0],
@@ -1331,8 +1338,8 @@ const Yt = { class: "bsgoal-base-search" }, Ht = { class: "base_search" }, Gt =
1331
1338
  }, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : $("", !0),
1332
1339
  [s(e).TIME].includes(i) ? (u(), p(Z, {
1333
1340
  key: 9,
1334
- modelValue: n.value[l],
1335
- "onUpdate:modelValue": (t) => n.value[l] = t,
1341
+ modelValue: o.value[l],
1342
+ "onUpdate:modelValue": (t) => o.value[l] = t,
1336
1343
  "arrow-control": "",
1337
1344
  "value-format": b(i, J),
1338
1345
  placeholder: E(i, f, z),
@@ -1340,8 +1347,8 @@ const Yt = { class: "bsgoal-base-search" }, Ht = { class: "base_search" }, Gt =
1340
1347
  }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : $("", !0),
1341
1348
  [s(e).TIME_RANGE].includes(i) ? (u(), p(Z, {
1342
1349
  key: 10,
1343
- modelValue: n.value[l],
1344
- "onUpdate:modelValue": (t) => n.value[l] = t,
1350
+ modelValue: o.value[l],
1351
+ "onUpdate:modelValue": (t) => o.value[l] = t,
1345
1352
  "is-range": "",
1346
1353
  "value-format": b(i, J),
1347
1354
  "start-placeholder": E(i, f, z)[0],
@@ -1350,8 +1357,8 @@ const Yt = { class: "bsgoal-base-search" }, Ht = { class: "base_search" }, Gt =
1350
1357
  }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : $("", !0),
1351
1358
  [s(e).CHECKBOX].includes(i) ? (u(), p(ee, {
1352
1359
  key: 11,
1353
- modelValue: n.value[l],
1354
- "onUpdate:modelValue": (t) => n.value[l] = t,
1360
+ modelValue: o.value[l],
1361
+ "onUpdate:modelValue": (t) => o.value[l] = t,
1355
1362
  onChange: (t) => h(i, l)
1356
1363
  }, {
1357
1364
  default: A(() => [
@@ -1371,8 +1378,8 @@ const Yt = { class: "bsgoal-base-search" }, Ht = { class: "base_search" }, Gt =
1371
1378
  [s(e).OPERATION].includes(i) ? (u(), p(zt, {
1372
1379
  key: 13,
1373
1380
  fold: te >= 7,
1374
- onOnSearch: y,
1375
- onOnClear: x,
1381
+ onOnSearch: w,
1382
+ onOnClear: y,
1376
1383
  onOnFold: R
1377
1384
  }, null, 8, ["fold"])) : $("", !0)
1378
1385
  ], 64))
@@ -1382,7 +1389,7 @@ const Yt = { class: "bsgoal-base-search" }, Ht = { class: "base_search" }, Gt =
1382
1389
  ]),
1383
1390
  _: 2
1384
1391
  }, 1032, ["md"])), [
1385
- [Q, te < 7 || i === s(e).OPERATION || te >= 7 && w.value]
1392
+ [Q, te < 7 || i === s(e).OPERATION || te >= 7 && x.value]
1386
1393
  ])), 128))
1387
1394
  ]),
1388
1395
  _: 1
@@ -1469,39 +1476,47 @@ const Xt = { class: "bsgoal-base-search-table" }, Kt = { class: "base_search_tab
1469
1476
  call: {
1470
1477
  type: [Object, Function],
1471
1478
  default: null
1479
+ },
1480
+ /**
1481
+ * 表格高度 下边距值
1482
+ */
1483
+ expression: {
1484
+ type: [Number],
1485
+ default: 75
1472
1486
  }
1473
1487
  },
1474
1488
  setup(a) {
1475
- const c = a, o = B(!1);
1476
- ke("transferFoldStatus", o);
1477
- const d = s(c.configOptions), _ = oe(() => d), n = oe(() => d), r = Oe(), E = B(Object.keys(r)), b = B(null), y = (x) => {
1478
- b.value.refreshList(x);
1489
+ const c = a, n = B(!1);
1490
+ ke("transferFoldStatus", n);
1491
+ const d = s(c.configOptions), _ = oe(() => d), o = oe(() => d), r = Oe(), E = B(Object.keys(r)), b = B(null), w = (y) => {
1492
+ b.value.refreshList(y);
1479
1493
  };
1480
- return (x, N) => (u(), V("div", Xt, [
1494
+ return (y, N) => (u(), V("div", Xt, [
1481
1495
  F("div", Kt, [
1482
1496
  D(Wt, {
1483
1497
  "config-options": s(_),
1484
- onOnSearch: y,
1485
- onOnClear: y
1498
+ onOnSearch: w,
1499
+ onOnClear: w
1486
1500
  }, null, 8, ["config-options"]),
1487
- D(we, {
1501
+ D(xe, {
1488
1502
  ref_key: "BSGOAL_BASE_TABLE_REF",
1489
1503
  ref: b,
1490
1504
  operationWidth: a.operationWidth,
1491
- "config-options": s(n),
1505
+ "config-options": s(o),
1492
1506
  data: a.tableData,
1493
1507
  selection: a.selection,
1494
1508
  operation: a.operation,
1509
+ expression: a.expression,
1495
1510
  fetch: a.fetch,
1496
1511
  call: a.call
1497
1512
  }, Ne({ _: 2 }, [
1498
- W(E.value, (w) => ({
1499
- name: w,
1513
+ W(E.value, (x) => ({
1514
+ name: x,
1500
1515
  fn: A(({ row: R = {} }) => [
1501
- ie(x.$slots, w, { row: R })
1516
+ ie(y.$slots, x, { row: R })
1502
1517
  ])
1503
1518
  }))
1504
- ]), 1032, ["operationWidth", "config-options", "data", "selection", "operation", "fetch", "call"])
1519
+ ]), 1032, ["operationWidth", "config-options", "data", "selection", "operation", "expression", "fetch", "call"])
1505
1520
  ])
1506
1521
  ]));
1507
1522
  }
@@ -1512,24 +1527,24 @@ const Qt = { class: "bsgoal-base-tree-fold" }, Zt = {
1512
1527
  props: ["modelValue"],
1513
1528
  emits: ["update:modelValue"],
1514
1529
  setup(a, { emit: c }) {
1515
- let o = B(!0);
1530
+ let n = B(!0);
1516
1531
  const d = () => {
1517
- o.value = !o.value, c("update:modelValue", o.value);
1532
+ n.value = !n.value, c("update:modelValue", n.value);
1518
1533
  };
1519
- return (_, n) => {
1534
+ return (_, o) => {
1520
1535
  const r = g("el-icon");
1521
1536
  return u(), V("div", Qt, [
1522
1537
  F("div", {
1523
- class: ge(["base_tree_fold", { "base_tree_fold--hide": !s(o) }]),
1538
+ class: ge(["base_tree_fold", { "base_tree_fold--hide": !s(n) }]),
1524
1539
  onClick: d
1525
1540
  }, [
1526
1541
  D(r, { color: "#fff" }, {
1527
1542
  default: A(() => [
1528
1543
  G(D(s(mt), null, null, 512), [
1529
- [Q, s(o)]
1544
+ [Q, s(n)]
1530
1545
  ]),
1531
1546
  G(D(s(pt), null, null, 512), [
1532
- [Q, !s(o)]
1547
+ [Q, !s(n)]
1533
1548
  ])
1534
1549
  ]),
1535
1550
  _: 1
@@ -1595,27 +1610,27 @@ const ta = { class: "bsgoal-base-tree" }, aa = { class: "base_tree" }, la = { cl
1595
1610
  },
1596
1611
  emits: ["on-click"],
1597
1612
  setup(a, { emit: c }) {
1598
- const o = a, d = Ee.height, _ = B(""), n = B(null);
1599
- ue(_, (x) => {
1600
- n.value.filter(x);
1613
+ const n = a, d = Ee.height, _ = B(""), o = B(null);
1614
+ ue(_, (y) => {
1615
+ o.value.filter(y);
1601
1616
  });
1602
- const r = (x, N) => x ? N.label.includes(x) : !0, E = B(!0), b = (x, N, w, R) => {
1603
- c("on-click", x, N, w, R);
1604
- }, y = async (x, N, w) => {
1605
- if (x.level === 0) {
1606
- const R = await w.initNode(x);
1617
+ const r = (y, N) => y ? N.label.includes(y) : !0, E = B(!0), b = (y, N, x, R) => {
1618
+ c("on-click", y, N, x, R);
1619
+ }, w = async (y, N, x) => {
1620
+ if (y.level === 0) {
1621
+ const R = await x.initNode(y);
1607
1622
  return N(R || []);
1608
1623
  } else {
1609
- const R = await w.lazyLoad(x);
1624
+ const R = await x.lazyLoad(y);
1610
1625
  N(R || []);
1611
1626
  }
1612
1627
  };
1613
- return (x, N) => {
1614
- const w = g("el-input"), R = g("el-tree");
1628
+ return (y, N) => {
1629
+ const x = g("el-input"), R = g("el-tree");
1615
1630
  return u(), V("div", ta, [
1616
1631
  G((u(), V("div", aa, [
1617
1632
  G(F("div", la, [
1618
- D(w, {
1633
+ D(x, {
1619
1634
  modelValue: _.value,
1620
1635
  "onUpdate:modelValue": N[0] || (N[0] = (h) => _.value = h),
1621
1636
  class: "base_tree_main_input",
@@ -1623,11 +1638,11 @@ const ta = { class: "bsgoal-base-tree" }, aa = { class: "base_tree" }, la = { cl
1623
1638
  }, null, 8, ["modelValue"]),
1624
1639
  D(R, {
1625
1640
  ref_key: "EL_TREE_REF",
1626
- ref: n,
1641
+ ref: o,
1627
1642
  lazy: "",
1628
1643
  "highlight-current": "",
1629
1644
  "empty-text": "暂无数据",
1630
- load: (h, v) => y(h, v, o),
1645
+ load: (h, v) => w(h, v, n),
1631
1646
  "expand-on-click-node": !1,
1632
1647
  props: a.treeProps,
1633
1648
  "filter-node-method": r,
@@ -1685,25 +1700,25 @@ const ua = { class: "bsgoal-base-dialog" }, sa = { class: "base_dialog" }, ra =
1685
1700
  },
1686
1701
  emits: ["update:modelValue", "on-confirm"],
1687
1702
  setup(a, { emit: c }) {
1688
- const o = a, d = B(o.modelValue.value), _ = () => {
1703
+ const n = a, d = B(n.modelValue.value), _ = () => {
1689
1704
  d.value = !1;
1690
- }, n = () => {
1705
+ }, o = () => {
1691
1706
  d.value = !1, c("on-confirm");
1692
1707
  };
1693
1708
  return ue(
1694
- () => o.modelValue,
1709
+ () => n.modelValue,
1695
1710
  (r) => {
1696
1711
  d.value = r;
1697
1712
  }
1698
1713
  ), ue(d, (r) => {
1699
1714
  c("update:modelValue", r);
1700
1715
  }), (r, E) => {
1701
- const b = g("el-button"), y = g("el-dialog");
1716
+ const b = g("el-button"), w = g("el-dialog");
1702
1717
  return u(), V("div", ua, [
1703
1718
  F("div", sa, [
1704
- D(y, {
1719
+ D(w, {
1705
1720
  modelValue: d.value,
1706
- "onUpdate:modelValue": E[0] || (E[0] = (x) => d.value = x),
1721
+ "onUpdate:modelValue": E[0] || (E[0] = (y) => d.value = y),
1707
1722
  "custom-class": "bsgoal_base_dialog_main"
1708
1723
  }, {
1709
1724
  header: A(() => [
@@ -1719,7 +1734,7 @@ const ua = { class: "bsgoal-base-dialog" }, sa = { class: "base_dialog" }, ra =
1719
1734
  }),
1720
1735
  D(b, {
1721
1736
  type: "primary",
1722
- onClick: n
1737
+ onClick: o
1723
1738
  }, {
1724
1739
  default: A(() => [
1725
1740
  K(j(a.confirmTxt), 1)
@@ -1741,16 +1756,16 @@ const ua = { class: "bsgoal-base-dialog" }, sa = { class: "base_dialog" }, ra =
1741
1756
  }
1742
1757
  }), ga = e, ha = pe, Ea = {
1743
1758
  install(a, c = {}) {
1744
- const { exclude: o = [] } = c, d = {
1759
+ const { exclude: n = [] } = c, d = {
1745
1760
  BsgoalBaseForm: Ie,
1746
- BsgoalBaseTable: we,
1761
+ BsgoalBaseTable: xe,
1747
1762
  BsgoalBaseLine: be,
1748
1763
  BsgoalBaseSearchTable: Jt,
1749
1764
  BsgoalBaseTree: oa,
1750
1765
  BsgoalBaseDialog: _a
1751
1766
  };
1752
- for (const [_, n] of Object.entries(d))
1753
- o.includes(_) || a.component(_, n);
1767
+ for (const [_, o] of Object.entries(d))
1768
+ n.includes(_) || a.component(_, o);
1754
1769
  },
1755
1770
  enumType: e,
1756
1771
  useFetch: pe