@bsgoal/common 0.1.1 → 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.
package/dist/index.mjs CHANGED
@@ -1,15 +1,15 @@
1
- var we = Object.defineProperty;
1
+ var ye = Object.defineProperty;
2
2
  var Te = Object.getOwnPropertySymbols;
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]);
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 n of Te(c))
9
- Be.call(c, n) && Ve(a, n, c[n]);
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 = [], 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`;
37
+ const ve = (l) => {
38
+ const c = [], u = [], d = (n = []) => {
39
+ const r = n.map((b) => b.width), p = Math.max(...r);
40
+ n.forEach((b) => {
41
+ const { labelEl: y } = b;
42
+ y.style.width = `${p}px`;
42
43
  });
43
44
  }, _ = () => {
44
- if (a) {
45
- const o = a.querySelectorAll(".el-form-item__label");
46
- if (o && o.length) {
45
+ if (l) {
46
+ const n = l.querySelectorAll(".el-form-item__label");
47
+ if (n && n.length) {
47
48
  let r = 0;
48
- o.forEach((E, b) => {
49
- E.style.width = "initial", E.style.whiteSpace = "nowrap";
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);
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(n);
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: n = "" }) => {
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: n }) {
130
- const d = a, _ = B(null), o = 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,8 +165,8 @@ 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
- }, w = (h = "", v = "") => {
168
+ return V;
169
+ }, y = (h = "", v = "") => {
169
170
  if (!v)
170
171
  switch (h) {
171
172
  case e.WEEK:
@@ -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
- }, y = () => {
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 n("on-form", h), h;
200
+ return u("on-form", h), h;
200
201
  }, N = () => {
201
- _.value.resetFields(), n("on-clear", r.value);
202
+ _.value.resetFields(), u("on-clear", r.value);
202
203
  }, x = (h, v) => {
203
- const T = {
204
+ const V = {
204
205
  type: h,
205
206
  prop: v,
206
207
  value: r.value[v] || ""
207
208
  };
208
- n("on-change", T);
209
+ u("on-change", V);
209
210
  };
210
211
  return c({
211
212
  triggerOperationClear: N,
212
- triggerOperationForm: y,
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 = y();
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,39 +254,39 @@ 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) => x(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) => x(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),
@@ -293,14 +294,14 @@ const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Ue = { ke
293
294
  max: ne,
294
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) => x(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) => x(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) => x(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) => x(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: w(l, Y),
354
- "value-format": w(l, Y),
355
- type: l,
356
- placeholder: b(l, L, i),
357
- onChange: (t) => x(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": w(l, Y),
369
- "start-placeholder": b(l, L, i)[0],
370
- "end-placeholder": b(l, L, i)[1],
371
- onChange: (t) => x(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": w(l, Y),
379
- placeholder: b(l, L, i),
380
- onChange: (t) => x(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": w(l, Y),
388
- "start-placeholder": b(l, L, i)[0],
389
- "end-placeholder": b(l, L, i)[1],
390
- onChange: (t) => x(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) => x(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
@@ -422,7 +423,7 @@ const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Ue = { ke
422
423
  ]),
423
424
  _: 1
424
425
  }, 8, ["model"])), [
425
- [s(o)]
426
+ [s(n)]
426
427
  ])
427
428
  ])
428
429
  ]);
@@ -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, n) => (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 n = (o = 0) => {
611
- c("on-size-change", o);
612
- }, d = (o = 1) => {
613
- c("on-current-change", o);
610
+ setup(l, { emit: c }) {
611
+ const u = (n = 0) => {
612
+ c("on-size-change", n);
613
+ }, d = (n = 1) => {
614
+ c("on-current-change", n);
614
615
  }, _ = B(1);
615
- return (o, r) => {
616
- const E = g("el-pagination"), b = g("el-config-provider");
617
- return u(), V("div", Ge, [
616
+ return (n, r) => {
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
- "onUpdate:currentPage": r[0] || (r[0] = (w) => _.value = w),
626
- "page-sizes": a.pageSizes,
627
- "page-size": a.pageSize,
628
- total: a.total,
629
- onSizeChange: n,
626
+ "onUpdate:currentPage": r[0] || (r[0] = (y) => _.value = y),
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,30 +642,30 @@ const Ge = { class: "bsgoal-base-table-pagination" }, je = { class: "base_table_
641
642
  ]);
642
643
  };
643
644
  }
644
- }), qe = (a = null, { expression: c = 75, arg: n = {} } = {}) => {
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(() => {
649
- const { y: o = 0 } = _.getBoundingClientRect();
650
- _.style.height = `calc(100vh - ${o + c}px)`;
650
+ const { y: n = 0 } = _.getBoundingClientRect();
651
+ _.style.height = `calc(100vh - ${n + c}px)`;
651
652
  });
652
653
  }
653
- }, pe = (a = Promise.resolve(), c = null, n = B(!1), d = B(null)) => {
654
+ }, Ee = (l = Promise.resolve(), c = null, u = B(!1), d = B(null)) => {
654
655
  const _ = B("");
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;
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;
659
+ }).catch((n = {}) => {
660
+ if (typeof n == "object") {
661
+ const { message: r = "" } = n;
661
662
  _.value = r;
662
663
  } else
663
- _.value = o;
664
- c(!1, o), n.value = !1;
664
+ _.value = n;
665
+ c(!1, n), u.value = !1;
665
666
  }).finally(() => {
666
- n.value = !1;
667
- }), { data: d, message: _, loading: n };
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,
@@ -758,51 +759,51 @@ const Je = { class: "bsgoal-base-table" }, Qe = { class: "base_table" }, Ze = {
758
759
  default: 75
759
760
  }
760
761
  },
761
- setup(a, { expose: c }) {
762
- const n = a, d = oe(() => {
763
- const { configOptions: m = [], operation: C = !1, operationWidth: k = 0 } = n, 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 = [];
764
765
  return C && M.push({
765
766
  label: "操作",
766
767
  fixed: "right",
767
768
  prop: "operation",
768
- width: k
769
- }), [...O, ...M];
770
- }), _ = B(null), o = $e("transferFoldStatus");
769
+ width: O
770
+ }), [...k, ...M];
771
+ }), _ = B(null), n = $e("transferFoldStatus");
771
772
  he(() => {
772
- const m = o ? o.value : !1, C = s(n.expression);
773
- qe(_, { arg: m, expression: C });
773
+ const f = n ? n.value : !1, C = s(u.expression);
774
+ qe(_, { arg: f, expression: C });
774
775
  });
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);
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);
778
779
  };
779
- ue(x, (m) => {
780
- const { mapProps: C } = n, k = s(C);
781
- 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];
782
783
  });
783
- const h = (m = {}) => {
784
- w.value = m, r.value = 1, R();
785
- }, v = (m = 1) => {
786
- r.value = m;
787
- }, T = (m = 10) => {
788
- 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;
789
790
  };
790
- return ue([r, E], () => {
791
+ return ue([r, p], () => {
791
792
  R();
792
793
  }), c({
793
794
  refreshList: h
794
- }), (m, C) => {
795
- const k = g("el-table-column"), O = g("el-table"), M = De("loading");
796
- 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, [
797
798
  F("div", Qe, [
798
- m.$slots.menu ? (u(), V("div", Ze, [
799
- ie(m.$slots, "menu")
799
+ f.$slots.menu ? (o(), T("div", Ze, [
800
+ ie(f.$slots, "menu")
800
801
  ])) : $("", !0),
801
802
  F("div", {
802
803
  ref_key: "EL_TABLE_WRAP_REF",
803
804
  ref: _
804
805
  }, [
805
- G((u(), p(O, {
806
+ G((o(), E(k, {
806
807
  stripe: "",
807
808
  border: "",
808
809
  "highlight-current-row": "",
@@ -817,22 +818,22 @@ const Je = { class: "bsgoal-base-table" }, Qe = { class: "base_table" }, Ze = {
817
818
  }, {
818
819
  empty: A(() => []),
819
820
  default: A(() => [
820
- a.selection ? (u(), p(k, {
821
+ l.selection ? (o(), E(O, {
821
822
  key: 0,
822
823
  fixed: "left",
823
824
  type: "selection",
824
825
  width: "40"
825
826
  })) : $("", !0),
826
- (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, {
827
828
  key: le,
828
- label: U,
829
- align: S,
829
+ label: S,
830
+ align: U,
830
831
  width: X,
831
832
  fixed: Z,
832
- "min-width": `${U.length * 14 + 24}px`
833
+ "min-width": `${S.length * 14 + 24}px`
833
834
  }, {
834
835
  default: A(({ row: ee }) => [
835
- ie(m.$slots, P, { row: ee }, () => [
836
+ ie(f.$slots, P, { row: ee }, () => [
836
837
  D(Ye, {
837
838
  data: ee[P]
838
839
  }, null, 8, ["data"])
@@ -843,13 +844,13 @@ const Je = { class: "bsgoal-base-table" }, Qe = { class: "base_table" }, Ze = {
843
844
  ]),
844
845
  _: 3
845
846
  }, 8, ["data", "header-cell-style"])), [
846
- [M, y.value]
847
+ [M, w.value]
847
848
  ])
848
849
  ], 512),
849
850
  D(Ke, {
850
851
  total: b.value,
851
852
  onOnCurrentChange: v,
852
- onOnSizeChange: T
853
+ onOnSizeChange: V
853
854
  }, null, 8, ["total"])
854
855
  ])
855
856
  ]);
@@ -868,22 +869,22 @@ const tt = {
868
869
  default: !1
869
870
  }
870
871
  },
871
- setup(a) {
872
- return (c, n) => (u(), V("div", {
873
- 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 }])
874
875
  }, [
875
876
  F("div", {
876
- class: ge(["base_line", { base_line__vertical: a.vertical }])
877
+ class: ge(["base_line", { base_line__vertical: l.vertical }])
877
878
  }, null, 2)
878
879
  ], 2));
879
880
  }
880
881
  });
881
882
  /*! Element Plus Icons Vue v2.1.0 */
882
- var ae = (a, c) => {
883
- let n = a.__vccOpts || a;
883
+ var ae = (l, c) => {
884
+ let u = l.__vccOpts || l;
884
885
  for (let [d, _] of c)
885
- n[d] = _;
886
- return n;
886
+ u[d] = _;
887
+ return u;
887
888
  }, at = {
888
889
  name: "ArrowDown"
889
890
  }, lt = {
@@ -901,8 +902,8 @@ var ae = (a, c) => {
901
902
  ), ot = [
902
903
  nt
903
904
  ];
904
- function ut(a, c, n, d, _, o) {
905
- return u(), V("svg", lt, ot);
905
+ function ut(l, c, u, d, _, n) {
906
+ return o(), T("svg", lt, ot);
906
907
  }
907
908
  var st = /* @__PURE__ */ ae(at, [["render", ut], ["__file", "arrow-down.vue"]]), rt = {
908
909
  name: "ArrowLeft"
@@ -921,8 +922,8 @@ var st = /* @__PURE__ */ ae(at, [["render", ut], ["__file", "arrow-down.vue"]]),
921
922
  ), dt = [
922
923
  it
923
924
  ];
924
- function _t(a, c, n, d, _, o) {
925
- return u(), V("svg", ct, dt);
925
+ function _t(l, c, u, d, _, n) {
926
+ return o(), T("svg", ct, dt);
926
927
  }
927
928
  var mt = /* @__PURE__ */ ae(rt, [["render", _t], ["__file", "arrow-left.vue"]]), ft = {
928
929
  name: "ArrowRight"
@@ -941,10 +942,10 @@ var mt = /* @__PURE__ */ ae(rt, [["render", _t], ["__file", "arrow-left.vue"]]),
941
942
  ), ht = [
942
943
  gt
943
944
  ];
944
- function Et(a, c, n, d, _, o) {
945
- return u(), V("svg", vt, ht);
945
+ function pt(l, c, u, d, _, n) {
946
+ return o(), T("svg", vt, ht);
946
947
  }
947
- 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 = {
948
949
  name: "ArrowUp"
949
950
  }, Tt = {
950
951
  xmlns: "http://www.w3.org/2000/svg",
@@ -961,15 +962,15 @@ var pt = /* @__PURE__ */ ae(ft, [["render", Et], ["__file", "arrow-right.vue"]])
961
962
  ), At = [
962
963
  Vt
963
964
  ];
964
- function Ct(a, c, n, d, _, o) {
965
- return u(), V("svg", Tt, At);
965
+ function Ct(l, c, u, d, _, n) {
966
+ return o(), T("svg", Tt, At);
966
967
  }
967
968
  var $t = /* @__PURE__ */ ae(bt, [["render", Ct], ["__file", "arrow-up.vue"]]), xt = {
968
969
  name: "Delete"
969
- }, wt = {
970
+ }, yt = {
970
971
  xmlns: "http://www.w3.org/2000/svg",
971
972
  viewBox: "0 0 1024 1024"
972
- }, yt = /* @__PURE__ */ F(
973
+ }, wt = /* @__PURE__ */ F(
973
974
  "path",
974
975
  {
975
976
  fill: "currentColor",
@@ -979,12 +980,12 @@ var $t = /* @__PURE__ */ ae(bt, [["render", Ct], ["__file", "arrow-up.vue"]]), x
979
980
  -1
980
981
  /* HOISTED */
981
982
  ), Bt = [
982
- yt
983
+ wt
983
984
  ];
984
- function Dt(a, c, n, d, _, o) {
985
- return u(), V("svg", wt, Bt);
985
+ function Dt(l, c, u, d, _, n) {
986
+ return o(), T("svg", yt, Bt);
986
987
  }
987
- var kt = /* @__PURE__ */ ae(xt, [["render", Dt], ["__file", "delete.vue"]]), Ot = {
988
+ var Ot = /* @__PURE__ */ ae(xt, [["render", Dt], ["__file", "delete.vue"]]), kt = {
988
989
  name: "Search"
989
990
  }, Nt = {
990
991
  xmlns: "http://www.w3.org/2000/svg",
@@ -1001,18 +1002,13 @@ var kt = /* @__PURE__ */ ae(xt, [["render", Dt], ["__file", "delete.vue"]]), Ot
1001
1002
  ), Mt = [
1002
1003
  Ft
1003
1004
  ];
1004
- function Rt(a, c, n, d, _, o) {
1005
- return u(), V("svg", Nt, Mt);
1005
+ function Rt(l, c, u, d, _, n) {
1006
+ return o(), T("svg", Nt, Mt);
1006
1007
  }
1007
- var Ut = /* @__PURE__ */ ae(Ot, [["render", Rt], ["__file", "search.vue"]]);
1008
- const St = (a, c) => {
1009
- const n = a.__vccOpts || a;
1010
- for (const [d, _] of c)
1011
- n[d] = _;
1012
- return n;
1013
- }, 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 = {
1014
1010
  name: "BsgoalBaseSearchOperation"
1015
- }, Lt = /* @__PURE__ */ Object.assign(Pt, {
1011
+ }, Pt = /* @__PURE__ */ Object.assign(It, {
1016
1012
  props: {
1017
1013
  /**
1018
1014
  * 是否显示折叠按钮
@@ -1023,17 +1019,17 @@ const St = (a, c) => {
1023
1019
  }
1024
1020
  },
1025
1021
  emits: ["on-fold"],
1026
- setup(a, { emit: c }) {
1027
- const n = B(!1), d = () => {
1028
- n.value = !s(n), c("on-fold", n.value);
1022
+ setup(l, { emit: c }) {
1023
+ const u = B(!1), d = () => {
1024
+ u.value = !s(u), c("on-fold", u.value);
1029
1025
  };
1030
- return (_, o) => {
1031
- const r = g("el-button"), E = g("el-icon");
1032
- return u(), V("div", It, [
1026
+ return (_, n) => {
1027
+ const r = g("el-button"), p = g("el-icon");
1028
+ return o(), T("div", Ut, [
1033
1029
  D(r, {
1034
1030
  type: "primary",
1035
- icon: s(Ut),
1036
- onClick: o[0] || (o[0] = (b) => _.$emit("on-search"))
1031
+ icon: s(St),
1032
+ onClick: n[0] || (n[0] = (b) => _.$emit("on-search"))
1037
1033
  }, {
1038
1034
  default: A(() => [
1039
1035
  K("搜索")
@@ -1041,28 +1037,28 @@ const St = (a, c) => {
1041
1037
  _: 1
1042
1038
  }, 8, ["icon"]),
1043
1039
  D(r, {
1044
- icon: s(kt),
1045
- onClick: o[1] || (o[1] = (b) => _.$emit("on-clear"))
1040
+ icon: s(Ot),
1041
+ onClick: n[1] || (n[1] = (b) => _.$emit("on-clear"))
1046
1042
  }, {
1047
1043
  default: A(() => [
1048
1044
  K("清空")
1049
1045
  ]),
1050
1046
  _: 1
1051
1047
  }, 8, ["icon"]),
1052
- a.fold ? (u(), V("div", {
1048
+ l.fold ? (o(), T("div", {
1053
1049
  key: 0,
1054
1050
  class: "operation_fold",
1055
1051
  style: { color: "var(--el-color-primary)" },
1056
1052
  onClick: d
1057
1053
  }, [
1058
- K(j(n.value ? "收起" : "展开"), 1),
1059
- D(E, { color: "#409EFC" }, {
1054
+ K(j(u.value ? "收起" : "展开"), 1),
1055
+ D(p, { color: "#409EFC" }, {
1060
1056
  default: A(() => [
1061
1057
  G(D(s($t), null, null, 512), [
1062
- [Q, n.value]
1058
+ [Q, u.value]
1063
1059
  ]),
1064
1060
  G(D(s(st), null, null, 512), [
1065
- [Q, !n.value]
1061
+ [Q, !u.value]
1066
1062
  ])
1067
1063
  ]),
1068
1064
  _: 1
@@ -1071,10 +1067,67 @@ const St = (a, c) => {
1071
1067
  ]);
1072
1068
  };
1073
1069
  }
1074
- }), zt = /* @__PURE__ */ St(Lt, [["__scopeId", "data-v-b5796be8"]]);
1075
- 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 = {
1076
1129
  name: "BsgoalBaseSearch"
1077
- }, Wt = /* @__PURE__ */ Object.assign(jt, {
1130
+ }, Xt = /* @__PURE__ */ Object.assign(Wt, {
1078
1131
  props: {
1079
1132
  /**
1080
1133
  * >----------props----------<
@@ -1105,29 +1158,36 @@ const Yt = { class: "bsgoal-base-search" }, Ht = { class: "base_search" }, Gt =
1105
1158
  medium: {
1106
1159
  type: [Number, String],
1107
1160
  default: 6
1161
+ },
1162
+ /**
1163
+ * 绑定的值
1164
+ */
1165
+ modelValue: {
1166
+ type: [Object],
1167
+ default: () => ({})
1108
1168
  }
1109
1169
  },
1110
1170
  emits: ["on-search", "on-clear", "on-change", "on-fold"],
1111
- setup(a, { emit: c }) {
1112
- const n = a, d = B(null), _ = Ee.align, o = B({});
1171
+ setup(l, { emit: c }) {
1172
+ const u = l, d = B(null), _ = pe.align, n = B({});
1113
1173
  he(() => {
1114
- const { configOptions: v } = n;
1115
- s(v).forEach((m) => {
1116
- const { value: C = "", prop: k = "", type: O = "" } = m;
1117
- [e.INPUT, e.INPUT_TEXT_AREA].includes(O), o.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;
1118
1178
  });
1119
1179
  });
1120
1180
  const r = oe(() => {
1121
- const { configOptions: v } = n, T = s(v), m = {
1181
+ const { configOptions: v } = u, V = s(v), f = {
1122
1182
  type: e.OPERATION
1123
1183
  };
1124
- return [...T, m];
1125
- }), E = (v = "", T = "", m = "") => {
1126
- if (!m)
1184
+ return [...V, f];
1185
+ }), p = (v = "", V = "", f = "") => {
1186
+ if (!f)
1127
1187
  switch (v) {
1128
1188
  case e.INPUT:
1129
1189
  case e.INPUT_TEXT_AREA:
1130
- return `请输入${T}`;
1190
+ return `请输入${V}`;
1131
1191
  case e.SELECT:
1132
1192
  case e.DATE:
1133
1193
  case e.WEEK:
@@ -1135,7 +1195,8 @@ const Yt = { class: "bsgoal-base-search" }, Ht = { class: "base_search" }, Gt =
1135
1195
  case e.YEAR:
1136
1196
  case e.DATE_TIME:
1137
1197
  case e.TIME:
1138
- return `请选择${T}`;
1198
+ case e.CASCADER:
1199
+ return `请选择${V}`;
1139
1200
  case e.DATE_RANGE:
1140
1201
  case e.DATE_TIME_RANGE:
1141
1202
  return ["开始日期", "结束日期"];
@@ -1144,9 +1205,9 @@ const Yt = { class: "bsgoal-base-search" }, Ht = { class: "base_search" }, Gt =
1144
1205
  case e.MONTH_RANGE:
1145
1206
  return ["开始月份", "结束月份"];
1146
1207
  }
1147
- return m;
1148
- }, b = (v = "", T = "") => {
1149
- if (!T)
1208
+ return f;
1209
+ }, b = (v = "", V = "") => {
1210
+ if (!V)
1150
1211
  switch (v) {
1151
1212
  case e.WEEK:
1152
1213
  return "ww";
@@ -1166,51 +1227,51 @@ const Yt = { class: "bsgoal-base-search" }, Ht = { class: "base_search" }, Gt =
1166
1227
  case e.DATE_TIME_RANGE:
1167
1228
  return "YYYY-MM-DD HH:mm:ss";
1168
1229
  }
1169
- return T;
1170
- }, w = () => {
1171
- const v = s(o), { configOptions: T } = n, m = s(T);
1172
- for (const C of m) {
1173
- const { type: k = "", range: O = [], prop: M = "" } = C;
1174
- if (k.endsWith("range") && O && O.length === 2) {
1175
- const { 0: P = "", 1: U = "" } = v[M], { 0: S = "", 1: X = "" } = O;
1176
- v[S] = P, v[X] = U;
1230
+ return V;
1231
+ }, y = () => {
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;
1177
1238
  }
1178
1239
  }
1179
- c("on-search", v);
1240
+ c("on-search", v), c("update:modelValue", v);
1180
1241
  };
1181
1242
  Ce(() => {
1182
- w();
1243
+ y();
1183
1244
  });
1184
- const y = () => {
1185
- d.value.resetFields(), c("on-clear", o.value);
1245
+ const w = () => {
1246
+ d.value.resetFields(), c("on-clear", n.value);
1186
1247
  }, N = $e("transferFoldStatus"), x = B(!1), R = (v = !1) => {
1187
1248
  x.value = v, N && (N.value = v), c("on-fold", x);
1188
- }, h = (v, T) => {
1189
- w();
1190
- const m = {
1249
+ }, h = (v, V) => {
1250
+ y();
1251
+ const f = {
1191
1252
  type: v,
1192
- prop: T,
1193
- value: o.value[T] || ""
1253
+ prop: V,
1254
+ value: n.value[V] || ""
1194
1255
  };
1195
- c("on-change", m);
1256
+ c("on-change", f);
1196
1257
  };
1197
- return (v, T) => {
1198
- 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");
1199
- return u(), V("div", Yt, [
1200
- F("div", Ht, [
1201
- 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, {
1202
1263
  ref_key: "EL_FORM_REF",
1203
1264
  ref: d,
1204
1265
  "label-suffix": ":",
1205
1266
  "show-message": !1,
1206
- model: o.value
1267
+ model: n.value
1207
1268
  }, {
1208
1269
  default: A(() => [
1209
1270
  D(me, null, {
1210
1271
  default: A(() => [
1211
- (u(!0), V(I, null, W(s(r), ({
1212
- label: f = "",
1213
- prop: l = "",
1272
+ (o(!0), T(I, null, W(s(r), ({
1273
+ label: m = "",
1274
+ prop: a = "",
1214
1275
  type: i = "text",
1215
1276
  placeholder: z = "",
1216
1277
  readonly: se = !1,
@@ -1220,53 +1281,53 @@ const Yt = { class: "bsgoal-base-search" }, Ht = { class: "base_search" }, Gt =
1220
1281
  max: q = 10,
1221
1282
  range: Y = [],
1222
1283
  format: J = ""
1223
- } = {}, te) => G((u(), p(_e, {
1284
+ } = {}, te) => G((o(), E(_e, {
1224
1285
  key: te,
1225
1286
  xs: 24,
1226
1287
  sm: 12,
1227
- md: a.medium
1288
+ md: l.medium
1228
1289
  }, {
1229
1290
  default: A(() => [
1230
1291
  D(de, {
1231
- label: f,
1232
- prop: l
1292
+ label: m,
1293
+ prop: a
1233
1294
  }, {
1234
1295
  default: A(() => [
1235
- se ? (u(), V("div", Gt, j(o.value[l]), 1)) : (u(), V(I, { key: 0 }, [
1236
- 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, {
1237
1298
  key: 0,
1238
- modelValue: o.value[l],
1239
- "onUpdate:modelValue": (t) => o.value[l] = t,
1240
- placeholder: E(i, f, z),
1299
+ modelValue: n.value[a],
1300
+ "onUpdate:modelValue": (t) => n.value[a] = t,
1301
+ placeholder: p(i, m, z),
1241
1302
  clearable: re,
1242
- onChange: (t) => h(i, l)
1303
+ onChange: (t) => h(i, a)
1243
1304
  }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : $("", !0),
1244
- i === s(e).INPUT_TEXT_AREA ? (u(), p(m, {
1305
+ i === s(e).INPUT_TEXT_AREA ? (o(), E(f, {
1245
1306
  key: 1,
1246
- modelValue: o.value[l],
1247
- "onUpdate:modelValue": (t) => o.value[l] = t,
1307
+ modelValue: n.value[a],
1308
+ "onUpdate:modelValue": (t) => n.value[a] = t,
1248
1309
  type: "textarea",
1249
1310
  rows: ce,
1250
1311
  clearable: re,
1251
- placeholder: E(i, f, z),
1252
- onChange: (t) => h(i, l)
1312
+ placeholder: p(i, m, z),
1313
+ onChange: (t) => h(i, a)
1253
1314
  }, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : $("", !0),
1254
- i === s(e).INPUT_NUMBER ? (u(), p(C, {
1315
+ i === s(e).INPUT_NUMBER ? (o(), E(C, {
1255
1316
  key: 2,
1256
1317
  modelValue: v.num,
1257
- "onUpdate:modelValue": T[0] || (T[0] = (t) => v.num = t),
1318
+ "onUpdate:modelValue": V[0] || (V[0] = (t) => v.num = t),
1258
1319
  min: ne,
1259
1320
  max: q,
1260
1321
  onChange: h
1261
1322
  }, null, 8, ["modelValue", "min", "max"])) : $("", !0),
1262
- i === s(e).RADIO ? (u(), p(O, {
1323
+ i === s(e).RADIO ? (o(), E(k, {
1263
1324
  key: 3,
1264
- modelValue: o.value[l],
1265
- "onUpdate:modelValue": (t) => o.value[l] = t,
1266
- onChange: (t) => h(i, l)
1325
+ modelValue: n.value[a],
1326
+ "onUpdate:modelValue": (t) => n.value[a] = t,
1327
+ onChange: (t) => h(i, a)
1267
1328
  }, {
1268
1329
  default: A(() => [
1269
- (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, {
1270
1331
  key: H,
1271
1332
  label: t.value
1272
1333
  }, {
@@ -1278,15 +1339,15 @@ const Yt = { class: "bsgoal-base-search" }, Ht = { class: "base_search" }, Gt =
1278
1339
  ]),
1279
1340
  _: 2
1280
1341
  }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : $("", !0),
1281
- i === s(e).SELECT ? (u(), p(P, {
1342
+ i === s(e).SELECT ? (o(), E(P, {
1282
1343
  key: 4,
1283
- modelValue: o.value[l],
1284
- "onUpdate:modelValue": (t) => o.value[l] = t,
1285
- placeholder: E(i, f, z),
1286
- 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)
1287
1348
  }, {
1288
1349
  default: A(() => [
1289
- (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, {
1290
1351
  key: H,
1291
1352
  label: t.label,
1292
1353
  value: t.value
@@ -1294,75 +1355,75 @@ const Yt = { class: "bsgoal-base-search" }, Ht = { class: "base_search" }, Gt =
1294
1355
  ]),
1295
1356
  _: 2
1296
1357
  }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : $("", !0),
1297
- i === s(e).SLIDER ? (u(), p(U, {
1358
+ i === s(e).SLIDER ? (o(), E(S, {
1298
1359
  key: 5,
1299
- modelValue: o.value[l],
1300
- "onUpdate:modelValue": (t) => o.value[l] = t,
1360
+ modelValue: n.value[a],
1361
+ "onUpdate:modelValue": (t) => n.value[a] = t,
1301
1362
  min: ne,
1302
1363
  max: q,
1303
- onChange: (t) => h(i, l)
1364
+ onChange: (t) => h(i, a)
1304
1365
  }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : $("", !0),
1305
- i === s(e).SWITCH ? (u(), p(S, {
1366
+ i === s(e).SWITCH ? (o(), E(U, {
1306
1367
  key: 6,
1307
- modelValue: o.value[l],
1308
- "onUpdate:modelValue": (t) => o.value[l] = t,
1368
+ modelValue: n.value[a],
1369
+ "onUpdate:modelValue": (t) => n.value[a] = t,
1309
1370
  "active-value": Y[0] || !0,
1310
1371
  "inactive-value": Y[1] || !1,
1311
- onChange: (t) => h(i, l)
1372
+ onChange: (t) => h(i, a)
1312
1373
  }, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : $("", !0),
1313
1374
  [s(e).DATE, s(e).MONTH, s(e).YEAR, s(e).DATE_TIME].includes(
1314
1375
  i
1315
- ) ? (u(), p(X, {
1376
+ ) ? (o(), E(X, {
1316
1377
  key: 7,
1317
- modelValue: o.value[l],
1318
- "onUpdate:modelValue": (t) => o.value[l] = t,
1378
+ modelValue: n.value[a],
1379
+ "onUpdate:modelValue": (t) => n.value[a] = t,
1319
1380
  format: b(i, J),
1320
1381
  "value-format": b(i, J),
1321
1382
  type: i,
1322
- placeholder: E(i, f, z),
1323
- onChange: (t) => h(i, l)
1383
+ placeholder: p(i, m, z),
1384
+ onChange: (t) => h(i, a)
1324
1385
  }, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : $("", !0),
1325
1386
  [
1326
1387
  s(e).DATE_RANGE,
1327
1388
  s(e).MONTH_RANGE,
1328
1389
  s(e).DATE_TIME_RANGE
1329
- ].includes(i) ? (u(), p(X, {
1390
+ ].includes(i) ? (o(), E(X, {
1330
1391
  key: 8,
1331
- modelValue: o.value[l],
1332
- "onUpdate:modelValue": (t) => o.value[l] = t,
1392
+ modelValue: n.value[a],
1393
+ "onUpdate:modelValue": (t) => n.value[a] = t,
1333
1394
  type: i,
1334
1395
  "value-format": b(i, J),
1335
- "start-placeholder": E(i, f, z)[0],
1336
- "end-placeholder": E(i, f, z)[1],
1337
- 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)
1338
1399
  }, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : $("", !0),
1339
- [s(e).TIME].includes(i) ? (u(), p(Z, {
1400
+ [s(e).TIME].includes(i) ? (o(), E(Z, {
1340
1401
  key: 9,
1341
- modelValue: o.value[l],
1342
- "onUpdate:modelValue": (t) => o.value[l] = t,
1402
+ modelValue: n.value[a],
1403
+ "onUpdate:modelValue": (t) => n.value[a] = t,
1343
1404
  "arrow-control": "",
1344
1405
  "value-format": b(i, J),
1345
- placeholder: E(i, f, z),
1346
- onChange: (t) => h(i, l)
1406
+ placeholder: p(i, m, z),
1407
+ onChange: (t) => h(i, a)
1347
1408
  }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : $("", !0),
1348
- [s(e).TIME_RANGE].includes(i) ? (u(), p(Z, {
1409
+ [s(e).TIME_RANGE].includes(i) ? (o(), E(Z, {
1349
1410
  key: 10,
1350
- modelValue: o.value[l],
1351
- "onUpdate:modelValue": (t) => o.value[l] = t,
1411
+ modelValue: n.value[a],
1412
+ "onUpdate:modelValue": (t) => n.value[a] = t,
1352
1413
  "is-range": "",
1353
1414
  "value-format": b(i, J),
1354
- "start-placeholder": E(i, f, z)[0],
1355
- "end-placeholder": E(i, f, z)[1],
1356
- 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)
1357
1418
  }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : $("", !0),
1358
- [s(e).CHECKBOX].includes(i) ? (u(), p(ee, {
1419
+ [s(e).CHECKBOX].includes(i) ? (o(), E(ee, {
1359
1420
  key: 11,
1360
- modelValue: o.value[l],
1361
- "onUpdate:modelValue": (t) => o.value[l] = t,
1362
- onChange: (t) => h(i, l)
1421
+ modelValue: n.value[a],
1422
+ "onUpdate:modelValue": (t) => n.value[a] = t,
1423
+ onChange: (t) => h(i, a)
1363
1424
  }, {
1364
1425
  default: A(() => [
1365
- (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, {
1366
1427
  key: H,
1367
1428
  label: t.value
1368
1429
  }, {
@@ -1374,12 +1435,20 @@ const Yt = { class: "bsgoal-base-search" }, Ht = { class: "base_search" }, Gt =
1374
1435
  ]),
1375
1436
  _: 2
1376
1437
  }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : $("", !0),
1377
- [].includes(i) ? (u(), V(I, { key: 12 }, [], 64)) : $("", !0),
1378
- [s(e).OPERATION].includes(i) ? (u(), p(zt, {
1379
- 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,
1380
1449
  fold: te >= 7,
1381
- onOnSearch: w,
1382
- onOnClear: y,
1450
+ onOnSearch: y,
1451
+ onOnClear: w,
1383
1452
  onOnFold: R
1384
1453
  }, null, 8, ["fold"])) : $("", !0)
1385
1454
  ], 64))
@@ -1405,9 +1474,9 @@ const Yt = { class: "bsgoal-base-search" }, Ht = { class: "base_search" }, Gt =
1405
1474
  };
1406
1475
  }
1407
1476
  });
1408
- 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 = {
1409
1478
  name: "BsgoalBaseSearchTable"
1410
- }, Jt = /* @__PURE__ */ Object.assign(qt, {
1479
+ }, Qt = /* @__PURE__ */ Object.assign(Jt, {
1411
1480
  props: {
1412
1481
  /**
1413
1482
  * >----------props----------<
@@ -1485,35 +1554,35 @@ const Xt = { class: "bsgoal-base-search-table" }, Kt = { class: "base_search_tab
1485
1554
  default: 75
1486
1555
  }
1487
1556
  },
1488
- setup(a) {
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);
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);
1493
1562
  };
1494
- return (y, N) => (u(), V("div", Xt, [
1495
- F("div", Kt, [
1496
- D(Wt, {
1563
+ return (w, N) => (o(), T("div", Kt, [
1564
+ F("div", qt, [
1565
+ D(Xt, {
1497
1566
  "config-options": s(_),
1498
- onOnSearch: w,
1499
- onOnClear: w
1567
+ onOnSearch: y,
1568
+ onOnClear: y
1500
1569
  }, null, 8, ["config-options"]),
1501
1570
  D(xe, {
1502
1571
  ref_key: "BSGOAL_BASE_TABLE_REF",
1503
1572
  ref: b,
1504
- operationWidth: a.operationWidth,
1505
- "config-options": s(o),
1506
- data: a.tableData,
1507
- selection: a.selection,
1508
- operation: a.operation,
1509
- expression: a.expression,
1510
- fetch: a.fetch,
1511
- call: a.call
1573
+ operationWidth: l.operationWidth,
1574
+ "config-options": s(n),
1575
+ data: l.tableData,
1576
+ selection: l.selection,
1577
+ operation: l.operation,
1578
+ expression: l.expression,
1579
+ fetch: l.fetch,
1580
+ call: l.call
1512
1581
  }, Ne({ _: 2 }, [
1513
- W(E.value, (x) => ({
1582
+ W(p.value, (x) => ({
1514
1583
  name: x,
1515
1584
  fn: A(({ row: R = {} }) => [
1516
- ie(y.$slots, x, { row: R })
1585
+ ie(w.$slots, x, { row: R })
1517
1586
  ])
1518
1587
  }))
1519
1588
  ]), 1032, ["operationWidth", "config-options", "data", "selection", "operation", "expression", "fetch", "call"])
@@ -1521,30 +1590,30 @@ const Xt = { class: "bsgoal-base-search-table" }, Kt = { class: "base_search_tab
1521
1590
  ]));
1522
1591
  }
1523
1592
  });
1524
- const Qt = { class: "bsgoal-base-tree-fold" }, Zt = {
1593
+ const Zt = { class: "bsgoal-base-tree-fold" }, ea = {
1525
1594
  name: "BsgoalBaseTreeFold"
1526
- }, ea = /* @__PURE__ */ Object.assign(Zt, {
1595
+ }, ta = /* @__PURE__ */ Object.assign(ea, {
1527
1596
  props: ["modelValue"],
1528
1597
  emits: ["update:modelValue"],
1529
- setup(a, { emit: c }) {
1530
- let n = B(!0);
1598
+ setup(l, { emit: c }) {
1599
+ let u = B(!0);
1531
1600
  const d = () => {
1532
- n.value = !n.value, c("update:modelValue", n.value);
1601
+ u.value = !u.value, c("update:modelValue", u.value);
1533
1602
  };
1534
- return (_, o) => {
1603
+ return (_, n) => {
1535
1604
  const r = g("el-icon");
1536
- return u(), V("div", Qt, [
1605
+ return o(), T("div", Zt, [
1537
1606
  F("div", {
1538
- class: ge(["base_tree_fold", { "base_tree_fold--hide": !s(n) }]),
1607
+ class: ge(["base_tree_fold", { "base_tree_fold--hide": !s(u) }]),
1539
1608
  onClick: d
1540
1609
  }, [
1541
1610
  D(r, { color: "#fff" }, {
1542
1611
  default: A(() => [
1543
1612
  G(D(s(mt), null, null, 512), [
1544
- [Q, s(n)]
1613
+ [Q, s(u)]
1545
1614
  ]),
1546
- G(D(s(pt), null, null, 512), [
1547
- [Q, !s(n)]
1615
+ G(D(s(Et), null, null, 512), [
1616
+ [Q, !s(u)]
1548
1617
  ])
1549
1618
  ]),
1550
1619
  _: 1
@@ -1554,9 +1623,9 @@ const Qt = { class: "bsgoal-base-tree-fold" }, Zt = {
1554
1623
  };
1555
1624
  }
1556
1625
  });
1557
- 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 = {
1558
1627
  name: "BsgoalBaseTree"
1559
- }, oa = /* @__PURE__ */ Object.assign(na, {
1628
+ }, ua = /* @__PURE__ */ Object.assign(oa, {
1560
1629
  props: {
1561
1630
  /**
1562
1631
  * 树结构 的下边距
@@ -1609,27 +1678,27 @@ const ta = { class: "bsgoal-base-tree" }, aa = { class: "base_tree" }, la = { cl
1609
1678
  }
1610
1679
  },
1611
1680
  emits: ["on-click"],
1612
- setup(a, { emit: c }) {
1613
- const n = a, d = Ee.height, _ = B(""), o = B(null);
1614
- ue(_, (y) => {
1615
- o.value.filter(y);
1681
+ setup(l, { emit: c }) {
1682
+ const u = l, d = pe.height, _ = B(""), n = B(null);
1683
+ ue(_, (w) => {
1684
+ n.value.filter(w);
1616
1685
  });
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);
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);
1622
1691
  return N(R || []);
1623
1692
  } else {
1624
- const R = await x.lazyLoad(y);
1693
+ const R = await x.lazyLoad(w);
1625
1694
  N(R || []);
1626
1695
  }
1627
1696
  };
1628
- return (y, N) => {
1697
+ return (w, N) => {
1629
1698
  const x = g("el-input"), R = g("el-tree");
1630
- return u(), V("div", ta, [
1631
- G((u(), V("div", aa, [
1632
- G(F("div", la, [
1699
+ return o(), T("div", aa, [
1700
+ G((o(), T("div", la, [
1701
+ G(F("div", na, [
1633
1702
  D(x, {
1634
1703
  modelValue: _.value,
1635
1704
  "onUpdate:modelValue": N[0] || (N[0] = (h) => _.value = h),
@@ -1638,36 +1707,36 @@ const ta = { class: "bsgoal-base-tree" }, aa = { class: "base_tree" }, la = { cl
1638
1707
  }, null, 8, ["modelValue"]),
1639
1708
  D(R, {
1640
1709
  ref_key: "EL_TREE_REF",
1641
- ref: o,
1710
+ ref: n,
1642
1711
  lazy: "",
1643
1712
  "highlight-current": "",
1644
1713
  "empty-text": "暂无数据",
1645
- load: (h, v) => w(h, v, n),
1714
+ load: (h, v) => y(h, v, u),
1646
1715
  "expand-on-click-node": !1,
1647
- props: a.treeProps,
1716
+ props: l.treeProps,
1648
1717
  "filter-node-method": r,
1649
1718
  onNodeClick: b
1650
1719
  }, null, 8, ["load", "props"])
1651
1720
  ], 512), [
1652
- [Q, E.value]
1721
+ [Q, p.value]
1653
1722
  ]),
1654
1723
  G(D(be, { vertical: "" }, null, 512), [
1655
- [Q, E.value]
1724
+ [Q, p.value]
1656
1725
  ]),
1657
- D(ea, {
1658
- modelValue: E.value,
1659
- "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)
1660
1729
  }, null, 8, ["modelValue"])
1661
1730
  ])), [
1662
- [s(d), a.gasket]
1731
+ [s(d), l.gasket]
1663
1732
  ])
1664
1733
  ]);
1665
1734
  };
1666
1735
  }
1667
1736
  });
1668
- 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 = {
1669
1738
  name: "BsgoalBaseDialog"
1670
- }, _a = /* @__PURE__ */ Object.assign(da, {
1739
+ }, ma = /* @__PURE__ */ Object.assign(_a, {
1671
1740
  props: {
1672
1741
  /**
1673
1742
  * 弹窗状态
@@ -1699,52 +1768,52 @@ const ua = { class: "bsgoal-base-dialog" }, sa = { class: "base_dialog" }, ra =
1699
1768
  }
1700
1769
  },
1701
1770
  emits: ["update:modelValue", "on-confirm"],
1702
- setup(a, { emit: c }) {
1703
- const n = a, d = B(n.modelValue.value), _ = () => {
1771
+ setup(l, { emit: c }) {
1772
+ const u = l, d = B(u.modelValue.value), _ = () => {
1704
1773
  d.value = !1;
1705
- }, o = () => {
1774
+ }, n = () => {
1706
1775
  d.value = !1, c("on-confirm");
1707
1776
  };
1708
1777
  return ue(
1709
- () => n.modelValue,
1778
+ () => u.modelValue,
1710
1779
  (r) => {
1711
1780
  d.value = r;
1712
1781
  }
1713
1782
  ), ue(d, (r) => {
1714
1783
  c("update:modelValue", r);
1715
- }), (r, E) => {
1716
- const b = g("el-button"), w = g("el-dialog");
1717
- return u(), V("div", ua, [
1718
- F("div", sa, [
1719
- D(w, {
1784
+ }), (r, p) => {
1785
+ const b = g("el-button"), y = g("el-dialog");
1786
+ return o(), T("div", sa, [
1787
+ F("div", ra, [
1788
+ D(y, {
1720
1789
  modelValue: d.value,
1721
- "onUpdate:modelValue": E[0] || (E[0] = (y) => d.value = y),
1790
+ "onUpdate:modelValue": p[0] || (p[0] = (w) => d.value = w),
1722
1791
  "custom-class": "bsgoal_base_dialog_main"
1723
1792
  }, {
1724
1793
  header: A(() => [
1725
- F("div", ra, j(a.title), 1)
1794
+ F("div", ca, j(l.title), 1)
1726
1795
  ]),
1727
1796
  footer: A(() => [
1728
- F("span", ia, [
1797
+ F("span", da, [
1729
1798
  D(b, { onClick: _ }, {
1730
1799
  default: A(() => [
1731
- K(j(a.cancelTxt), 1)
1800
+ K(j(l.cancelTxt), 1)
1732
1801
  ]),
1733
1802
  _: 1
1734
1803
  }),
1735
1804
  D(b, {
1736
1805
  type: "primary",
1737
- onClick: o
1806
+ onClick: n
1738
1807
  }, {
1739
1808
  default: A(() => [
1740
- K(j(a.confirmTxt), 1)
1809
+ K(j(l.confirmTxt), 1)
1741
1810
  ]),
1742
1811
  _: 1
1743
1812
  })
1744
1813
  ])
1745
1814
  ]),
1746
1815
  default: A(() => [
1747
- F("div", ca, [
1816
+ F("div", ia, [
1748
1817
  ie(r.$slots, "default")
1749
1818
  ])
1750
1819
  ]),
@@ -1754,25 +1823,25 @@ const ua = { class: "bsgoal-base-dialog" }, sa = { class: "base_dialog" }, ra =
1754
1823
  ]);
1755
1824
  };
1756
1825
  }
1757
- }), ga = e, ha = pe, Ea = {
1758
- install(a, c = {}) {
1759
- const { exclude: n = [] } = c, d = {
1826
+ }), ha = e, pa = Ee, Ea = {
1827
+ install(l, c = {}) {
1828
+ const { exclude: u = [] } = c, d = {
1760
1829
  BsgoalBaseForm: Ie,
1761
1830
  BsgoalBaseTable: xe,
1762
1831
  BsgoalBaseLine: be,
1763
- BsgoalBaseSearchTable: Jt,
1764
- BsgoalBaseTree: oa,
1765
- BsgoalBaseDialog: _a
1832
+ BsgoalBaseSearchTable: Qt,
1833
+ BsgoalBaseTree: ua,
1834
+ BsgoalBaseDialog: ma
1766
1835
  };
1767
- for (const [_, o] of Object.entries(d))
1768
- n.includes(_) || a.component(_, o);
1836
+ for (const [_, n] of Object.entries(d))
1837
+ u.includes(_) || l.component(_, n);
1769
1838
  },
1770
1839
  enumType: e,
1771
- useFetch: pe
1840
+ useFetch: Ee
1772
1841
  };
1773
1842
  export {
1774
- ga as EnumType,
1843
+ ha as EnumType,
1775
1844
  Ea as default,
1776
- ha as useFetchApi
1845
+ pa as useFetchApi
1777
1846
  };
1778
1847
  //# sourceMappingURL=index.mjs.map