@bsgoal/common 0.1.0 → 1.0.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 (42) hide show
  1. package/dist/index.mjs +521 -437
  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/dist/style.css +1 -1
  6. package/package.json +5 -3
  7. package/src/App.vue +9 -0
  8. package/src/combines/useComs.js +32 -0
  9. package/src/combines/useFetchs.js +48 -0
  10. package/src/components/bsgoal-base-cascader/demo.vue +317 -0
  11. package/src/components/bsgoal-base-cascader/index.vue +93 -0
  12. package/src/components/bsgoal-base-dialog/demo.vue +50 -0
  13. package/src/components/bsgoal-base-dialog/index.vue +133 -0
  14. package/src/components/bsgoal-base-form/demo.vue +187 -0
  15. package/src/components/bsgoal-base-form/index.vue +499 -0
  16. package/src/components/bsgoal-base-frame/demo.vue +35 -0
  17. package/src/components/bsgoal-base-frame/index.vue +29 -0
  18. package/src/components/bsgoal-base-line/demo.vue +42 -0
  19. package/src/components/bsgoal-base-line/index.vue +54 -0
  20. package/src/components/bsgoal-base-search/demo.vue +217 -0
  21. package/src/components/bsgoal-base-search/index.vue +506 -0
  22. package/src/components/bsgoal-base-search-operation/index.vue +74 -0
  23. package/src/components/bsgoal-base-search-table/demo-table.vue +52 -0
  24. package/src/components/bsgoal-base-search-table/demo.vue +664 -0
  25. package/src/components/bsgoal-base-search-table/index.vue +159 -0
  26. package/src/components/bsgoal-base-table/demo.vue +270 -0
  27. package/src/components/bsgoal-base-table/index.vue +281 -0
  28. package/src/components/bsgoal-base-table-content/index.vue +42 -0
  29. package/src/components/bsgoal-base-table-pagination/index.vue +107 -0
  30. package/src/components/bsgoal-base-tree/demo.vue +113 -0
  31. package/src/components/bsgoal-base-tree/index.vue +213 -0
  32. package/src/components/bsgoal-base-tree-fold/index.vue +65 -0
  33. package/src/components/layout/layout-home.vue +60 -0
  34. package/src/components/layout/layout-left-menu.vue +48 -0
  35. package/src/components/layout/layout-right-container.vue +36 -0
  36. package/src/components/layout/layout-top-header.vue +40 -0
  37. package/src/directives/directiveBase.js +94 -0
  38. package/src/entry.js +35 -0
  39. package/src/enums/enumType.js +32 -0
  40. package/src/main.js +11 -0
  41. package/src/router/index.js +71 -0
  42. package/src/styles/index.css +14 -0
package/dist/index.mjs CHANGED
@@ -1,15 +1,15 @@
1
1
  var ye = 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 we = Object.prototype.hasOwnProperty, Be = Object.prototype.propertyIsEnumerable;
4
+ var Ve = (l, c, u) => c in l ? ye(l, c, { enumerable: !0, configurable: !0, writable: !0, value: u }) : l[c] = u, Ae = (l, c) => {
5
+ for (var u in c || (c = {}))
6
+ we.call(c, u) && Ve(l, u, c[u]);
7
7
  if (Te)
8
- for (var o of Te(c))
9
- Be.call(c, o) && Ve(a, o, c[o]);
10
- return a;
8
+ for (var u of Te(c))
9
+ Be.call(c, u) && Ve(l, u, c[u]);
10
+ return l;
11
11
  };
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";
12
+ import { ref as B, watchEffect as he, unref as s, computed as oe, resolveComponent as g, openBlock as o, createElementBlock as T, createElementVNode as F, withDirectives as G, createBlock as E, 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 Oe, useSlots as ke, createSlots as Ne } from "vue";
13
13
  import { ElMessage as Fe } from "element-plus";
14
14
  const e = {
15
15
  INPUT: "text",
@@ -30,62 +30,63 @@ const e = {
30
30
  TIME_RANGE: "timerange",
31
31
  DATE_TIME: "datetime",
32
32
  DATE_TIME_RANGE: "datetimerange",
33
- OPERATION: "operation"
33
+ OPERATION: "operation",
34
+ CASCADER: "cascader"
34
35
  };
35
36
  let fe = null;
36
- const ve = (a) => {
37
- const c = [], o = [], d = (n = []) => {
38
- const r = n.map((b) => b.width), E = Math.max(...r);
37
+ const ve = (l) => {
38
+ const c = [], u = [], d = (n = []) => {
39
+ const r = n.map((b) => b.width), p = Math.max(...r);
39
40
  n.forEach((b) => {
40
41
  const { labelEl: y } = b;
41
- y.style.width = `${E}px`;
42
+ y.style.width = `${p}px`;
42
43
  });
43
44
  }, _ = () => {
44
- if (a) {
45
- const n = a.querySelectorAll(".el-form-item__label");
45
+ if (l) {
46
+ const n = l.querySelectorAll(".el-form-item__label");
46
47
  if (n && n.length) {
47
48
  let r = 0;
48
- n.forEach((E, b) => {
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);
49
+ n.forEach((p, b) => {
50
+ p.style.width = "initial", p.style.whiteSpace = "nowrap";
51
+ const { x: y = 0, width: w = 0 } = p.getBoundingClientRect(), N = { x: y, width: w, labelEl: p };
52
+ b === 0 && (r = y), y === r ? c.push(N) : u.push(N);
52
53
  });
53
54
  }
54
55
  }
55
56
  };
56
57
  fe && clearTimeout(fe), fe = setTimeout(() => {
57
- _(), d(c), d(o);
58
+ _(), d(c), d(u);
58
59
  }, 50);
59
- }, Ee = {
60
+ }, pe = {
60
61
  /**
61
62
  * 表单自动左对齐
62
63
  */
63
64
  align: {
64
- created(a) {
65
+ created(l) {
65
66
  window.addEventListener("resize", () => {
66
- ve(a);
67
+ ve(l);
67
68
  });
68
69
  },
69
- mounted(a) {
70
- ve(a);
70
+ mounted(l) {
71
+ ve(l);
71
72
  },
72
- unmounted(a) {
73
- window.removeEventListener("resize", ve(a));
73
+ unmounted(l) {
74
+ window.removeEventListener("resize", ve(l));
74
75
  }
75
76
  },
76
77
  /**
77
78
  * 表格自动高度
78
79
  */
79
- height: (a, { value: c = 65, arg: o = "" }) => {
80
- if (a) {
81
- const { y: d = 0 } = a.getBoundingClientRect();
82
- a.style.height = `calc(100vh - ${d + c}px)`;
80
+ height: (l, { value: c = 65, arg: u = "" }) => {
81
+ if (l) {
82
+ const { y: d = 0 } = l.getBoundingClientRect();
83
+ l.style.height = `calc(100vh - ${d + c}px)`;
83
84
  }
84
85
  }
85
86
  };
86
- const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Ue = { key: 1 }, Se = {
87
+ const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Se = { key: 1 }, Ue = {
87
88
  name: "BsgoalBaseForm"
88
- }, Ie = /* @__PURE__ */ Object.assign(Se, {
89
+ }, Ie = /* @__PURE__ */ Object.assign(Ue, {
89
90
  props: {
90
91
  /**
91
92
  * >----------props----------<
@@ -126,24 +127,24 @@ const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Ue = { ke
126
127
  }
127
128
  },
128
129
  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({});
130
+ setup(l, { expose: c, emit: u }) {
131
+ const d = l, _ = B(null), n = pe.align, r = B({});
131
132
  he(() => {
132
- const { configOptions: h, values: v } = d, T = s(h), m = s(v);
133
- T.forEach((C) => {
134
- const { value: k = "", prop: O = "", type: M = "" } = C;
135
- [e.INPUT, e.INPUT_TEXT_AREA].includes(M), r.value[O] = m[O] || k;
133
+ const { configOptions: h, values: v } = d, V = s(h), f = s(v);
134
+ V.forEach((C) => {
135
+ const { value: O = "", prop: k = "", type: M = "" } = C;
136
+ [e.INPUT, e.INPUT_TEXT_AREA].includes(M), r.value[k] = f[k] || O;
136
137
  });
137
138
  });
138
- const E = oe(() => {
139
+ const p = oe(() => {
139
140
  const { configOptions: h } = d;
140
- return s(h).map((m) => {
141
- let { rules: C = !1, label: k = "" } = m;
142
- const O = { required: !0, message: `${k}不能为空`, trigger: "blur" };
143
- return C && (typeof C == "boolean" ? C = [O] : Array.isArray(C) ? C = [O, ...C] : C = [O, C]), m.rules = C, m;
141
+ return s(h).map((f) => {
142
+ let { rules: C = !1, label: O = "" } = f;
143
+ const k = { required: !0, message: `${O}不能为空`, trigger: "blur" };
144
+ return C && (typeof C == "boolean" ? C = [k] : Array.isArray(C) ? C = [k, ...C] : C = [k, C]), f.rules = C, f;
144
145
  });
145
- }), b = (h = "", v = "", T = "") => {
146
- if (!T)
146
+ }), b = (h = "", v = "", V = "") => {
147
+ if (!V)
147
148
  switch (h) {
148
149
  case e.INPUT:
149
150
  case e.INPUT_TEXT_AREA:
@@ -164,7 +165,7 @@ const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Ue = { ke
164
165
  case e.MONTH_RANGE:
165
166
  return ["开始月份", "结束月份"];
166
167
  }
167
- return T;
168
+ return V;
168
169
  }, y = (h = "", v = "") => {
169
170
  if (!v)
170
171
  switch (h) {
@@ -187,51 +188,51 @@ const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Ue = { ke
187
188
  return "YYYY-MM-DD HH:mm:ss";
188
189
  }
189
190
  return v;
190
- }, x = () => {
191
- const h = s(r), { configOptions: v } = d, T = s(v);
192
- for (const m of T) {
193
- const { type: C = "", range: k = [], prop: O = "" } = m;
194
- if (C.endsWith("range") && k && k.length === 2) {
195
- const { 0: M = "", 1: P = "" } = h[O], { 0: U = "", 1: S = "" } = k;
196
- h[U] = M, h[S] = P;
191
+ }, w = () => {
192
+ const h = s(r), { configOptions: v } = d, V = s(v);
193
+ for (const f of V) {
194
+ const { type: C = "", range: O = [], prop: k = "" } = f;
195
+ if (C.endsWith("range") && O && O.length === 2) {
196
+ const { 0: M = "", 1: P = "" } = h[k], { 0: S = "", 1: U = "" } = O;
197
+ h[S] = M, h[U] = P;
197
198
  }
198
199
  }
199
- return o("on-form", h), h;
200
+ return u("on-form", h), h;
200
201
  }, N = () => {
201
- _.value.resetFields(), o("on-clear", r.value);
202
- }, w = (h, v) => {
203
- const T = {
202
+ _.value.resetFields(), u("on-clear", r.value);
203
+ }, x = (h, v) => {
204
+ const V = {
204
205
  type: h,
205
206
  prop: v,
206
207
  value: r.value[v] || ""
207
208
  };
208
- o("on-change", T);
209
+ u("on-change", V);
209
210
  };
210
211
  return c({
211
212
  triggerOperationClear: N,
212
- triggerOperationForm: x,
213
+ triggerOperationForm: w,
213
214
  validateForm: (h = () => {
214
215
  }) => {
215
- _.value.validate((v = !1, T = {}) => {
216
+ _.value.validate((v = !1, V = {}) => {
216
217
  if (v) {
217
- const m = x();
218
- h(m);
218
+ const f = w();
219
+ h(f);
219
220
  } else {
220
- h(!1), console.log("field", T);
221
- const m = Object.keys(T)[0], {
222
- [m]: {
221
+ h(!1), console.log("field", V);
222
+ const f = Object.keys(V)[0], {
223
+ [f]: {
223
224
  0: { message: C = "" }
224
225
  }
225
- } = T;
226
+ } = V;
226
227
  Fe.error(C);
227
228
  }
228
229
  });
229
230
  }
230
231
  }), (h, v) => {
231
- const T = g("el-input"), m = g("el-input-number"), C = g("el-radio"), k = g("el-radio-group"), O = g("el-option"), M = g("el-select"), P = g("el-slider"), U = g("el-switch"), S = g("el-date-picker"), X = g("el-time-picker"), Z = g("el-checkbox"), le = g("el-checkbox-group"), ee = g("el-form-item"), de = g("el-col"), _e = g("el-row"), me = g("el-form");
232
- return u(), V("div", Me, [
232
+ const V = g("el-input"), f = g("el-input-number"), C = g("el-radio"), O = g("el-radio-group"), k = g("el-option"), M = g("el-select"), P = g("el-slider"), S = g("el-switch"), U = g("el-date-picker"), X = g("el-time-picker"), Z = g("el-checkbox"), le = g("el-checkbox-group"), ee = g("el-form-item"), de = g("el-col"), _e = g("el-row"), me = g("el-form");
233
+ return o(), T("div", Me, [
233
234
  F("div", Re, [
234
- G((u(), p(me, {
235
+ G((o(), E(me, {
235
236
  ref_key: "EL_FORM_REF",
236
237
  ref: _,
237
238
  "label-suffix": ":",
@@ -240,10 +241,10 @@ const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Ue = { ke
240
241
  default: A(() => [
241
242
  D(_e, null, {
242
243
  default: A(() => [
243
- (u(!0), V(I, null, W(s(E), ({
244
+ (o(!0), T(I, null, W(s(p), ({
244
245
  label: L = "",
245
- prop: f = "",
246
- type: l = "text",
246
+ prop: m = "",
247
+ type: a = "text",
247
248
  placeholder: i = "",
248
249
  readonly: z = !1,
249
250
  clearable: se = !0,
@@ -253,54 +254,54 @@ const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Ue = { ke
253
254
  range: q = [],
254
255
  format: Y = "",
255
256
  rules: J = []
256
- } = {}, te) => (u(), p(de, {
257
+ } = {}, te) => (o(), E(de, {
257
258
  key: te,
258
259
  xs: 24,
259
260
  sm: 24,
260
- md: a.medium
261
+ md: l.medium
261
262
  }, {
262
263
  default: A(() => [
263
264
  D(ee, {
264
265
  label: L,
265
- prop: f,
266
+ prop: m,
266
267
  rules: J
267
268
  }, {
268
269
  default: A(() => [
269
- z ? (u(), V("div", Ue, j(r.value[f]), 1)) : (u(), V(I, { key: 0 }, [
270
- l === s(e).INPUT ? (u(), p(T, {
270
+ z ? (o(), T("div", Se, j(r.value[m]), 1)) : (o(), T(I, { key: 0 }, [
271
+ a === s(e).INPUT ? (o(), E(V, {
271
272
  key: 0,
272
- modelValue: r.value[f],
273
- "onUpdate:modelValue": (t) => r.value[f] = t,
274
- placeholder: b(l, L, i),
273
+ modelValue: r.value[m],
274
+ "onUpdate:modelValue": (t) => r.value[m] = t,
275
+ placeholder: b(a, L, i),
275
276
  clearable: se,
276
- onChange: (t) => w(l, f)
277
+ onChange: (t) => x(a, m)
277
278
  }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : $("", !0),
278
- l === s(e).INPUT_TEXT_AREA ? (u(), p(T, {
279
+ a === s(e).INPUT_TEXT_AREA ? (o(), E(V, {
279
280
  key: 1,
280
- modelValue: r.value[f],
281
- "onUpdate:modelValue": (t) => r.value[f] = t,
281
+ modelValue: r.value[m],
282
+ "onUpdate:modelValue": (t) => r.value[m] = t,
282
283
  type: "textarea",
283
284
  rows: re,
284
285
  clearable: se,
285
- placeholder: b(l, L, i),
286
- onChange: (t) => w(l, f)
286
+ placeholder: b(a, L, i),
287
+ onChange: (t) => x(a, m)
287
288
  }, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : $("", !0),
288
- l === s(e).INPUT_NUMBER ? (u(), p(m, {
289
+ a === s(e).INPUT_NUMBER ? (o(), E(f, {
289
290
  key: 2,
290
291
  modelValue: h.num,
291
292
  "onUpdate:modelValue": v[0] || (v[0] = (t) => h.num = t),
292
293
  min: ce,
293
294
  max: ne,
294
- onChange: w
295
+ onChange: x
295
296
  }, null, 8, ["modelValue", "min", "max"])) : $("", !0),
296
- l === s(e).RADIO ? (u(), p(k, {
297
+ a === s(e).RADIO ? (o(), E(O, {
297
298
  key: 3,
298
- modelValue: r.value[f],
299
- "onUpdate:modelValue": (t) => r.value[f] = t,
300
- onChange: (t) => w(l, f)
299
+ modelValue: r.value[m],
300
+ "onUpdate:modelValue": (t) => r.value[m] = t,
301
+ onChange: (t) => x(a, m)
301
302
  }, {
302
303
  default: A(() => [
303
- (u(!0), V(I, null, W(q, (t, H) => (u(), p(C, {
304
+ (o(!0), T(I, null, W(q, (t, H) => (o(), E(C, {
304
305
  key: H,
305
306
  label: t.value
306
307
  }, {
@@ -312,15 +313,15 @@ const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Ue = { ke
312
313
  ]),
313
314
  _: 2
314
315
  }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : $("", !0),
315
- l === s(e).SELECT ? (u(), p(M, {
316
+ a === s(e).SELECT ? (o(), E(M, {
316
317
  key: 4,
317
- modelValue: r.value[f],
318
- "onUpdate:modelValue": (t) => r.value[f] = t,
319
- placeholder: b(l, L, i),
320
- onChange: (t) => w(l, f)
318
+ modelValue: r.value[m],
319
+ "onUpdate:modelValue": (t) => r.value[m] = t,
320
+ placeholder: b(a, L, i),
321
+ onChange: (t) => x(a, m)
321
322
  }, {
322
323
  default: A(() => [
323
- (u(!0), V(I, null, W(q, (t, H) => (u(), p(O, {
324
+ (o(!0), T(I, null, W(q, (t, H) => (o(), E(k, {
324
325
  key: H,
325
326
  label: t.label,
326
327
  value: t.value
@@ -328,75 +329,75 @@ const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Ue = { ke
328
329
  ]),
329
330
  _: 2
330
331
  }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : $("", !0),
331
- l === s(e).SLIDER ? (u(), p(P, {
332
+ a === s(e).SLIDER ? (o(), E(P, {
332
333
  key: 5,
333
- modelValue: r.value[f],
334
- "onUpdate:modelValue": (t) => r.value[f] = t,
334
+ modelValue: r.value[m],
335
+ "onUpdate:modelValue": (t) => r.value[m] = t,
335
336
  min: ce,
336
337
  max: ne,
337
- onChange: (t) => w(l, f)
338
+ onChange: (t) => x(a, m)
338
339
  }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : $("", !0),
339
- l === s(e).SWITCH ? (u(), p(U, {
340
+ a === s(e).SWITCH ? (o(), E(S, {
340
341
  key: 6,
341
- modelValue: r.value[f],
342
- "onUpdate:modelValue": (t) => r.value[f] = t,
342
+ modelValue: r.value[m],
343
+ "onUpdate:modelValue": (t) => r.value[m] = t,
343
344
  "active-value": q[0] || !0,
344
345
  "inactive-value": q[1] || !1,
345
- onChange: (t) => w(l, f)
346
+ onChange: (t) => x(a, m)
346
347
  }, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : $("", !0),
347
348
  [s(e).DATE, s(e).MONTH, s(e).YEAR, s(e).DATE_TIME].includes(
348
- l
349
- ) ? (u(), p(S, {
349
+ a
350
+ ) ? (o(), E(U, {
350
351
  key: 7,
351
- modelValue: r.value[f],
352
- "onUpdate:modelValue": (t) => r.value[f] = t,
353
- format: y(l, Y),
354
- "value-format": y(l, Y),
355
- type: l,
356
- placeholder: b(l, L, i),
357
- onChange: (t) => w(l, f)
352
+ modelValue: r.value[m],
353
+ "onUpdate:modelValue": (t) => r.value[m] = t,
354
+ format: y(a, Y),
355
+ "value-format": y(a, Y),
356
+ type: a,
357
+ placeholder: b(a, L, i),
358
+ onChange: (t) => x(a, m)
358
359
  }, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : $("", !0),
359
360
  [
360
361
  s(e).DATE_RANGE,
361
362
  s(e).MONTH_RANGE,
362
363
  s(e).DATE_TIME_RANGE
363
- ].includes(l) ? (u(), p(S, {
364
+ ].includes(a) ? (o(), E(U, {
364
365
  key: 8,
365
- modelValue: r.value[f],
366
- "onUpdate:modelValue": (t) => r.value[f] = t,
367
- type: l,
368
- "value-format": y(l, Y),
369
- "start-placeholder": b(l, L, i)[0],
370
- "end-placeholder": b(l, L, i)[1],
371
- onChange: (t) => w(l, f)
366
+ modelValue: r.value[m],
367
+ "onUpdate:modelValue": (t) => r.value[m] = t,
368
+ type: a,
369
+ "value-format": y(a, Y),
370
+ "start-placeholder": b(a, L, i)[0],
371
+ "end-placeholder": b(a, L, i)[1],
372
+ onChange: (t) => x(a, m)
372
373
  }, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : $("", !0),
373
- [s(e).TIME].includes(l) ? (u(), p(X, {
374
+ [s(e).TIME].includes(a) ? (o(), E(X, {
374
375
  key: 9,
375
- modelValue: r.value[f],
376
- "onUpdate:modelValue": (t) => r.value[f] = t,
376
+ modelValue: r.value[m],
377
+ "onUpdate:modelValue": (t) => r.value[m] = t,
377
378
  "arrow-control": "",
378
- "value-format": y(l, Y),
379
- placeholder: b(l, L, i),
380
- onChange: (t) => w(l, f)
379
+ "value-format": y(a, Y),
380
+ placeholder: b(a, L, i),
381
+ onChange: (t) => x(a, m)
381
382
  }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : $("", !0),
382
- [s(e).TIME_RANGE].includes(l) ? (u(), p(X, {
383
+ [s(e).TIME_RANGE].includes(a) ? (o(), E(X, {
383
384
  key: 10,
384
- modelValue: r.value[f],
385
- "onUpdate:modelValue": (t) => r.value[f] = t,
385
+ modelValue: r.value[m],
386
+ "onUpdate:modelValue": (t) => r.value[m] = t,
386
387
  "is-range": "",
387
- "value-format": y(l, Y),
388
- "start-placeholder": b(l, L, i)[0],
389
- "end-placeholder": b(l, L, i)[1],
390
- onChange: (t) => w(l, f)
388
+ "value-format": y(a, Y),
389
+ "start-placeholder": b(a, L, i)[0],
390
+ "end-placeholder": b(a, L, i)[1],
391
+ onChange: (t) => x(a, m)
391
392
  }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : $("", !0),
392
- [s(e).CHECKBOX].includes(l) ? (u(), p(le, {
393
+ [s(e).CHECKBOX].includes(a) ? (o(), E(le, {
393
394
  key: 11,
394
- modelValue: r.value[f],
395
- "onUpdate:modelValue": (t) => r.value[f] = t,
396
- onChange: (t) => w(l, f)
395
+ modelValue: r.value[m],
396
+ "onUpdate:modelValue": (t) => r.value[m] = t,
397
+ onChange: (t) => x(a, m)
397
398
  }, {
398
399
  default: A(() => [
399
- (u(!0), V(I, null, W(q, (t, H) => (u(), p(Z, {
400
+ (o(!0), T(I, null, W(q, (t, H) => (o(), E(Z, {
400
401
  key: H,
401
402
  label: t.value
402
403
  }, {
@@ -408,7 +409,7 @@ const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Ue = { ke
408
409
  ]),
409
410
  _: 2
410
411
  }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : $("", !0),
411
- [].includes(l) ? (u(), V(I, { key: 12 }, [], 64)) : $("", !0)
412
+ [].includes(a) ? (o(), T(I, { key: 12 }, [], 64)) : $("", !0)
412
413
  ], 64))
413
414
  ]),
414
415
  _: 2
@@ -438,9 +439,9 @@ const Pe = { class: "bsgoal-base-table-content" }, Le = { class: "bas_tabl_conte
438
439
  default: ""
439
440
  }
440
441
  },
441
- setup(a) {
442
- return (c, o) => (u(), V("div", Pe, [
443
- F("div", Le, j(a.data), 1)
442
+ setup(l) {
443
+ return (c, u) => (o(), T("div", Pe, [
444
+ F("div", Le, j(l.data), 1)
444
445
  ]));
445
446
  }
446
447
  });
@@ -606,27 +607,27 @@ const Ge = { class: "bsgoal-base-table-pagination" }, je = { class: "base_table_
606
607
  }
607
608
  },
608
609
  emits: ["on-size-change", "on-current-change"],
609
- setup(a, { emit: c }) {
610
- const o = (n = 0) => {
610
+ setup(l, { emit: c }) {
611
+ const u = (n = 0) => {
611
612
  c("on-size-change", n);
612
613
  }, d = (n = 1) => {
613
614
  c("on-current-change", n);
614
615
  }, _ = B(1);
615
616
  return (n, r) => {
616
- const E = g("el-pagination"), b = g("el-config-provider");
617
- return u(), V("div", Ge, [
617
+ const p = g("el-pagination"), b = g("el-config-provider");
618
+ return o(), T("div", Ge, [
618
619
  F("div", je, [
619
620
  D(b, { locale: s(He) }, {
620
621
  default: A(() => [
621
- D(E, {
622
+ D(p, {
622
623
  background: "",
623
624
  layout: "total, sizes, prev, pager, next, jumper",
624
625
  "current-page": _.value,
625
626
  "onUpdate:currentPage": r[0] || (r[0] = (y) => _.value = y),
626
- "page-sizes": a.pageSizes,
627
- "page-size": a.pageSize,
628
- total: a.total,
629
- onSizeChange: o,
627
+ "page-sizes": l.pageSizes,
628
+ "page-size": l.pageSize,
629
+ total: l.total,
630
+ onSizeChange: u,
630
631
  onCurrentChange: d
631
632
  }, {
632
633
  next: A(() => [
@@ -641,8 +642,8 @@ const Ge = { class: "bsgoal-base-table-pagination" }, je = { class: "base_table_
641
642
  ]);
642
643
  };
643
644
  }
644
- }), qe = (a = null, { expression: c = 65, arg: o = {} } = {}) => {
645
- const d = s(a);
645
+ }), qe = (l = null, { expression: c = 75, arg: u = {} } = {}) => {
646
+ const d = s(l);
646
647
  if (d) {
647
648
  const _ = d.querySelector(".el-table");
648
649
  _ && Ce(() => {
@@ -650,28 +651,28 @@ const Ge = { class: "bsgoal-base-table-pagination" }, je = { class: "base_table_
650
651
  _.style.height = `calc(100vh - ${n + c}px)`;
651
652
  });
652
653
  }
653
- }, pe = (a = Promise.resolve(), c = null, o = B(!1), d = B(null)) => {
654
+ }, Ee = (l = Promise.resolve(), c = null, u = B(!1), d = B(null)) => {
654
655
  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;
656
+ return u.value = !0, l.then((n = {}) => {
657
+ const { data: r = {}, message: p = "" } = n;
658
+ d.value = r, _.value = p, c && c(!0, r), u.value = !1;
658
659
  }).catch((n = {}) => {
659
660
  if (typeof n == "object") {
660
661
  const { message: r = "" } = n;
661
662
  _.value = r;
662
663
  } else
663
664
  _.value = n;
664
- c(!1, n), o.value = !1;
665
+ c(!1, n), u.value = !1;
665
666
  }).finally(() => {
666
- o.value = !1;
667
- }), { data: d, message: _, loading: o };
667
+ u.value = !1;
668
+ }), { data: d, message: _, loading: u };
668
669
  };
669
670
  const Je = { class: "bsgoal-base-table" }, Qe = { class: "base_table" }, Ze = {
670
671
  key: 0,
671
672
  class: "base_table_menu"
672
673
  }, et = {
673
674
  name: "BsgoalBaseTable"
674
- }, we = /* @__PURE__ */ Object.assign(et, {
675
+ }, xe = /* @__PURE__ */ Object.assign(et, {
675
676
  props: {
676
677
  /**
677
678
  * >----------props----------<
@@ -749,53 +750,60 @@ const Je = { class: "bsgoal-base-table" }, Qe = { class: "base_table" }, Ze = {
749
750
  rows: "rows",
750
751
  total: "total"
751
752
  })
753
+ },
754
+ /**
755
+ * 表格高度 下边距值
756
+ */
757
+ expression: {
758
+ type: [Number],
759
+ default: 75
752
760
  }
753
761
  },
754
- 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
+ setup(l, { expose: c }) {
763
+ const u = l, d = oe(() => {
764
+ const { configOptions: f = [], operation: C = !1, operationWidth: O = 0 } = u, k = s(f), M = [];
757
765
  return C && M.push({
758
766
  label: "操作",
759
767
  fixed: "right",
760
768
  prop: "operation",
761
- width: k
762
- }), [...O, ...M];
769
+ width: O
770
+ }), [...k, ...M];
763
771
  }), _ = B(null), n = $e("transferFoldStatus");
764
772
  he(() => {
765
- const m = n ? n.value : !1;
766
- qe(_, { arg: m });
773
+ const f = n ? n.value : !1, C = s(u.expression);
774
+ qe(_, { arg: f, expression: C });
767
775
  });
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);
776
+ const r = B(1), p = B(10), b = B(0), y = B({}), w = B(u.loading), N = B(u.data), x = B({}), R = () => {
777
+ const { fetch: f, call: C, mapProps: O } = u, k = y.value, M = r.value, P = p.value, S = Ae({}, k), U = s(O);
778
+ S[U.currentPage] = M, S[U.pageSize] = P, Ee(f(S), C, w, x);
771
779
  };
772
- ue(w, (m) => {
773
- const { mapProps: C } = o, k = s(C);
774
- N.value = m[k.rows], b.value = m[k.total];
780
+ ue(x, (f) => {
781
+ const { mapProps: C } = u, O = s(C);
782
+ N.value = f[O.rows], b.value = f[O.total];
775
783
  });
776
- const h = (m = {}) => {
777
- y.value = m, r.value = 1, R();
778
- }, v = (m = 1) => {
779
- r.value = m;
780
- }, T = (m = 10) => {
781
- E.value = m;
784
+ const h = (f = {}) => {
785
+ y.value = f, r.value = 1, R();
786
+ }, v = (f = 1) => {
787
+ r.value = f;
788
+ }, V = (f = 10) => {
789
+ p.value = f;
782
790
  };
783
- return ue([r, E], () => {
791
+ return ue([r, p], () => {
784
792
  R();
785
793
  }), c({
786
794
  refreshList: h
787
- }), (m, C) => {
788
- const k = g("el-table-column"), O = g("el-table"), M = De("loading");
789
- return u(), V("div", Je, [
795
+ }), (f, C) => {
796
+ const O = g("el-table-column"), k = g("el-table"), M = De("loading");
797
+ return o(), T("div", Je, [
790
798
  F("div", Qe, [
791
- m.$slots.menu ? (u(), V("div", Ze, [
792
- ie(m.$slots, "menu")
799
+ f.$slots.menu ? (o(), T("div", Ze, [
800
+ ie(f.$slots, "menu")
793
801
  ])) : $("", !0),
794
802
  F("div", {
795
803
  ref_key: "EL_TABLE_WRAP_REF",
796
804
  ref: _
797
805
  }, [
798
- G((u(), p(O, {
806
+ G((o(), E(k, {
799
807
  stripe: "",
800
808
  border: "",
801
809
  "highlight-current-row": "",
@@ -810,22 +818,22 @@ const Je = { class: "bsgoal-base-table" }, Qe = { class: "base_table" }, Ze = {
810
818
  }, {
811
819
  empty: A(() => []),
812
820
  default: A(() => [
813
- a.selection ? (u(), p(k, {
821
+ l.selection ? (o(), E(O, {
814
822
  key: 0,
815
823
  fixed: "left",
816
824
  type: "selection",
817
825
  width: "40"
818
826
  })) : $("", !0),
819
- (u(!0), V(I, null, W(s(d), ({ prop: P = "", label: U = "", align: S = "center", width: X = "", fixed: Z = !1 } = {}, le) => (u(), p(k, {
827
+ (o(!0), T(I, null, W(s(d), ({ prop: P = "", label: S = "", align: U = "center", width: X = "", fixed: Z = !1 } = {}, le) => (o(), E(O, {
820
828
  key: le,
821
- label: U,
822
- align: S,
829
+ label: S,
830
+ align: U,
823
831
  width: X,
824
832
  fixed: Z,
825
- "min-width": `${U.length * 14 + 24}px`
833
+ "min-width": `${S.length * 14 + 24}px`
826
834
  }, {
827
835
  default: A(({ row: ee }) => [
828
- ie(m.$slots, P, { row: ee }, () => [
836
+ ie(f.$slots, P, { row: ee }, () => [
829
837
  D(Ye, {
830
838
  data: ee[P]
831
839
  }, null, 8, ["data"])
@@ -836,13 +844,13 @@ const Je = { class: "bsgoal-base-table" }, Qe = { class: "base_table" }, Ze = {
836
844
  ]),
837
845
  _: 3
838
846
  }, 8, ["data", "header-cell-style"])), [
839
- [M, x.value]
847
+ [M, w.value]
840
848
  ])
841
849
  ], 512),
842
850
  D(Ke, {
843
851
  total: b.value,
844
852
  onOnCurrentChange: v,
845
- onOnSizeChange: T
853
+ onOnSizeChange: V
846
854
  }, null, 8, ["total"])
847
855
  ])
848
856
  ]);
@@ -861,22 +869,22 @@ const tt = {
861
869
  default: !1
862
870
  }
863
871
  },
864
- setup(a) {
865
- return (c, o) => (u(), V("div", {
866
- class: ge(["bsgoal-base-line", { "bsgoal-base-line__vertical": a.vertical }])
872
+ setup(l) {
873
+ return (c, u) => (o(), T("div", {
874
+ class: ge(["bsgoal-base-line", { "bsgoal-base-line__vertical": l.vertical }])
867
875
  }, [
868
876
  F("div", {
869
- class: ge(["base_line", { base_line__vertical: a.vertical }])
877
+ class: ge(["base_line", { base_line__vertical: l.vertical }])
870
878
  }, null, 2)
871
879
  ], 2));
872
880
  }
873
881
  });
874
882
  /*! Element Plus Icons Vue v2.1.0 */
875
- var ae = (a, c) => {
876
- let o = a.__vccOpts || a;
883
+ var ae = (l, c) => {
884
+ let u = l.__vccOpts || l;
877
885
  for (let [d, _] of c)
878
- o[d] = _;
879
- return o;
886
+ u[d] = _;
887
+ return u;
880
888
  }, at = {
881
889
  name: "ArrowDown"
882
890
  }, lt = {
@@ -894,8 +902,8 @@ var ae = (a, c) => {
894
902
  ), ot = [
895
903
  nt
896
904
  ];
897
- function ut(a, c, o, d, _, n) {
898
- return u(), V("svg", lt, ot);
905
+ function ut(l, c, u, d, _, n) {
906
+ return o(), T("svg", lt, ot);
899
907
  }
900
908
  var st = /* @__PURE__ */ ae(at, [["render", ut], ["__file", "arrow-down.vue"]]), rt = {
901
909
  name: "ArrowLeft"
@@ -914,8 +922,8 @@ var st = /* @__PURE__ */ ae(at, [["render", ut], ["__file", "arrow-down.vue"]]),
914
922
  ), dt = [
915
923
  it
916
924
  ];
917
- function _t(a, c, o, d, _, n) {
918
- return u(), V("svg", ct, dt);
925
+ function _t(l, c, u, d, _, n) {
926
+ return o(), T("svg", ct, dt);
919
927
  }
920
928
  var mt = /* @__PURE__ */ ae(rt, [["render", _t], ["__file", "arrow-left.vue"]]), ft = {
921
929
  name: "ArrowRight"
@@ -934,10 +942,10 @@ var mt = /* @__PURE__ */ ae(rt, [["render", _t], ["__file", "arrow-left.vue"]]),
934
942
  ), ht = [
935
943
  gt
936
944
  ];
937
- function Et(a, c, o, d, _, n) {
938
- return u(), V("svg", vt, ht);
945
+ function pt(l, c, u, d, _, n) {
946
+ return o(), T("svg", vt, ht);
939
947
  }
940
- var pt = /* @__PURE__ */ ae(ft, [["render", Et], ["__file", "arrow-right.vue"]]), bt = {
948
+ var Et = /* @__PURE__ */ ae(ft, [["render", pt], ["__file", "arrow-right.vue"]]), bt = {
941
949
  name: "ArrowUp"
942
950
  }, Tt = {
943
951
  xmlns: "http://www.w3.org/2000/svg",
@@ -954,15 +962,15 @@ var pt = /* @__PURE__ */ ae(ft, [["render", Et], ["__file", "arrow-right.vue"]])
954
962
  ), At = [
955
963
  Vt
956
964
  ];
957
- function Ct(a, c, o, d, _, n) {
958
- return u(), V("svg", Tt, At);
965
+ function Ct(l, c, u, d, _, n) {
966
+ return o(), T("svg", Tt, At);
959
967
  }
960
- var $t = /* @__PURE__ */ ae(bt, [["render", Ct], ["__file", "arrow-up.vue"]]), wt = {
968
+ var $t = /* @__PURE__ */ ae(bt, [["render", Ct], ["__file", "arrow-up.vue"]]), xt = {
961
969
  name: "Delete"
962
970
  }, yt = {
963
971
  xmlns: "http://www.w3.org/2000/svg",
964
972
  viewBox: "0 0 1024 1024"
965
- }, xt = /* @__PURE__ */ F(
973
+ }, wt = /* @__PURE__ */ F(
966
974
  "path",
967
975
  {
968
976
  fill: "currentColor",
@@ -972,12 +980,12 @@ var $t = /* @__PURE__ */ ae(bt, [["render", Ct], ["__file", "arrow-up.vue"]]), w
972
980
  -1
973
981
  /* HOISTED */
974
982
  ), Bt = [
975
- xt
983
+ wt
976
984
  ];
977
- function Dt(a, c, o, d, _, n) {
978
- return u(), V("svg", yt, Bt);
985
+ function Dt(l, c, u, d, _, n) {
986
+ return o(), T("svg", yt, Bt);
979
987
  }
980
- var kt = /* @__PURE__ */ ae(wt, [["render", Dt], ["__file", "delete.vue"]]), Ot = {
988
+ var Ot = /* @__PURE__ */ ae(xt, [["render", Dt], ["__file", "delete.vue"]]), kt = {
981
989
  name: "Search"
982
990
  }, Nt = {
983
991
  xmlns: "http://www.w3.org/2000/svg",
@@ -994,18 +1002,13 @@ var kt = /* @__PURE__ */ ae(wt, [["render", Dt], ["__file", "delete.vue"]]), Ot
994
1002
  ), Mt = [
995
1003
  Ft
996
1004
  ];
997
- function Rt(a, c, o, d, _, n) {
998
- return u(), V("svg", Nt, Mt);
1005
+ function Rt(l, c, u, d, _, n) {
1006
+ return o(), T("svg", Nt, Mt);
999
1007
  }
1000
- var Ut = /* @__PURE__ */ ae(Ot, [["render", Rt], ["__file", "search.vue"]]);
1001
- const St = (a, c) => {
1002
- const o = a.__vccOpts || a;
1003
- for (const [d, _] of c)
1004
- o[d] = _;
1005
- return o;
1006
- }, It = { class: "bsgoal-base-search-operation" }, Pt = {
1008
+ var St = /* @__PURE__ */ ae(kt, [["render", Rt], ["__file", "search.vue"]]);
1009
+ const Ut = { class: "bsgoal-base-search-operation" }, It = {
1007
1010
  name: "BsgoalBaseSearchOperation"
1008
- }, Lt = /* @__PURE__ */ Object.assign(Pt, {
1011
+ }, Pt = /* @__PURE__ */ Object.assign(It, {
1009
1012
  props: {
1010
1013
  /**
1011
1014
  * 是否显示折叠按钮
@@ -1016,16 +1019,16 @@ const St = (a, c) => {
1016
1019
  }
1017
1020
  },
1018
1021
  emits: ["on-fold"],
1019
- setup(a, { emit: c }) {
1020
- const o = B(!1), d = () => {
1021
- o.value = !s(o), c("on-fold", o.value);
1022
+ setup(l, { emit: c }) {
1023
+ const u = B(!1), d = () => {
1024
+ u.value = !s(u), c("on-fold", u.value);
1022
1025
  };
1023
1026
  return (_, n) => {
1024
- const r = g("el-button"), E = g("el-icon");
1025
- return u(), V("div", It, [
1027
+ const r = g("el-button"), p = g("el-icon");
1028
+ return o(), T("div", Ut, [
1026
1029
  D(r, {
1027
1030
  type: "primary",
1028
- icon: s(Ut),
1031
+ icon: s(St),
1029
1032
  onClick: n[0] || (n[0] = (b) => _.$emit("on-search"))
1030
1033
  }, {
1031
1034
  default: A(() => [
@@ -1034,7 +1037,7 @@ const St = (a, c) => {
1034
1037
  _: 1
1035
1038
  }, 8, ["icon"]),
1036
1039
  D(r, {
1037
- icon: s(kt),
1040
+ icon: s(Ot),
1038
1041
  onClick: n[1] || (n[1] = (b) => _.$emit("on-clear"))
1039
1042
  }, {
1040
1043
  default: A(() => [
@@ -1042,20 +1045,20 @@ const St = (a, c) => {
1042
1045
  ]),
1043
1046
  _: 1
1044
1047
  }, 8, ["icon"]),
1045
- a.fold ? (u(), V("div", {
1048
+ l.fold ? (o(), T("div", {
1046
1049
  key: 0,
1047
1050
  class: "operation_fold",
1048
1051
  style: { color: "var(--el-color-primary)" },
1049
1052
  onClick: d
1050
1053
  }, [
1051
- K(j(o.value ? "收起" : "展开"), 1),
1052
- D(E, { color: "#409EFC" }, {
1054
+ K(j(u.value ? "收起" : "展开"), 1),
1055
+ D(p, { color: "#409EFC" }, {
1053
1056
  default: A(() => [
1054
1057
  G(D(s($t), null, null, 512), [
1055
- [Q, o.value]
1058
+ [Q, u.value]
1056
1059
  ]),
1057
1060
  G(D(s(st), null, null, 512), [
1058
- [Q, !o.value]
1061
+ [Q, !u.value]
1059
1062
  ])
1060
1063
  ]),
1061
1064
  _: 1
@@ -1064,10 +1067,67 @@ const St = (a, c) => {
1064
1067
  ]);
1065
1068
  };
1066
1069
  }
1067
- }), zt = /* @__PURE__ */ St(Lt, [["__scopeId", "data-v-b5796be8"]]);
1068
- const Yt = { class: "bsgoal-base-search" }, Ht = { class: "base_search" }, Gt = { key: 1 }, jt = {
1070
+ });
1071
+ const Lt = { class: "bsgoal-base-cascader" }, zt = {
1072
+ name: "BsgoalBaseCascader"
1073
+ }, Yt = /* @__PURE__ */ Object.assign(zt, {
1074
+ props: {
1075
+ /**
1076
+ * 绑定的值
1077
+ */
1078
+ modelValue: {
1079
+ type: [Array],
1080
+ default: () => []
1081
+ },
1082
+ /**
1083
+ * 数据
1084
+ * {
1085
+ * value: '',
1086
+ * label: '',
1087
+ * children: [
1088
+ *
1089
+ * ]
1090
+ * }
1091
+ */
1092
+ dataOptions: {
1093
+ type: [Array],
1094
+ default: () => []
1095
+ },
1096
+ /**
1097
+ * placeholder 输入框占位文本
1098
+ */
1099
+ placeholder: {
1100
+ type: [String],
1101
+ default: ""
1102
+ }
1103
+ },
1104
+ emits: ["update:model-value", "on-change"],
1105
+ setup(l, { emit: c }) {
1106
+ const u = B({
1107
+ checkStrictly: !0,
1108
+ multiple: !1
1109
+ }), d = (_) => {
1110
+ c("update:model-value", _), c("on-change", _);
1111
+ };
1112
+ return (_, n) => {
1113
+ const r = g("el-cascader");
1114
+ return o(), T("div", Lt, [
1115
+ D(r, {
1116
+ clearable: "",
1117
+ class: "base_cascader",
1118
+ "model-value": l.modelValue,
1119
+ options: l.dataOptions,
1120
+ props: u.value,
1121
+ placeholder: l.placeholder,
1122
+ onChange: d
1123
+ }, null, 8, ["model-value", "options", "props", "placeholder"])
1124
+ ]);
1125
+ };
1126
+ }
1127
+ });
1128
+ const Ht = { class: "bsgoal-base-search" }, Gt = { class: "base_search" }, jt = { key: 1 }, Wt = {
1069
1129
  name: "BsgoalBaseSearch"
1070
- }, Wt = /* @__PURE__ */ Object.assign(jt, {
1130
+ }, Xt = /* @__PURE__ */ Object.assign(Wt, {
1071
1131
  props: {
1072
1132
  /**
1073
1133
  * >----------props----------<
@@ -1098,29 +1158,36 @@ const Yt = { class: "bsgoal-base-search" }, Ht = { class: "base_search" }, Gt =
1098
1158
  medium: {
1099
1159
  type: [Number, String],
1100
1160
  default: 6
1161
+ },
1162
+ /**
1163
+ * 绑定的值
1164
+ */
1165
+ modelValue: {
1166
+ type: [Object],
1167
+ default: () => ({})
1101
1168
  }
1102
1169
  },
1103
1170
  emits: ["on-search", "on-clear", "on-change", "on-fold"],
1104
- setup(a, { emit: c }) {
1105
- const o = a, d = B(null), _ = Ee.align, n = B({});
1171
+ setup(l, { emit: c }) {
1172
+ const u = l, d = B(null), _ = pe.align, n = B({});
1106
1173
  he(() => {
1107
- const { configOptions: v } = o;
1108
- s(v).forEach((m) => {
1109
- const { value: C = "", prop: k = "", type: O = "" } = m;
1110
- [e.INPUT, e.INPUT_TEXT_AREA].includes(O), n.value[k] = C;
1174
+ const { configOptions: v } = u;
1175
+ s(v).forEach((f) => {
1176
+ const { value: C = "", prop: O = "", type: k = "" } = f;
1177
+ [e.INPUT, e.INPUT_TEXT_AREA].includes(k), n.value[O] = C;
1111
1178
  });
1112
1179
  });
1113
1180
  const r = oe(() => {
1114
- const { configOptions: v } = o, T = s(v), m = {
1181
+ const { configOptions: v } = u, V = s(v), f = {
1115
1182
  type: e.OPERATION
1116
1183
  };
1117
- return [...T, m];
1118
- }), E = (v = "", T = "", m = "") => {
1119
- if (!m)
1184
+ return [...V, f];
1185
+ }), p = (v = "", V = "", f = "") => {
1186
+ if (!f)
1120
1187
  switch (v) {
1121
1188
  case e.INPUT:
1122
1189
  case e.INPUT_TEXT_AREA:
1123
- return `请输入${T}`;
1190
+ return `请输入${V}`;
1124
1191
  case e.SELECT:
1125
1192
  case e.DATE:
1126
1193
  case e.WEEK:
@@ -1128,7 +1195,8 @@ const Yt = { class: "bsgoal-base-search" }, Ht = { class: "base_search" }, Gt =
1128
1195
  case e.YEAR:
1129
1196
  case e.DATE_TIME:
1130
1197
  case e.TIME:
1131
- return `请选择${T}`;
1198
+ case e.CASCADER:
1199
+ return `请选择${V}`;
1132
1200
  case e.DATE_RANGE:
1133
1201
  case e.DATE_TIME_RANGE:
1134
1202
  return ["开始日期", "结束日期"];
@@ -1137,9 +1205,9 @@ const Yt = { class: "bsgoal-base-search" }, Ht = { class: "base_search" }, Gt =
1137
1205
  case e.MONTH_RANGE:
1138
1206
  return ["开始月份", "结束月份"];
1139
1207
  }
1140
- return m;
1141
- }, b = (v = "", T = "") => {
1142
- if (!T)
1208
+ return f;
1209
+ }, b = (v = "", V = "") => {
1210
+ if (!V)
1143
1211
  switch (v) {
1144
1212
  case e.WEEK:
1145
1213
  return "ww";
@@ -1159,39 +1227,39 @@ const Yt = { class: "bsgoal-base-search" }, Ht = { class: "base_search" }, Gt =
1159
1227
  case e.DATE_TIME_RANGE:
1160
1228
  return "YYYY-MM-DD HH:mm:ss";
1161
1229
  }
1162
- return T;
1230
+ return V;
1163
1231
  }, y = () => {
1164
- const v = s(n), { configOptions: T } = o, m = s(T);
1165
- for (const C of m) {
1166
- const { type: k = "", range: O = [], prop: M = "" } = C;
1167
- if (k.endsWith("range") && O && O.length === 2) {
1168
- const { 0: P = "", 1: U = "" } = v[M], { 0: S = "", 1: X = "" } = O;
1169
- v[S] = P, v[X] = U;
1232
+ const v = s(n), { configOptions: V } = u, f = s(V);
1233
+ for (const C of f) {
1234
+ const { type: O = "", range: k = [], prop: M = "" } = C;
1235
+ if (O.endsWith("range") && k && k.length === 2) {
1236
+ const { 0: P = "", 1: S = "" } = v[M], { 0: U = "", 1: X = "" } = k;
1237
+ v[U] = P, v[X] = S;
1170
1238
  }
1171
1239
  }
1172
- c("on-search", v);
1240
+ c("on-search", v), c("update:modelValue", v);
1173
1241
  };
1174
1242
  Ce(() => {
1175
1243
  y();
1176
1244
  });
1177
- const x = () => {
1245
+ const w = () => {
1178
1246
  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);
1181
- }, h = (v, T) => {
1247
+ }, N = $e("transferFoldStatus"), x = B(!1), R = (v = !1) => {
1248
+ x.value = v, N && (N.value = v), c("on-fold", x);
1249
+ }, h = (v, V) => {
1182
1250
  y();
1183
- const m = {
1251
+ const f = {
1184
1252
  type: v,
1185
- prop: T,
1186
- value: n.value[T] || ""
1253
+ prop: V,
1254
+ value: n.value[V] || ""
1187
1255
  };
1188
- c("on-change", m);
1256
+ c("on-change", f);
1189
1257
  };
1190
- return (v, T) => {
1191
- const m = g("el-input"), C = g("el-input-number"), k = g("el-radio"), O = g("el-radio-group"), M = g("el-option"), P = g("el-select"), U = g("el-slider"), S = g("el-switch"), X = g("el-date-picker"), Z = g("el-time-picker"), le = g("el-checkbox"), ee = g("el-checkbox-group"), de = g("el-form-item"), _e = g("el-col"), me = g("el-row"), L = g("el-form");
1192
- return u(), V("div", Yt, [
1193
- F("div", Ht, [
1194
- G((u(), p(L, {
1258
+ return (v, V) => {
1259
+ const f = g("el-input"), C = g("el-input-number"), O = g("el-radio"), k = g("el-radio-group"), M = g("el-option"), P = g("el-select"), S = g("el-slider"), U = g("el-switch"), X = g("el-date-picker"), Z = g("el-time-picker"), le = g("el-checkbox"), ee = g("el-checkbox-group"), de = g("el-form-item"), _e = g("el-col"), me = g("el-row"), L = g("el-form");
1260
+ return o(), T("div", Ht, [
1261
+ F("div", Gt, [
1262
+ G((o(), E(L, {
1195
1263
  ref_key: "EL_FORM_REF",
1196
1264
  ref: d,
1197
1265
  "label-suffix": ":",
@@ -1201,9 +1269,9 @@ const Yt = { class: "bsgoal-base-search" }, Ht = { class: "base_search" }, Gt =
1201
1269
  default: A(() => [
1202
1270
  D(me, null, {
1203
1271
  default: A(() => [
1204
- (u(!0), V(I, null, W(s(r), ({
1205
- label: f = "",
1206
- prop: l = "",
1272
+ (o(!0), T(I, null, W(s(r), ({
1273
+ label: m = "",
1274
+ prop: a = "",
1207
1275
  type: i = "text",
1208
1276
  placeholder: z = "",
1209
1277
  readonly: se = !1,
@@ -1213,53 +1281,53 @@ const Yt = { class: "bsgoal-base-search" }, Ht = { class: "base_search" }, Gt =
1213
1281
  max: q = 10,
1214
1282
  range: Y = [],
1215
1283
  format: J = ""
1216
- } = {}, te) => G((u(), p(_e, {
1284
+ } = {}, te) => G((o(), E(_e, {
1217
1285
  key: te,
1218
1286
  xs: 24,
1219
1287
  sm: 12,
1220
- md: a.medium
1288
+ md: l.medium
1221
1289
  }, {
1222
1290
  default: A(() => [
1223
1291
  D(de, {
1224
- label: f,
1225
- prop: l
1292
+ label: m,
1293
+ prop: a
1226
1294
  }, {
1227
1295
  default: A(() => [
1228
- se ? (u(), V("div", Gt, j(n.value[l]), 1)) : (u(), V(I, { key: 0 }, [
1229
- i === s(e).INPUT ? (u(), p(m, {
1296
+ se ? (o(), T("div", jt, j(n.value[a]), 1)) : (o(), T(I, { key: 0 }, [
1297
+ i === s(e).INPUT ? (o(), E(f, {
1230
1298
  key: 0,
1231
- modelValue: n.value[l],
1232
- "onUpdate:modelValue": (t) => n.value[l] = t,
1233
- placeholder: E(i, f, z),
1299
+ modelValue: n.value[a],
1300
+ "onUpdate:modelValue": (t) => n.value[a] = t,
1301
+ placeholder: p(i, m, z),
1234
1302
  clearable: re,
1235
- onChange: (t) => h(i, l)
1303
+ onChange: (t) => h(i, a)
1236
1304
  }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : $("", !0),
1237
- i === s(e).INPUT_TEXT_AREA ? (u(), p(m, {
1305
+ i === s(e).INPUT_TEXT_AREA ? (o(), E(f, {
1238
1306
  key: 1,
1239
- modelValue: n.value[l],
1240
- "onUpdate:modelValue": (t) => n.value[l] = t,
1307
+ modelValue: n.value[a],
1308
+ "onUpdate:modelValue": (t) => n.value[a] = t,
1241
1309
  type: "textarea",
1242
1310
  rows: ce,
1243
1311
  clearable: re,
1244
- placeholder: E(i, f, z),
1245
- onChange: (t) => h(i, l)
1312
+ placeholder: p(i, m, z),
1313
+ onChange: (t) => h(i, a)
1246
1314
  }, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : $("", !0),
1247
- i === s(e).INPUT_NUMBER ? (u(), p(C, {
1315
+ i === s(e).INPUT_NUMBER ? (o(), E(C, {
1248
1316
  key: 2,
1249
1317
  modelValue: v.num,
1250
- "onUpdate:modelValue": T[0] || (T[0] = (t) => v.num = t),
1318
+ "onUpdate:modelValue": V[0] || (V[0] = (t) => v.num = t),
1251
1319
  min: ne,
1252
1320
  max: q,
1253
1321
  onChange: h
1254
1322
  }, null, 8, ["modelValue", "min", "max"])) : $("", !0),
1255
- i === s(e).RADIO ? (u(), p(O, {
1323
+ i === s(e).RADIO ? (o(), E(k, {
1256
1324
  key: 3,
1257
- modelValue: n.value[l],
1258
- "onUpdate:modelValue": (t) => n.value[l] = t,
1259
- onChange: (t) => h(i, l)
1325
+ modelValue: n.value[a],
1326
+ "onUpdate:modelValue": (t) => n.value[a] = t,
1327
+ onChange: (t) => h(i, a)
1260
1328
  }, {
1261
1329
  default: A(() => [
1262
- (u(!0), V(I, null, W(Y, (t, H) => (u(), p(k, {
1330
+ (o(!0), T(I, null, W(Y, (t, H) => (o(), E(O, {
1263
1331
  key: H,
1264
1332
  label: t.value
1265
1333
  }, {
@@ -1271,15 +1339,15 @@ const Yt = { class: "bsgoal-base-search" }, Ht = { class: "base_search" }, Gt =
1271
1339
  ]),
1272
1340
  _: 2
1273
1341
  }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : $("", !0),
1274
- i === s(e).SELECT ? (u(), p(P, {
1342
+ i === s(e).SELECT ? (o(), E(P, {
1275
1343
  key: 4,
1276
- modelValue: n.value[l],
1277
- "onUpdate:modelValue": (t) => n.value[l] = t,
1278
- placeholder: E(i, f, z),
1279
- onChange: (t) => h(i, l)
1344
+ modelValue: n.value[a],
1345
+ "onUpdate:modelValue": (t) => n.value[a] = t,
1346
+ placeholder: p(i, m, z),
1347
+ onChange: (t) => h(i, a)
1280
1348
  }, {
1281
1349
  default: A(() => [
1282
- (u(!0), V(I, null, W(Y, (t, H) => (u(), p(M, {
1350
+ (o(!0), T(I, null, W(Y, (t, H) => (o(), E(M, {
1283
1351
  key: H,
1284
1352
  label: t.label,
1285
1353
  value: t.value
@@ -1287,75 +1355,75 @@ const Yt = { class: "bsgoal-base-search" }, Ht = { class: "base_search" }, Gt =
1287
1355
  ]),
1288
1356
  _: 2
1289
1357
  }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : $("", !0),
1290
- i === s(e).SLIDER ? (u(), p(U, {
1358
+ i === s(e).SLIDER ? (o(), E(S, {
1291
1359
  key: 5,
1292
- modelValue: n.value[l],
1293
- "onUpdate:modelValue": (t) => n.value[l] = t,
1360
+ modelValue: n.value[a],
1361
+ "onUpdate:modelValue": (t) => n.value[a] = t,
1294
1362
  min: ne,
1295
1363
  max: q,
1296
- onChange: (t) => h(i, l)
1364
+ onChange: (t) => h(i, a)
1297
1365
  }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : $("", !0),
1298
- i === s(e).SWITCH ? (u(), p(S, {
1366
+ i === s(e).SWITCH ? (o(), E(U, {
1299
1367
  key: 6,
1300
- modelValue: n.value[l],
1301
- "onUpdate:modelValue": (t) => n.value[l] = t,
1368
+ modelValue: n.value[a],
1369
+ "onUpdate:modelValue": (t) => n.value[a] = t,
1302
1370
  "active-value": Y[0] || !0,
1303
1371
  "inactive-value": Y[1] || !1,
1304
- onChange: (t) => h(i, l)
1372
+ onChange: (t) => h(i, a)
1305
1373
  }, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : $("", !0),
1306
1374
  [s(e).DATE, s(e).MONTH, s(e).YEAR, s(e).DATE_TIME].includes(
1307
1375
  i
1308
- ) ? (u(), p(X, {
1376
+ ) ? (o(), E(X, {
1309
1377
  key: 7,
1310
- modelValue: n.value[l],
1311
- "onUpdate:modelValue": (t) => n.value[l] = t,
1378
+ modelValue: n.value[a],
1379
+ "onUpdate:modelValue": (t) => n.value[a] = t,
1312
1380
  format: b(i, J),
1313
1381
  "value-format": b(i, J),
1314
1382
  type: i,
1315
- placeholder: E(i, f, z),
1316
- onChange: (t) => h(i, l)
1383
+ placeholder: p(i, m, z),
1384
+ onChange: (t) => h(i, a)
1317
1385
  }, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : $("", !0),
1318
1386
  [
1319
1387
  s(e).DATE_RANGE,
1320
1388
  s(e).MONTH_RANGE,
1321
1389
  s(e).DATE_TIME_RANGE
1322
- ].includes(i) ? (u(), p(X, {
1390
+ ].includes(i) ? (o(), E(X, {
1323
1391
  key: 8,
1324
- modelValue: n.value[l],
1325
- "onUpdate:modelValue": (t) => n.value[l] = t,
1392
+ modelValue: n.value[a],
1393
+ "onUpdate:modelValue": (t) => n.value[a] = t,
1326
1394
  type: i,
1327
1395
  "value-format": b(i, J),
1328
- "start-placeholder": E(i, f, z)[0],
1329
- "end-placeholder": E(i, f, z)[1],
1330
- onChange: (t) => h(i, l)
1396
+ "start-placeholder": p(i, m, z)[0],
1397
+ "end-placeholder": p(i, m, z)[1],
1398
+ onChange: (t) => h(i, a)
1331
1399
  }, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : $("", !0),
1332
- [s(e).TIME].includes(i) ? (u(), p(Z, {
1400
+ [s(e).TIME].includes(i) ? (o(), E(Z, {
1333
1401
  key: 9,
1334
- modelValue: n.value[l],
1335
- "onUpdate:modelValue": (t) => n.value[l] = t,
1402
+ modelValue: n.value[a],
1403
+ "onUpdate:modelValue": (t) => n.value[a] = t,
1336
1404
  "arrow-control": "",
1337
1405
  "value-format": b(i, J),
1338
- placeholder: E(i, f, z),
1339
- onChange: (t) => h(i, l)
1406
+ placeholder: p(i, m, z),
1407
+ onChange: (t) => h(i, a)
1340
1408
  }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : $("", !0),
1341
- [s(e).TIME_RANGE].includes(i) ? (u(), p(Z, {
1409
+ [s(e).TIME_RANGE].includes(i) ? (o(), E(Z, {
1342
1410
  key: 10,
1343
- modelValue: n.value[l],
1344
- "onUpdate:modelValue": (t) => n.value[l] = t,
1411
+ modelValue: n.value[a],
1412
+ "onUpdate:modelValue": (t) => n.value[a] = t,
1345
1413
  "is-range": "",
1346
1414
  "value-format": b(i, J),
1347
- "start-placeholder": E(i, f, z)[0],
1348
- "end-placeholder": E(i, f, z)[1],
1349
- onChange: (t) => h(i, l)
1415
+ "start-placeholder": p(i, m, z)[0],
1416
+ "end-placeholder": p(i, m, z)[1],
1417
+ onChange: (t) => h(i, a)
1350
1418
  }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : $("", !0),
1351
- [s(e).CHECKBOX].includes(i) ? (u(), p(ee, {
1419
+ [s(e).CHECKBOX].includes(i) ? (o(), E(ee, {
1352
1420
  key: 11,
1353
- modelValue: n.value[l],
1354
- "onUpdate:modelValue": (t) => n.value[l] = t,
1355
- onChange: (t) => h(i, l)
1421
+ modelValue: n.value[a],
1422
+ "onUpdate:modelValue": (t) => n.value[a] = t,
1423
+ onChange: (t) => h(i, a)
1356
1424
  }, {
1357
1425
  default: A(() => [
1358
- (u(!0), V(I, null, W(Y, (t, H) => (u(), p(le, {
1426
+ (o(!0), T(I, null, W(Y, (t, H) => (o(), E(le, {
1359
1427
  key: H,
1360
1428
  label: t.value
1361
1429
  }, {
@@ -1367,12 +1435,20 @@ const Yt = { class: "bsgoal-base-search" }, Ht = { class: "base_search" }, Gt =
1367
1435
  ]),
1368
1436
  _: 2
1369
1437
  }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : $("", !0),
1370
- [].includes(i) ? (u(), V(I, { key: 12 }, [], 64)) : $("", !0),
1371
- [s(e).OPERATION].includes(i) ? (u(), p(zt, {
1372
- key: 13,
1438
+ [s(e).CASCADER].includes(i) ? (o(), E(Yt, {
1439
+ key: 12,
1440
+ modelValue: n.value[a],
1441
+ "onUpdate:modelValue": (t) => n.value[a] = t,
1442
+ "data-options": Y,
1443
+ placeholder: p(i, m, z),
1444
+ onOnChange: (t) => h(i, a)
1445
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "data-options", "placeholder", "onOnChange"])) : $("", !0),
1446
+ [].includes(i) ? (o(), T(I, { key: 13 }, [], 64)) : $("", !0),
1447
+ [s(e).OPERATION].includes(i) ? (o(), E(Pt, {
1448
+ key: 14,
1373
1449
  fold: te >= 7,
1374
1450
  onOnSearch: y,
1375
- onOnClear: x,
1451
+ onOnClear: w,
1376
1452
  onOnFold: R
1377
1453
  }, null, 8, ["fold"])) : $("", !0)
1378
1454
  ], 64))
@@ -1382,7 +1458,7 @@ const Yt = { class: "bsgoal-base-search" }, Ht = { class: "base_search" }, Gt =
1382
1458
  ]),
1383
1459
  _: 2
1384
1460
  }, 1032, ["md"])), [
1385
- [Q, te < 7 || i === s(e).OPERATION || te >= 7 && w.value]
1461
+ [Q, te < 7 || i === s(e).OPERATION || te >= 7 && x.value]
1386
1462
  ])), 128))
1387
1463
  ]),
1388
1464
  _: 1
@@ -1398,9 +1474,9 @@ const Yt = { class: "bsgoal-base-search" }, Ht = { class: "base_search" }, Gt =
1398
1474
  };
1399
1475
  }
1400
1476
  });
1401
- const Xt = { class: "bsgoal-base-search-table" }, Kt = { class: "base_search_table" }, qt = {
1477
+ const Kt = { class: "bsgoal-base-search-table" }, qt = { class: "base_search_table" }, Jt = {
1402
1478
  name: "BsgoalBaseSearchTable"
1403
- }, Jt = /* @__PURE__ */ Object.assign(qt, {
1479
+ }, Qt = /* @__PURE__ */ Object.assign(Jt, {
1404
1480
  props: {
1405
1481
  /**
1406
1482
  * >----------props----------<
@@ -1469,67 +1545,75 @@ const Xt = { class: "bsgoal-base-search-table" }, Kt = { class: "base_search_tab
1469
1545
  call: {
1470
1546
  type: [Object, Function],
1471
1547
  default: null
1548
+ },
1549
+ /**
1550
+ * 表格高度 下边距值
1551
+ */
1552
+ expression: {
1553
+ type: [Number],
1554
+ default: 75
1472
1555
  }
1473
1556
  },
1474
- 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);
1557
+ setup(l) {
1558
+ const c = l, u = B(!1);
1559
+ Oe("transferFoldStatus", u);
1560
+ const d = s(c.configOptions), _ = oe(() => d), n = oe(() => d), r = ke(), p = B(Object.keys(r)), b = B(null), y = (w) => {
1561
+ b.value.refreshList(w);
1479
1562
  };
1480
- return (x, N) => (u(), V("div", Xt, [
1481
- F("div", Kt, [
1482
- D(Wt, {
1563
+ return (w, N) => (o(), T("div", Kt, [
1564
+ F("div", qt, [
1565
+ D(Xt, {
1483
1566
  "config-options": s(_),
1484
1567
  onOnSearch: y,
1485
1568
  onOnClear: y
1486
1569
  }, null, 8, ["config-options"]),
1487
- D(we, {
1570
+ D(xe, {
1488
1571
  ref_key: "BSGOAL_BASE_TABLE_REF",
1489
1572
  ref: b,
1490
- operationWidth: a.operationWidth,
1573
+ operationWidth: l.operationWidth,
1491
1574
  "config-options": s(n),
1492
- data: a.tableData,
1493
- selection: a.selection,
1494
- operation: a.operation,
1495
- fetch: a.fetch,
1496
- call: a.call
1575
+ data: l.tableData,
1576
+ selection: l.selection,
1577
+ operation: l.operation,
1578
+ expression: l.expression,
1579
+ fetch: l.fetch,
1580
+ call: l.call
1497
1581
  }, Ne({ _: 2 }, [
1498
- W(E.value, (w) => ({
1499
- name: w,
1582
+ W(p.value, (x) => ({
1583
+ name: x,
1500
1584
  fn: A(({ row: R = {} }) => [
1501
- ie(x.$slots, w, { row: R })
1585
+ ie(w.$slots, x, { row: R })
1502
1586
  ])
1503
1587
  }))
1504
- ]), 1032, ["operationWidth", "config-options", "data", "selection", "operation", "fetch", "call"])
1588
+ ]), 1032, ["operationWidth", "config-options", "data", "selection", "operation", "expression", "fetch", "call"])
1505
1589
  ])
1506
1590
  ]));
1507
1591
  }
1508
1592
  });
1509
- const Qt = { class: "bsgoal-base-tree-fold" }, Zt = {
1593
+ const Zt = { class: "bsgoal-base-tree-fold" }, ea = {
1510
1594
  name: "BsgoalBaseTreeFold"
1511
- }, ea = /* @__PURE__ */ Object.assign(Zt, {
1595
+ }, ta = /* @__PURE__ */ Object.assign(ea, {
1512
1596
  props: ["modelValue"],
1513
1597
  emits: ["update:modelValue"],
1514
- setup(a, { emit: c }) {
1515
- let o = B(!0);
1598
+ setup(l, { emit: c }) {
1599
+ let u = B(!0);
1516
1600
  const d = () => {
1517
- o.value = !o.value, c("update:modelValue", o.value);
1601
+ u.value = !u.value, c("update:modelValue", u.value);
1518
1602
  };
1519
1603
  return (_, n) => {
1520
1604
  const r = g("el-icon");
1521
- return u(), V("div", Qt, [
1605
+ return o(), T("div", Zt, [
1522
1606
  F("div", {
1523
- class: ge(["base_tree_fold", { "base_tree_fold--hide": !s(o) }]),
1607
+ class: ge(["base_tree_fold", { "base_tree_fold--hide": !s(u) }]),
1524
1608
  onClick: d
1525
1609
  }, [
1526
1610
  D(r, { color: "#fff" }, {
1527
1611
  default: A(() => [
1528
1612
  G(D(s(mt), null, null, 512), [
1529
- [Q, s(o)]
1613
+ [Q, s(u)]
1530
1614
  ]),
1531
- G(D(s(pt), null, null, 512), [
1532
- [Q, !s(o)]
1615
+ G(D(s(Et), null, null, 512), [
1616
+ [Q, !s(u)]
1533
1617
  ])
1534
1618
  ]),
1535
1619
  _: 1
@@ -1539,9 +1623,9 @@ const Qt = { class: "bsgoal-base-tree-fold" }, Zt = {
1539
1623
  };
1540
1624
  }
1541
1625
  });
1542
- const ta = { class: "bsgoal-base-tree" }, aa = { class: "base_tree" }, la = { class: "base_tree_main" }, na = {
1626
+ const aa = { class: "bsgoal-base-tree" }, la = { class: "base_tree" }, na = { class: "base_tree_main" }, oa = {
1543
1627
  name: "BsgoalBaseTree"
1544
- }, oa = /* @__PURE__ */ Object.assign(na, {
1628
+ }, ua = /* @__PURE__ */ Object.assign(oa, {
1545
1629
  props: {
1546
1630
  /**
1547
1631
  * 树结构 的下边距
@@ -1594,28 +1678,28 @@ const ta = { class: "bsgoal-base-tree" }, aa = { class: "base_tree" }, la = { cl
1594
1678
  }
1595
1679
  },
1596
1680
  emits: ["on-click"],
1597
- setup(a, { emit: c }) {
1598
- const o = a, d = Ee.height, _ = B(""), n = B(null);
1599
- ue(_, (x) => {
1600
- n.value.filter(x);
1681
+ setup(l, { emit: c }) {
1682
+ const u = l, d = pe.height, _ = B(""), n = B(null);
1683
+ ue(_, (w) => {
1684
+ n.value.filter(w);
1601
1685
  });
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);
1686
+ const r = (w, N) => w ? N.label.includes(w) : !0, p = B(!0), b = (w, N, x, R) => {
1687
+ c("on-click", w, N, x, R);
1688
+ }, y = async (w, N, x) => {
1689
+ if (w.level === 0) {
1690
+ const R = await x.initNode(w);
1607
1691
  return N(R || []);
1608
1692
  } else {
1609
- const R = await w.lazyLoad(x);
1693
+ const R = await x.lazyLoad(w);
1610
1694
  N(R || []);
1611
1695
  }
1612
1696
  };
1613
- return (x, N) => {
1614
- const w = g("el-input"), R = g("el-tree");
1615
- return u(), V("div", ta, [
1616
- G((u(), V("div", aa, [
1617
- G(F("div", la, [
1618
- D(w, {
1697
+ return (w, N) => {
1698
+ const x = g("el-input"), R = g("el-tree");
1699
+ return o(), T("div", aa, [
1700
+ G((o(), T("div", la, [
1701
+ G(F("div", na, [
1702
+ D(x, {
1619
1703
  modelValue: _.value,
1620
1704
  "onUpdate:modelValue": N[0] || (N[0] = (h) => _.value = h),
1621
1705
  class: "base_tree_main_input",
@@ -1627,32 +1711,32 @@ const ta = { class: "bsgoal-base-tree" }, aa = { class: "base_tree" }, la = { cl
1627
1711
  lazy: "",
1628
1712
  "highlight-current": "",
1629
1713
  "empty-text": "暂无数据",
1630
- load: (h, v) => y(h, v, o),
1714
+ load: (h, v) => y(h, v, u),
1631
1715
  "expand-on-click-node": !1,
1632
- props: a.treeProps,
1716
+ props: l.treeProps,
1633
1717
  "filter-node-method": r,
1634
1718
  onNodeClick: b
1635
1719
  }, null, 8, ["load", "props"])
1636
1720
  ], 512), [
1637
- [Q, E.value]
1721
+ [Q, p.value]
1638
1722
  ]),
1639
1723
  G(D(be, { vertical: "" }, null, 512), [
1640
- [Q, E.value]
1724
+ [Q, p.value]
1641
1725
  ]),
1642
- D(ea, {
1643
- modelValue: E.value,
1644
- "onUpdate:modelValue": N[1] || (N[1] = (h) => E.value = h)
1726
+ D(ta, {
1727
+ modelValue: p.value,
1728
+ "onUpdate:modelValue": N[1] || (N[1] = (h) => p.value = h)
1645
1729
  }, null, 8, ["modelValue"])
1646
1730
  ])), [
1647
- [s(d), a.gasket]
1731
+ [s(d), l.gasket]
1648
1732
  ])
1649
1733
  ]);
1650
1734
  };
1651
1735
  }
1652
1736
  });
1653
- const ua = { class: "bsgoal-base-dialog" }, sa = { class: "base_dialog" }, ra = { class: "base_dialog_header" }, ca = { class: "base_dialog_content" }, ia = { class: "base_dialog_footer" }, da = {
1737
+ const sa = { class: "bsgoal-base-dialog" }, ra = { class: "base_dialog" }, ca = { class: "base_dialog_header" }, ia = { class: "base_dialog_content" }, da = { class: "base_dialog_footer" }, _a = {
1654
1738
  name: "BsgoalBaseDialog"
1655
- }, _a = /* @__PURE__ */ Object.assign(da, {
1739
+ }, ma = /* @__PURE__ */ Object.assign(_a, {
1656
1740
  props: {
1657
1741
  /**
1658
1742
  * 弹窗状态
@@ -1684,36 +1768,36 @@ const ua = { class: "bsgoal-base-dialog" }, sa = { class: "base_dialog" }, ra =
1684
1768
  }
1685
1769
  },
1686
1770
  emits: ["update:modelValue", "on-confirm"],
1687
- setup(a, { emit: c }) {
1688
- const o = a, d = B(o.modelValue.value), _ = () => {
1771
+ setup(l, { emit: c }) {
1772
+ const u = l, d = B(u.modelValue.value), _ = () => {
1689
1773
  d.value = !1;
1690
1774
  }, n = () => {
1691
1775
  d.value = !1, c("on-confirm");
1692
1776
  };
1693
1777
  return ue(
1694
- () => o.modelValue,
1778
+ () => u.modelValue,
1695
1779
  (r) => {
1696
1780
  d.value = r;
1697
1781
  }
1698
1782
  ), ue(d, (r) => {
1699
1783
  c("update:modelValue", r);
1700
- }), (r, E) => {
1784
+ }), (r, p) => {
1701
1785
  const b = g("el-button"), y = g("el-dialog");
1702
- return u(), V("div", ua, [
1703
- F("div", sa, [
1786
+ return o(), T("div", sa, [
1787
+ F("div", ra, [
1704
1788
  D(y, {
1705
1789
  modelValue: d.value,
1706
- "onUpdate:modelValue": E[0] || (E[0] = (x) => d.value = x),
1790
+ "onUpdate:modelValue": p[0] || (p[0] = (w) => d.value = w),
1707
1791
  "custom-class": "bsgoal_base_dialog_main"
1708
1792
  }, {
1709
1793
  header: A(() => [
1710
- F("div", ra, j(a.title), 1)
1794
+ F("div", ca, j(l.title), 1)
1711
1795
  ]),
1712
1796
  footer: A(() => [
1713
- F("span", ia, [
1797
+ F("span", da, [
1714
1798
  D(b, { onClick: _ }, {
1715
1799
  default: A(() => [
1716
- K(j(a.cancelTxt), 1)
1800
+ K(j(l.cancelTxt), 1)
1717
1801
  ]),
1718
1802
  _: 1
1719
1803
  }),
@@ -1722,14 +1806,14 @@ const ua = { class: "bsgoal-base-dialog" }, sa = { class: "base_dialog" }, ra =
1722
1806
  onClick: n
1723
1807
  }, {
1724
1808
  default: A(() => [
1725
- K(j(a.confirmTxt), 1)
1809
+ K(j(l.confirmTxt), 1)
1726
1810
  ]),
1727
1811
  _: 1
1728
1812
  })
1729
1813
  ])
1730
1814
  ]),
1731
1815
  default: A(() => [
1732
- F("div", ca, [
1816
+ F("div", ia, [
1733
1817
  ie(r.$slots, "default")
1734
1818
  ])
1735
1819
  ]),
@@ -1739,25 +1823,25 @@ const ua = { class: "bsgoal-base-dialog" }, sa = { class: "base_dialog" }, ra =
1739
1823
  ]);
1740
1824
  };
1741
1825
  }
1742
- }), ga = e, ha = pe, Ea = {
1743
- install(a, c = {}) {
1744
- const { exclude: o = [] } = c, d = {
1826
+ }), ha = e, pa = Ee, Ea = {
1827
+ install(l, c = {}) {
1828
+ const { exclude: u = [] } = c, d = {
1745
1829
  BsgoalBaseForm: Ie,
1746
- BsgoalBaseTable: we,
1830
+ BsgoalBaseTable: xe,
1747
1831
  BsgoalBaseLine: be,
1748
- BsgoalBaseSearchTable: Jt,
1749
- BsgoalBaseTree: oa,
1750
- BsgoalBaseDialog: _a
1832
+ BsgoalBaseSearchTable: Qt,
1833
+ BsgoalBaseTree: ua,
1834
+ BsgoalBaseDialog: ma
1751
1835
  };
1752
1836
  for (const [_, n] of Object.entries(d))
1753
- o.includes(_) || a.component(_, n);
1837
+ u.includes(_) || l.component(_, n);
1754
1838
  },
1755
1839
  enumType: e,
1756
- useFetch: pe
1840
+ useFetch: Ee
1757
1841
  };
1758
1842
  export {
1759
- ga as EnumType,
1843
+ ha as EnumType,
1760
1844
  Ea as default,
1761
- ha as useFetchApi
1845
+ pa as useFetchApi
1762
1846
  };
1763
1847
  //# sourceMappingURL=index.mjs.map