@bsgoal/common 1.4.4 → 1.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,16 +1,16 @@
1
- var ye = Object.defineProperty;
1
+ var we = Object.defineProperty;
2
2
  var Te = Object.getOwnPropertySymbols;
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) => {
3
+ var xe = Object.prototype.hasOwnProperty, Be = Object.prototype.propertyIsEnumerable;
4
+ var Ve = (l, c, u) => c in l ? we(l, c, { enumerable: !0, configurable: !0, writable: !0, value: u }) : l[c] = u, Ae = (l, c) => {
5
5
  for (var u in c || (c = {}))
6
- we.call(c, u) && Ve(l, u, c[u]);
6
+ xe.call(c, u) && Ve(l, u, c[u]);
7
7
  if (Te)
8
8
  for (var u of Te(c))
9
9
  Be.call(c, u) && Ve(l, u, c[u]);
10
10
  return l;
11
11
  };
12
- import { ref as D, 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 C, createVNode as O, Fragment as I, renderList as W, createCommentVNode as x, 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
- import { ElMessage as Fe } from "element-plus";
12
+ import { ref as D, watchEffect as he, unref as s, computed as oe, resolveComponent as g, openBlock as o, createElementBlock as V, createElementVNode as F, withDirectives as j, createBlock as b, withCtx as C, createVNode as O, Fragment as P, renderList as X, createCommentVNode as y, createTextVNode as K, toDisplayString as W, nextTick as Ce, inject as $e, watch as ue, resolveDirective as De, renderSlot as ie, normalizeClass as ve, vShow as te, isProxy as Oe, toRaw as ke, provide as Ne, useSlots as Fe, createSlots as Me } from "vue";
13
+ import { ElMessage as Re } from "element-plus";
14
14
  const e = {
15
15
  INPUT: "text",
16
16
  INPUT_NUMBER: "number",
@@ -34,22 +34,22 @@ const e = {
34
34
  CASCADER: "cascader"
35
35
  };
36
36
  let fe = null;
37
- const ve = (l) => {
37
+ const ge = (l) => {
38
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: w } = b;
42
- w.style.width = `${p}px`;
39
+ const r = n.map((T) => T.width), E = Math.max(...r);
40
+ n.forEach((T) => {
41
+ const { labelEl: x } = T;
42
+ x.style.width = `${E}px`;
43
43
  });
44
44
  }, _ = () => {
45
45
  if (l) {
46
46
  const n = l.querySelectorAll(".el-form-item__label");
47
47
  if (n && n.length) {
48
48
  let r = 0;
49
- n.forEach((p, b) => {
50
- p.style.width = "initial", p.style.whiteSpace = "nowrap";
51
- const { x: w = 0, width: $ = 0 } = p.getBoundingClientRect(), B = { x: w, width: $, labelEl: p };
52
- b === 0 && (r = w), w === r ? c.push(B) : u.push(B);
49
+ n.forEach((E, T) => {
50
+ E.style.width = "initial", E.style.whiteSpace = "nowrap";
51
+ const { x = 0, width: $ = 0 } = E.getBoundingClientRect(), B = { x, width: $, labelEl: E };
52
+ T === 0 && (r = x), x === r ? c.push(B) : u.push(B);
53
53
  });
54
54
  }
55
55
  }
@@ -64,14 +64,14 @@ const ve = (l) => {
64
64
  align: {
65
65
  created(l) {
66
66
  window.addEventListener("resize", () => {
67
- ve(l);
67
+ ge(l);
68
68
  });
69
69
  },
70
70
  mounted(l) {
71
- ve(l);
71
+ ge(l);
72
72
  },
73
73
  unmounted(l) {
74
- window.removeEventListener("resize", ve(l));
74
+ window.removeEventListener("resize", ge(l));
75
75
  }
76
76
  },
77
77
  /**
@@ -84,9 +84,9 @@ const ve = (l) => {
84
84
  }
85
85
  }
86
86
  };
87
- const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Se = { key: 1 }, Ue = {
87
+ const Se = { class: "bsgoal-base-form" }, Ue = { class: "base_form" }, Ie = { key: 1 }, Pe = {
88
88
  name: "BsgoalBaseForm"
89
- }, Ie = /* @__PURE__ */ Object.assign(Ue, {
89
+ }, Le = /* @__PURE__ */ Object.assign(Pe, {
90
90
  props: {
91
91
  /**
92
92
  * >----------props----------<
@@ -130,25 +130,25 @@ const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Se = { ke
130
130
  setup(l, { expose: c, emit: u }) {
131
131
  const d = l, _ = D(null), n = pe.align, r = D({});
132
132
  he(() => {
133
- const { configOptions: h, values: v } = d, V = s(h), f = s(v);
134
- V.forEach((A) => {
135
- const { value: k = "", prop: N = "", type: M = "" } = A;
136
- [e.INPUT, e.INPUT_TEXT_AREA].includes(M), r.value[N] = f[N] || k;
133
+ const { configOptions: v, values: h } = d, A = s(v), f = s(h);
134
+ A.forEach((p) => {
135
+ const { value: k = "", prop: N = "", type: R = "" } = p;
136
+ [e.INPUT, e.INPUT_TEXT_AREA].includes(R), r.value[N] = f[N] || k;
137
137
  });
138
138
  });
139
- const p = oe(() => {
140
- const { configOptions: h } = d;
141
- return s(h).map((f) => {
142
- let { rules: A = !1, label: k = "" } = f;
139
+ const E = oe(() => {
140
+ const { configOptions: v } = d;
141
+ return s(v).map((f) => {
142
+ let { rules: p = !1, label: k = "" } = f;
143
143
  const N = { required: !0, message: `${k}不能为空`, trigger: "blur" };
144
- return A && (typeof A == "boolean" ? A = [N] : Array.isArray(A) ? A = [N, ...A] : A = [N, A]), f.rules = A, f;
144
+ return p && (typeof p == "boolean" ? p = [N] : Array.isArray(p) ? p = [N, ...p] : p = [N, p]), f.rules = p, f;
145
145
  });
146
- }), b = (h = "", v = "", V = "") => {
147
- if (!V)
148
- switch (h) {
146
+ }), T = (v = "", h = "", A = "") => {
147
+ if (!A)
148
+ switch (v) {
149
149
  case e.INPUT:
150
150
  case e.INPUT_TEXT_AREA:
151
- return `请输入${v}`;
151
+ return `请输入${h}`;
152
152
  case e.SELECT:
153
153
  case e.DATE:
154
154
  case e.WEEK:
@@ -156,7 +156,7 @@ const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Se = { ke
156
156
  case e.YEAR:
157
157
  case e.DATE_TIME:
158
158
  case e.TIME:
159
- return `请选择${v}`;
159
+ return `请选择${h}`;
160
160
  case e.DATE_RANGE:
161
161
  case e.DATE_TIME_RANGE:
162
162
  return ["开始日期", "结束日期"];
@@ -165,10 +165,10 @@ const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Se = { ke
165
165
  case e.MONTH_RANGE:
166
166
  return ["开始月份", "结束月份"];
167
167
  }
168
- return V;
169
- }, w = (h = "", v = "") => {
170
- if (!v)
171
- switch (h) {
168
+ return A;
169
+ }, x = (v = "", h = "") => {
170
+ if (!h)
171
+ switch (v) {
172
172
  case e.WEEK:
173
173
  return "ww";
174
174
  case e.DATE:
@@ -187,52 +187,52 @@ const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Se = { ke
187
187
  case e.DATE_TIME_RANGE:
188
188
  return "YYYY-MM-DD HH:mm:ss";
189
189
  }
190
- return v;
190
+ return h;
191
191
  }, $ = () => {
192
- const h = s(r), { configOptions: v } = d, V = s(v);
193
- for (const f of V) {
194
- const { type: A = "", range: k = [], prop: N = "" } = f;
195
- if (A.endsWith("range") && k && k.length === 2) {
196
- const { 0: M = "", 1: P = "" } = h[N], { 0: S = "", 1: U = "" } = k;
197
- h[S] = M, h[U] = P;
192
+ const v = s(r), { configOptions: h } = d, A = s(h);
193
+ for (const f of A) {
194
+ const { type: p = "", range: k = [], prop: N = "" } = f;
195
+ if (p.endsWith("range") && k && k.length === 2) {
196
+ const { 0: R = "", 1: S = "" } = v[N], { 0: I = "", 1: M = "" } = k;
197
+ v[I] = R, v[M] = S;
198
198
  }
199
199
  }
200
- return u("on-form", h), h;
200
+ return u("on-form", v), v;
201
201
  }, B = () => {
202
202
  _.value.resetFields(), u("on-clear", r.value);
203
- }, y = (h, v) => {
204
- const V = {
205
- type: h,
206
- prop: v,
207
- value: r.value[v] || ""
203
+ }, w = (v, h) => {
204
+ const A = {
205
+ type: v,
206
+ prop: h,
207
+ value: r.value[h] || ""
208
208
  };
209
- u("on-change", V);
209
+ u("on-change", A);
210
210
  };
211
211
  return c({
212
212
  triggerOperationClear: B,
213
213
  triggerOperationForm: $,
214
- validateForm: (h = () => {
214
+ validateForm: (v = () => {
215
215
  }) => {
216
- _.value.validate((v = !1, V = {}) => {
217
- if (v) {
216
+ _.value.validate((h = !1, A = {}) => {
217
+ if (h) {
218
218
  const f = $();
219
- h(f);
219
+ v(f);
220
220
  } else {
221
- h(!1), console.log("field", V);
222
- const f = Object.keys(V)[0], {
221
+ v(!1), console.log("field", A);
222
+ const f = Object.keys(A)[0], {
223
223
  [f]: {
224
- 0: { message: A = "" }
224
+ 0: { message: p = "" }
225
225
  }
226
- } = V;
227
- Fe.error(A);
226
+ } = A;
227
+ Re.error(p);
228
228
  }
229
229
  });
230
230
  }
231
- }), (h, v) => {
232
- const V = g("el-input"), f = g("el-input-number"), A = g("el-radio"), k = g("el-radio-group"), N = 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, [
234
- F("div", Re, [
235
- G((o(), E(me, {
231
+ }), (v, h) => {
232
+ const A = g("el-input"), f = g("el-input-number"), p = g("el-radio"), k = g("el-radio-group"), N = g("el-option"), R = g("el-select"), S = g("el-slider"), I = g("el-switch"), M = g("el-date-picker"), L = g("el-time-picker"), q = g("el-checkbox"), Z = g("el-checkbox-group"), J = g("el-form-item"), de = g("el-col"), _e = g("el-row"), me = g("el-form");
233
+ return o(), V("div", Se, [
234
+ F("div", Ue, [
235
+ j((o(), b(me, {
236
236
  ref_key: "EL_FORM_REF",
237
237
  ref: _,
238
238
  "label-suffix": ":",
@@ -241,175 +241,175 @@ const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Se = { ke
241
241
  default: C(() => [
242
242
  O(_e, null, {
243
243
  default: C(() => [
244
- (o(!0), T(I, null, W(s(p), ({
245
- label: L = "",
244
+ (o(!0), V(P, null, X(s(E), ({
245
+ label: z = "",
246
246
  prop: m = "",
247
247
  type: a = "text",
248
248
  placeholder: i = "",
249
- readonly: z = !1,
249
+ readonly: Y = !1,
250
250
  clearable: se = !0,
251
251
  rows: re = 2,
252
252
  min: ce = 1,
253
253
  max: ne = 10,
254
- range: q = [],
255
- format: Y = "",
256
- rules: J = []
257
- } = {}, te) => (o(), E(de, {
258
- key: te,
254
+ range: Q = [],
255
+ format: H = "",
256
+ rules: ee = []
257
+ } = {}, ae) => (o(), b(de, {
258
+ key: ae,
259
259
  xs: 24,
260
260
  sm: 24,
261
261
  md: l.medium
262
262
  }, {
263
263
  default: C(() => [
264
- O(ee, {
265
- label: L,
264
+ O(J, {
265
+ label: z,
266
266
  prop: m,
267
- rules: J
267
+ rules: ee
268
268
  }, {
269
269
  default: C(() => [
270
- z ? (o(), T("div", Se, j(r.value[m]), 1)) : (o(), T(I, { key: 0 }, [
271
- a === s(e).INPUT ? (o(), E(V, {
270
+ Y ? (o(), V("div", Ie, W(r.value[m]), 1)) : (o(), V(P, { key: 0 }, [
271
+ a === s(e).INPUT ? (o(), b(A, {
272
272
  key: 0,
273
273
  modelValue: r.value[m],
274
274
  "onUpdate:modelValue": (t) => r.value[m] = t,
275
- placeholder: b(a, L, i),
275
+ placeholder: T(a, z, i),
276
276
  clearable: se,
277
- onChange: (t) => y(a, m)
278
- }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : x("", !0),
279
- a === s(e).INPUT_TEXT_AREA ? (o(), E(V, {
277
+ onChange: (t) => w(a, m)
278
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : y("", !0),
279
+ a === s(e).INPUT_TEXT_AREA ? (o(), b(A, {
280
280
  key: 1,
281
281
  modelValue: r.value[m],
282
282
  "onUpdate:modelValue": (t) => r.value[m] = t,
283
283
  type: "textarea",
284
284
  rows: re,
285
285
  clearable: se,
286
- placeholder: b(a, L, i),
287
- onChange: (t) => y(a, m)
288
- }, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : x("", !0),
289
- a === s(e).INPUT_NUMBER ? (o(), E(f, {
286
+ placeholder: T(a, z, i),
287
+ onChange: (t) => w(a, m)
288
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : y("", !0),
289
+ a === s(e).INPUT_NUMBER ? (o(), b(f, {
290
290
  key: 2,
291
- modelValue: h.num,
292
- "onUpdate:modelValue": v[0] || (v[0] = (t) => h.num = t),
291
+ modelValue: v.num,
292
+ "onUpdate:modelValue": h[0] || (h[0] = (t) => v.num = t),
293
293
  min: ce,
294
294
  max: ne,
295
- onChange: y
296
- }, null, 8, ["modelValue", "min", "max"])) : x("", !0),
297
- a === s(e).RADIO ? (o(), E(k, {
295
+ onChange: w
296
+ }, null, 8, ["modelValue", "min", "max"])) : y("", !0),
297
+ a === s(e).RADIO ? (o(), b(k, {
298
298
  key: 3,
299
299
  modelValue: r.value[m],
300
300
  "onUpdate:modelValue": (t) => r.value[m] = t,
301
- onChange: (t) => y(a, m)
301
+ onChange: (t) => w(a, m)
302
302
  }, {
303
303
  default: C(() => [
304
- (o(!0), T(I, null, W(q, (t, H) => (o(), E(A, {
305
- key: H,
304
+ (o(!0), V(P, null, X(Q, (t, G) => (o(), b(p, {
305
+ key: G,
306
306
  label: t.value
307
307
  }, {
308
308
  default: C(() => [
309
- K(j(t.label), 1)
309
+ K(W(t.label), 1)
310
310
  ]),
311
311
  _: 2
312
312
  }, 1032, ["label"]))), 128))
313
313
  ]),
314
314
  _: 2
315
- }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : x("", !0),
316
- a === s(e).SELECT ? (o(), E(M, {
315
+ }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : y("", !0),
316
+ a === s(e).SELECT ? (o(), b(R, {
317
317
  key: 4,
318
318
  modelValue: r.value[m],
319
319
  "onUpdate:modelValue": (t) => r.value[m] = t,
320
- placeholder: b(a, L, i),
321
- onChange: (t) => y(a, m)
320
+ placeholder: T(a, z, i),
321
+ onChange: (t) => w(a, m)
322
322
  }, {
323
323
  default: C(() => [
324
- (o(!0), T(I, null, W(q, (t, H) => (o(), E(N, {
325
- key: H,
324
+ (o(!0), V(P, null, X(Q, (t, G) => (o(), b(N, {
325
+ key: G,
326
326
  label: t.label,
327
327
  value: t.value
328
328
  }, null, 8, ["label", "value"]))), 128))
329
329
  ]),
330
330
  _: 2
331
- }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : x("", !0),
332
- a === s(e).SLIDER ? (o(), E(P, {
331
+ }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : y("", !0),
332
+ a === s(e).SLIDER ? (o(), b(S, {
333
333
  key: 5,
334
334
  modelValue: r.value[m],
335
335
  "onUpdate:modelValue": (t) => r.value[m] = t,
336
336
  min: ce,
337
337
  max: ne,
338
- onChange: (t) => y(a, m)
339
- }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : x("", !0),
340
- a === s(e).SWITCH ? (o(), E(S, {
338
+ onChange: (t) => w(a, m)
339
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : y("", !0),
340
+ a === s(e).SWITCH ? (o(), b(I, {
341
341
  key: 6,
342
342
  modelValue: r.value[m],
343
343
  "onUpdate:modelValue": (t) => r.value[m] = t,
344
- "active-value": q[0] || !0,
345
- "inactive-value": q[1] || !1,
346
- onChange: (t) => y(a, m)
347
- }, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : x("", !0),
344
+ "active-value": Q[0] || !0,
345
+ "inactive-value": Q[1] || !1,
346
+ onChange: (t) => w(a, m)
347
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : y("", !0),
348
348
  [s(e).DATE, s(e).MONTH, s(e).YEAR, s(e).DATE_TIME].includes(
349
349
  a
350
- ) ? (o(), E(U, {
350
+ ) ? (o(), b(M, {
351
351
  key: 7,
352
352
  modelValue: r.value[m],
353
353
  "onUpdate:modelValue": (t) => r.value[m] = t,
354
- format: w(a, Y),
355
- "value-format": w(a, Y),
354
+ format: x(a, H),
355
+ "value-format": x(a, H),
356
356
  type: a,
357
- placeholder: b(a, L, i),
358
- onChange: (t) => y(a, m)
359
- }, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : x("", !0),
357
+ placeholder: T(a, z, i),
358
+ onChange: (t) => w(a, m)
359
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : y("", !0),
360
360
  [
361
361
  s(e).DATE_RANGE,
362
362
  s(e).MONTH_RANGE,
363
363
  s(e).DATE_TIME_RANGE
364
- ].includes(a) ? (o(), E(U, {
364
+ ].includes(a) ? (o(), b(M, {
365
365
  key: 8,
366
366
  modelValue: r.value[m],
367
367
  "onUpdate:modelValue": (t) => r.value[m] = t,
368
368
  type: a,
369
- "value-format": w(a, Y),
370
- "start-placeholder": b(a, L, i)[0],
371
- "end-placeholder": b(a, L, i)[1],
372
- onChange: (t) => y(a, m)
373
- }, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : x("", !0),
374
- [s(e).TIME].includes(a) ? (o(), E(X, {
369
+ "value-format": x(a, H),
370
+ "start-placeholder": T(a, z, i)[0],
371
+ "end-placeholder": T(a, z, i)[1],
372
+ onChange: (t) => w(a, m)
373
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : y("", !0),
374
+ [s(e).TIME].includes(a) ? (o(), b(L, {
375
375
  key: 9,
376
376
  modelValue: r.value[m],
377
377
  "onUpdate:modelValue": (t) => r.value[m] = t,
378
378
  "arrow-control": "",
379
- "value-format": w(a, Y),
380
- placeholder: b(a, L, i),
381
- onChange: (t) => y(a, m)
382
- }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : x("", !0),
383
- [s(e).TIME_RANGE].includes(a) ? (o(), E(X, {
379
+ "value-format": x(a, H),
380
+ placeholder: T(a, z, i),
381
+ onChange: (t) => w(a, m)
382
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : y("", !0),
383
+ [s(e).TIME_RANGE].includes(a) ? (o(), b(L, {
384
384
  key: 10,
385
385
  modelValue: r.value[m],
386
386
  "onUpdate:modelValue": (t) => r.value[m] = t,
387
387
  "is-range": "",
388
- "value-format": w(a, Y),
389
- "start-placeholder": b(a, L, i)[0],
390
- "end-placeholder": b(a, L, i)[1],
391
- onChange: (t) => y(a, m)
392
- }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : x("", !0),
393
- [s(e).CHECKBOX].includes(a) ? (o(), E(le, {
388
+ "value-format": x(a, H),
389
+ "start-placeholder": T(a, z, i)[0],
390
+ "end-placeholder": T(a, z, i)[1],
391
+ onChange: (t) => w(a, m)
392
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : y("", !0),
393
+ [s(e).CHECKBOX].includes(a) ? (o(), b(Z, {
394
394
  key: 11,
395
395
  modelValue: r.value[m],
396
396
  "onUpdate:modelValue": (t) => r.value[m] = t,
397
- onChange: (t) => y(a, m)
397
+ onChange: (t) => w(a, m)
398
398
  }, {
399
399
  default: C(() => [
400
- (o(!0), T(I, null, W(q, (t, H) => (o(), E(Z, {
401
- key: H,
400
+ (o(!0), V(P, null, X(Q, (t, G) => (o(), b(q, {
401
+ key: G,
402
402
  label: t.value
403
403
  }, {
404
404
  default: C(() => [
405
- K(j(t.label), 1)
405
+ K(W(t.label), 1)
406
406
  ]),
407
407
  _: 2
408
408
  }, 1032, ["label"]))), 128))
409
409
  ]),
410
410
  _: 2
411
- }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : x("", !0),
412
- [].includes(a) ? (o(), T(I, { key: 12 }, [], 64)) : x("", !0)
411
+ }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : y("", !0),
412
+ [].includes(a) ? (o(), V(P, { key: 12 }, [], 64)) : y("", !0)
413
413
  ], 64))
414
414
  ]),
415
415
  _: 2
@@ -430,9 +430,9 @@ const Me = { class: "bsgoal-base-form" }, Re = { class: "base_form" }, Se = { ke
430
430
  };
431
431
  }
432
432
  });
433
- const Pe = { class: "bsgoal-base-table-content" }, Le = { class: "bas_tabl_content" }, ze = {
433
+ const ze = { class: "bsgoal-base-table-content" }, Ye = { class: "bas_tabl_content" }, He = {
434
434
  name: "BsgoalBaseTableContent"
435
- }, Ye = /* @__PURE__ */ Object.assign(ze, {
435
+ }, Ge = /* @__PURE__ */ Object.assign(He, {
436
436
  props: {
437
437
  data: {
438
438
  type: [String, Number, Object, Number, Boolean],
@@ -440,13 +440,13 @@ const Pe = { class: "bsgoal-base-table-content" }, Le = { class: "bas_tabl_conte
440
440
  }
441
441
  },
442
442
  setup(l) {
443
- return (c, u) => (o(), T("div", Pe, [
444
- F("div", Le, j(l.data), 1)
443
+ return (c, u) => (o(), V("div", ze, [
444
+ F("div", Ye, W(l.data), 1)
445
445
  ]));
446
446
  }
447
447
  });
448
448
  /*! Element Plus v2.3.3 */
449
- var He = {
449
+ var je = {
450
450
  name: "zh-cn",
451
451
  el: {
452
452
  colorpicker: {
@@ -573,9 +573,9 @@ var He = {
573
573
  }
574
574
  }
575
575
  };
576
- const Ge = { class: "bsgoal-base-table-pagination" }, je = { class: "base_table_pagination" }, We = /* @__PURE__ */ F("span", null, "总数", -1), Xe = {
576
+ const We = { class: "bsgoal-base-table-pagination" }, Xe = { class: "base_table_pagination" }, Ke = /* @__PURE__ */ F("span", null, "总数", -1), qe = {
577
577
  name: "BsgoalBaseTablePagination"
578
- }, Ke = /* @__PURE__ */ Object.assign(Xe, {
578
+ }, Je = /* @__PURE__ */ Object.assign(qe, {
579
579
  props: {
580
580
  /**
581
581
  * 当前页数
@@ -614,16 +614,16 @@ const Ge = { class: "bsgoal-base-table-pagination" }, je = { class: "base_table_
614
614
  c("on-current-change", n);
615
615
  }, _ = D(1);
616
616
  return (n, r) => {
617
- const p = g("el-pagination"), b = g("el-config-provider");
618
- return o(), T("div", Ge, [
619
- F("div", je, [
620
- O(b, { locale: s(He) }, {
617
+ const E = g("el-pagination"), T = g("el-config-provider");
618
+ return o(), V("div", We, [
619
+ F("div", Xe, [
620
+ O(T, { locale: s(je) }, {
621
621
  default: C(() => [
622
- O(p, {
622
+ O(E, {
623
623
  background: "",
624
624
  layout: "total, sizes, prev, pager, next, jumper",
625
625
  "current-page": _.value,
626
- "onUpdate:currentPage": r[0] || (r[0] = (w) => _.value = w),
626
+ "onUpdate:currentPage": r[0] || (r[0] = (x) => _.value = x),
627
627
  "page-sizes": l.pageSizes,
628
628
  "page-size": l.pageSize,
629
629
  total: l.total,
@@ -631,7 +631,7 @@ const Ge = { class: "bsgoal-base-table-pagination" }, je = { class: "base_table_
631
631
  onCurrentChange: d
632
632
  }, {
633
633
  next: C(() => [
634
- We
634
+ Ke
635
635
  ]),
636
636
  _: 1
637
637
  }, 8, ["current-page", "page-sizes", "page-size", "total"])
@@ -642,7 +642,7 @@ const Ge = { class: "bsgoal-base-table-pagination" }, je = { class: "base_table_
642
642
  ]);
643
643
  };
644
644
  }
645
- }), qe = (l = null, { expression: c = 75, arg: u = {} } = {}) => {
645
+ }), Qe = (l = null, { expression: c = 75, arg: u = {} } = {}) => {
646
646
  const d = s(l);
647
647
  if (d) {
648
648
  const _ = d.querySelector(".el-table");
@@ -654,25 +654,25 @@ const Ge = { class: "bsgoal-base-table-pagination" }, je = { class: "base_table_
654
654
  }, Ee = (l = Promise.resolve(), c = null, u = D(!1), d = D(null)) => {
655
655
  const _ = D("");
656
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;
657
+ const { data: r = {}, message: E = "" } = n;
658
+ d.value = r, _.value = E, c && c(!0, r), u.value = !1;
659
659
  }).catch((n = {}) => {
660
660
  if (typeof n == "object") {
661
661
  const { message: r = "" } = n;
662
662
  _.value = r;
663
663
  } else
664
664
  _.value = n;
665
- c(!1, n), u.value = !1;
665
+ c && c(!1, n), u.value = !1;
666
666
  }).finally(() => {
667
667
  u.value = !1;
668
668
  }), { data: d, message: _, loading: u };
669
669
  };
670
- const Je = { class: "bsgoal-base-table" }, Qe = { class: "base_table" }, Ze = {
670
+ const Ze = { class: "bsgoal-base-table" }, et = { class: "base_table" }, tt = {
671
671
  key: 0,
672
672
  class: "base_table_menu"
673
- }, et = {
673
+ }, at = {
674
674
  name: "BsgoalBaseTable"
675
- }, xe = /* @__PURE__ */ Object.assign(et, {
675
+ }, ye = /* @__PURE__ */ Object.assign(at, {
676
676
  props: {
677
677
  /**
678
678
  * >----------props----------<
@@ -761,49 +761,49 @@ const Je = { class: "bsgoal-base-table" }, Qe = { class: "base_table" }, Ze = {
761
761
  },
762
762
  setup(l, { expose: c }) {
763
763
  const u = l, d = oe(() => {
764
- const { configOptions: f = [], operation: A = !1, operationWidth: k = 0 } = u, N = s(f), M = [];
765
- return A && M.push({
764
+ const { configOptions: f = [], operation: p = !1, operationWidth: k = 0 } = u, N = s(f), R = [];
765
+ return p && R.push({
766
766
  label: "操作",
767
767
  fixed: "right",
768
768
  prop: "operation",
769
769
  width: k
770
- }), [...N, ...M];
770
+ }), [...N, ...R];
771
771
  }), _ = D(null), n = $e("transferFoldStatus");
772
772
  he(() => {
773
- const f = n ? n.value : !1, A = s(u.expression);
774
- qe(_, { arg: f, expression: A });
773
+ const f = n ? n.value : !1, p = s(u.expression);
774
+ Qe(_, { arg: f, expression: p });
775
775
  });
776
- const r = D(1), p = D(10), b = D(0), w = D({}), $ = D(u.loading), B = D(u.data), y = D({}), R = () => {
777
- const { fetch: f, call: A, mapProps: k } = u, N = w.value, M = r.value, P = p.value, S = Ae({}, N), U = s(k);
778
- S[U.currentPage] = M, S[U.pageSize] = P, Ee(f(S), A, $, y);
776
+ const r = D(1), E = D(10), T = D(0), x = D({}), $ = D(u.loading), B = D(u.data), w = D({}), U = () => {
777
+ const { fetch: f, call: p, mapProps: k } = u, N = x.value, R = r.value, S = E.value, I = Ae({}, N), M = s(k);
778
+ I[M.currentPage] = R, I[M.pageSize] = S, Ee(f(I), p, $, w);
779
779
  };
780
- ue(y, (f) => {
781
- const { mapProps: A } = u, k = s(A);
782
- B.value = f[k.rows], b.value = f[k.total];
780
+ ue(w, (f) => {
781
+ const { mapProps: p } = u, k = s(p);
782
+ B.value = f[k.rows], T.value = f[k.total];
783
783
  });
784
- const h = (f = {}) => {
785
- w.value = f, r.value = 1, R();
786
- }, v = (f = 1) => {
784
+ const v = (f = {}) => {
785
+ x.value = f, r.value = 1, U();
786
+ }, h = (f = 1) => {
787
787
  r.value = f;
788
- }, V = (f = 10) => {
789
- p.value = f;
788
+ }, A = (f = 10) => {
789
+ E.value = f;
790
790
  };
791
- return ue([r, p], () => {
792
- R();
791
+ return ue([r, E], () => {
792
+ U();
793
793
  }), c({
794
- refreshList: h
795
- }), (f, A) => {
796
- const k = g("el-table-column"), N = g("el-table"), M = De("loading");
797
- return o(), T("div", Je, [
798
- F("div", Qe, [
799
- f.$slots.menu ? (o(), T("div", Ze, [
794
+ refreshList: v
795
+ }), (f, p) => {
796
+ const k = g("el-table-column"), N = g("el-table"), R = De("loading");
797
+ return o(), V("div", Ze, [
798
+ F("div", et, [
799
+ f.$slots.menu ? (o(), V("div", tt, [
800
800
  ie(f.$slots, "menu")
801
- ])) : x("", !0),
801
+ ])) : y("", !0),
802
802
  F("div", {
803
803
  ref_key: "EL_TABLE_WRAP_REF",
804
804
  ref: _
805
805
  }, [
806
- G((o(), E(N, {
806
+ j((o(), b(N, {
807
807
  stripe: "",
808
808
  border: "",
809
809
  "highlight-current-row": "",
@@ -818,24 +818,24 @@ const Je = { class: "bsgoal-base-table" }, Qe = { class: "base_table" }, Ze = {
818
818
  }, {
819
819
  empty: C(() => []),
820
820
  default: C(() => [
821
- l.selection ? (o(), E(k, {
821
+ l.selection ? (o(), b(k, {
822
822
  key: 0,
823
823
  fixed: "left",
824
824
  type: "selection",
825
825
  width: "40"
826
- })) : x("", !0),
827
- (o(!0), T(I, null, W(s(d), ({ prop: P = "", label: S = "", align: U = "center", width: X = "", fixed: Z = !1 } = {}, le) => (o(), E(k, {
828
- key: le,
829
- label: S,
830
- align: U,
831
- width: X,
832
- fixed: Z,
833
- "min-width": `${S.length * 14 + 24}px`
826
+ })) : y("", !0),
827
+ (o(!0), V(P, null, X(s(d), ({ prop: S = "", label: I = "", align: M = "center", width: L = "", fixed: q = !1 } = {}, Z) => (o(), b(k, {
828
+ key: Z,
829
+ label: I,
830
+ align: M,
831
+ width: L,
832
+ fixed: q,
833
+ "min-width": `${I.length * 14 + 24}px`
834
834
  }, {
835
- default: C(({ row: ee }) => [
836
- ie(f.$slots, P, { row: ee }, () => [
837
- O(Ye, {
838
- data: ee[P]
835
+ default: C(({ row: J }) => [
836
+ ie(f.$slots, S, { row: J }, () => [
837
+ O(Ge, {
838
+ data: J[S]
839
839
  }, null, 8, ["data"])
840
840
  ])
841
841
  ]),
@@ -844,22 +844,22 @@ const Je = { class: "bsgoal-base-table" }, Qe = { class: "base_table" }, Ze = {
844
844
  ]),
845
845
  _: 3
846
846
  }, 8, ["data", "header-cell-style"])), [
847
- [M, $.value]
847
+ [R, $.value]
848
848
  ])
849
849
  ], 512),
850
- O(Ke, {
851
- total: b.value,
852
- onOnCurrentChange: v,
853
- onOnSizeChange: V
850
+ O(Je, {
851
+ total: T.value,
852
+ onOnCurrentChange: h,
853
+ onOnSizeChange: A
854
854
  }, null, 8, ["total"])
855
855
  ])
856
856
  ]);
857
857
  };
858
858
  }
859
859
  });
860
- const tt = {
860
+ const lt = {
861
861
  name: "BsgoalBaseLine"
862
- }, be = /* @__PURE__ */ Object.assign(tt, {
862
+ }, be = /* @__PURE__ */ Object.assign(lt, {
863
863
  props: {
864
864
  /**
865
865
  * 是否为垂直
@@ -870,27 +870,27 @@ const tt = {
870
870
  }
871
871
  },
872
872
  setup(l) {
873
- return (c, u) => (o(), T("div", {
874
- class: ge(["bsgoal-base-line", { "bsgoal-base-line__vertical": l.vertical }])
873
+ return (c, u) => (o(), V("div", {
874
+ class: ve(["bsgoal-base-line", { "bsgoal-base-line__vertical": l.vertical }])
875
875
  }, [
876
876
  F("div", {
877
- class: ge(["base_line", { base_line__vertical: l.vertical }])
877
+ class: ve(["base_line", { base_line__vertical: l.vertical }])
878
878
  }, null, 2)
879
879
  ], 2));
880
880
  }
881
881
  });
882
882
  /*! Element Plus Icons Vue v2.1.0 */
883
- var ae = (l, c) => {
883
+ var le = (l, c) => {
884
884
  let u = l.__vccOpts || l;
885
885
  for (let [d, _] of c)
886
886
  u[d] = _;
887
887
  return u;
888
- }, at = {
888
+ }, nt = {
889
889
  name: "ArrowDown"
890
- }, lt = {
890
+ }, ot = {
891
891
  xmlns: "http://www.w3.org/2000/svg",
892
892
  viewBox: "0 0 1024 1024"
893
- }, nt = /* @__PURE__ */ F(
893
+ }, ut = /* @__PURE__ */ F(
894
894
  "path",
895
895
  {
896
896
  fill: "currentColor",
@@ -899,18 +899,18 @@ var ae = (l, c) => {
899
899
  null,
900
900
  -1
901
901
  /* HOISTED */
902
- ), ot = [
903
- nt
902
+ ), st = [
903
+ ut
904
904
  ];
905
- function ut(l, c, u, d, _, n) {
906
- return o(), T("svg", lt, ot);
905
+ function rt(l, c, u, d, _, n) {
906
+ return o(), V("svg", ot, st);
907
907
  }
908
- var st = /* @__PURE__ */ ae(at, [["render", ut], ["__file", "arrow-down.vue"]]), rt = {
908
+ var ct = /* @__PURE__ */ le(nt, [["render", rt], ["__file", "arrow-down.vue"]]), it = {
909
909
  name: "ArrowLeft"
910
- }, ct = {
910
+ }, dt = {
911
911
  xmlns: "http://www.w3.org/2000/svg",
912
912
  viewBox: "0 0 1024 1024"
913
- }, it = /* @__PURE__ */ F(
913
+ }, _t = /* @__PURE__ */ F(
914
914
  "path",
915
915
  {
916
916
  fill: "currentColor",
@@ -919,18 +919,18 @@ var st = /* @__PURE__ */ ae(at, [["render", ut], ["__file", "arrow-down.vue"]]),
919
919
  null,
920
920
  -1
921
921
  /* HOISTED */
922
- ), dt = [
923
- it
922
+ ), mt = [
923
+ _t
924
924
  ];
925
- function _t(l, c, u, d, _, n) {
926
- return o(), T("svg", ct, dt);
925
+ function ft(l, c, u, d, _, n) {
926
+ return o(), V("svg", dt, mt);
927
927
  }
928
- var mt = /* @__PURE__ */ ae(rt, [["render", _t], ["__file", "arrow-left.vue"]]), ft = {
928
+ var gt = /* @__PURE__ */ le(it, [["render", ft], ["__file", "arrow-left.vue"]]), vt = {
929
929
  name: "ArrowRight"
930
- }, vt = {
930
+ }, ht = {
931
931
  xmlns: "http://www.w3.org/2000/svg",
932
932
  viewBox: "0 0 1024 1024"
933
- }, gt = /* @__PURE__ */ F(
933
+ }, pt = /* @__PURE__ */ F(
934
934
  "path",
935
935
  {
936
936
  fill: "currentColor",
@@ -939,18 +939,18 @@ var mt = /* @__PURE__ */ ae(rt, [["render", _t], ["__file", "arrow-left.vue"]]),
939
939
  null,
940
940
  -1
941
941
  /* HOISTED */
942
- ), ht = [
943
- gt
942
+ ), Et = [
943
+ pt
944
944
  ];
945
- function pt(l, c, u, d, _, n) {
946
- return o(), T("svg", vt, ht);
945
+ function bt(l, c, u, d, _, n) {
946
+ return o(), V("svg", ht, Et);
947
947
  }
948
- var Et = /* @__PURE__ */ ae(ft, [["render", pt], ["__file", "arrow-right.vue"]]), bt = {
948
+ var Tt = /* @__PURE__ */ le(vt, [["render", bt], ["__file", "arrow-right.vue"]]), Vt = {
949
949
  name: "ArrowUp"
950
- }, Tt = {
950
+ }, At = {
951
951
  xmlns: "http://www.w3.org/2000/svg",
952
952
  viewBox: "0 0 1024 1024"
953
- }, Vt = /* @__PURE__ */ F(
953
+ }, Ct = /* @__PURE__ */ F(
954
954
  "path",
955
955
  {
956
956
  fill: "currentColor",
@@ -959,18 +959,18 @@ var Et = /* @__PURE__ */ ae(ft, [["render", pt], ["__file", "arrow-right.vue"]])
959
959
  null,
960
960
  -1
961
961
  /* HOISTED */
962
- ), At = [
963
- Vt
962
+ ), $t = [
963
+ Ct
964
964
  ];
965
- function Ct(l, c, u, d, _, n) {
966
- return o(), T("svg", Tt, At);
965
+ function yt(l, c, u, d, _, n) {
966
+ return o(), V("svg", At, $t);
967
967
  }
968
- var $t = /* @__PURE__ */ ae(bt, [["render", Ct], ["__file", "arrow-up.vue"]]), xt = {
968
+ var wt = /* @__PURE__ */ le(Vt, [["render", yt], ["__file", "arrow-up.vue"]]), xt = {
969
969
  name: "Delete"
970
- }, yt = {
970
+ }, Bt = {
971
971
  xmlns: "http://www.w3.org/2000/svg",
972
972
  viewBox: "0 0 1024 1024"
973
- }, wt = /* @__PURE__ */ F(
973
+ }, Dt = /* @__PURE__ */ F(
974
974
  "path",
975
975
  {
976
976
  fill: "currentColor",
@@ -979,18 +979,18 @@ var $t = /* @__PURE__ */ ae(bt, [["render", Ct], ["__file", "arrow-up.vue"]]), x
979
979
  null,
980
980
  -1
981
981
  /* HOISTED */
982
- ), Bt = [
983
- wt
982
+ ), Ot = [
983
+ Dt
984
984
  ];
985
- function Dt(l, c, u, d, _, n) {
986
- return o(), T("svg", yt, Bt);
985
+ function kt(l, c, u, d, _, n) {
986
+ return o(), V("svg", Bt, Ot);
987
987
  }
988
- var Ot = /* @__PURE__ */ ae(xt, [["render", Dt], ["__file", "delete.vue"]]), kt = {
988
+ var Nt = /* @__PURE__ */ le(xt, [["render", kt], ["__file", "delete.vue"]]), Ft = {
989
989
  name: "Search"
990
- }, Nt = {
990
+ }, Mt = {
991
991
  xmlns: "http://www.w3.org/2000/svg",
992
992
  viewBox: "0 0 1024 1024"
993
- }, Ft = /* @__PURE__ */ F(
993
+ }, Rt = /* @__PURE__ */ F(
994
994
  "path",
995
995
  {
996
996
  fill: "currentColor",
@@ -999,16 +999,16 @@ var Ot = /* @__PURE__ */ ae(xt, [["render", Dt], ["__file", "delete.vue"]]), kt
999
999
  null,
1000
1000
  -1
1001
1001
  /* HOISTED */
1002
- ), Mt = [
1003
- Ft
1002
+ ), St = [
1003
+ Rt
1004
1004
  ];
1005
- function Rt(l, c, u, d, _, n) {
1006
- return o(), T("svg", Nt, Mt);
1005
+ function Ut(l, c, u, d, _, n) {
1006
+ return o(), V("svg", Mt, St);
1007
1007
  }
1008
- var St = /* @__PURE__ */ ae(kt, [["render", Rt], ["__file", "search.vue"]]);
1009
- const Ut = { class: "bsgoal-base-search-operation" }, It = {
1008
+ var It = /* @__PURE__ */ le(Ft, [["render", Ut], ["__file", "search.vue"]]);
1009
+ const Pt = { class: "bsgoal-base-search-operation" }, Lt = {
1010
1010
  name: "BsgoalBaseSearchOperation"
1011
- }, Pt = /* @__PURE__ */ Object.assign(It, {
1011
+ }, zt = /* @__PURE__ */ Object.assign(Lt, {
1012
1012
  props: {
1013
1013
  /**
1014
1014
  * 是否显示折叠按钮
@@ -1024,12 +1024,12 @@ const Ut = { class: "bsgoal-base-search-operation" }, It = {
1024
1024
  u.value = !s(u), c("on-fold", u.value);
1025
1025
  };
1026
1026
  return (_, n) => {
1027
- const r = g("el-button"), p = g("el-icon");
1028
- return o(), T("div", Ut, [
1027
+ const r = g("el-button"), E = g("el-icon");
1028
+ return o(), V("div", Pt, [
1029
1029
  O(r, {
1030
1030
  type: "primary",
1031
- icon: s(St),
1032
- onClick: n[0] || (n[0] = (b) => _.$emit("on-search"))
1031
+ icon: s(It),
1032
+ onClick: n[0] || (n[0] = (T) => _.$emit("on-search"))
1033
1033
  }, {
1034
1034
  default: C(() => [
1035
1035
  K("搜索")
@@ -1037,40 +1037,40 @@ const Ut = { class: "bsgoal-base-search-operation" }, It = {
1037
1037
  _: 1
1038
1038
  }, 8, ["icon"]),
1039
1039
  O(r, {
1040
- icon: s(Ot),
1041
- onClick: n[1] || (n[1] = (b) => _.$emit("on-clear"))
1040
+ icon: s(Nt),
1041
+ onClick: n[1] || (n[1] = (T) => _.$emit("on-clear"))
1042
1042
  }, {
1043
1043
  default: C(() => [
1044
1044
  K("清空")
1045
1045
  ]),
1046
1046
  _: 1
1047
1047
  }, 8, ["icon"]),
1048
- l.fold ? (o(), T("div", {
1048
+ l.fold ? (o(), V("div", {
1049
1049
  key: 0,
1050
1050
  class: "operation_fold",
1051
1051
  style: { color: "var(--el-color-primary)" },
1052
1052
  onClick: d
1053
1053
  }, [
1054
- K(j(u.value ? "收起" : "展开"), 1),
1055
- O(p, { color: "#409EFC" }, {
1054
+ K(W(u.value ? "收起" : "展开"), 1),
1055
+ O(E, { color: "#409EFC" }, {
1056
1056
  default: C(() => [
1057
- G(O(s($t), null, null, 512), [
1058
- [Q, u.value]
1057
+ j(O(s(wt), null, null, 512), [
1058
+ [te, u.value]
1059
1059
  ]),
1060
- G(O(s(st), null, null, 512), [
1061
- [Q, !u.value]
1060
+ j(O(s(ct), null, null, 512), [
1061
+ [te, !u.value]
1062
1062
  ])
1063
1063
  ]),
1064
1064
  _: 1
1065
1065
  })
1066
- ])) : x("", !0)
1066
+ ])) : y("", !0)
1067
1067
  ]);
1068
1068
  };
1069
1069
  }
1070
1070
  });
1071
- const Lt = { class: "bsgoal-base-cascader" }, zt = {
1071
+ const Yt = { class: "bsgoal-base-cascader" }, Ht = {
1072
1072
  name: "BsgoalBaseCascader"
1073
- }, Yt = /* @__PURE__ */ Object.assign(zt, {
1073
+ }, Gt = /* @__PURE__ */ Object.assign(Ht, {
1074
1074
  props: {
1075
1075
  /**
1076
1076
  * 绑定的值
@@ -1111,10 +1111,11 @@ const Lt = { class: "bsgoal-base-cascader" }, zt = {
1111
1111
  };
1112
1112
  return (_, n) => {
1113
1113
  const r = g("el-cascader");
1114
- return o(), T("div", Lt, [
1114
+ return o(), V("div", Yt, [
1115
1115
  O(r, {
1116
1116
  clearable: "",
1117
1117
  class: "base_cascader",
1118
+ "show-all-levels": !1,
1118
1119
  "model-value": l.modelValue,
1119
1120
  options: l.dataOptions,
1120
1121
  props: u.value,
@@ -1125,9 +1126,9 @@ const Lt = { class: "bsgoal-base-cascader" }, zt = {
1125
1126
  };
1126
1127
  }
1127
1128
  });
1128
- const Ht = { class: "bsgoal-base-search" }, Gt = { class: "base_search" }, jt = { key: 1 }, Wt = {
1129
+ const jt = { class: "bsgoal-base-search" }, Wt = { class: "base_search" }, Xt = { key: 1 }, Kt = {
1129
1130
  name: "BsgoalBaseSearch"
1130
- }, Xt = /* @__PURE__ */ Object.assign(Wt, {
1131
+ }, qt = /* @__PURE__ */ Object.assign(Kt, {
1131
1132
  props: {
1132
1133
  /**
1133
1134
  * >----------props----------<
@@ -1171,23 +1172,23 @@ const Ht = { class: "bsgoal-base-search" }, Gt = { class: "base_search" }, jt =
1171
1172
  setup(l, { emit: c }) {
1172
1173
  const u = l, d = D(null), _ = pe.align, n = D({});
1173
1174
  he(() => {
1174
- const { configOptions: v } = u;
1175
- s(v).forEach((f) => {
1176
- const { value: A, prop: k = "", type: N = "" } = f;
1177
- [e.INPUT, e.INPUT_TEXT_AREA].includes(N), n.value[k] = [0, !1].includes(A) ? A : "";
1175
+ const { configOptions: h } = u;
1176
+ s(h).forEach((f) => {
1177
+ const { value: p, prop: k = "", type: N = "" } = f;
1178
+ [e.INPUT, e.INPUT_TEXT_AREA].includes(N), n.value[k] = [0, !1].includes(p) ? p : "";
1178
1179
  });
1179
1180
  });
1180
1181
  const r = oe(() => {
1181
- const { configOptions: v } = u, V = s(v), f = {
1182
+ const { configOptions: h } = u, A = s(h), f = {
1182
1183
  type: e.OPERATION
1183
1184
  };
1184
- return [...V, f];
1185
- }), p = (v = "", V = "", f = "") => {
1185
+ return [...A, f];
1186
+ }), E = (h = "", A = "", f = "") => {
1186
1187
  if (!f)
1187
- switch (v) {
1188
+ switch (h) {
1188
1189
  case e.INPUT:
1189
1190
  case e.INPUT_TEXT_AREA:
1190
- return `请输入${V}`;
1191
+ return `请输入${A}`;
1191
1192
  case e.SELECT:
1192
1193
  case e.DATE:
1193
1194
  case e.WEEK:
@@ -1196,7 +1197,7 @@ const Ht = { class: "bsgoal-base-search" }, Gt = { class: "base_search" }, jt =
1196
1197
  case e.DATE_TIME:
1197
1198
  case e.TIME:
1198
1199
  case e.CASCADER:
1199
- return `请选择${V}`;
1200
+ return `请选择${A}`;
1200
1201
  case e.DATE_RANGE:
1201
1202
  case e.DATE_TIME_RANGE:
1202
1203
  return ["开始日期", "结束日期"];
@@ -1206,9 +1207,9 @@ const Ht = { class: "bsgoal-base-search" }, Gt = { class: "base_search" }, jt =
1206
1207
  return ["开始月份", "结束月份"];
1207
1208
  }
1208
1209
  return f;
1209
- }, b = (v = "", V = "") => {
1210
- if (!V)
1211
- switch (v) {
1210
+ }, T = (h = "", A = "") => {
1211
+ if (!A)
1212
+ switch (h) {
1212
1213
  case e.WEEK:
1213
1214
  return "ww";
1214
1215
  case e.DATE:
@@ -1227,39 +1228,44 @@ const Ht = { class: "bsgoal-base-search" }, Gt = { class: "base_search" }, jt =
1227
1228
  case e.DATE_TIME_RANGE:
1228
1229
  return "YYYY-MM-DD HH:mm:ss";
1229
1230
  }
1230
- return V;
1231
- }, w = () => {
1232
- const v = s(n), { configOptions: V } = u, f = s(V);
1233
- for (const A of f) {
1234
- const { type: k = "", range: N = [], prop: M = "" } = A;
1235
- if (k.endsWith("range") && N && N.length === 2) {
1236
- const { 0: P = "", 1: S = "" } = v[M], { 0: U = "", 1: X = "" } = N;
1237
- v[U] = P, v[X] = S;
1231
+ return A;
1232
+ }, x = () => {
1233
+ const { configOptions: h } = u, A = s(n), f = s(h), p = {};
1234
+ for (const k of f) {
1235
+ const { type: N = "", range: R = [], prop: S = "", single: I = !1 } = k, M = A[S];
1236
+ if ([e.CASCADER].includes(N) && Array.isArray(M) && I) {
1237
+ const L = M.length;
1238
+ L ? p[S] = M[L - 1] : p[S] = M;
1239
+ } else
1240
+ Oe(M) ? p[S] = ke(M) : p[S] = M;
1241
+ if (N.endsWith("range") && R && R.length === 2) {
1242
+ const { 0: L = "", 1: q = "" } = M, { 0: Z = "", 1: J = "" } = R;
1243
+ p[Z] = L, p[J] = q;
1238
1244
  }
1239
1245
  }
1240
- c("on-search", v), c("update:modelValue", v);
1246
+ c("on-search", p), c("update:modelValue", p);
1241
1247
  };
1242
1248
  Ce(() => {
1243
- w();
1249
+ x();
1244
1250
  });
1245
1251
  const $ = () => {
1246
1252
  d.value.resetFields(), c("on-clear", n.value);
1247
- }, B = $e("transferFoldStatus"), y = D(!1), R = (v = !1) => {
1248
- y.value = v, B && (B.value = v), c("on-fold", y);
1249
- }, h = (v, V) => {
1250
- w();
1253
+ }, B = $e("transferFoldStatus"), w = D(!1), U = (h = !1) => {
1254
+ w.value = h, B && (B.value = h), c("on-fold", w);
1255
+ }, v = (h, A) => {
1256
+ x();
1251
1257
  const f = {
1252
- type: v,
1253
- prop: V,
1254
- value: n.value[V] || ""
1258
+ type: h,
1259
+ prop: A,
1260
+ value: n.value[A] || ""
1255
1261
  };
1256
1262
  c("on-change", f);
1257
1263
  };
1258
- return (v, V) => {
1259
- const f = g("el-input"), A = g("el-input-number"), k = g("el-radio"), N = 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, {
1264
+ return (h, A) => {
1265
+ const f = g("el-input"), p = g("el-input-number"), k = g("el-radio"), N = g("el-radio-group"), R = g("el-option"), S = g("el-select"), I = g("el-slider"), M = g("el-switch"), L = g("el-date-picker"), q = g("el-time-picker"), Z = g("el-checkbox"), J = g("el-checkbox-group"), de = g("el-form-item"), _e = g("el-col"), me = g("el-row"), z = g("el-form");
1266
+ return o(), V("div", jt, [
1267
+ F("div", Wt, [
1268
+ j((o(), b(z, {
1263
1269
  ref_key: "EL_FORM_REF",
1264
1270
  ref: d,
1265
1271
  "label-suffix": ":",
@@ -1269,20 +1275,20 @@ const Ht = { class: "bsgoal-base-search" }, Gt = { class: "base_search" }, jt =
1269
1275
  default: C(() => [
1270
1276
  O(me, null, {
1271
1277
  default: C(() => [
1272
- (o(!0), T(I, null, W(s(r), ({
1278
+ (o(!0), V(P, null, X(s(r), ({
1273
1279
  label: m = "",
1274
1280
  prop: a = "",
1275
1281
  type: i = "text",
1276
- placeholder: z = "",
1282
+ placeholder: Y = "",
1277
1283
  readonly: se = !1,
1278
1284
  clearable: re = !0,
1279
1285
  rows: ce = 2,
1280
1286
  min: ne = 1,
1281
- max: q = 10,
1282
- range: Y = [],
1283
- format: J = ""
1284
- } = {}, te) => G((o(), E(_e, {
1285
- key: te,
1287
+ max: Q = 10,
1288
+ range: H = [],
1289
+ format: ee = ""
1290
+ } = {}, ae) => j((o(), b(_e, {
1291
+ key: ae,
1286
1292
  xs: 24,
1287
1293
  sm: 12,
1288
1294
  md: l.medium
@@ -1293,164 +1299,164 @@ const Ht = { class: "bsgoal-base-search" }, Gt = { class: "base_search" }, jt =
1293
1299
  prop: a
1294
1300
  }, {
1295
1301
  default: C(() => [
1296
- se ? (o(), T("div", jt, j(n.value[a]), 1)) : (o(), T(I, { key: 0 }, [
1297
- i === s(e).INPUT ? (o(), E(f, {
1302
+ se ? (o(), V("div", Xt, W(n.value[a]), 1)) : (o(), V(P, { key: 0 }, [
1303
+ i === s(e).INPUT ? (o(), b(f, {
1298
1304
  key: 0,
1299
1305
  modelValue: n.value[a],
1300
1306
  "onUpdate:modelValue": (t) => n.value[a] = t,
1301
- placeholder: p(i, m, z),
1307
+ placeholder: E(i, m, Y),
1302
1308
  clearable: re,
1303
- onChange: (t) => h(i, a)
1304
- }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : x("", !0),
1305
- i === s(e).INPUT_TEXT_AREA ? (o(), E(f, {
1309
+ onChange: (t) => v(i, a)
1310
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : y("", !0),
1311
+ i === s(e).INPUT_TEXT_AREA ? (o(), b(f, {
1306
1312
  key: 1,
1307
1313
  modelValue: n.value[a],
1308
1314
  "onUpdate:modelValue": (t) => n.value[a] = t,
1309
1315
  type: "textarea",
1310
1316
  rows: ce,
1311
1317
  clearable: re,
1312
- placeholder: p(i, m, z),
1313
- onChange: (t) => h(i, a)
1314
- }, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : x("", !0),
1315
- i === s(e).INPUT_NUMBER ? (o(), E(A, {
1318
+ placeholder: E(i, m, Y),
1319
+ onChange: (t) => v(i, a)
1320
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : y("", !0),
1321
+ i === s(e).INPUT_NUMBER ? (o(), b(p, {
1316
1322
  key: 2,
1317
- modelValue: v.num,
1318
- "onUpdate:modelValue": V[0] || (V[0] = (t) => v.num = t),
1323
+ modelValue: h.num,
1324
+ "onUpdate:modelValue": A[0] || (A[0] = (t) => h.num = t),
1319
1325
  min: ne,
1320
- max: q,
1321
- onChange: h
1322
- }, null, 8, ["modelValue", "min", "max"])) : x("", !0),
1323
- i === s(e).RADIO ? (o(), E(N, {
1326
+ max: Q,
1327
+ onChange: v
1328
+ }, null, 8, ["modelValue", "min", "max"])) : y("", !0),
1329
+ i === s(e).RADIO ? (o(), b(N, {
1324
1330
  key: 3,
1325
1331
  modelValue: n.value[a],
1326
1332
  "onUpdate:modelValue": (t) => n.value[a] = t,
1327
- onChange: (t) => h(i, a)
1333
+ onChange: (t) => v(i, a)
1328
1334
  }, {
1329
1335
  default: C(() => [
1330
- (o(!0), T(I, null, W(Y, (t, H) => (o(), E(k, {
1331
- key: H,
1336
+ (o(!0), V(P, null, X(H, (t, G) => (o(), b(k, {
1337
+ key: G,
1332
1338
  label: t.value
1333
1339
  }, {
1334
1340
  default: C(() => [
1335
- K(j(t.label), 1)
1341
+ K(W(t.label), 1)
1336
1342
  ]),
1337
1343
  _: 2
1338
1344
  }, 1032, ["label"]))), 128))
1339
1345
  ]),
1340
1346
  _: 2
1341
- }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : x("", !0),
1342
- i === s(e).SELECT ? (o(), E(P, {
1347
+ }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : y("", !0),
1348
+ i === s(e).SELECT ? (o(), b(S, {
1343
1349
  key: 4,
1344
1350
  modelValue: n.value[a],
1345
1351
  "onUpdate:modelValue": (t) => n.value[a] = t,
1346
- placeholder: p(i, m, z),
1347
- onChange: (t) => h(i, a)
1352
+ placeholder: E(i, m, Y),
1353
+ onChange: (t) => v(i, a)
1348
1354
  }, {
1349
1355
  default: C(() => [
1350
- (o(!0), T(I, null, W(Y, (t, H) => (o(), E(M, {
1351
- key: H,
1356
+ (o(!0), V(P, null, X(H, (t, G) => (o(), b(R, {
1357
+ key: G,
1352
1358
  label: t.label,
1353
1359
  value: t.value
1354
1360
  }, null, 8, ["label", "value"]))), 128))
1355
1361
  ]),
1356
1362
  _: 2
1357
- }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : x("", !0),
1358
- i === s(e).SLIDER ? (o(), E(S, {
1363
+ }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : y("", !0),
1364
+ i === s(e).SLIDER ? (o(), b(I, {
1359
1365
  key: 5,
1360
1366
  modelValue: n.value[a],
1361
1367
  "onUpdate:modelValue": (t) => n.value[a] = t,
1362
1368
  min: ne,
1363
- max: q,
1364
- onChange: (t) => h(i, a)
1365
- }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : x("", !0),
1366
- i === s(e).SWITCH ? (o(), E(U, {
1369
+ max: Q,
1370
+ onChange: (t) => v(i, a)
1371
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : y("", !0),
1372
+ i === s(e).SWITCH ? (o(), b(M, {
1367
1373
  key: 6,
1368
1374
  modelValue: n.value[a],
1369
1375
  "onUpdate:modelValue": (t) => n.value[a] = t,
1370
- "active-value": Y[0] || !0,
1371
- "inactive-value": Y[1] || !1,
1372
- onChange: (t) => h(i, a)
1373
- }, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : x("", !0),
1376
+ "active-value": H[0] || !0,
1377
+ "inactive-value": H[1] || !1,
1378
+ onChange: (t) => v(i, a)
1379
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : y("", !0),
1374
1380
  [s(e).DATE, s(e).MONTH, s(e).YEAR, s(e).DATE_TIME].includes(
1375
1381
  i
1376
- ) ? (o(), E(X, {
1382
+ ) ? (o(), b(L, {
1377
1383
  key: 7,
1378
1384
  modelValue: n.value[a],
1379
1385
  "onUpdate:modelValue": (t) => n.value[a] = t,
1380
- format: b(i, J),
1381
- "value-format": b(i, J),
1386
+ format: T(i, ee),
1387
+ "value-format": T(i, ee),
1382
1388
  type: i,
1383
- placeholder: p(i, m, z),
1384
- onChange: (t) => h(i, a)
1385
- }, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : x("", !0),
1389
+ placeholder: E(i, m, Y),
1390
+ onChange: (t) => v(i, a)
1391
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : y("", !0),
1386
1392
  [
1387
1393
  s(e).DATE_RANGE,
1388
1394
  s(e).MONTH_RANGE,
1389
1395
  s(e).DATE_TIME_RANGE
1390
- ].includes(i) ? (o(), E(X, {
1396
+ ].includes(i) ? (o(), b(L, {
1391
1397
  key: 8,
1392
1398
  modelValue: n.value[a],
1393
1399
  "onUpdate:modelValue": (t) => n.value[a] = t,
1394
1400
  type: i,
1395
- "value-format": b(i, J),
1396
- "start-placeholder": p(i, m, z)[0],
1397
- "end-placeholder": p(i, m, z)[1],
1398
- onChange: (t) => h(i, a)
1399
- }, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : x("", !0),
1400
- [s(e).TIME].includes(i) ? (o(), E(Z, {
1401
+ "value-format": T(i, ee),
1402
+ "start-placeholder": E(i, m, Y)[0],
1403
+ "end-placeholder": E(i, m, Y)[1],
1404
+ onChange: (t) => v(i, a)
1405
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : y("", !0),
1406
+ [s(e).TIME].includes(i) ? (o(), b(q, {
1401
1407
  key: 9,
1402
1408
  modelValue: n.value[a],
1403
1409
  "onUpdate:modelValue": (t) => n.value[a] = t,
1404
1410
  "arrow-control": "",
1405
- "value-format": b(i, J),
1406
- placeholder: p(i, m, z),
1407
- onChange: (t) => h(i, a)
1408
- }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : x("", !0),
1409
- [s(e).TIME_RANGE].includes(i) ? (o(), E(Z, {
1411
+ "value-format": T(i, ee),
1412
+ placeholder: E(i, m, Y),
1413
+ onChange: (t) => v(i, a)
1414
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : y("", !0),
1415
+ [s(e).TIME_RANGE].includes(i) ? (o(), b(q, {
1410
1416
  key: 10,
1411
1417
  modelValue: n.value[a],
1412
1418
  "onUpdate:modelValue": (t) => n.value[a] = t,
1413
1419
  "is-range": "",
1414
- "value-format": b(i, J),
1415
- "start-placeholder": p(i, m, z)[0],
1416
- "end-placeholder": p(i, m, z)[1],
1417
- onChange: (t) => h(i, a)
1418
- }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : x("", !0),
1419
- [s(e).CHECKBOX].includes(i) ? (o(), E(ee, {
1420
+ "value-format": T(i, ee),
1421
+ "start-placeholder": E(i, m, Y)[0],
1422
+ "end-placeholder": E(i, m, Y)[1],
1423
+ onChange: (t) => v(i, a)
1424
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : y("", !0),
1425
+ [s(e).CHECKBOX].includes(i) ? (o(), b(J, {
1420
1426
  key: 11,
1421
1427
  modelValue: n.value[a],
1422
1428
  "onUpdate:modelValue": (t) => n.value[a] = t,
1423
- onChange: (t) => h(i, a)
1429
+ onChange: (t) => v(i, a)
1424
1430
  }, {
1425
1431
  default: C(() => [
1426
- (o(!0), T(I, null, W(Y, (t, H) => (o(), E(le, {
1427
- key: H,
1432
+ (o(!0), V(P, null, X(H, (t, G) => (o(), b(Z, {
1433
+ key: G,
1428
1434
  label: t.value
1429
1435
  }, {
1430
1436
  default: C(() => [
1431
- K(j(t.label), 1)
1437
+ K(W(t.label), 1)
1432
1438
  ]),
1433
1439
  _: 2
1434
1440
  }, 1032, ["label"]))), 128))
1435
1441
  ]),
1436
1442
  _: 2
1437
- }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : x("", !0),
1438
- [s(e).CASCADER].includes(i) ? (o(), E(Yt, {
1443
+ }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : y("", !0),
1444
+ [s(e).CASCADER].includes(i) ? (o(), b(Gt, {
1439
1445
  key: 12,
1440
1446
  modelValue: n.value[a],
1441
1447
  "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"])) : x("", !0),
1446
- [].includes(i) ? (o(), T(I, { key: 13 }, [], 64)) : x("", !0),
1447
- [s(e).OPERATION].includes(i) ? (o(), E(Pt, {
1448
+ "data-options": H,
1449
+ placeholder: E(i, m, Y),
1450
+ onOnChange: (t) => v(i, a)
1451
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "data-options", "placeholder", "onOnChange"])) : y("", !0),
1452
+ [].includes(i) ? (o(), V(P, { key: 13 }, [], 64)) : y("", !0),
1453
+ [s(e).OPERATION].includes(i) ? (o(), b(zt, {
1448
1454
  key: 14,
1449
- fold: te >= 7,
1450
- onOnSearch: w,
1455
+ fold: ae >= 7,
1456
+ onOnSearch: x,
1451
1457
  onOnClear: $,
1452
- onOnFold: R
1453
- }, null, 8, ["fold"])) : x("", !0)
1458
+ onOnFold: U
1459
+ }, null, 8, ["fold"])) : y("", !0)
1454
1460
  ], 64))
1455
1461
  ]),
1456
1462
  _: 2
@@ -1458,7 +1464,7 @@ const Ht = { class: "bsgoal-base-search" }, Gt = { class: "base_search" }, jt =
1458
1464
  ]),
1459
1465
  _: 2
1460
1466
  }, 1032, ["md"])), [
1461
- [Q, te < 7 || i === s(e).OPERATION || te >= 7 && y.value]
1467
+ [te, ae < 7 || i === s(e).OPERATION || ae >= 7 && w.value]
1462
1468
  ])), 128))
1463
1469
  ]),
1464
1470
  _: 1
@@ -1474,9 +1480,9 @@ const Ht = { class: "bsgoal-base-search" }, Gt = { class: "base_search" }, jt =
1474
1480
  };
1475
1481
  }
1476
1482
  });
1477
- const Kt = { class: "bsgoal-base-search-table" }, qt = { class: "base_search_table" }, Jt = {
1483
+ const Jt = { class: "bsgoal-base-search-table" }, Qt = { class: "base_search_table" }, Zt = {
1478
1484
  name: "BsgoalBaseSearchTable"
1479
- }, Qt = /* @__PURE__ */ Object.assign(Jt, {
1485
+ }, ea = /* @__PURE__ */ Object.assign(Zt, {
1480
1486
  props: {
1481
1487
  /**
1482
1488
  * >----------props----------<
@@ -1556,26 +1562,26 @@ const Kt = { class: "bsgoal-base-search-table" }, qt = { class: "base_search_tab
1556
1562
  },
1557
1563
  setup(l) {
1558
1564
  const c = l, u = D(!1);
1559
- Oe("transferFoldStatus", u);
1565
+ Ne("transferFoldStatus", u);
1560
1566
  const d = s(c.configOptions), _ = oe(() => d.filter(($) => {
1561
1567
  const { type: B = "" } = $;
1562
1568
  return !!B;
1563
1569
  })), n = oe(() => d.filter(($) => {
1564
1570
  const { item: B = !1 } = $;
1565
1571
  return !B;
1566
- })), r = ke(), p = D(Object.keys(r)), b = D(null), w = ($) => {
1567
- b.value.refreshList($);
1572
+ })), r = Fe(), E = D(Object.keys(r)), T = D(null), x = ($) => {
1573
+ T.value.refreshList($);
1568
1574
  };
1569
- return ($, B) => (o(), T("div", Kt, [
1570
- F("div", qt, [
1571
- O(Xt, {
1575
+ return ($, B) => (o(), V("div", Jt, [
1576
+ F("div", Qt, [
1577
+ O(qt, {
1572
1578
  "config-options": s(_),
1573
- onOnSearch: w,
1574
- onOnClear: w
1579
+ onOnSearch: x,
1580
+ onOnClear: x
1575
1581
  }, null, 8, ["config-options"]),
1576
- O(xe, {
1582
+ O(ye, {
1577
1583
  ref_key: "BSGOAL_BASE_TABLE_REF",
1578
- ref: b,
1584
+ ref: T,
1579
1585
  operationWidth: l.operationWidth,
1580
1586
  "config-options": s(n),
1581
1587
  data: l.tableData,
@@ -1584,11 +1590,11 @@ const Kt = { class: "bsgoal-base-search-table" }, qt = { class: "base_search_tab
1584
1590
  expression: l.expression,
1585
1591
  fetch: l.fetch,
1586
1592
  call: l.call
1587
- }, Ne({ _: 2 }, [
1588
- W(p.value, (y) => ({
1589
- name: y,
1590
- fn: C(({ row: R = {} }) => [
1591
- ie($.$slots, y, { row: R })
1593
+ }, Me({ _: 2 }, [
1594
+ X(E.value, (w) => ({
1595
+ name: w,
1596
+ fn: C(({ row: U = {} }) => [
1597
+ ie($.$slots, w, { row: U })
1592
1598
  ])
1593
1599
  }))
1594
1600
  ]), 1032, ["operationWidth", "config-options", "data", "selection", "operation", "expression", "fetch", "call"])
@@ -1596,9 +1602,9 @@ const Kt = { class: "bsgoal-base-search-table" }, qt = { class: "base_search_tab
1596
1602
  ]));
1597
1603
  }
1598
1604
  });
1599
- const Zt = { class: "bsgoal-base-tree-fold" }, ea = {
1605
+ const ta = { class: "bsgoal-base-tree-fold" }, aa = {
1600
1606
  name: "BsgoalBaseTreeFold"
1601
- }, ta = /* @__PURE__ */ Object.assign(ea, {
1607
+ }, la = /* @__PURE__ */ Object.assign(aa, {
1602
1608
  props: ["modelValue"],
1603
1609
  emits: ["update:modelValue"],
1604
1610
  setup(l, { emit: c }) {
@@ -1608,18 +1614,18 @@ const Zt = { class: "bsgoal-base-tree-fold" }, ea = {
1608
1614
  };
1609
1615
  return (_, n) => {
1610
1616
  const r = g("el-icon");
1611
- return o(), T("div", Zt, [
1617
+ return o(), V("div", ta, [
1612
1618
  F("div", {
1613
- class: ge(["base_tree_fold", { "base_tree_fold--hide": !s(u) }]),
1619
+ class: ve(["base_tree_fold", { "base_tree_fold--hide": !s(u) }]),
1614
1620
  onClick: d
1615
1621
  }, [
1616
1622
  O(r, { color: "#fff" }, {
1617
1623
  default: C(() => [
1618
- G(O(s(mt), null, null, 512), [
1619
- [Q, s(u)]
1624
+ j(O(s(gt), null, null, 512), [
1625
+ [te, s(u)]
1620
1626
  ]),
1621
- G(O(s(Et), null, null, 512), [
1622
- [Q, !s(u)]
1627
+ j(O(s(Tt), null, null, 512), [
1628
+ [te, !s(u)]
1623
1629
  ])
1624
1630
  ]),
1625
1631
  _: 1
@@ -1629,9 +1635,9 @@ const Zt = { class: "bsgoal-base-tree-fold" }, ea = {
1629
1635
  };
1630
1636
  }
1631
1637
  });
1632
- const aa = { class: "bsgoal-base-tree" }, la = { class: "base_tree" }, na = { class: "base_tree_main" }, oa = {
1638
+ const na = { class: "bsgoal-base-tree" }, oa = { class: "base_tree" }, ua = { class: "base_tree_main" }, sa = {
1633
1639
  name: "BsgoalBaseTree"
1634
- }, ua = /* @__PURE__ */ Object.assign(oa, {
1640
+ }, ra = /* @__PURE__ */ Object.assign(sa, {
1635
1641
  props: {
1636
1642
  /**
1637
1643
  * 树结构 的下边距
@@ -1689,49 +1695,49 @@ const aa = { class: "bsgoal-base-tree" }, la = { class: "base_tree" }, na = { cl
1689
1695
  ue(_, ($) => {
1690
1696
  n.value.filter($);
1691
1697
  });
1692
- const r = ($, B) => $ ? B.label.includes($) : !0, p = D(!0), b = ($, B, y, R) => {
1693
- c("on-click", $, B, y, R);
1694
- }, w = async ($, B, y) => {
1698
+ const r = ($, B) => $ ? B.label.includes($) : !0, E = D(!0), T = ($, B, w, U) => {
1699
+ c("on-click", $, B, w, U);
1700
+ }, x = async ($, B, w) => {
1695
1701
  if ($.level === 0) {
1696
- const R = await y.initNode($);
1697
- return B(R || []);
1702
+ const U = await w.initNode($);
1703
+ return B(U || []);
1698
1704
  } else {
1699
- const R = await y.lazyLoad($);
1700
- B(R || []);
1705
+ const U = await w.lazyLoad($);
1706
+ B(U || []);
1701
1707
  }
1702
1708
  };
1703
1709
  return ($, B) => {
1704
- const y = g("el-input"), R = g("el-tree");
1705
- return o(), T("div", aa, [
1706
- G((o(), T("div", la, [
1707
- G(F("div", na, [
1708
- O(y, {
1710
+ const w = g("el-input"), U = g("el-tree");
1711
+ return o(), V("div", na, [
1712
+ j((o(), V("div", oa, [
1713
+ j(F("div", ua, [
1714
+ O(w, {
1709
1715
  modelValue: _.value,
1710
- "onUpdate:modelValue": B[0] || (B[0] = (h) => _.value = h),
1716
+ "onUpdate:modelValue": B[0] || (B[0] = (v) => _.value = v),
1711
1717
  class: "base_tree_main_input",
1712
1718
  placeholder: "输入关键字过滤"
1713
1719
  }, null, 8, ["modelValue"]),
1714
- O(R, {
1720
+ O(U, {
1715
1721
  ref_key: "EL_TREE_REF",
1716
1722
  ref: n,
1717
1723
  lazy: "",
1718
1724
  "highlight-current": "",
1719
1725
  "empty-text": "暂无数据",
1720
- load: (h, v) => w(h, v, u),
1726
+ load: (v, h) => x(v, h, u),
1721
1727
  "expand-on-click-node": !1,
1722
1728
  props: l.treeProps,
1723
1729
  "filter-node-method": r,
1724
- onNodeClick: b
1730
+ onNodeClick: T
1725
1731
  }, null, 8, ["load", "props"])
1726
1732
  ], 512), [
1727
- [Q, p.value]
1733
+ [te, E.value]
1728
1734
  ]),
1729
- G(O(be, { vertical: "" }, null, 512), [
1730
- [Q, p.value]
1735
+ j(O(be, { vertical: "" }, null, 512), [
1736
+ [te, E.value]
1731
1737
  ]),
1732
- O(ta, {
1733
- modelValue: p.value,
1734
- "onUpdate:modelValue": B[1] || (B[1] = (h) => p.value = h)
1738
+ O(la, {
1739
+ modelValue: E.value,
1740
+ "onUpdate:modelValue": B[1] || (B[1] = (v) => E.value = v)
1735
1741
  }, null, 8, ["modelValue"])
1736
1742
  ])), [
1737
1743
  [s(d), l.gasket]
@@ -1740,9 +1746,9 @@ const aa = { class: "bsgoal-base-tree" }, la = { class: "base_tree" }, na = { cl
1740
1746
  };
1741
1747
  }
1742
1748
  });
1743
- 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 = {
1749
+ const ca = { class: "bsgoal-base-dialog" }, ia = { class: "base_dialog" }, da = { class: "base_dialog_header" }, _a = { class: "base_dialog_content" }, ma = { class: "base_dialog_footer" }, fa = {
1744
1750
  name: "BsgoalBaseDialog"
1745
- }, ma = /* @__PURE__ */ Object.assign(_a, {
1751
+ }, ga = /* @__PURE__ */ Object.assign(fa, {
1746
1752
  props: {
1747
1753
  /**
1748
1754
  * 弹窗状态
@@ -1787,39 +1793,39 @@ const sa = { class: "bsgoal-base-dialog" }, ra = { class: "base_dialog" }, ca =
1787
1793
  }
1788
1794
  ), ue(d, (r) => {
1789
1795
  c("update:modelValue", r);
1790
- }), (r, p) => {
1791
- const b = g("el-button"), w = g("el-dialog");
1792
- return o(), T("div", sa, [
1793
- F("div", ra, [
1794
- O(w, {
1796
+ }), (r, E) => {
1797
+ const T = g("el-button"), x = g("el-dialog");
1798
+ return o(), V("div", ca, [
1799
+ F("div", ia, [
1800
+ O(x, {
1795
1801
  modelValue: d.value,
1796
- "onUpdate:modelValue": p[0] || (p[0] = ($) => d.value = $),
1802
+ "onUpdate:modelValue": E[0] || (E[0] = ($) => d.value = $),
1797
1803
  "custom-class": "bsgoal_base_dialog_main"
1798
1804
  }, {
1799
1805
  header: C(() => [
1800
- F("div", ca, j(l.title), 1)
1806
+ F("div", da, W(l.title), 1)
1801
1807
  ]),
1802
1808
  footer: C(() => [
1803
- F("span", da, [
1804
- O(b, { onClick: _ }, {
1809
+ F("span", ma, [
1810
+ O(T, { onClick: _ }, {
1805
1811
  default: C(() => [
1806
- K(j(l.cancelTxt), 1)
1812
+ K(W(l.cancelTxt), 1)
1807
1813
  ]),
1808
1814
  _: 1
1809
1815
  }),
1810
- O(b, {
1816
+ O(T, {
1811
1817
  type: "primary",
1812
1818
  onClick: n
1813
1819
  }, {
1814
1820
  default: C(() => [
1815
- K(j(l.confirmTxt), 1)
1821
+ K(W(l.confirmTxt), 1)
1816
1822
  ]),
1817
1823
  _: 1
1818
1824
  })
1819
1825
  ])
1820
1826
  ]),
1821
1827
  default: C(() => [
1822
- F("div", ia, [
1828
+ F("div", _a, [
1823
1829
  ie(r.$slots, "default")
1824
1830
  ])
1825
1831
  ]),
@@ -1829,15 +1835,15 @@ const sa = { class: "bsgoal-base-dialog" }, ra = { class: "base_dialog" }, ca =
1829
1835
  ]);
1830
1836
  };
1831
1837
  }
1832
- }), ha = e, pa = Ee, Ea = {
1838
+ }), Ea = e, ba = Ee, Ta = {
1833
1839
  install(l, c = {}) {
1834
1840
  const { exclude: u = [] } = c, d = {
1835
- BsgoalBaseForm: Ie,
1836
- BsgoalBaseTable: xe,
1841
+ BsgoalBaseForm: Le,
1842
+ BsgoalBaseTable: ye,
1837
1843
  BsgoalBaseLine: be,
1838
- BsgoalBaseSearchTable: Qt,
1839
- BsgoalBaseTree: ua,
1840
- BsgoalBaseDialog: ma
1844
+ BsgoalBaseSearchTable: ea,
1845
+ BsgoalBaseTree: ra,
1846
+ BsgoalBaseDialog: ga
1841
1847
  };
1842
1848
  for (const [_, n] of Object.entries(d))
1843
1849
  u.includes(_) || l.component(_, n);
@@ -1846,8 +1852,8 @@ const sa = { class: "bsgoal-base-dialog" }, ra = { class: "base_dialog" }, ca =
1846
1852
  useFetch: Ee
1847
1853
  };
1848
1854
  export {
1849
- ha as EnumType,
1850
- Ea as default,
1851
- pa as useFetchApi
1855
+ Ea as EnumType,
1856
+ Ta as default,
1857
+ ba as useFetchApi
1852
1858
  };
1853
1859
  //# sourceMappingURL=index.mjs.map