@bsgoal/common 1.5.1 → 1.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,15 +1,15 @@
1
1
  var xe = Object.defineProperty;
2
2
  var ye = Object.getOwnPropertySymbols;
3
3
  var $e = Object.prototype.hasOwnProperty, Ne = Object.prototype.propertyIsEnumerable;
4
- var Ae = (a, r, n) => r in a ? xe(a, r, { enumerable: !0, configurable: !0, writable: !0, value: n }) : a[r] = n, Te = (a, r) => {
5
- for (var n in r || (r = {}))
6
- $e.call(r, n) && Ae(a, n, r[n]);
4
+ var Ae = (t, c, l) => c in t ? xe(t, c, { enumerable: !0, configurable: !0, writable: !0, value: l }) : t[c] = l, Te = (t, c) => {
5
+ for (var l in c || (c = {}))
6
+ $e.call(c, l) && Ae(t, l, c[l]);
7
7
  if (ye)
8
- for (var n of ye(r))
9
- Ne.call(r, n) && Ae(a, n, r[n]);
10
- return a;
8
+ for (var l of ye(c))
9
+ Ne.call(c, l) && Ae(t, l, c[l]);
10
+ return t;
11
11
  };
12
- import { ref as w, watchEffect as he, unref as s, computed as oe, resolveComponent as f, openBlock as u, createElementBlock as A, createElementVNode as O, withDirectives as X, createBlock as b, withCtx as V, createVNode as N, Fragment as L, renderList as W, createCommentVNode as M, createTextVNode as Q, toDisplayString as G, nextTick as Ve, inject as Ce, watch as ue, resolveDirective as De, renderSlot as se, normalizeClass as ve, vShow as te, isProxy as we, toRaw as Be, provide as Oe, useSlots as ke, createSlots as Ie } from "vue";
12
+ import { ref as w, watchEffect as he, unref as s, computed as le, resolveComponent as v, openBlock as u, createElementBlock as A, createElementVNode as O, withDirectives as X, createBlock as y, withCtx as C, createVNode as D, Fragment as L, renderList as W, createCommentVNode as M, createTextVNode as Q, toDisplayString as G, nextTick as Ce, inject as Ve, watch as ue, resolveDirective as De, renderSlot as se, normalizeClass as ve, vShow as te, isProxy as we, toRaw as Be, provide as Oe, useSlots as ke, createSlots as Ie } from "vue";
13
13
  import { ElMessage as Se } from "element-plus";
14
14
  const e = {
15
15
  INPUT: "text",
@@ -34,53 +34,53 @@ const e = {
34
34
  CASCADER: "cascader"
35
35
  };
36
36
  let ge = null;
37
- const fe = (a) => {
38
- const r = [], n = [], i = (l = []) => {
39
- const c = l.map((y) => y.width), h = Math.max(...c);
40
- l.forEach((y) => {
41
- const { labelEl: x } = y;
42
- x.style.width = `${h}px`;
37
+ const fe = (t) => {
38
+ const c = [], l = [], i = (n = []) => {
39
+ const r = n.map((p) => p.width), m = Math.max(...r);
40
+ n.forEach((p) => {
41
+ const { labelEl: x } = p;
42
+ x.style.width = `${m}px`;
43
43
  });
44
44
  }, _ = () => {
45
- if (a) {
46
- const l = a.querySelectorAll(".el-form-item__label");
47
- if (l && l.length) {
48
- let c = 0;
49
- l.forEach((h, y) => {
50
- h.style.width = "initial", h.style.whiteSpace = "nowrap";
51
- const { x = 0, width: C = 0 } = h.getBoundingClientRect(), D = { x, width: C, labelEl: h };
52
- y === 0 && (c = x), x === c ? r.push(D) : n.push(D);
45
+ if (t) {
46
+ const n = t.querySelectorAll(".el-form-item__label");
47
+ if (n && n.length) {
48
+ let r = 0;
49
+ n.forEach((m, p) => {
50
+ m.style.width = "initial", m.style.whiteSpace = "nowrap";
51
+ const { x = 0, width: V = 0 } = m.getBoundingClientRect(), $ = { x, width: V, labelEl: m };
52
+ p === 0 && (r = x), x === r ? c.push($) : l.push($);
53
53
  });
54
54
  }
55
55
  }
56
56
  };
57
57
  ge && clearTimeout(ge), ge = setTimeout(() => {
58
- _(), i(r), i(n);
58
+ _(), i(c), i(l);
59
59
  }, 50);
60
60
  }, pe = {
61
61
  /**
62
62
  * 表单自动左对齐
63
63
  */
64
64
  align: {
65
- created(a) {
65
+ created(t) {
66
66
  window.addEventListener("resize", () => {
67
- fe(a);
67
+ fe(t);
68
68
  });
69
69
  },
70
- mounted(a) {
71
- fe(a);
70
+ mounted(t) {
71
+ fe(t);
72
72
  },
73
- unmounted(a) {
74
- window.removeEventListener("resize", fe(a));
73
+ unmounted(t) {
74
+ window.removeEventListener("resize", fe(t));
75
75
  }
76
76
  },
77
77
  /**
78
78
  * 表格自动高度
79
79
  */
80
- height: (a, { value: r = 65, arg: n = "" }) => {
81
- if (a) {
82
- const { y: i = 0 } = a.getBoundingClientRect();
83
- a.style.height = `calc(100vh - ${i + r}px)`;
80
+ height: (t, { value: c = 65, arg: l = "" }) => {
81
+ if (t) {
82
+ const { y: i = 0 } = t.getBoundingClientRect();
83
+ t.style.height = `calc(100vh - ${i + c}px)`;
84
84
  }
85
85
  }
86
86
  };
@@ -127,28 +127,28 @@ const Re = { class: "bsgoal-base-form" }, Fe = { class: "base_form" }, Ue = { ke
127
127
  }
128
128
  },
129
129
  emits: ["on-form", "on-clear", "on-change", "on-fold"],
130
- setup(a, { expose: r, emit: n }) {
131
- const i = a, _ = w(null), l = pe.align, c = w({});
130
+ setup(t, { expose: c, emit: l }) {
131
+ const i = t, _ = w(null), n = pe.align, r = w({});
132
132
  he(() => {
133
- const { configOptions: v, values: p } = i, T = s(v), g = s(p);
134
- T.forEach((E) => {
135
- const { value: B = "", prop: k = "", type: S = "" } = E;
136
- [e.INPUT, e.INPUT_TEXT_AREA].includes(S), c.value[k] = g[k] || B;
133
+ const { configOptions: h, values: E } = i, T = s(h), f = s(E);
134
+ T.forEach((b) => {
135
+ const { value: B = "", prop: k = "", type: S = "" } = b;
136
+ [e.INPUT, e.INPUT_TEXT_AREA].includes(S), r.value[k] = f[k] || B;
137
137
  });
138
138
  });
139
- const h = oe(() => {
140
- const { configOptions: v } = i;
141
- return s(v).map((g) => {
142
- let { rules: E = !1, label: B = "" } = g;
139
+ const m = le(() => {
140
+ const { configOptions: h } = i;
141
+ return s(h).map((f) => {
142
+ let { rules: b = !1, label: B = "" } = f;
143
143
  const k = { required: !0, message: `${B}不能为空`, trigger: "blur" };
144
- return E && (typeof E == "boolean" ? E = [k] : Array.isArray(E) ? E = [k, ...E] : E = [k, E]), g.rules = E, g;
144
+ return b && (typeof b == "boolean" ? b = [k] : Array.isArray(b) ? b = [k, ...b] : b = [k, b]), f.rules = b, f;
145
145
  });
146
- }), y = (v = "", p = "", T = "") => {
146
+ }), p = (h = "", E = "", T = "") => {
147
147
  if (!T)
148
- switch (v) {
148
+ switch (h) {
149
149
  case e.INPUT:
150
150
  case e.INPUT_TEXT_AREA:
151
- return `请输入${p}`;
151
+ return `请输入${E}`;
152
152
  case e.SELECT:
153
153
  case e.DATE:
154
154
  case e.WEEK:
@@ -156,7 +156,7 @@ const Re = { class: "bsgoal-base-form" }, Fe = { class: "base_form" }, Ue = { ke
156
156
  case e.YEAR:
157
157
  case e.DATE_TIME:
158
158
  case e.TIME:
159
- return `请选择${p}`;
159
+ return `请选择${E}`;
160
160
  case e.DATE_RANGE:
161
161
  case e.DATE_TIME_RANGE:
162
162
  return ["开始日期", "结束日期"];
@@ -166,9 +166,9 @@ const Re = { class: "bsgoal-base-form" }, Fe = { class: "base_form" }, Ue = { ke
166
166
  return ["开始月份", "结束月份"];
167
167
  }
168
168
  return T;
169
- }, x = (v = "", p = "") => {
170
- if (!p)
171
- switch (v) {
169
+ }, x = (h = "", E = "") => {
170
+ if (!E)
171
+ switch (h) {
172
172
  case e.WEEK:
173
173
  return "ww";
174
174
  case e.DATE:
@@ -187,222 +187,222 @@ const Re = { class: "bsgoal-base-form" }, Fe = { class: "base_form" }, Ue = { ke
187
187
  case e.DATE_TIME_RANGE:
188
188
  return "YYYY-MM-DD HH:mm:ss";
189
189
  }
190
- return p;
191
- }, C = () => {
192
- const v = s(c), { configOptions: p } = i, T = s(p);
193
- for (const g of T) {
194
- const { type: E = "", range: B = [], prop: k = "" } = g;
195
- if (E.endsWith("range") && B && B.length === 2) {
196
- const { 0: S = "", 1: R = "" } = v[k], { 0: U = "", 1: I = "" } = B;
197
- v[U] = S, v[I] = R;
190
+ return E;
191
+ }, V = () => {
192
+ const h = s(r), { configOptions: E } = i, T = s(E);
193
+ for (const f of T) {
194
+ const { type: b = "", range: B = [], prop: k = "" } = f;
195
+ if (b.endsWith("range") && B && B.length === 2) {
196
+ const { 0: S = "", 1: R = "" } = h[k], { 0: U = "", 1: I = "" } = B;
197
+ h[U] = S, h[I] = R;
198
198
  }
199
199
  }
200
- return n("on-form", v), v;
201
- }, D = () => {
202
- _.value.resetFields(), n("on-clear", c.value);
203
- }, $ = (v, p) => {
200
+ return l("on-form", h), h;
201
+ }, $ = () => {
202
+ _.value.resetFields(), l("on-clear", r.value);
203
+ }, N = (h, E) => {
204
204
  const T = {
205
- type: v,
206
- prop: p,
207
- value: c.value[p] || ""
205
+ type: h,
206
+ prop: E,
207
+ value: r.value[E] || ""
208
208
  };
209
- n("on-change", T);
209
+ l("on-change", T);
210
210
  };
211
- return r({
212
- triggerOperationClear: D,
213
- triggerOperationForm: C,
214
- validateForm: (v = () => {
211
+ return c({
212
+ triggerOperationClear: $,
213
+ triggerOperationForm: V,
214
+ validateForm: (h = () => {
215
215
  }) => {
216
- _.value.validate((p = !1, T = {}) => {
217
- if (p) {
218
- const g = C();
219
- v(g);
216
+ _.value.validate((E = !1, T = {}) => {
217
+ if (E) {
218
+ const f = V();
219
+ h(f);
220
220
  } else {
221
- v(!1), console.log("field", T);
222
- const g = Object.keys(T)[0], {
223
- [g]: {
224
- 0: { message: E = "" }
221
+ h(!1), console.log("field", T);
222
+ const f = Object.keys(T)[0], {
223
+ [f]: {
224
+ 0: { message: b = "" }
225
225
  }
226
226
  } = T;
227
- Se.error(E);
227
+ Se.error(b);
228
228
  }
229
229
  });
230
230
  }
231
- }), (v, p) => {
232
- const T = f("el-input"), g = f("el-input-number"), E = f("el-radio"), B = f("el-radio-group"), k = f("el-option"), S = f("el-select"), R = f("el-slider"), U = f("el-switch"), I = f("el-date-picker"), z = f("el-time-picker"), Z = f("el-checkbox"), q = f("el-checkbox-group"), K = f("el-form-item"), de = f("el-col"), _e = f("el-row"), me = f("el-form");
231
+ }), (h, E) => {
232
+ const T = v("el-input"), f = v("el-input-number"), b = v("el-radio"), B = v("el-radio-group"), k = v("el-option"), S = v("el-select"), R = v("el-slider"), U = v("el-switch"), I = v("el-date-picker"), z = v("el-time-picker"), Z = v("el-checkbox"), q = v("el-checkbox-group"), K = v("el-form-item"), de = v("el-col"), _e = v("el-row"), me = v("el-form");
233
233
  return u(), A("div", Re, [
234
234
  O("div", Fe, [
235
- X((u(), b(me, {
235
+ X((u(), y(me, {
236
236
  ref_key: "EL_FORM_REF",
237
237
  ref: _,
238
238
  "label-suffix": ":",
239
- model: c.value
239
+ model: r.value
240
240
  }, {
241
- default: V(() => [
242
- N(_e, null, {
243
- default: V(() => [
244
- (u(!0), A(L, null, W(s(h), ({
241
+ default: C(() => [
242
+ D(_e, null, {
243
+ default: C(() => [
244
+ (u(!0), A(L, null, W(s(m), ({
245
245
  label: P = "",
246
- prop: m = "",
246
+ prop: g = "",
247
247
  type: o = "text",
248
248
  placeholder: d = "",
249
249
  readonly: j = !1,
250
250
  clearable: ce = !0,
251
251
  rows: re = 2,
252
252
  min: ie = 1,
253
- max: ne = 10,
253
+ max: oe = 10,
254
254
  range: J = [],
255
255
  format: Y = "",
256
256
  rules: ee = []
257
- } = {}, ae) => (u(), b(de, {
257
+ } = {}, ae) => (u(), y(de, {
258
258
  key: ae,
259
259
  xs: 24,
260
260
  sm: 24,
261
- md: a.medium
261
+ md: t.medium
262
262
  }, {
263
- default: V(() => [
264
- N(K, {
263
+ default: C(() => [
264
+ D(K, {
265
265
  label: P,
266
- prop: m,
266
+ prop: g,
267
267
  rules: ee
268
268
  }, {
269
- default: V(() => [
270
- j ? (u(), A("div", Ue, G(c.value[m]), 1)) : (u(), A(L, { key: 0 }, [
271
- o === s(e).INPUT ? (u(), b(T, {
269
+ default: C(() => [
270
+ j ? (u(), A("div", Ue, G(r.value[g]), 1)) : (u(), A(L, { key: 0 }, [
271
+ o === s(e).INPUT ? (u(), y(T, {
272
272
  key: 0,
273
- modelValue: c.value[m],
274
- "onUpdate:modelValue": (t) => c.value[m] = t,
275
- placeholder: y(o, P, d),
273
+ modelValue: r.value[g],
274
+ "onUpdate:modelValue": (a) => r.value[g] = a,
275
+ placeholder: p(o, P, d),
276
276
  clearable: ce,
277
- onChange: (t) => $(o, m)
277
+ onChange: (a) => N(o, g)
278
278
  }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : M("", !0),
279
- o === s(e).INPUT_TEXT_AREA ? (u(), b(T, {
279
+ o === s(e).INPUT_TEXT_AREA ? (u(), y(T, {
280
280
  key: 1,
281
- modelValue: c.value[m],
282
- "onUpdate:modelValue": (t) => c.value[m] = t,
281
+ modelValue: r.value[g],
282
+ "onUpdate:modelValue": (a) => r.value[g] = a,
283
283
  type: "textarea",
284
284
  rows: re,
285
285
  clearable: ce,
286
- placeholder: y(o, P, d),
287
- onChange: (t) => $(o, m)
286
+ placeholder: p(o, P, d),
287
+ onChange: (a) => N(o, g)
288
288
  }, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : M("", !0),
289
- o === s(e).INPUT_NUMBER ? (u(), b(g, {
289
+ o === s(e).INPUT_NUMBER ? (u(), y(f, {
290
290
  key: 2,
291
- modelValue: v.num,
292
- "onUpdate:modelValue": p[0] || (p[0] = (t) => v.num = t),
291
+ modelValue: h.num,
292
+ "onUpdate:modelValue": E[0] || (E[0] = (a) => h.num = a),
293
293
  min: ie,
294
- max: ne,
295
- onChange: $
294
+ max: oe,
295
+ onChange: N
296
296
  }, null, 8, ["modelValue", "min", "max"])) : M("", !0),
297
- o === s(e).RADIO ? (u(), b(B, {
297
+ o === s(e).RADIO ? (u(), y(B, {
298
298
  key: 3,
299
- modelValue: c.value[m],
300
- "onUpdate:modelValue": (t) => c.value[m] = t,
301
- onChange: (t) => $(o, m)
299
+ modelValue: r.value[g],
300
+ "onUpdate:modelValue": (a) => r.value[g] = a,
301
+ onChange: (a) => N(o, g)
302
302
  }, {
303
- default: V(() => [
304
- (u(!0), A(L, null, W(J, (t, H) => (u(), b(E, {
303
+ default: C(() => [
304
+ (u(!0), A(L, null, W(J, (a, H) => (u(), y(b, {
305
305
  key: H,
306
- label: t.value
306
+ label: a.value
307
307
  }, {
308
- default: V(() => [
309
- Q(G(t.label), 1)
308
+ default: C(() => [
309
+ Q(G(a.label), 1)
310
310
  ]),
311
311
  _: 2
312
312
  }, 1032, ["label"]))), 128))
313
313
  ]),
314
314
  _: 2
315
315
  }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : M("", !0),
316
- o === s(e).SELECT ? (u(), b(S, {
316
+ o === s(e).SELECT ? (u(), y(S, {
317
317
  key: 4,
318
- modelValue: c.value[m],
319
- "onUpdate:modelValue": (t) => c.value[m] = t,
320
- placeholder: y(o, P, d),
321
- onChange: (t) => $(o, m)
318
+ modelValue: r.value[g],
319
+ "onUpdate:modelValue": (a) => r.value[g] = a,
320
+ placeholder: p(o, P, d),
321
+ onChange: (a) => N(o, g)
322
322
  }, {
323
- default: V(() => [
324
- (u(!0), A(L, null, W(J, (t, H) => (u(), b(k, {
323
+ default: C(() => [
324
+ (u(!0), A(L, null, W(J, (a, H) => (u(), y(k, {
325
325
  key: H,
326
- label: t.label,
327
- value: t.value
326
+ label: a.label,
327
+ value: a.value
328
328
  }, null, 8, ["label", "value"]))), 128))
329
329
  ]),
330
330
  _: 2
331
331
  }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : M("", !0),
332
- o === s(e).SLIDER ? (u(), b(R, {
332
+ o === s(e).SLIDER ? (u(), y(R, {
333
333
  key: 5,
334
- modelValue: c.value[m],
335
- "onUpdate:modelValue": (t) => c.value[m] = t,
334
+ modelValue: r.value[g],
335
+ "onUpdate:modelValue": (a) => r.value[g] = a,
336
336
  min: ie,
337
- max: ne,
338
- onChange: (t) => $(o, m)
337
+ max: oe,
338
+ onChange: (a) => N(o, g)
339
339
  }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : M("", !0),
340
- o === s(e).SWITCH ? (u(), b(U, {
340
+ o === s(e).SWITCH ? (u(), y(U, {
341
341
  key: 6,
342
- modelValue: c.value[m],
343
- "onUpdate:modelValue": (t) => c.value[m] = t,
342
+ modelValue: r.value[g],
343
+ "onUpdate:modelValue": (a) => r.value[g] = a,
344
344
  "active-value": J[0] || !0,
345
345
  "inactive-value": J[1] || !1,
346
- onChange: (t) => $(o, m)
346
+ onChange: (a) => N(o, g)
347
347
  }, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : M("", !0),
348
348
  [s(e).DATE, s(e).MONTH, s(e).YEAR, s(e).DATE_TIME].includes(
349
349
  o
350
- ) ? (u(), b(I, {
350
+ ) ? (u(), y(I, {
351
351
  key: 7,
352
- modelValue: c.value[m],
353
- "onUpdate:modelValue": (t) => c.value[m] = t,
352
+ modelValue: r.value[g],
353
+ "onUpdate:modelValue": (a) => r.value[g] = a,
354
354
  format: x(o, Y),
355
355
  "value-format": x(o, Y),
356
356
  type: o,
357
- placeholder: y(o, P, d),
358
- onChange: (t) => $(o, m)
357
+ placeholder: p(o, P, d),
358
+ onChange: (a) => N(o, g)
359
359
  }, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : M("", !0),
360
360
  [
361
361
  s(e).DATE_RANGE,
362
362
  s(e).MONTH_RANGE,
363
363
  s(e).DATE_TIME_RANGE
364
- ].includes(o) ? (u(), b(I, {
364
+ ].includes(o) ? (u(), y(I, {
365
365
  key: 8,
366
- modelValue: c.value[m],
367
- "onUpdate:modelValue": (t) => c.value[m] = t,
366
+ modelValue: r.value[g],
367
+ "onUpdate:modelValue": (a) => r.value[g] = a,
368
368
  type: o,
369
369
  "value-format": x(o, Y),
370
- "start-placeholder": y(o, P, d)[0],
371
- "end-placeholder": y(o, P, d)[1],
372
- onChange: (t) => $(o, m)
370
+ "start-placeholder": p(o, P, d)[0],
371
+ "end-placeholder": p(o, P, d)[1],
372
+ onChange: (a) => N(o, g)
373
373
  }, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : M("", !0),
374
- [s(e).TIME].includes(o) ? (u(), b(z, {
374
+ [s(e).TIME].includes(o) ? (u(), y(z, {
375
375
  key: 9,
376
- modelValue: c.value[m],
377
- "onUpdate:modelValue": (t) => c.value[m] = t,
376
+ modelValue: r.value[g],
377
+ "onUpdate:modelValue": (a) => r.value[g] = a,
378
378
  "arrow-control": "",
379
379
  "value-format": x(o, Y),
380
- placeholder: y(o, P, d),
381
- onChange: (t) => $(o, m)
380
+ placeholder: p(o, P, d),
381
+ onChange: (a) => N(o, g)
382
382
  }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : M("", !0),
383
- [s(e).TIME_RANGE].includes(o) ? (u(), b(z, {
383
+ [s(e).TIME_RANGE].includes(o) ? (u(), y(z, {
384
384
  key: 10,
385
- modelValue: c.value[m],
386
- "onUpdate:modelValue": (t) => c.value[m] = t,
385
+ modelValue: r.value[g],
386
+ "onUpdate:modelValue": (a) => r.value[g] = a,
387
387
  "is-range": "",
388
388
  "value-format": x(o, Y),
389
- "start-placeholder": y(o, P, d)[0],
390
- "end-placeholder": y(o, P, d)[1],
391
- onChange: (t) => $(o, m)
389
+ "start-placeholder": p(o, P, d)[0],
390
+ "end-placeholder": p(o, P, d)[1],
391
+ onChange: (a) => N(o, g)
392
392
  }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : M("", !0),
393
- [s(e).CHECKBOX].includes(o) ? (u(), b(q, {
393
+ [s(e).CHECKBOX].includes(o) ? (u(), y(q, {
394
394
  key: 11,
395
- modelValue: c.value[m],
396
- "onUpdate:modelValue": (t) => c.value[m] = t,
397
- onChange: (t) => $(o, m)
395
+ modelValue: r.value[g],
396
+ "onUpdate:modelValue": (a) => r.value[g] = a,
397
+ onChange: (a) => N(o, g)
398
398
  }, {
399
- default: V(() => [
400
- (u(!0), A(L, null, W(J, (t, H) => (u(), b(Z, {
399
+ default: C(() => [
400
+ (u(!0), A(L, null, W(J, (a, H) => (u(), y(Z, {
401
401
  key: H,
402
- label: t.value
402
+ label: a.value
403
403
  }, {
404
- default: V(() => [
405
- Q(G(t.label), 1)
404
+ default: C(() => [
405
+ Q(G(a.label), 1)
406
406
  ]),
407
407
  _: 2
408
408
  }, 1032, ["label"]))), 128))
@@ -423,7 +423,7 @@ const Re = { class: "bsgoal-base-form" }, Fe = { class: "base_form" }, Ue = { ke
423
423
  ]),
424
424
  _: 1
425
425
  }, 8, ["model"])), [
426
- [s(l)]
426
+ [s(n)]
427
427
  ])
428
428
  ])
429
429
  ]);
@@ -439,9 +439,9 @@ const Pe = { class: "bsgoal-base-table-content" }, je = { class: "bas_tabl_conte
439
439
  default: ""
440
440
  }
441
441
  },
442
- setup(a) {
443
- return (r, n) => (u(), A("div", Pe, [
444
- O("div", je, G(a.data), 1)
442
+ setup(t) {
443
+ return (c, l) => (u(), A("div", Pe, [
444
+ O("div", je, G(t.data), 1)
445
445
  ]));
446
446
  }
447
447
  });
@@ -607,30 +607,30 @@ const We = { class: "bsgoal-base-table-pagination" }, Xe = { class: "base_table_
607
607
  }
608
608
  },
609
609
  emits: ["on-size-change", "on-current-change"],
610
- setup(a, { emit: r }) {
611
- const n = (l = 0) => {
612
- r("on-size-change", l);
613
- }, i = (l = 1) => {
614
- r("on-current-change", l);
610
+ setup(t, { emit: c }) {
611
+ const l = (n = 0) => {
612
+ c("on-size-change", n);
613
+ }, i = (n = 1) => {
614
+ c("on-current-change", n);
615
615
  }, _ = w(1);
616
- return (l, c) => {
617
- const h = f("el-pagination"), y = f("el-config-provider");
616
+ return (n, r) => {
617
+ const m = v("el-pagination"), p = v("el-config-provider");
618
618
  return u(), A("div", We, [
619
619
  O("div", Xe, [
620
- N(y, { locale: s(He) }, {
621
- default: V(() => [
622
- N(h, {
620
+ D(p, { locale: s(He) }, {
621
+ default: C(() => [
622
+ D(m, {
623
623
  background: "",
624
624
  layout: "total, sizes, prev, pager, next, jumper",
625
625
  "current-page": _.value,
626
- "onUpdate:currentPage": c[0] || (c[0] = (x) => _.value = x),
627
- "page-sizes": a.pageSizes,
628
- "page-size": a.pageSize,
629
- total: a.total,
630
- onSizeChange: n,
626
+ "onUpdate:currentPage": r[0] || (r[0] = (x) => _.value = x),
627
+ "page-sizes": t.pageSizes,
628
+ "page-size": t.pageSize,
629
+ total: t.total,
630
+ onSizeChange: l,
631
631
  onCurrentChange: i
632
632
  }, {
633
- next: V(() => [
633
+ next: C(() => [
634
634
  Qe
635
635
  ]),
636
636
  _: 1
@@ -643,11 +643,11 @@ const We = { class: "bsgoal-base-table-pagination" }, Xe = { class: "base_table_
643
643
  };
644
644
  }
645
645
  });
646
- const Je = (a, r) => {
647
- const n = a.__vccOpts || a;
648
- for (const [i, _] of r)
649
- n[i] = _;
650
- return n;
646
+ const Je = (t, c) => {
647
+ const l = t.__vccOpts || t;
648
+ for (const [i, _] of c)
649
+ l[i] = _;
650
+ return l;
651
651
  }, qe = {
652
652
  name: "BsgoalBaseTableEmpty"
653
653
  }, et = { class: "bsgoal-base-table-empty" }, tt = /* @__PURE__ */ O("div", { class: "base_table_empty" }, [
@@ -661,33 +661,33 @@ const Je = (a, r) => {
661
661
  ], -1), at = [
662
662
  tt
663
663
  ];
664
- function lt(a, r, n, i, _, l) {
664
+ function lt(t, c, l, i, _, n) {
665
665
  return u(), A("div", et, at);
666
666
  }
667
- const nt = /* @__PURE__ */ Je(qe, [["render", lt]]), ot = (a = null, { expression: r = 75, arg: n = {} } = {}) => {
668
- const i = s(a);
667
+ const nt = /* @__PURE__ */ Je(qe, [["render", lt]]), ot = (t = null, { expression: c = 75, arg: l = {} } = {}) => {
668
+ const i = s(t);
669
669
  if (i) {
670
670
  const _ = i.querySelector(".el-table");
671
- _ && Ve(() => {
672
- const { y: l = 0 } = _.getBoundingClientRect();
673
- _.style.height = `calc(100vh - ${l + r}px)`;
671
+ _ && Ce(() => {
672
+ const { y: n = 0 } = _.getBoundingClientRect();
673
+ _.style.height = `calc(100vh - ${n + c}px)`;
674
674
  });
675
675
  }
676
- }, Ee = (a = Promise.resolve(), r = null, n = w(!1), i = w(null)) => {
676
+ }, Ee = (t = Promise.resolve(), c = null, l = w(!1), i = w(null)) => {
677
677
  const _ = w("");
678
- return n.value = !0, a.then((l = {}) => {
679
- const { data: c = {}, message: h = "" } = l;
680
- i.value = c, _.value = h, r && r(!0, c), n.value = !1;
681
- }).catch((l = {}) => {
682
- if (typeof l == "object") {
683
- const { message: c = "" } = l;
684
- _.value = c;
678
+ return l.value = !0, t.then((n = {}) => {
679
+ const { data: r = {}, message: m = "" } = n;
680
+ i.value = r, _.value = m, c && c(!0, r), l.value = !1;
681
+ }).catch((n = {}) => {
682
+ if (typeof n == "object") {
683
+ const { message: r = "" } = n;
684
+ _.value = r;
685
685
  } else
686
- _.value = l;
687
- r && r(!1, l), n.value = !1;
686
+ _.value = n;
687
+ c && c(!1, n), l.value = !1;
688
688
  }).finally(() => {
689
- n.value = !1;
690
- }), { data: i, message: _, loading: n };
689
+ l.value = !1;
690
+ }), { data: i, message: _, loading: l };
691
691
  };
692
692
  const ut = { class: "bsgoal-base-table" }, st = { class: "base_table" }, ct = {
693
693
  key: 0,
@@ -781,56 +781,56 @@ const ut = { class: "bsgoal-base-table" }, st = { class: "base_table" }, ct = {
781
781
  default: 75
782
782
  }
783
783
  },
784
- setup(a, { expose: r }) {
785
- const n = a, i = oe(() => {
786
- const { configOptions: g = [], operation: E = !1, operationWidth: B = 0 } = n, k = s(g), S = [];
787
- return E && S.push({
784
+ setup(t, { expose: c }) {
785
+ const l = t, i = le(() => {
786
+ const { configOptions: f = [], operation: b = !1, operationWidth: B = 0 } = l, k = s(f), S = [];
787
+ return b && S.push({
788
788
  label: "操作",
789
789
  fixed: "right",
790
790
  prop: "operation",
791
791
  width: B
792
792
  }), [...k, ...S];
793
- }), _ = w(null), l = Ce("transferFoldStatus");
793
+ }), _ = w(null), n = Ve("transferFoldStatus");
794
794
  he(() => {
795
- const g = l ? l.value : !1, E = s(n.expression);
796
- ot(_, { arg: g, expression: E });
795
+ const f = n ? n.value : !1, b = s(l.expression);
796
+ ot(_, { arg: f, expression: b });
797
797
  });
798
- const c = w(1), h = w(10), y = w(0), x = w({}), C = w(n.loading), D = w(n.data), $ = w({}), F = () => {
799
- const { fetch: g, call: E, mapProps: B } = n, k = x.value, S = c.value, R = h.value, U = Te({}, k), I = s(B);
800
- U[I.currentPage] = S, U[I.pageSize] = R, Ee(g(U), E, C, $);
798
+ const r = w(1), m = w(10), p = w(0), x = w({}), V = w(l.loading), $ = w(l.data), N = w({}), F = () => {
799
+ const { fetch: f, call: b, mapProps: B } = l, k = x.value, S = r.value, R = m.value, U = Te({}, k), I = s(B);
800
+ U[I.currentPage] = S, U[I.pageSize] = R, Ee(f(U), b, V, N);
801
801
  };
802
- ue($, (g) => {
803
- const { mapProps: E } = n, B = s(E);
804
- D.value = g[B.rows], y.value = g[B.total];
802
+ ue(N, (f) => {
803
+ const { mapProps: b } = l, B = s(b);
804
+ $.value = f[B.rows], p.value = f[B.total];
805
805
  });
806
- const v = (g = {}) => {
807
- x.value = g, c.value = 1, F();
808
- }, p = (g = 1) => {
809
- c.value = g;
810
- }, T = (g = 10) => {
811
- h.value = g;
806
+ const h = (f = {}) => {
807
+ x.value = f, r.value = 1, F();
808
+ }, E = (f = 1) => {
809
+ r.value = f;
810
+ }, T = (f = 10) => {
811
+ m.value = f;
812
812
  };
813
- return ue([c, h], () => {
813
+ return ue([r, m], () => {
814
814
  F();
815
- }), r({
816
- refreshList: v
817
- }), (g, E) => {
818
- const B = f("el-table-column"), k = f("el-table"), S = De("loading");
815
+ }), c({
816
+ refreshList: h
817
+ }), (f, b) => {
818
+ const B = v("el-table-column"), k = v("el-table"), S = De("loading");
819
819
  return u(), A("div", ut, [
820
820
  O("div", st, [
821
- g.$slots.menu ? (u(), A("div", ct, [
822
- se(g.$slots, "menu")
821
+ f.$slots.menu ? (u(), A("div", ct, [
822
+ se(f.$slots, "menu")
823
823
  ])) : M("", !0),
824
824
  O("div", {
825
825
  ref_key: "EL_TABLE_WRAP_REF",
826
826
  ref: _
827
827
  }, [
828
- X((u(), b(k, {
828
+ X((u(), y(k, {
829
829
  stripe: "",
830
830
  border: "",
831
831
  "highlight-current-row": "",
832
832
  style: { width: "100%" },
833
- data: D.value,
833
+ data: $.value,
834
834
  "header-cell-style": {
835
835
  fontWeight: "bold",
836
836
  backgroundColor: "#EBEEF5",
@@ -838,17 +838,17 @@ const ut = { class: "bsgoal-base-table" }, st = { class: "base_table" }, ct = {
838
838
  fontSize: "14px"
839
839
  }
840
840
  }, {
841
- empty: V(() => [
842
- N(nt)
841
+ empty: C(() => [
842
+ D(nt)
843
843
  ]),
844
- default: V(() => [
845
- a.selection ? (u(), b(B, {
844
+ default: C(() => [
845
+ t.selection ? (u(), y(B, {
846
846
  key: 0,
847
847
  fixed: "left",
848
848
  type: "selection",
849
849
  width: "40"
850
850
  })) : M("", !0),
851
- (u(!0), A(L, null, W(s(i), ({ prop: R = "", label: U = "", align: I = "center", width: z = "", fixed: Z = !1 } = {}, q) => (u(), b(B, {
851
+ (u(!0), A(L, null, W(s(i), ({ prop: R = "", label: U = "", align: I = "center", width: z = "", fixed: Z = !1 } = {}, q) => (u(), y(B, {
852
852
  key: q,
853
853
  label: U,
854
854
  align: I,
@@ -856,9 +856,9 @@ const ut = { class: "bsgoal-base-table" }, st = { class: "base_table" }, ct = {
856
856
  fixed: Z,
857
857
  "min-width": `${U.length * 14 + 24}px`
858
858
  }, {
859
- default: V(({ row: K }) => [
860
- se(g.$slots, R, { row: K }, () => [
861
- N(Ge, {
859
+ default: C(({ row: K }) => [
860
+ se(f.$slots, R, { row: K }, () => [
861
+ D(Ge, {
862
862
  data: K[R]
863
863
  }, null, 8, ["data"])
864
864
  ])
@@ -868,12 +868,12 @@ const ut = { class: "bsgoal-base-table" }, st = { class: "base_table" }, ct = {
868
868
  ]),
869
869
  _: 3
870
870
  }, 8, ["data", "header-cell-style"])), [
871
- [S, C.value]
871
+ [S, V.value]
872
872
  ])
873
873
  ], 512),
874
- N(Ke, {
875
- total: y.value,
876
- onOnCurrentChange: p,
874
+ D(Ke, {
875
+ total: p.value,
876
+ onOnCurrentChange: E,
877
877
  onOnSizeChange: T
878
878
  }, null, 8, ["total"])
879
879
  ])
@@ -893,22 +893,22 @@ const it = {
893
893
  default: !1
894
894
  }
895
895
  },
896
- setup(a) {
897
- return (r, n) => (u(), A("div", {
898
- class: ve(["bsgoal-base-line", { "bsgoal-base-line__vertical": a.vertical }])
896
+ setup(t) {
897
+ return (c, l) => (u(), A("div", {
898
+ class: ve(["bsgoal-base-line", { "bsgoal-base-line__vertical": t.vertical }])
899
899
  }, [
900
900
  O("div", {
901
- class: ve(["base_line", { base_line__vertical: a.vertical }])
901
+ class: ve(["base_line", { base_line__vertical: t.vertical }])
902
902
  }, null, 2)
903
903
  ], 2));
904
904
  }
905
905
  });
906
906
  /*! Element Plus Icons Vue v2.1.0 */
907
- var le = (a, r) => {
908
- let n = a.__vccOpts || a;
909
- for (let [i, _] of r)
910
- n[i] = _;
911
- return n;
907
+ var ne = (t, c) => {
908
+ let l = t.__vccOpts || t;
909
+ for (let [i, _] of c)
910
+ l[i] = _;
911
+ return l;
912
912
  }, dt = {
913
913
  name: "ArrowDown"
914
914
  }, _t = {
@@ -926,10 +926,10 @@ var le = (a, r) => {
926
926
  ), gt = [
927
927
  mt
928
928
  ];
929
- function ft(a, r, n, i, _, l) {
929
+ function ft(t, c, l, i, _, n) {
930
930
  return u(), A("svg", _t, gt);
931
931
  }
932
- var vt = /* @__PURE__ */ le(dt, [["render", ft], ["__file", "arrow-down.vue"]]), ht = {
932
+ var vt = /* @__PURE__ */ ne(dt, [["render", ft], ["__file", "arrow-down.vue"]]), ht = {
933
933
  name: "ArrowLeft"
934
934
  }, pt = {
935
935
  xmlns: "http://www.w3.org/2000/svg",
@@ -946,15 +946,15 @@ var vt = /* @__PURE__ */ le(dt, [["render", ft], ["__file", "arrow-down.vue"]]),
946
946
  ), bt = [
947
947
  Et
948
948
  ];
949
- function yt(a, r, n, i, _, l) {
949
+ function yt(t, c, l, i, _, n) {
950
950
  return u(), A("svg", pt, bt);
951
951
  }
952
- var At = /* @__PURE__ */ le(ht, [["render", yt], ["__file", "arrow-left.vue"]]), Tt = {
952
+ var At = /* @__PURE__ */ ne(ht, [["render", yt], ["__file", "arrow-left.vue"]]), Tt = {
953
953
  name: "ArrowRight"
954
- }, Vt = {
954
+ }, Ct = {
955
955
  xmlns: "http://www.w3.org/2000/svg",
956
956
  viewBox: "0 0 1024 1024"
957
- }, Ct = /* @__PURE__ */ O(
957
+ }, Vt = /* @__PURE__ */ O(
958
958
  "path",
959
959
  {
960
960
  fill: "currentColor",
@@ -964,12 +964,12 @@ var At = /* @__PURE__ */ le(ht, [["render", yt], ["__file", "arrow-left.vue"]]),
964
964
  -1
965
965
  /* HOISTED */
966
966
  ), Mt = [
967
- Ct
967
+ Vt
968
968
  ];
969
- function xt(a, r, n, i, _, l) {
970
- return u(), A("svg", Vt, Mt);
969
+ function xt(t, c, l, i, _, n) {
970
+ return u(), A("svg", Ct, Mt);
971
971
  }
972
- var $t = /* @__PURE__ */ le(Tt, [["render", xt], ["__file", "arrow-right.vue"]]), Nt = {
972
+ var $t = /* @__PURE__ */ ne(Tt, [["render", xt], ["__file", "arrow-right.vue"]]), Nt = {
973
973
  name: "ArrowUp"
974
974
  }, Dt = {
975
975
  xmlns: "http://www.w3.org/2000/svg",
@@ -986,10 +986,10 @@ var $t = /* @__PURE__ */ le(Tt, [["render", xt], ["__file", "arrow-right.vue"]])
986
986
  ), Bt = [
987
987
  wt
988
988
  ];
989
- function Ot(a, r, n, i, _, l) {
989
+ function Ot(t, c, l, i, _, n) {
990
990
  return u(), A("svg", Dt, Bt);
991
991
  }
992
- var kt = /* @__PURE__ */ le(Nt, [["render", Ot], ["__file", "arrow-up.vue"]]), It = {
992
+ var kt = /* @__PURE__ */ ne(Nt, [["render", Ot], ["__file", "arrow-up.vue"]]), It = {
993
993
  name: "Delete"
994
994
  }, St = {
995
995
  xmlns: "http://www.w3.org/2000/svg",
@@ -1006,10 +1006,10 @@ var kt = /* @__PURE__ */ le(Nt, [["render", Ot], ["__file", "arrow-up.vue"]]), I
1006
1006
  ), Ft = [
1007
1007
  Rt
1008
1008
  ];
1009
- function Ut(a, r, n, i, _, l) {
1009
+ function Ut(t, c, l, i, _, n) {
1010
1010
  return u(), A("svg", St, Ft);
1011
1011
  }
1012
- var Lt = /* @__PURE__ */ le(It, [["render", Ut], ["__file", "delete.vue"]]), zt = {
1012
+ var Lt = /* @__PURE__ */ ne(It, [["render", Ut], ["__file", "delete.vue"]]), zt = {
1013
1013
  name: "Search"
1014
1014
  }, Pt = {
1015
1015
  xmlns: "http://www.w3.org/2000/svg",
@@ -1026,10 +1026,10 @@ var Lt = /* @__PURE__ */ le(It, [["render", Ut], ["__file", "delete.vue"]]), zt
1026
1026
  ), Yt = [
1027
1027
  jt
1028
1028
  ];
1029
- function Gt(a, r, n, i, _, l) {
1029
+ function Gt(t, c, l, i, _, n) {
1030
1030
  return u(), A("svg", Pt, Yt);
1031
1031
  }
1032
- var Ht = /* @__PURE__ */ le(zt, [["render", Gt], ["__file", "search.vue"]]);
1032
+ var Ht = /* @__PURE__ */ ne(zt, [["render", Gt], ["__file", "search.vue"]]);
1033
1033
  const Wt = { class: "bsgoal-base-search-operation" }, Xt = {
1034
1034
  name: "BsgoalBaseSearchOperation"
1035
1035
  }, Qt = /* @__PURE__ */ Object.assign(Xt, {
@@ -1043,46 +1043,46 @@ const Wt = { class: "bsgoal-base-search-operation" }, Xt = {
1043
1043
  }
1044
1044
  },
1045
1045
  emits: ["on-fold"],
1046
- setup(a, { emit: r }) {
1047
- const n = w(!1), i = () => {
1048
- n.value = !s(n), r("on-fold", n.value);
1046
+ setup(t, { emit: c }) {
1047
+ const l = w(!1), i = () => {
1048
+ l.value = !s(l), c("on-fold", l.value);
1049
1049
  };
1050
- return (_, l) => {
1051
- const c = f("el-button"), h = f("el-icon");
1050
+ return (_, n) => {
1051
+ const r = v("el-button"), m = v("el-icon");
1052
1052
  return u(), A("div", Wt, [
1053
- N(c, {
1053
+ D(r, {
1054
1054
  type: "primary",
1055
1055
  icon: s(Ht),
1056
- onClick: l[0] || (l[0] = (y) => _.$emit("on-search"))
1056
+ onClick: n[0] || (n[0] = (p) => _.$emit("on-search"))
1057
1057
  }, {
1058
- default: V(() => [
1058
+ default: C(() => [
1059
1059
  Q("搜索")
1060
1060
  ]),
1061
1061
  _: 1
1062
1062
  }, 8, ["icon"]),
1063
- N(c, {
1063
+ D(r, {
1064
1064
  icon: s(Lt),
1065
- onClick: l[1] || (l[1] = (y) => _.$emit("on-clear"))
1065
+ onClick: n[1] || (n[1] = (p) => _.$emit("on-clear"))
1066
1066
  }, {
1067
- default: V(() => [
1067
+ default: C(() => [
1068
1068
  Q("清空")
1069
1069
  ]),
1070
1070
  _: 1
1071
1071
  }, 8, ["icon"]),
1072
- a.fold ? (u(), A("div", {
1072
+ t.fold ? (u(), A("div", {
1073
1073
  key: 0,
1074
1074
  class: "operation_fold",
1075
1075
  style: { color: "var(--el-color-primary)" },
1076
1076
  onClick: i
1077
1077
  }, [
1078
- Q(G(n.value ? "收起" : "展开"), 1),
1079
- N(h, { color: "#409EFC" }, {
1080
- default: V(() => [
1081
- X(N(s(kt), null, null, 512), [
1082
- [te, n.value]
1078
+ Q(G(l.value ? "收起" : "展开"), 1),
1079
+ D(m, { color: "#409EFC" }, {
1080
+ default: C(() => [
1081
+ X(D(s(kt), null, null, 512), [
1082
+ [te, l.value]
1083
1083
  ]),
1084
- X(N(s(vt), null, null, 512), [
1085
- [te, !n.value]
1084
+ X(D(s(vt), null, null, 512), [
1085
+ [te, !l.value]
1086
1086
  ])
1087
1087
  ]),
1088
1088
  _: 1
@@ -1126,24 +1126,24 @@ const Zt = { class: "bsgoal-base-cascader" }, Kt = {
1126
1126
  }
1127
1127
  },
1128
1128
  emits: ["update:model-value", "on-change"],
1129
- setup(a, { emit: r }) {
1130
- const n = w({
1129
+ setup(t, { emit: c }) {
1130
+ const l = w({
1131
1131
  checkStrictly: !0,
1132
1132
  multiple: !1
1133
1133
  }), i = (_) => {
1134
- r("update:model-value", _), r("on-change", _);
1134
+ c("update:model-value", _), c("on-change", _);
1135
1135
  };
1136
- return (_, l) => {
1137
- const c = f("el-cascader");
1136
+ return (_, n) => {
1137
+ const r = v("el-cascader");
1138
1138
  return u(), A("div", Zt, [
1139
- N(c, {
1139
+ D(r, {
1140
1140
  clearable: "",
1141
1141
  class: "base_cascader",
1142
1142
  "show-all-levels": !1,
1143
- "model-value": a.modelValue,
1144
- options: a.dataOptions,
1145
- props: n.value,
1146
- placeholder: a.placeholder,
1143
+ "model-value": t.modelValue,
1144
+ options: t.dataOptions,
1145
+ props: l.value,
1146
+ placeholder: t.placeholder,
1147
1147
  onChange: i
1148
1148
  }, null, 8, ["model-value", "options", "props", "placeholder"])
1149
1149
  ]);
@@ -1193,23 +1193,23 @@ const qt = { class: "bsgoal-base-search" }, ea = { class: "base_search" }, ta =
1193
1193
  }
1194
1194
  },
1195
1195
  emits: ["on-search", "on-clear", "on-change", "on-fold"],
1196
- setup(a, { emit: r }) {
1197
- const n = a, i = w(null), _ = pe.align, l = w({});
1196
+ setup(t, { emit: c }) {
1197
+ const l = t, i = w(null), _ = pe.align, n = w({});
1198
1198
  he(() => {
1199
- const { configOptions: p } = n;
1200
- s(p).forEach((g) => {
1201
- const { value: E, prop: B = "", type: k = "" } = g;
1202
- [e.INPUT, e.INPUT_TEXT_AREA].includes(k), l.value[B] = [0, !1].includes(E) ? E : "";
1199
+ const { configOptions: E } = l;
1200
+ s(E).forEach((f) => {
1201
+ const { value: b, prop: B = "", type: k = "" } = f;
1202
+ [e.INPUT, e.INPUT_TEXT_AREA].includes(k), n.value[B] = [0, !1].includes(b) ? b : "";
1203
1203
  });
1204
1204
  });
1205
- const c = oe(() => {
1206
- const { configOptions: p } = n, T = s(p), g = {
1205
+ const r = le(() => {
1206
+ const { configOptions: E } = l, T = s(E), f = {
1207
1207
  type: e.OPERATION
1208
1208
  };
1209
- return [...T, g];
1210
- }), h = (p = "", T = "", g = "") => {
1211
- if (!g)
1212
- switch (p) {
1209
+ return [...T, f];
1210
+ }), m = (E = "", T = "", f = "") => {
1211
+ if (!f)
1212
+ switch (E) {
1213
1213
  case e.INPUT:
1214
1214
  case e.INPUT_TEXT_AREA:
1215
1215
  return `请输入${T}`;
@@ -1230,10 +1230,10 @@ const qt = { class: "bsgoal-base-search" }, ea = { class: "base_search" }, ta =
1230
1230
  case e.MONTH_RANGE:
1231
1231
  return ["开始月份", "结束月份"];
1232
1232
  }
1233
- return g;
1234
- }, y = (p = "", T = "") => {
1233
+ return f;
1234
+ }, p = (E = "", T = "") => {
1235
1235
  if (!T)
1236
- switch (p) {
1236
+ switch (E) {
1237
1237
  case e.WEEK:
1238
1238
  return "ww";
1239
1239
  case e.DATE:
@@ -1254,231 +1254,231 @@ const qt = { class: "bsgoal-base-search" }, ea = { class: "base_search" }, ta =
1254
1254
  }
1255
1255
  return T;
1256
1256
  }, x = () => {
1257
- const { configOptions: p } = n, T = s(l), g = s(p), E = {};
1258
- for (const B of g) {
1257
+ const { configOptions: E } = l, T = s(n), f = s(E), b = {};
1258
+ for (const B of f) {
1259
1259
  const { type: k = "", range: S = [], prop: R = "", single: U = !1 } = B, I = T[R];
1260
1260
  if ([e.CASCADER].includes(k) && Array.isArray(I) && U) {
1261
1261
  const z = I.length;
1262
- z ? E[R] = I[z - 1] : E[R] = I;
1262
+ z ? b[R] = I[z - 1] : b[R] = I;
1263
1263
  } else
1264
- we(I) ? E[R] = Be(I) : E[R] = I;
1264
+ we(I) ? b[R] = Be(I) : b[R] = I;
1265
1265
  if (k.endsWith("range") && S && S.length === 2) {
1266
1266
  const { 0: z = "", 1: Z = "" } = I, { 0: q = "", 1: K = "" } = S;
1267
- E[q] = z, E[K] = Z;
1267
+ b[q] = z, b[K] = Z;
1268
1268
  }
1269
1269
  }
1270
- r("on-search", E), r("update:modelValue", E);
1270
+ c("on-search", b), c("update:modelValue", b);
1271
1271
  };
1272
- Ve(() => {
1272
+ Ce(() => {
1273
1273
  x();
1274
1274
  });
1275
- const C = () => {
1276
- i.value.resetFields(), r("on-clear", l.value);
1277
- }, D = Ce("transferFoldStatus"), $ = w(!1), F = (p = !1) => {
1278
- $.value = p, D && (D.value = p), r("on-fold", $);
1279
- }, v = (p, T) => {
1275
+ const V = () => {
1276
+ i.value.resetFields(), c("on-clear", n.value);
1277
+ }, $ = Ve("transferFoldStatus"), N = w(!1), F = (E = !1) => {
1278
+ N.value = E, $ && ($.value = E), c("on-fold", N);
1279
+ }, h = (E, T) => {
1280
1280
  x();
1281
- const g = {
1282
- type: p,
1281
+ const f = {
1282
+ type: E,
1283
1283
  prop: T,
1284
- value: l.value[T] || ""
1284
+ value: n.value[T] || ""
1285
1285
  };
1286
- r("on-change", g);
1286
+ c("on-change", f);
1287
1287
  };
1288
- return (p, T) => {
1289
- const g = f("el-input"), E = f("el-input-number"), B = f("el-radio"), k = f("el-radio-group"), S = f("el-option"), R = f("el-select"), U = f("el-slider"), I = f("el-switch"), z = f("el-date-picker"), Z = f("el-time-picker"), q = f("el-checkbox"), K = f("el-checkbox-group"), de = f("el-form-item"), _e = f("el-col"), me = f("el-row"), P = f("el-form");
1288
+ return (E, T) => {
1289
+ const f = v("el-input"), b = v("el-input-number"), B = v("el-radio"), k = v("el-radio-group"), S = v("el-option"), R = v("el-select"), U = v("el-slider"), I = v("el-switch"), z = v("el-date-picker"), Z = v("el-time-picker"), q = v("el-checkbox"), K = v("el-checkbox-group"), de = v("el-form-item"), _e = v("el-col"), me = v("el-row"), P = v("el-form");
1290
1290
  return u(), A("div", qt, [
1291
1291
  O("div", ea, [
1292
- X((u(), b(P, {
1292
+ X((u(), y(P, {
1293
1293
  ref_key: "EL_FORM_REF",
1294
1294
  ref: i,
1295
1295
  "label-suffix": ":",
1296
1296
  "show-message": !1,
1297
- model: l.value
1297
+ model: n.value
1298
1298
  }, {
1299
- default: V(() => [
1300
- N(me, null, {
1301
- default: V(() => [
1302
- (u(!0), A(L, null, W(s(c), ({
1303
- label: m = "",
1299
+ default: C(() => [
1300
+ D(me, null, {
1301
+ default: C(() => [
1302
+ (u(!0), A(L, null, W(s(r), ({
1303
+ label: g = "",
1304
1304
  prop: o = "",
1305
1305
  type: d = "text",
1306
1306
  placeholder: j = "",
1307
1307
  readonly: ce = !1,
1308
1308
  clearable: re = !0,
1309
1309
  rows: ie = 2,
1310
- min: ne = 1,
1310
+ min: oe = 1,
1311
1311
  max: J = 10,
1312
1312
  range: Y = [],
1313
1313
  format: ee = ""
1314
- } = {}, ae) => X((u(), b(_e, {
1314
+ } = {}, ae) => X((u(), y(_e, {
1315
1315
  key: ae,
1316
1316
  xs: 24,
1317
1317
  sm: 12,
1318
- md: a.medium
1318
+ md: t.medium
1319
1319
  }, {
1320
- default: V(() => [
1321
- N(de, {
1322
- label: m,
1320
+ default: C(() => [
1321
+ D(de, {
1322
+ label: g,
1323
1323
  prop: o
1324
1324
  }, {
1325
- default: V(() => [
1326
- ce ? (u(), A("div", ta, G(l.value[o]), 1)) : (u(), A(L, { key: 0 }, [
1327
- d === s(e).INPUT ? (u(), b(g, {
1325
+ default: C(() => [
1326
+ ce ? (u(), A("div", ta, G(n.value[o]), 1)) : (u(), A(L, { key: 0 }, [
1327
+ d === s(e).INPUT ? (u(), y(f, {
1328
1328
  key: 0,
1329
- modelValue: l.value[o],
1330
- "onUpdate:modelValue": (t) => l.value[o] = t,
1331
- placeholder: h(d, m, j),
1329
+ modelValue: n.value[o],
1330
+ "onUpdate:modelValue": (a) => n.value[o] = a,
1331
+ placeholder: m(d, g, j),
1332
1332
  clearable: re,
1333
- onChange: (t) => v(d, o)
1333
+ onChange: (a) => h(d, o)
1334
1334
  }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : M("", !0),
1335
- d === s(e).INPUT_TEXT_AREA ? (u(), b(g, {
1335
+ d === s(e).INPUT_TEXT_AREA ? (u(), y(f, {
1336
1336
  key: 1,
1337
- modelValue: l.value[o],
1338
- "onUpdate:modelValue": (t) => l.value[o] = t,
1337
+ modelValue: n.value[o],
1338
+ "onUpdate:modelValue": (a) => n.value[o] = a,
1339
1339
  type: "textarea",
1340
1340
  rows: ie,
1341
1341
  clearable: re,
1342
- placeholder: h(d, m, j),
1343
- onChange: (t) => v(d, o)
1342
+ placeholder: m(d, g, j),
1343
+ onChange: (a) => h(d, o)
1344
1344
  }, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : M("", !0),
1345
- d === s(e).INPUT_NUMBER ? (u(), b(E, {
1345
+ d === s(e).INPUT_NUMBER ? (u(), y(b, {
1346
1346
  key: 2,
1347
- modelValue: p.num,
1348
- "onUpdate:modelValue": T[0] || (T[0] = (t) => p.num = t),
1349
- min: ne,
1347
+ modelValue: E.num,
1348
+ "onUpdate:modelValue": T[0] || (T[0] = (a) => E.num = a),
1349
+ min: oe,
1350
1350
  max: J,
1351
- onChange: v
1351
+ onChange: h
1352
1352
  }, null, 8, ["modelValue", "min", "max"])) : M("", !0),
1353
- d === s(e).RADIO ? (u(), b(k, {
1353
+ d === s(e).RADIO ? (u(), y(k, {
1354
1354
  key: 3,
1355
- modelValue: l.value[o],
1356
- "onUpdate:modelValue": (t) => l.value[o] = t,
1357
- onChange: (t) => v(d, o)
1355
+ modelValue: n.value[o],
1356
+ "onUpdate:modelValue": (a) => n.value[o] = a,
1357
+ onChange: (a) => h(d, o)
1358
1358
  }, {
1359
- default: V(() => [
1360
- (u(!0), A(L, null, W(Y, (t, H) => (u(), b(B, {
1359
+ default: C(() => [
1360
+ (u(!0), A(L, null, W(Y, (a, H) => (u(), y(B, {
1361
1361
  key: H,
1362
- label: t.value
1362
+ label: a.value
1363
1363
  }, {
1364
- default: V(() => [
1365
- Q(G(t.label), 1)
1364
+ default: C(() => [
1365
+ Q(G(a.label), 1)
1366
1366
  ]),
1367
1367
  _: 2
1368
1368
  }, 1032, ["label"]))), 128))
1369
1369
  ]),
1370
1370
  _: 2
1371
1371
  }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : M("", !0),
1372
- d === s(e).SELECT ? (u(), b(R, {
1372
+ d === s(e).SELECT ? (u(), y(R, {
1373
1373
  key: 4,
1374
- modelValue: l.value[o],
1375
- "onUpdate:modelValue": (t) => l.value[o] = t,
1376
- placeholder: h(d, m, j),
1377
- onChange: (t) => v(d, o)
1374
+ modelValue: n.value[o],
1375
+ "onUpdate:modelValue": (a) => n.value[o] = a,
1376
+ placeholder: m(d, g, j),
1377
+ onChange: (a) => h(d, o)
1378
1378
  }, {
1379
- default: V(() => [
1380
- (u(!0), A(L, null, W(Y, (t, H) => (u(), b(S, {
1379
+ default: C(() => [
1380
+ (u(!0), A(L, null, W(Y, (a, H) => (u(), y(S, {
1381
1381
  key: H,
1382
- label: t.label,
1383
- value: t.value
1382
+ label: a.label,
1383
+ value: a.value
1384
1384
  }, null, 8, ["label", "value"]))), 128))
1385
1385
  ]),
1386
1386
  _: 2
1387
1387
  }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : M("", !0),
1388
- d === s(e).SLIDER ? (u(), b(U, {
1388
+ d === s(e).SLIDER ? (u(), y(U, {
1389
1389
  key: 5,
1390
- modelValue: l.value[o],
1391
- "onUpdate:modelValue": (t) => l.value[o] = t,
1392
- min: ne,
1390
+ modelValue: n.value[o],
1391
+ "onUpdate:modelValue": (a) => n.value[o] = a,
1392
+ min: oe,
1393
1393
  max: J,
1394
- onChange: (t) => v(d, o)
1394
+ onChange: (a) => h(d, o)
1395
1395
  }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : M("", !0),
1396
- d === s(e).SWITCH ? (u(), b(I, {
1396
+ d === s(e).SWITCH ? (u(), y(I, {
1397
1397
  key: 6,
1398
- modelValue: l.value[o],
1399
- "onUpdate:modelValue": (t) => l.value[o] = t,
1398
+ modelValue: n.value[o],
1399
+ "onUpdate:modelValue": (a) => n.value[o] = a,
1400
1400
  "active-value": Y[0] || !0,
1401
1401
  "inactive-value": Y[1] || !1,
1402
- onChange: (t) => v(d, o)
1402
+ onChange: (a) => h(d, o)
1403
1403
  }, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : M("", !0),
1404
1404
  [s(e).DATE, s(e).MONTH, s(e).YEAR, s(e).DATE_TIME].includes(
1405
1405
  d
1406
- ) ? (u(), b(z, {
1406
+ ) ? (u(), y(z, {
1407
1407
  key: 7,
1408
- modelValue: l.value[o],
1409
- "onUpdate:modelValue": (t) => l.value[o] = t,
1410
- format: y(d, ee),
1411
- "value-format": y(d, ee),
1408
+ modelValue: n.value[o],
1409
+ "onUpdate:modelValue": (a) => n.value[o] = a,
1410
+ format: p(d, ee),
1411
+ "value-format": p(d, ee),
1412
1412
  type: d,
1413
- placeholder: h(d, m, j),
1414
- onChange: (t) => v(d, o)
1413
+ placeholder: m(d, g, j),
1414
+ onChange: (a) => h(d, o)
1415
1415
  }, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : M("", !0),
1416
1416
  [
1417
1417
  s(e).DATE_RANGE,
1418
1418
  s(e).MONTH_RANGE,
1419
1419
  s(e).DATE_TIME_RANGE
1420
- ].includes(d) ? (u(), b(z, {
1420
+ ].includes(d) ? (u(), y(z, {
1421
1421
  key: 8,
1422
- modelValue: l.value[o],
1423
- "onUpdate:modelValue": (t) => l.value[o] = t,
1422
+ modelValue: n.value[o],
1423
+ "onUpdate:modelValue": (a) => n.value[o] = a,
1424
1424
  type: d,
1425
- "value-format": y(d, ee),
1426
- "start-placeholder": h(d, m, j)[0],
1427
- "end-placeholder": h(d, m, j)[1],
1428
- onChange: (t) => v(d, o)
1425
+ "value-format": p(d, ee),
1426
+ "start-placeholder": m(d, g, j)[0],
1427
+ "end-placeholder": m(d, g, j)[1],
1428
+ onChange: (a) => h(d, o)
1429
1429
  }, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : M("", !0),
1430
- [s(e).TIME].includes(d) ? (u(), b(Z, {
1430
+ [s(e).TIME].includes(d) ? (u(), y(Z, {
1431
1431
  key: 9,
1432
- modelValue: l.value[o],
1433
- "onUpdate:modelValue": (t) => l.value[o] = t,
1432
+ modelValue: n.value[o],
1433
+ "onUpdate:modelValue": (a) => n.value[o] = a,
1434
1434
  "arrow-control": "",
1435
- "value-format": y(d, ee),
1436
- placeholder: h(d, m, j),
1437
- onChange: (t) => v(d, o)
1435
+ "value-format": p(d, ee),
1436
+ placeholder: m(d, g, j),
1437
+ onChange: (a) => h(d, o)
1438
1438
  }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : M("", !0),
1439
- [s(e).TIME_RANGE].includes(d) ? (u(), b(Z, {
1439
+ [s(e).TIME_RANGE].includes(d) ? (u(), y(Z, {
1440
1440
  key: 10,
1441
- modelValue: l.value[o],
1442
- "onUpdate:modelValue": (t) => l.value[o] = t,
1441
+ modelValue: n.value[o],
1442
+ "onUpdate:modelValue": (a) => n.value[o] = a,
1443
1443
  "is-range": "",
1444
- "value-format": y(d, ee),
1445
- "start-placeholder": h(d, m, j)[0],
1446
- "end-placeholder": h(d, m, j)[1],
1447
- onChange: (t) => v(d, o)
1444
+ "value-format": p(d, ee),
1445
+ "start-placeholder": m(d, g, j)[0],
1446
+ "end-placeholder": m(d, g, j)[1],
1447
+ onChange: (a) => h(d, o)
1448
1448
  }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : M("", !0),
1449
- [s(e).CHECKBOX].includes(d) ? (u(), b(K, {
1449
+ [s(e).CHECKBOX].includes(d) ? (u(), y(K, {
1450
1450
  key: 11,
1451
- modelValue: l.value[o],
1452
- "onUpdate:modelValue": (t) => l.value[o] = t,
1453
- onChange: (t) => v(d, o)
1451
+ modelValue: n.value[o],
1452
+ "onUpdate:modelValue": (a) => n.value[o] = a,
1453
+ onChange: (a) => h(d, o)
1454
1454
  }, {
1455
- default: V(() => [
1456
- (u(!0), A(L, null, W(Y, (t, H) => (u(), b(q, {
1455
+ default: C(() => [
1456
+ (u(!0), A(L, null, W(Y, (a, H) => (u(), y(q, {
1457
1457
  key: H,
1458
- label: t.value
1458
+ label: a.value
1459
1459
  }, {
1460
- default: V(() => [
1461
- Q(G(t.label), 1)
1460
+ default: C(() => [
1461
+ Q(G(a.label), 1)
1462
1462
  ]),
1463
1463
  _: 2
1464
1464
  }, 1032, ["label"]))), 128))
1465
1465
  ]),
1466
1466
  _: 2
1467
1467
  }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : M("", !0),
1468
- [s(e).CASCADER].includes(d) ? (u(), b(Jt, {
1468
+ [s(e).CASCADER].includes(d) ? (u(), y(Jt, {
1469
1469
  key: 12,
1470
- modelValue: l.value[o],
1471
- "onUpdate:modelValue": (t) => l.value[o] = t,
1470
+ modelValue: n.value[o],
1471
+ "onUpdate:modelValue": (a) => n.value[o] = a,
1472
1472
  "data-options": Y,
1473
- placeholder: h(d, m, j),
1474
- onOnChange: (t) => v(d, o)
1473
+ placeholder: m(d, g, j),
1474
+ onOnChange: (a) => h(d, o)
1475
1475
  }, null, 8, ["modelValue", "onUpdate:modelValue", "data-options", "placeholder", "onOnChange"])) : M("", !0),
1476
1476
  [].includes(d) ? (u(), A(L, { key: 13 }, [], 64)) : M("", !0),
1477
- [s(e).OPERATION].includes(d) ? (u(), b(Qt, {
1477
+ [s(e).OPERATION].includes(d) ? (u(), y(Qt, {
1478
1478
  key: 14,
1479
1479
  fold: ae >= 7,
1480
1480
  onOnSearch: x,
1481
- onOnClear: C,
1481
+ onOnClear: V,
1482
1482
  onOnFold: F
1483
1483
  }, null, 8, ["fold"])) : M("", !0)
1484
1484
  ], 64))
@@ -1488,7 +1488,7 @@ const qt = { class: "bsgoal-base-search" }, ea = { class: "base_search" }, ta =
1488
1488
  ]),
1489
1489
  _: 2
1490
1490
  }, 1032, ["md"])), [
1491
- [te, ae < 7 || d === s(e).OPERATION || ae >= 7 && $.value]
1491
+ [te, ae < 7 || d === s(e).OPERATION || ae >= 7 && N.value]
1492
1492
  ])), 128))
1493
1493
  ]),
1494
1494
  _: 1
@@ -1499,7 +1499,7 @@ const qt = { class: "bsgoal-base-search" }, ea = { class: "base_search" }, ta =
1499
1499
  [s(_)]
1500
1500
  ])
1501
1501
  ]),
1502
- N(be)
1502
+ D(be)
1503
1503
  ]);
1504
1504
  };
1505
1505
  }
@@ -1586,41 +1586,41 @@ const na = { class: "bsgoal-base-search-table" }, oa = { class: "base_search_tab
1586
1586
  default: 75
1587
1587
  }
1588
1588
  },
1589
- setup(a) {
1590
- const r = a, n = w(!1);
1591
- Oe("transferFoldStatus", n);
1592
- const i = s(r.configOptions), _ = oe(() => i.filter((C) => {
1593
- const { type: D = "" } = C;
1594
- return !!D;
1595
- })), l = oe(() => i.filter((C) => {
1596
- const { item: D = !1 } = C;
1597
- return !D;
1598
- })), c = ke(), h = w(Object.keys(c)), y = w(null), x = (C) => {
1599
- y.value.refreshList(C);
1589
+ setup(t) {
1590
+ const c = t, l = w(!1);
1591
+ Oe("transferFoldStatus", l);
1592
+ const i = s(c.configOptions), _ = le(() => i.filter((V) => {
1593
+ const { type: $ = "" } = V;
1594
+ return !!$;
1595
+ })), n = le(() => i.filter((V) => {
1596
+ const { item: $ = !1 } = V;
1597
+ return !$;
1598
+ })), r = ke(), m = w(Object.keys(r)), p = w(null), x = (V) => {
1599
+ p.value.refreshList(V);
1600
1600
  };
1601
- return (C, D) => (u(), A("div", na, [
1601
+ return (V, $) => (u(), A("div", na, [
1602
1602
  O("div", oa, [
1603
- N(la, {
1603
+ D(la, {
1604
1604
  "config-options": s(_),
1605
1605
  onOnSearch: x,
1606
1606
  onOnClear: x
1607
1607
  }, null, 8, ["config-options"]),
1608
- N(Me, {
1608
+ D(Me, {
1609
1609
  ref_key: "BSGOAL_BASE_TABLE_REF",
1610
- ref: y,
1611
- operationWidth: a.operationWidth,
1612
- "config-options": s(l),
1613
- data: a.tableData,
1614
- selection: a.selection,
1615
- operation: a.operation,
1616
- expression: a.expression,
1617
- fetch: a.fetch,
1618
- call: a.call
1610
+ ref: p,
1611
+ operationWidth: t.operationWidth,
1612
+ "config-options": s(n),
1613
+ data: t.tableData,
1614
+ selection: t.selection,
1615
+ operation: t.operation,
1616
+ expression: t.expression,
1617
+ fetch: t.fetch,
1618
+ call: t.call
1619
1619
  }, Ie({ _: 2 }, [
1620
- W(h.value, ($) => ({
1621
- name: $,
1622
- fn: V(({ row: F = {} }) => [
1623
- se(C.$slots, $, { row: F })
1620
+ W(m.value, (N) => ({
1621
+ name: N,
1622
+ fn: C(({ row: F = {} }) => [
1623
+ se(V.$slots, N, { row: F })
1624
1624
  ])
1625
1625
  }))
1626
1626
  ]), 1032, ["operationWidth", "config-options", "data", "selection", "operation", "expression", "fetch", "call"])
@@ -1633,25 +1633,25 @@ const ca = { class: "bsgoal-base-tree-fold" }, ra = {
1633
1633
  }, ia = /* @__PURE__ */ Object.assign(ra, {
1634
1634
  props: ["modelValue"],
1635
1635
  emits: ["update:modelValue"],
1636
- setup(a, { emit: r }) {
1637
- let n = w(!0);
1636
+ setup(t, { emit: c }) {
1637
+ let l = w(!0);
1638
1638
  const i = () => {
1639
- n.value = !n.value, r("update:modelValue", n.value);
1639
+ l.value = !l.value, c("update:modelValue", l.value);
1640
1640
  };
1641
- return (_, l) => {
1642
- const c = f("el-icon");
1641
+ return (_, n) => {
1642
+ const r = v("el-icon");
1643
1643
  return u(), A("div", ca, [
1644
1644
  O("div", {
1645
- class: ve(["base_tree_fold", { "base_tree_fold--hide": !s(n) }]),
1645
+ class: ve(["base_tree_fold", { "base_tree_fold--hide": !s(l) }]),
1646
1646
  onClick: i
1647
1647
  }, [
1648
- N(c, { color: "#fff" }, {
1649
- default: V(() => [
1650
- X(N(s(At), null, null, 512), [
1651
- [te, s(n)]
1648
+ D(r, { color: "#fff" }, {
1649
+ default: C(() => [
1650
+ X(D(s(At), null, null, 512), [
1651
+ [te, s(l)]
1652
1652
  ]),
1653
- X(N(s($t), null, null, 512), [
1654
- [te, !s(n)]
1653
+ X(D(s($t), null, null, 512), [
1654
+ [te, !s(l)]
1655
1655
  ])
1656
1656
  ]),
1657
1657
  _: 1
@@ -1716,57 +1716,57 @@ const da = { class: "bsgoal-base-tree" }, _a = { class: "base_tree" }, ma = { cl
1716
1716
  }
1717
1717
  },
1718
1718
  emits: ["on-click"],
1719
- setup(a, { emit: r }) {
1720
- const n = a, i = pe.height, _ = w(""), l = w(null);
1721
- ue(_, (C) => {
1722
- l.value.filter(C);
1719
+ setup(t, { emit: c }) {
1720
+ const l = t, i = pe.height, _ = w(""), n = w(null);
1721
+ ue(_, (V) => {
1722
+ n.value.filter(V);
1723
1723
  });
1724
- const c = (C, D) => C ? D.label.includes(C) : !0, h = w(!0), y = (C, D, $, F) => {
1725
- r("on-click", C, D, $, F);
1726
- }, x = async (C, D, $) => {
1727
- if (C.level === 0) {
1728
- const F = await $.initNode(C);
1729
- return D(F || []);
1724
+ const r = (V, $) => V ? $.label.includes(V) : !0, m = w(!0), p = (V, $, N, F) => {
1725
+ c("on-click", V, $, N, F);
1726
+ }, x = async (V, $, N) => {
1727
+ if (V.level === 0) {
1728
+ const F = await N.initNode(V);
1729
+ return $(F || []);
1730
1730
  } else {
1731
- const F = await $.lazyLoad(C);
1732
- D(F || []);
1731
+ const F = await N.lazyLoad(V);
1732
+ $(F || []);
1733
1733
  }
1734
1734
  };
1735
- return (C, D) => {
1736
- const $ = f("el-input"), F = f("el-tree");
1735
+ return (V, $) => {
1736
+ const N = v("el-input"), F = v("el-tree");
1737
1737
  return u(), A("div", da, [
1738
1738
  X((u(), A("div", _a, [
1739
1739
  X(O("div", ma, [
1740
- N($, {
1740
+ D(N, {
1741
1741
  modelValue: _.value,
1742
- "onUpdate:modelValue": D[0] || (D[0] = (v) => _.value = v),
1742
+ "onUpdate:modelValue": $[0] || ($[0] = (h) => _.value = h),
1743
1743
  class: "base_tree_main_input",
1744
1744
  placeholder: "输入关键字过滤"
1745
1745
  }, null, 8, ["modelValue"]),
1746
- N(F, {
1746
+ D(F, {
1747
1747
  ref_key: "EL_TREE_REF",
1748
- ref: l,
1748
+ ref: n,
1749
1749
  lazy: "",
1750
1750
  "highlight-current": "",
1751
1751
  "empty-text": "暂无数据",
1752
- load: (v, p) => x(v, p, n),
1752
+ load: (h, E) => x(h, E, l),
1753
1753
  "expand-on-click-node": !1,
1754
- props: a.treeProps,
1755
- "filter-node-method": c,
1756
- onNodeClick: y
1754
+ props: t.treeProps,
1755
+ "filter-node-method": r,
1756
+ onNodeClick: p
1757
1757
  }, null, 8, ["load", "props"])
1758
1758
  ], 512), [
1759
- [te, h.value]
1759
+ [te, m.value]
1760
1760
  ]),
1761
- X(N(be, { vertical: "" }, null, 512), [
1762
- [te, h.value]
1761
+ X(D(be, { vertical: "" }, null, 512), [
1762
+ [te, m.value]
1763
1763
  ]),
1764
- N(ia, {
1765
- modelValue: h.value,
1766
- "onUpdate:modelValue": D[1] || (D[1] = (v) => h.value = v)
1764
+ D(ia, {
1765
+ modelValue: m.value,
1766
+ "onUpdate:modelValue": $[1] || ($[1] = (h) => m.value = h)
1767
1767
  }, null, 8, ["modelValue"])
1768
1768
  ])), [
1769
- [s(i), a.gasket]
1769
+ [s(i), t.gasket]
1770
1770
  ])
1771
1771
  ]);
1772
1772
  };
@@ -1805,73 +1805,87 @@ const va = { class: "bsgoal-base-dialog" }, ha = { class: "base_dialog" }, pa =
1805
1805
  default: "确定"
1806
1806
  },
1807
1807
  /**
1808
- * 宽度
1809
- */
1808
+ * 宽度
1809
+ */
1810
1810
  width: {
1811
1811
  type: [String, Number]
1812
+ },
1813
+ /**
1814
+ * 弹窗类型
1815
+ */
1816
+ type: {
1817
+ type: [String],
1818
+ default: "default",
1819
+ validator: (t) => ["default", "form", "blank"].includes(t)
1812
1820
  }
1813
1821
  },
1814
1822
  emits: ["update:modelValue", "on-confirm"],
1815
- setup(a, { emit: r }) {
1816
- const n = a, i = w(n.modelValue.value), _ = () => {
1823
+ setup(t, { emit: c }) {
1824
+ const l = t, i = w(l.modelValue.value), _ = () => {
1817
1825
  i.value = !1;
1818
- }, l = () => {
1819
- i.value = !1, r("on-confirm");
1826
+ }, n = () => {
1827
+ i.value = !1, c("on-confirm");
1820
1828
  };
1821
- return ue(
1822
- () => n.modelValue,
1823
- (c) => {
1824
- i.value = c;
1829
+ ue(
1830
+ () => l.modelValue,
1831
+ (m) => {
1832
+ i.value = m;
1825
1833
  }
1826
- ), ue(i, (c) => {
1827
- r("update:modelValue", c);
1828
- }), (c, h) => {
1829
- const y = f("el-button"), x = f("el-dialog");
1834
+ ), ue(i, (m) => {
1835
+ c("update:modelValue", m);
1836
+ });
1837
+ const r = le(() => {
1838
+ let m = "bsgoal_base_dialog_main";
1839
+ const { type: p = "" } = l;
1840
+ return p === "form" && (m += " bsgoal_base_dialog_main--form"), p === "blank" && (m += " bsgoal_base_dialog_main--blank"), m;
1841
+ });
1842
+ return (m, p) => {
1843
+ const x = v("el-button"), V = v("el-dialog");
1830
1844
  return u(), A("div", va, [
1831
1845
  O("div", ha, [
1832
- N(x, {
1846
+ D(V, {
1833
1847
  modelValue: i.value,
1834
- "onUpdate:modelValue": h[0] || (h[0] = (C) => i.value = C),
1835
- "custom-class": "bsgoal_base_dialog_main",
1836
- width: a.width
1848
+ "onUpdate:modelValue": p[0] || (p[0] = ($) => i.value = $),
1849
+ "custom-class": s(r),
1850
+ width: t.width
1837
1851
  }, {
1838
- header: V(() => [
1839
- O("div", pa, G(a.title), 1)
1852
+ header: C(() => [
1853
+ O("div", pa, G(t.title), 1)
1840
1854
  ]),
1841
- footer: V(() => [
1855
+ footer: C(() => [
1842
1856
  O("span", ba, [
1843
- N(y, { onClick: _ }, {
1844
- default: V(() => [
1845
- Q(G(a.cancelTxt), 1)
1857
+ D(x, { onClick: _ }, {
1858
+ default: C(() => [
1859
+ Q(G(t.cancelTxt), 1)
1846
1860
  ]),
1847
1861
  _: 1
1848
1862
  }),
1849
- N(y, {
1863
+ D(x, {
1850
1864
  type: "primary",
1851
- onClick: l
1865
+ onClick: n
1852
1866
  }, {
1853
- default: V(() => [
1854
- Q(G(a.confirmTxt), 1)
1867
+ default: C(() => [
1868
+ Q(G(t.confirmTxt), 1)
1855
1869
  ]),
1856
1870
  _: 1
1857
1871
  })
1858
1872
  ])
1859
1873
  ]),
1860
- default: V(() => [
1874
+ default: C(() => [
1861
1875
  O("div", Ea, [
1862
- se(c.$slots, "default")
1876
+ se(m.$slots, "default")
1863
1877
  ])
1864
1878
  ]),
1865
1879
  _: 3
1866
- }, 8, ["modelValue", "width"])
1880
+ }, 8, ["modelValue", "custom-class", "width"])
1867
1881
  ])
1868
1882
  ]);
1869
1883
  };
1870
1884
  }
1871
1885
  });
1872
- const Ta = { class: "bsgoal-base-tabs" }, Va = {
1886
+ const Ta = { class: "bsgoal-base-tabs" }, Ca = {
1873
1887
  name: "BsgoalBaseTabs"
1874
- }, Ca = /* @__PURE__ */ Object.assign(Va, {
1888
+ }, Va = /* @__PURE__ */ Object.assign(Ca, {
1875
1889
  props: {
1876
1890
  /**
1877
1891
  * 配置项
@@ -1894,7 +1908,7 @@ const Ta = { class: "bsgoal-base-tabs" }, Va = {
1894
1908
  type: {
1895
1909
  type: [String],
1896
1910
  default: "",
1897
- validator: (a) => ["card", "border-card"].includes(a)
1911
+ validator: (t) => ["card", "border-card"].includes(t)
1898
1912
  },
1899
1913
  /**
1900
1914
  * 组件绑定的值
@@ -1905,29 +1919,29 @@ const Ta = { class: "bsgoal-base-tabs" }, Va = {
1905
1919
  }
1906
1920
  },
1907
1921
  emits: ["update:modelValue"],
1908
- setup(a, { emit: r }) {
1909
- const n = (i = "") => {
1910
- r("update:modelValue", i);
1922
+ setup(t, { emit: c }) {
1923
+ const l = (i = "") => {
1924
+ c("update:modelValue", i);
1911
1925
  };
1912
1926
  return (i, _) => {
1913
- const l = f("el-tab-pane"), c = f("el-tabs");
1927
+ const n = v("el-tab-pane"), r = v("el-tabs");
1914
1928
  return u(), A("div", Ta, [
1915
- N(c, {
1929
+ D(r, {
1916
1930
  stretch: "",
1917
1931
  class: "bsgoal_base_tabs",
1918
- type: a.type,
1919
- "model-value": a.modelValue,
1920
- onTabChange: n
1932
+ type: t.type,
1933
+ "model-value": t.modelValue,
1934
+ onTabChange: l
1921
1935
  }, {
1922
- default: V(() => [
1923
- (u(!0), A(L, null, W(a.configOptions, ({ label: h, value: y }, x) => (u(), b(l, {
1936
+ default: C(() => [
1937
+ (u(!0), A(L, null, W(t.configOptions, ({ label: m, value: p }, x) => (u(), y(n, {
1924
1938
  key: x,
1925
- label: h,
1926
- name: y
1939
+ label: m,
1940
+ name: p
1927
1941
  }, {
1928
- default: V(() => [
1929
- se(i.$slots, y, {}, () => [
1930
- Q(G(h), 1)
1942
+ default: C(() => [
1943
+ se(i.$slots, p, {}, () => [
1944
+ Q(G(m), 1)
1931
1945
  ])
1932
1946
  ]),
1933
1947
  _: 2
@@ -1939,18 +1953,18 @@ const Ta = { class: "bsgoal-base-tabs" }, Va = {
1939
1953
  };
1940
1954
  }
1941
1955
  }), Na = e, Da = Ee, wa = {
1942
- install(a, r = {}) {
1943
- const { exclude: n = [] } = r, i = {
1956
+ install(t, c = {}) {
1957
+ const { exclude: l = [] } = c, i = {
1944
1958
  BsgoalBaseForm: ze,
1945
1959
  BsgoalBaseTable: Me,
1946
1960
  BsgoalBaseLine: be,
1947
1961
  BsgoalBaseSearchTable: sa,
1948
1962
  BsgoalBaseTree: fa,
1949
1963
  BsgoalBaseDialog: Aa,
1950
- BsgoalBaseTabs: Ca
1964
+ BsgoalBaseTabs: Va
1951
1965
  };
1952
- for (const [_, l] of Object.entries(i))
1953
- n.includes(_) || a.component(_, l);
1966
+ for (const [_, n] of Object.entries(i))
1967
+ l.includes(_) || t.component(_, n);
1954
1968
  },
1955
1969
  enumType: e,
1956
1970
  useFetch: Ee