@bsgoal/common 1.5.0 → 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
- var Ae = Object.getOwnPropertySymbols;
3
- var Ne = Object.prototype.hasOwnProperty, De = Object.prototype.propertyIsEnumerable;
4
- var Te = (a, r, o) => r in a ? xe(a, r, { enumerable: !0, configurable: !0, writable: !0, value: o }) : a[r] = o, ye = (a, r) => {
5
- for (var o in r || (r = {}))
6
- Ne.call(r, o) && Te(a, o, r[o]);
7
- if (Ae)
8
- for (var o of Ae(r))
9
- De.call(r, o) && Te(a, o, r[o]);
10
- return a;
2
+ var ye = Object.getOwnPropertySymbols;
3
+ var $e = Object.prototype.hasOwnProperty, Ne = Object.prototype.propertyIsEnumerable;
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
+ if (ye)
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 H, createBlock as b, withCtx as C, createVNode as N, Fragment as L, renderList as X, createCommentVNode as V, createTextVNode as Q, toDisplayString as W, nextTick as Ce, inject as Me, watch as ue, resolveDirective as $e, renderSlot as ie, 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 = [], o = [], d = (l = []) => {
39
- const c = l.map((T) => T.width), E = Math.max(...c);
40
- l.forEach((T) => {
41
- const { labelEl: D } = T;
42
- D.style.width = `${E}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((E, T) => {
50
- E.style.width = "initial", E.style.whiteSpace = "nowrap";
51
- const { x: D = 0, width: M = 0 } = E.getBoundingClientRect(), $ = { x: D, width: M, labelEl: E };
52
- T === 0 && (c = D), D === c ? r.push($) : o.push($);
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
- _(), d(r), d(o);
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: o = "" }) => {
81
- if (a) {
82
- const { y: d = 0 } = a.getBoundingClientRect();
83
- a.style.height = `calc(100vh - ${d + 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: o }) {
131
- const d = 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: h } = d, y = s(v), g = s(h);
134
- y.forEach((p) => {
135
- const { value: B = "", prop: k = "", type: S = "" } = p;
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 E = oe(() => {
140
- const { configOptions: v } = d;
141
- return s(v).map((g) => {
142
- let { rules: p = !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 p && (typeof p == "boolean" ? p = [k] : Array.isArray(p) ? p = [k, ...p] : p = [k, p]), g.rules = p, 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
- }), T = (v = "", h = "", y = "") => {
147
- if (!y)
148
- switch (v) {
146
+ }), p = (h = "", E = "", T = "") => {
147
+ if (!T)
148
+ switch (h) {
149
149
  case e.INPUT:
150
150
  case e.INPUT_TEXT_AREA:
151
- return `请输入${h}`;
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 `请选择${h}`;
159
+ return `请选择${E}`;
160
160
  case e.DATE_RANGE:
161
161
  case e.DATE_TIME_RANGE:
162
162
  return ["开始日期", "结束日期"];
@@ -165,10 +165,10 @@ const Re = { class: "bsgoal-base-form" }, Fe = { class: "base_form" }, Ue = { ke
165
165
  case e.MONTH_RANGE:
166
166
  return ["开始月份", "结束月份"];
167
167
  }
168
- return y;
169
- }, D = (v = "", h = "") => {
170
- if (!h)
171
- switch (v) {
168
+ return T;
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,229 +187,229 @@ 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 h;
191
- }, M = () => {
192
- const v = s(c), { configOptions: h } = d, y = s(h);
193
- for (const g of y) {
194
- const { type: p = "", range: B = [], prop: k = "" } = g;
195
- if (p.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 o("on-form", v), v;
200
+ return l("on-form", h), h;
201
201
  }, $ = () => {
202
- _.value.resetFields(), o("on-clear", c.value);
203
- }, x = (v, h) => {
204
- const y = {
205
- type: v,
206
- prop: h,
207
- value: c.value[h] || ""
202
+ _.value.resetFields(), l("on-clear", r.value);
203
+ }, N = (h, E) => {
204
+ const T = {
205
+ type: h,
206
+ prop: E,
207
+ value: r.value[E] || ""
208
208
  };
209
- o("on-change", y);
209
+ l("on-change", T);
210
210
  };
211
- return r({
211
+ return c({
212
212
  triggerOperationClear: $,
213
- triggerOperationForm: M,
214
- validateForm: (v = () => {
213
+ triggerOperationForm: V,
214
+ validateForm: (h = () => {
215
215
  }) => {
216
- _.value.validate((h = !1, y = {}) => {
217
- if (h) {
218
- const g = M();
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", y);
222
- const g = Object.keys(y)[0], {
223
- [g]: {
224
- 0: { message: p = "" }
221
+ h(!1), console.log("field", T);
222
+ const f = Object.keys(T)[0], {
223
+ [f]: {
224
+ 0: { message: b = "" }
225
225
  }
226
- } = y;
227
- Se.error(p);
226
+ } = T;
227
+ Se.error(b);
228
228
  }
229
229
  });
230
230
  }
231
- }), (v, h) => {
232
- const y = f("el-input"), g = f("el-input-number"), p = 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
- H((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
241
  default: C(() => [
242
- N(_e, null, {
242
+ D(_e, null, {
243
243
  default: C(() => [
244
- (u(!0), A(L, null, X(s(E), ({
244
+ (u(!0), A(L, null, W(s(m), ({
245
245
  label: P = "",
246
- prop: m = "",
247
- type: n = "text",
248
- placeholder: i = "",
246
+ prop: g = "",
247
+ type: o = "text",
248
+ placeholder: d = "",
249
249
  readonly: j = !1,
250
- clearable: se = !0,
251
- rows: ce = 2,
252
- min: re = 1,
253
- max: ne = 10,
250
+ clearable: ce = !0,
251
+ rows: re = 2,
252
+ min: ie = 1,
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
263
  default: C(() => [
264
- N(K, {
264
+ D(K, {
265
265
  label: P,
266
- prop: m,
266
+ prop: g,
267
267
  rules: ee
268
268
  }, {
269
269
  default: C(() => [
270
- j ? (u(), A("div", Ue, W(c.value[m]), 1)) : (u(), A(L, { key: 0 }, [
271
- n === s(e).INPUT ? (u(), b(y, {
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: T(n, P, i),
276
- clearable: se,
277
- onChange: (t) => x(n, m)
278
- }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : V("", !0),
279
- n === s(e).INPUT_TEXT_AREA ? (u(), b(y, {
273
+ modelValue: r.value[g],
274
+ "onUpdate:modelValue": (a) => r.value[g] = a,
275
+ placeholder: p(o, P, d),
276
+ clearable: ce,
277
+ onChange: (a) => N(o, g)
278
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : M("", !0),
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
- rows: ce,
285
- clearable: se,
286
- placeholder: T(n, P, i),
287
- onChange: (t) => x(n, m)
288
- }, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : V("", !0),
289
- n === s(e).INPUT_NUMBER ? (u(), b(g, {
284
+ rows: re,
285
+ clearable: ce,
286
+ placeholder: p(o, P, d),
287
+ onChange: (a) => N(o, g)
288
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : M("", !0),
289
+ o === s(e).INPUT_NUMBER ? (u(), y(f, {
290
290
  key: 2,
291
- modelValue: v.num,
292
- "onUpdate:modelValue": h[0] || (h[0] = (t) => v.num = t),
293
- min: re,
294
- max: ne,
295
- onChange: x
296
- }, null, 8, ["modelValue", "min", "max"])) : V("", !0),
297
- n === s(e).RADIO ? (u(), b(B, {
291
+ modelValue: h.num,
292
+ "onUpdate:modelValue": E[0] || (E[0] = (a) => h.num = a),
293
+ min: ie,
294
+ max: oe,
295
+ onChange: N
296
+ }, null, 8, ["modelValue", "min", "max"])) : M("", !0),
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) => x(n, m)
299
+ modelValue: r.value[g],
300
+ "onUpdate:modelValue": (a) => r.value[g] = a,
301
+ onChange: (a) => N(o, g)
302
302
  }, {
303
303
  default: C(() => [
304
- (u(!0), A(L, null, X(J, (t, G) => (u(), b(p, {
305
- key: G,
306
- label: t.value
304
+ (u(!0), A(L, null, W(J, (a, H) => (u(), y(b, {
305
+ key: H,
306
+ label: a.value
307
307
  }, {
308
308
  default: C(() => [
309
- Q(W(t.label), 1)
309
+ Q(G(a.label), 1)
310
310
  ]),
311
311
  _: 2
312
312
  }, 1032, ["label"]))), 128))
313
313
  ]),
314
314
  _: 2
315
- }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : V("", !0),
316
- n === s(e).SELECT ? (u(), b(S, {
315
+ }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : M("", !0),
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: T(n, P, i),
321
- onChange: (t) => x(n, 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
323
  default: C(() => [
324
- (u(!0), A(L, null, X(J, (t, G) => (u(), b(k, {
325
- key: G,
326
- label: t.label,
327
- value: t.value
324
+ (u(!0), A(L, null, W(J, (a, H) => (u(), y(k, {
325
+ key: H,
326
+ label: a.label,
327
+ value: a.value
328
328
  }, null, 8, ["label", "value"]))), 128))
329
329
  ]),
330
330
  _: 2
331
- }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : V("", !0),
332
- n === s(e).SLIDER ? (u(), b(R, {
331
+ }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : M("", !0),
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,
336
- min: re,
337
- max: ne,
338
- onChange: (t) => x(n, m)
339
- }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : V("", !0),
340
- n === s(e).SWITCH ? (u(), b(U, {
334
+ modelValue: r.value[g],
335
+ "onUpdate:modelValue": (a) => r.value[g] = a,
336
+ min: ie,
337
+ max: oe,
338
+ onChange: (a) => N(o, g)
339
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : M("", !0),
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) => x(n, m)
347
- }, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : V("", !0),
346
+ onChange: (a) => N(o, g)
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
- n
350
- ) ? (u(), b(I, {
349
+ o
350
+ ) ? (u(), y(I, {
351
351
  key: 7,
352
- modelValue: c.value[m],
353
- "onUpdate:modelValue": (t) => c.value[m] = t,
354
- format: D(n, Y),
355
- "value-format": D(n, Y),
356
- type: n,
357
- placeholder: T(n, P, i),
358
- onChange: (t) => x(n, m)
359
- }, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : V("", !0),
352
+ modelValue: r.value[g],
353
+ "onUpdate:modelValue": (a) => r.value[g] = a,
354
+ format: x(o, Y),
355
+ "value-format": x(o, Y),
356
+ type: o,
357
+ placeholder: p(o, P, d),
358
+ onChange: (a) => N(o, g)
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(n) ? (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,
368
- type: n,
369
- "value-format": D(n, Y),
370
- "start-placeholder": T(n, P, i)[0],
371
- "end-placeholder": T(n, P, i)[1],
372
- onChange: (t) => x(n, m)
373
- }, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : V("", !0),
374
- [s(e).TIME].includes(n) ? (u(), b(z, {
366
+ modelValue: r.value[g],
367
+ "onUpdate:modelValue": (a) => r.value[g] = a,
368
+ type: o,
369
+ "value-format": x(o, Y),
370
+ "start-placeholder": p(o, P, d)[0],
371
+ "end-placeholder": p(o, P, d)[1],
372
+ onChange: (a) => N(o, g)
373
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : M("", !0),
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
- "value-format": D(n, Y),
380
- placeholder: T(n, P, i),
381
- onChange: (t) => x(n, m)
382
- }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : V("", !0),
383
- [s(e).TIME_RANGE].includes(n) ? (u(), b(z, {
379
+ "value-format": x(o, Y),
380
+ placeholder: p(o, P, d),
381
+ onChange: (a) => N(o, g)
382
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : M("", !0),
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
- "value-format": D(n, Y),
389
- "start-placeholder": T(n, P, i)[0],
390
- "end-placeholder": T(n, P, i)[1],
391
- onChange: (t) => x(n, m)
392
- }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : V("", !0),
393
- [s(e).CHECKBOX].includes(n) ? (u(), b(q, {
388
+ "value-format": x(o, Y),
389
+ "start-placeholder": p(o, P, d)[0],
390
+ "end-placeholder": p(o, P, d)[1],
391
+ onChange: (a) => N(o, g)
392
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : M("", !0),
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) => x(n, m)
395
+ modelValue: r.value[g],
396
+ "onUpdate:modelValue": (a) => r.value[g] = a,
397
+ onChange: (a) => N(o, g)
398
398
  }, {
399
399
  default: C(() => [
400
- (u(!0), A(L, null, X(J, (t, G) => (u(), b(Z, {
401
- key: G,
402
- label: t.value
400
+ (u(!0), A(L, null, W(J, (a, H) => (u(), y(Z, {
401
+ key: H,
402
+ label: a.value
403
403
  }, {
404
404
  default: C(() => [
405
- Q(W(t.label), 1)
405
+ Q(G(a.label), 1)
406
406
  ]),
407
407
  _: 2
408
408
  }, 1032, ["label"]))), 128))
409
409
  ]),
410
410
  _: 2
411
- }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : V("", !0),
412
- [].includes(n) ? (u(), A(L, { key: 12 }, [], 64)) : V("", !0)
411
+ }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : M("", !0),
412
+ [].includes(o) ? (u(), A(L, { key: 12 }, [], 64)) : M("", !0)
413
413
  ], 64))
414
414
  ]),
415
415
  _: 2
@@ -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, o) => (u(), A("div", Pe, [
444
- O("div", je, W(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,28 +607,28 @@ 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 o = (l = 0) => {
612
- r("on-size-change", l);
613
- }, d = (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 E = f("el-pagination"), T = 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(T, { locale: s(He) }, {
620
+ D(p, { locale: s(He) }, {
621
621
  default: C(() => [
622
- N(E, {
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] = (D) => _.value = D),
627
- "page-sizes": a.pageSizes,
628
- "page-size": a.pageSize,
629
- total: a.total,
630
- onSizeChange: o,
631
- onCurrentChange: d
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
+ onCurrentChange: i
632
632
  }, {
633
633
  next: C(() => [
634
634
  Qe
@@ -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 o = a.__vccOpts || a;
648
- for (const [d, _] of r)
649
- o[d] = _;
650
- return o;
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,40 +661,40 @@ const Je = (a, r) => {
661
661
  ], -1), at = [
662
662
  tt
663
663
  ];
664
- function lt(a, r, o, d, _, 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: o = {} } = {}) => {
668
- const d = s(a);
669
- if (d) {
670
- const _ = d.querySelector(".el-table");
667
+ const nt = /* @__PURE__ */ Je(qe, [["render", lt]]), ot = (t = null, { expression: c = 75, arg: l = {} } = {}) => {
668
+ const i = s(t);
669
+ if (i) {
670
+ const _ = i.querySelector(".el-table");
671
671
  _ && Ce(() => {
672
- const { y: l = 0 } = _.getBoundingClientRect();
673
- _.style.height = `calc(100vh - ${l + r}px)`;
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, o = w(!1), d = w(null)) => {
676
+ }, Ee = (t = Promise.resolve(), c = null, l = w(!1), i = w(null)) => {
677
677
  const _ = w("");
678
- return o.value = !0, a.then((l = {}) => {
679
- const { data: c = {}, message: E = "" } = l;
680
- d.value = c, _.value = E, r && r(!0, c), o.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), o.value = !1;
686
+ _.value = n;
687
+ c && c(!1, n), l.value = !1;
688
688
  }).finally(() => {
689
- o.value = !1;
690
- }), { data: d, message: _, loading: o };
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,
694
694
  class: "base_table_menu"
695
695
  }, rt = {
696
696
  name: "BsgoalBaseTable"
697
- }, Ve = /* @__PURE__ */ Object.assign(rt, {
697
+ }, Me = /* @__PURE__ */ Object.assign(rt, {
698
698
  props: {
699
699
  /**
700
700
  * >----------props----------<
@@ -781,51 +781,51 @@ 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 o = a, d = oe(() => {
786
- const { configOptions: g = [], operation: p = !1, operationWidth: B = 0 } = o, k = s(g), S = [];
787
- return p && 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 = Me("transferFoldStatus");
793
+ }), _ = w(null), n = Ve("transferFoldStatus");
794
794
  he(() => {
795
- const g = l ? l.value : !1, p = s(o.expression);
796
- ot(_, { arg: g, expression: p });
795
+ const f = n ? n.value : !1, b = s(l.expression);
796
+ ot(_, { arg: f, expression: b });
797
797
  });
798
- const c = w(1), E = w(10), T = w(0), D = w({}), M = w(o.loading), $ = w(o.data), x = w({}), F = () => {
799
- const { fetch: g, call: p, mapProps: B } = o, k = D.value, S = c.value, R = E.value, U = ye({}, k), I = s(B);
800
- U[I.currentPage] = S, U[I.pageSize] = R, Ee(g(U), p, M, x);
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(x, (g) => {
803
- const { mapProps: p } = o, B = s(p);
804
- $.value = g[B.rows], T.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
- D.value = g, c.value = 1, F();
808
- }, h = (g = 1) => {
809
- c.value = g;
810
- }, y = (g = 10) => {
811
- E.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, E], () => {
813
+ return ue([r, m], () => {
814
814
  F();
815
- }), r({
816
- refreshList: v
817
- }), (g, p) => {
818
- const B = f("el-table-column"), k = f("el-table"), S = $e("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
- ie(g.$slots, "menu")
823
- ])) : V("", !0),
821
+ f.$slots.menu ? (u(), A("div", ct, [
822
+ se(f.$slots, "menu")
823
+ ])) : M("", !0),
824
824
  O("div", {
825
825
  ref_key: "EL_TABLE_WRAP_REF",
826
826
  ref: _
827
827
  }, [
828
- H((u(), b(k, {
828
+ X((u(), y(k, {
829
829
  stripe: "",
830
830
  border: "",
831
831
  "highlight-current-row": "",
@@ -839,16 +839,16 @@ const ut = { class: "bsgoal-base-table" }, st = { class: "base_table" }, ct = {
839
839
  }
840
840
  }, {
841
841
  empty: C(() => [
842
- N(nt)
842
+ D(nt)
843
843
  ]),
844
844
  default: C(() => [
845
- a.selection ? (u(), b(B, {
845
+ t.selection ? (u(), y(B, {
846
846
  key: 0,
847
847
  fixed: "left",
848
848
  type: "selection",
849
849
  width: "40"
850
- })) : V("", !0),
851
- (u(!0), A(L, null, X(s(d), ({ prop: R = "", label: U = "", align: I = "center", width: z = "", fixed: Z = !1 } = {}, q) => (u(), b(B, {
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(), y(B, {
852
852
  key: q,
853
853
  label: U,
854
854
  align: I,
@@ -857,8 +857,8 @@ const ut = { class: "bsgoal-base-table" }, st = { class: "base_table" }, ct = {
857
857
  "min-width": `${U.length * 14 + 24}px`
858
858
  }, {
859
859
  default: C(({ row: K }) => [
860
- ie(g.$slots, R, { row: K }, () => [
861
- N(Ge, {
860
+ se(f.$slots, R, { row: K }, () => [
861
+ D(Ge, {
862
862
  data: K[R]
863
863
  }, null, 8, ["data"])
864
864
  ])
@@ -868,13 +868,13 @@ 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, M.value]
871
+ [S, V.value]
872
872
  ])
873
873
  ], 512),
874
- N(Ke, {
875
- total: T.value,
876
- onOnCurrentChange: h,
877
- onOnSizeChange: y
874
+ D(Ke, {
875
+ total: p.value,
876
+ onOnCurrentChange: E,
877
+ onOnSizeChange: T
878
878
  }, null, 8, ["total"])
879
879
  ])
880
880
  ]);
@@ -893,22 +893,22 @@ const it = {
893
893
  default: !1
894
894
  }
895
895
  },
896
- setup(a) {
897
- return (r, o) => (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 o = a.__vccOpts || a;
909
- for (let [d, _] of r)
910
- o[d] = _;
911
- return o;
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, o, d, _, 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 At(a, r, o, d, _, l) {
949
+ function yt(t, c, l, i, _, n) {
950
950
  return u(), A("svg", pt, bt);
951
951
  }
952
- var Tt = /* @__PURE__ */ le(ht, [["render", At], ["__file", "arrow-left.vue"]]), yt = {
952
+ var At = /* @__PURE__ */ ne(ht, [["render", yt], ["__file", "arrow-left.vue"]]), Tt = {
953
953
  name: "ArrowRight"
954
954
  }, Ct = {
955
955
  xmlns: "http://www.w3.org/2000/svg",
956
956
  viewBox: "0 0 1024 1024"
957
- }, Mt = /* @__PURE__ */ O(
957
+ }, Vt = /* @__PURE__ */ O(
958
958
  "path",
959
959
  {
960
960
  fill: "currentColor",
@@ -963,15 +963,15 @@ var Tt = /* @__PURE__ */ le(ht, [["render", At], ["__file", "arrow-left.vue"]]),
963
963
  null,
964
964
  -1
965
965
  /* HOISTED */
966
- ), Vt = [
967
- Mt
966
+ ), Mt = [
967
+ Vt
968
968
  ];
969
- function xt(a, r, o, d, _, l) {
970
- return u(), A("svg", Ct, Vt);
969
+ function xt(t, c, l, i, _, n) {
970
+ return u(), A("svg", Ct, Mt);
971
971
  }
972
- var Nt = /* @__PURE__ */ le(yt, [["render", xt], ["__file", "arrow-right.vue"]]), Dt = {
972
+ var $t = /* @__PURE__ */ ne(Tt, [["render", xt], ["__file", "arrow-right.vue"]]), Nt = {
973
973
  name: "ArrowUp"
974
- }, $t = {
974
+ }, Dt = {
975
975
  xmlns: "http://www.w3.org/2000/svg",
976
976
  viewBox: "0 0 1024 1024"
977
977
  }, wt = /* @__PURE__ */ O(
@@ -986,10 +986,10 @@ var Nt = /* @__PURE__ */ le(yt, [["render", xt], ["__file", "arrow-right.vue"]])
986
986
  ), Bt = [
987
987
  wt
988
988
  ];
989
- function Ot(a, r, o, d, _, l) {
990
- return u(), A("svg", $t, Bt);
989
+ function Ot(t, c, l, i, _, n) {
990
+ return u(), A("svg", Dt, Bt);
991
991
  }
992
- var kt = /* @__PURE__ */ le(Dt, [["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(Dt, [["render", Ot], ["__file", "arrow-up.vue"]]), I
1006
1006
  ), Ft = [
1007
1007
  Rt
1008
1008
  ];
1009
- function Ut(a, r, o, d, _, 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, o, d, _, 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,51 +1043,51 @@ const Wt = { class: "bsgoal-base-search-operation" }, Xt = {
1043
1043
  }
1044
1044
  },
1045
1045
  emits: ["on-fold"],
1046
- setup(a, { emit: r }) {
1047
- const o = w(!1), d = () => {
1048
- o.value = !s(o), r("on-fold", o.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"), E = 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] = (T) => _.$emit("on-search"))
1056
+ onClick: n[0] || (n[0] = (p) => _.$emit("on-search"))
1057
1057
  }, {
1058
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] = (T) => _.$emit("on-clear"))
1065
+ onClick: n[1] || (n[1] = (p) => _.$emit("on-clear"))
1066
1066
  }, {
1067
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
- onClick: d
1076
+ onClick: i
1077
1077
  }, [
1078
- Q(W(o.value ? "收起" : "展开"), 1),
1079
- N(E, { color: "#409EFC" }, {
1078
+ Q(G(l.value ? "收起" : "展开"), 1),
1079
+ D(m, { color: "#409EFC" }, {
1080
1080
  default: C(() => [
1081
- H(N(s(kt), null, null, 512), [
1082
- [te, o.value]
1081
+ X(D(s(kt), null, null, 512), [
1082
+ [te, l.value]
1083
1083
  ]),
1084
- H(N(s(vt), null, null, 512), [
1085
- [te, !o.value]
1084
+ X(D(s(vt), null, null, 512), [
1085
+ [te, !l.value]
1086
1086
  ])
1087
1087
  ]),
1088
1088
  _: 1
1089
1089
  })
1090
- ])) : V("", !0)
1090
+ ])) : M("", !0)
1091
1091
  ]);
1092
1092
  };
1093
1093
  }
@@ -1126,25 +1126,25 @@ 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 o = w({
1129
+ setup(t, { emit: c }) {
1130
+ const l = w({
1131
1131
  checkStrictly: !0,
1132
1132
  multiple: !1
1133
- }), d = (_) => {
1134
- r("update:model-value", _), r("on-change", _);
1133
+ }), i = (_) => {
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: o.value,
1146
- placeholder: a.placeholder,
1147
- onChange: d
1143
+ "model-value": t.modelValue,
1144
+ options: t.dataOptions,
1145
+ props: l.value,
1146
+ placeholder: t.placeholder,
1147
+ onChange: i
1148
1148
  }, null, 8, ["model-value", "options", "props", "placeholder"])
1149
1149
  ]);
1150
1150
  };
@@ -1193,26 +1193,26 @@ 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 o = a, d = 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: h } = o;
1200
- s(h).forEach((g) => {
1201
- const { value: p, prop: B = "", type: k = "" } = g;
1202
- [e.INPUT, e.INPUT_TEXT_AREA].includes(k), l.value[B] = [0, !1].includes(p) ? p : "";
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: h } = o, y = s(h), g = {
1205
+ const r = le(() => {
1206
+ const { configOptions: E } = l, T = s(E), f = {
1207
1207
  type: e.OPERATION
1208
1208
  };
1209
- return [...y, g];
1210
- }), E = (h = "", y = "", g = "") => {
1211
- if (!g)
1212
- switch (h) {
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
- return `请输入${y}`;
1215
+ return `请输入${T}`;
1216
1216
  case e.SELECT:
1217
1217
  case e.DATE:
1218
1218
  case e.WEEK:
@@ -1221,7 +1221,7 @@ const qt = { class: "bsgoal-base-search" }, ea = { class: "base_search" }, ta =
1221
1221
  case e.DATE_TIME:
1222
1222
  case e.TIME:
1223
1223
  case e.CASCADER:
1224
- return `请选择${y}`;
1224
+ return `请选择${T}`;
1225
1225
  case e.DATE_RANGE:
1226
1226
  case e.DATE_TIME_RANGE:
1227
1227
  return ["开始日期", "结束日期"];
@@ -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
- }, T = (h = "", y = "") => {
1235
- if (!y)
1236
- switch (h) {
1233
+ return f;
1234
+ }, p = (E = "", T = "") => {
1235
+ if (!T)
1236
+ switch (E) {
1237
1237
  case e.WEEK:
1238
1238
  return "ww";
1239
1239
  case e.DATE:
@@ -1252,235 +1252,235 @@ const qt = { class: "bsgoal-base-search" }, ea = { class: "base_search" }, ta =
1252
1252
  case e.DATE_TIME_RANGE:
1253
1253
  return "YYYY-MM-DD HH:mm:ss";
1254
1254
  }
1255
- return y;
1256
- }, D = () => {
1257
- const { configOptions: h } = o, y = s(l), g = s(h), p = {};
1258
- for (const B of g) {
1259
- const { type: k = "", range: S = [], prop: R = "", single: U = !1 } = B, I = y[R];
1255
+ return T;
1256
+ }, x = () => {
1257
+ const { configOptions: E } = l, T = s(n), f = s(E), b = {};
1258
+ for (const B of f) {
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 ? p[R] = I[z - 1] : p[R] = I;
1262
+ z ? b[R] = I[z - 1] : b[R] = I;
1263
1263
  } else
1264
- we(I) ? p[R] = Be(I) : p[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
- p[q] = z, p[K] = Z;
1267
+ b[q] = z, b[K] = Z;
1268
1268
  }
1269
1269
  }
1270
- r("on-search", p), r("update:modelValue", p);
1270
+ c("on-search", b), c("update:modelValue", b);
1271
1271
  };
1272
1272
  Ce(() => {
1273
- D();
1273
+ x();
1274
1274
  });
1275
- const M = () => {
1276
- d.value.resetFields(), r("on-clear", l.value);
1277
- }, $ = Me("transferFoldStatus"), x = w(!1), F = (h = !1) => {
1278
- x.value = h, $ && ($.value = h), r("on-fold", x);
1279
- }, v = (h, y) => {
1280
- D();
1281
- const g = {
1282
- type: h,
1283
- prop: y,
1284
- value: l.value[y] || ""
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
+ x();
1281
+ const f = {
1282
+ type: E,
1283
+ prop: T,
1284
+ value: n.value[T] || ""
1285
1285
  };
1286
- r("on-change", g);
1286
+ c("on-change", f);
1287
1287
  };
1288
- return (h, y) => {
1289
- const g = f("el-input"), p = 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
- H((u(), b(P, {
1292
+ X((u(), y(P, {
1293
1293
  ref_key: "EL_FORM_REF",
1294
- ref: d,
1294
+ ref: i,
1295
1295
  "label-suffix": ":",
1296
1296
  "show-message": !1,
1297
- model: l.value
1297
+ model: n.value
1298
1298
  }, {
1299
1299
  default: C(() => [
1300
- N(me, null, {
1300
+ D(me, null, {
1301
1301
  default: C(() => [
1302
- (u(!0), A(L, null, X(s(c), ({
1303
- label: m = "",
1304
- prop: n = "",
1305
- type: i = "text",
1302
+ (u(!0), A(L, null, W(s(r), ({
1303
+ label: g = "",
1304
+ prop: o = "",
1305
+ type: d = "text",
1306
1306
  placeholder: j = "",
1307
- readonly: se = !1,
1308
- clearable: ce = !0,
1309
- rows: re = 2,
1310
- min: ne = 1,
1307
+ readonly: ce = !1,
1308
+ clearable: re = !0,
1309
+ rows: ie = 2,
1310
+ min: oe = 1,
1311
1311
  max: J = 10,
1312
1312
  range: Y = [],
1313
1313
  format: ee = ""
1314
- } = {}, ae) => H((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
1320
  default: C(() => [
1321
- N(de, {
1322
- label: m,
1323
- prop: n
1321
+ D(de, {
1322
+ label: g,
1323
+ prop: o
1324
1324
  }, {
1325
1325
  default: C(() => [
1326
- se ? (u(), A("div", ta, W(l.value[n]), 1)) : (u(), A(L, { key: 0 }, [
1327
- i === s(e).INPUT ? (u(), b(g, {
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[n],
1330
- "onUpdate:modelValue": (t) => l.value[n] = t,
1331
- placeholder: E(i, m, j),
1332
- clearable: ce,
1333
- onChange: (t) => v(i, n)
1334
- }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : V("", !0),
1335
- i === s(e).INPUT_TEXT_AREA ? (u(), b(g, {
1329
+ modelValue: n.value[o],
1330
+ "onUpdate:modelValue": (a) => n.value[o] = a,
1331
+ placeholder: m(d, g, j),
1332
+ clearable: re,
1333
+ onChange: (a) => h(d, o)
1334
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : M("", !0),
1335
+ d === s(e).INPUT_TEXT_AREA ? (u(), y(f, {
1336
1336
  key: 1,
1337
- modelValue: l.value[n],
1338
- "onUpdate:modelValue": (t) => l.value[n] = t,
1337
+ modelValue: n.value[o],
1338
+ "onUpdate:modelValue": (a) => n.value[o] = a,
1339
1339
  type: "textarea",
1340
- rows: re,
1341
- clearable: ce,
1342
- placeholder: E(i, m, j),
1343
- onChange: (t) => v(i, n)
1344
- }, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : V("", !0),
1345
- i === s(e).INPUT_NUMBER ? (u(), b(p, {
1340
+ rows: ie,
1341
+ clearable: re,
1342
+ placeholder: m(d, g, j),
1343
+ onChange: (a) => h(d, o)
1344
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : M("", !0),
1345
+ d === s(e).INPUT_NUMBER ? (u(), y(b, {
1346
1346
  key: 2,
1347
- modelValue: h.num,
1348
- "onUpdate:modelValue": y[0] || (y[0] = (t) => h.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
1352
- }, null, 8, ["modelValue", "min", "max"])) : V("", !0),
1353
- i === s(e).RADIO ? (u(), b(k, {
1351
+ onChange: h
1352
+ }, null, 8, ["modelValue", "min", "max"])) : M("", !0),
1353
+ d === s(e).RADIO ? (u(), y(k, {
1354
1354
  key: 3,
1355
- modelValue: l.value[n],
1356
- "onUpdate:modelValue": (t) => l.value[n] = t,
1357
- onChange: (t) => v(i, n)
1355
+ modelValue: n.value[o],
1356
+ "onUpdate:modelValue": (a) => n.value[o] = a,
1357
+ onChange: (a) => h(d, o)
1358
1358
  }, {
1359
1359
  default: C(() => [
1360
- (u(!0), A(L, null, X(Y, (t, G) => (u(), b(B, {
1361
- key: G,
1362
- label: t.value
1360
+ (u(!0), A(L, null, W(Y, (a, H) => (u(), y(B, {
1361
+ key: H,
1362
+ label: a.value
1363
1363
  }, {
1364
1364
  default: C(() => [
1365
- Q(W(t.label), 1)
1365
+ Q(G(a.label), 1)
1366
1366
  ]),
1367
1367
  _: 2
1368
1368
  }, 1032, ["label"]))), 128))
1369
1369
  ]),
1370
1370
  _: 2
1371
- }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : V("", !0),
1372
- i === s(e).SELECT ? (u(), b(R, {
1371
+ }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : M("", !0),
1372
+ d === s(e).SELECT ? (u(), y(R, {
1373
1373
  key: 4,
1374
- modelValue: l.value[n],
1375
- "onUpdate:modelValue": (t) => l.value[n] = t,
1376
- placeholder: E(i, m, j),
1377
- onChange: (t) => v(i, n)
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
1379
  default: C(() => [
1380
- (u(!0), A(L, null, X(Y, (t, G) => (u(), b(S, {
1381
- key: G,
1382
- label: t.label,
1383
- value: t.value
1380
+ (u(!0), A(L, null, W(Y, (a, H) => (u(), y(S, {
1381
+ key: H,
1382
+ label: a.label,
1383
+ value: a.value
1384
1384
  }, null, 8, ["label", "value"]))), 128))
1385
1385
  ]),
1386
1386
  _: 2
1387
- }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : V("", !0),
1388
- i === s(e).SLIDER ? (u(), b(U, {
1387
+ }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : M("", !0),
1388
+ d === s(e).SLIDER ? (u(), y(U, {
1389
1389
  key: 5,
1390
- modelValue: l.value[n],
1391
- "onUpdate:modelValue": (t) => l.value[n] = 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(i, n)
1395
- }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : V("", !0),
1396
- i === s(e).SWITCH ? (u(), b(I, {
1394
+ onChange: (a) => h(d, o)
1395
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : M("", !0),
1396
+ d === s(e).SWITCH ? (u(), y(I, {
1397
1397
  key: 6,
1398
- modelValue: l.value[n],
1399
- "onUpdate:modelValue": (t) => l.value[n] = 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(i, n)
1403
- }, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : V("", !0),
1402
+ onChange: (a) => h(d, o)
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
- i
1406
- ) ? (u(), b(z, {
1405
+ d
1406
+ ) ? (u(), y(z, {
1407
1407
  key: 7,
1408
- modelValue: l.value[n],
1409
- "onUpdate:modelValue": (t) => l.value[n] = t,
1410
- format: T(i, ee),
1411
- "value-format": T(i, ee),
1412
- type: i,
1413
- placeholder: E(i, m, j),
1414
- onChange: (t) => v(i, n)
1415
- }, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : V("", !0),
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
+ type: d,
1413
+ placeholder: m(d, g, j),
1414
+ onChange: (a) => h(d, o)
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(i) ? (u(), b(z, {
1420
+ ].includes(d) ? (u(), y(z, {
1421
1421
  key: 8,
1422
- modelValue: l.value[n],
1423
- "onUpdate:modelValue": (t) => l.value[n] = t,
1424
- type: i,
1425
- "value-format": T(i, ee),
1426
- "start-placeholder": E(i, m, j)[0],
1427
- "end-placeholder": E(i, m, j)[1],
1428
- onChange: (t) => v(i, n)
1429
- }, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : V("", !0),
1430
- [s(e).TIME].includes(i) ? (u(), b(Z, {
1422
+ modelValue: n.value[o],
1423
+ "onUpdate:modelValue": (a) => n.value[o] = a,
1424
+ type: d,
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
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : M("", !0),
1430
+ [s(e).TIME].includes(d) ? (u(), y(Z, {
1431
1431
  key: 9,
1432
- modelValue: l.value[n],
1433
- "onUpdate:modelValue": (t) => l.value[n] = t,
1432
+ modelValue: n.value[o],
1433
+ "onUpdate:modelValue": (a) => n.value[o] = a,
1434
1434
  "arrow-control": "",
1435
- "value-format": T(i, ee),
1436
- placeholder: E(i, m, j),
1437
- onChange: (t) => v(i, n)
1438
- }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : V("", !0),
1439
- [s(e).TIME_RANGE].includes(i) ? (u(), b(Z, {
1435
+ "value-format": p(d, ee),
1436
+ placeholder: m(d, g, j),
1437
+ onChange: (a) => h(d, o)
1438
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : M("", !0),
1439
+ [s(e).TIME_RANGE].includes(d) ? (u(), y(Z, {
1440
1440
  key: 10,
1441
- modelValue: l.value[n],
1442
- "onUpdate:modelValue": (t) => l.value[n] = t,
1441
+ modelValue: n.value[o],
1442
+ "onUpdate:modelValue": (a) => n.value[o] = a,
1443
1443
  "is-range": "",
1444
- "value-format": T(i, ee),
1445
- "start-placeholder": E(i, m, j)[0],
1446
- "end-placeholder": E(i, m, j)[1],
1447
- onChange: (t) => v(i, n)
1448
- }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : V("", !0),
1449
- [s(e).CHECKBOX].includes(i) ? (u(), b(K, {
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
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : M("", !0),
1449
+ [s(e).CHECKBOX].includes(d) ? (u(), y(K, {
1450
1450
  key: 11,
1451
- modelValue: l.value[n],
1452
- "onUpdate:modelValue": (t) => l.value[n] = t,
1453
- onChange: (t) => v(i, n)
1451
+ modelValue: n.value[o],
1452
+ "onUpdate:modelValue": (a) => n.value[o] = a,
1453
+ onChange: (a) => h(d, o)
1454
1454
  }, {
1455
1455
  default: C(() => [
1456
- (u(!0), A(L, null, X(Y, (t, G) => (u(), b(q, {
1457
- key: G,
1458
- label: t.value
1456
+ (u(!0), A(L, null, W(Y, (a, H) => (u(), y(q, {
1457
+ key: H,
1458
+ label: a.value
1459
1459
  }, {
1460
1460
  default: C(() => [
1461
- Q(W(t.label), 1)
1461
+ Q(G(a.label), 1)
1462
1462
  ]),
1463
1463
  _: 2
1464
1464
  }, 1032, ["label"]))), 128))
1465
1465
  ]),
1466
1466
  _: 2
1467
- }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : V("", !0),
1468
- [s(e).CASCADER].includes(i) ? (u(), b(Jt, {
1467
+ }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : M("", !0),
1468
+ [s(e).CASCADER].includes(d) ? (u(), y(Jt, {
1469
1469
  key: 12,
1470
- modelValue: l.value[n],
1471
- "onUpdate:modelValue": (t) => l.value[n] = t,
1470
+ modelValue: n.value[o],
1471
+ "onUpdate:modelValue": (a) => n.value[o] = a,
1472
1472
  "data-options": Y,
1473
- placeholder: E(i, m, j),
1474
- onOnChange: (t) => v(i, n)
1475
- }, null, 8, ["modelValue", "onUpdate:modelValue", "data-options", "placeholder", "onOnChange"])) : V("", !0),
1476
- [].includes(i) ? (u(), A(L, { key: 13 }, [], 64)) : V("", !0),
1477
- [s(e).OPERATION].includes(i) ? (u(), b(Qt, {
1473
+ placeholder: m(d, g, j),
1474
+ onOnChange: (a) => h(d, o)
1475
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "data-options", "placeholder", "onOnChange"])) : M("", !0),
1476
+ [].includes(d) ? (u(), A(L, { key: 13 }, [], 64)) : M("", !0),
1477
+ [s(e).OPERATION].includes(d) ? (u(), y(Qt, {
1478
1478
  key: 14,
1479
1479
  fold: ae >= 7,
1480
- onOnSearch: D,
1481
- onOnClear: M,
1480
+ onOnSearch: x,
1481
+ onOnClear: V,
1482
1482
  onOnFold: F
1483
- }, null, 8, ["fold"])) : V("", !0)
1483
+ }, null, 8, ["fold"])) : M("", !0)
1484
1484
  ], 64))
1485
1485
  ]),
1486
1486
  _: 2
@@ -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 || i === s(e).OPERATION || ae >= 7 && x.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, o = w(!1);
1591
- Oe("transferFoldStatus", o);
1592
- const d = s(r.configOptions), _ = oe(() => d.filter((M) => {
1593
- const { type: $ = "" } = M;
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
1594
  return !!$;
1595
- })), l = oe(() => d.filter((M) => {
1596
- const { item: $ = !1 } = M;
1595
+ })), n = le(() => i.filter((V) => {
1596
+ const { item: $ = !1 } = V;
1597
1597
  return !$;
1598
- })), c = ke(), E = w(Object.keys(c)), T = w(null), D = (M) => {
1599
- T.value.refreshList(M);
1598
+ })), r = ke(), m = w(Object.keys(r)), p = w(null), x = (V) => {
1599
+ p.value.refreshList(V);
1600
1600
  };
1601
- return (M, $) => (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
- onOnSearch: D,
1606
- onOnClear: D
1605
+ onOnSearch: x,
1606
+ onOnClear: x
1607
1607
  }, null, 8, ["config-options"]),
1608
- N(Ve, {
1608
+ D(Me, {
1609
1609
  ref_key: "BSGOAL_BASE_TABLE_REF",
1610
- ref: T,
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
- X(E.value, (x) => ({
1621
- name: x,
1620
+ W(m.value, (N) => ({
1621
+ name: N,
1622
1622
  fn: C(({ row: F = {} }) => [
1623
- ie(M.$slots, x, { 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 o = w(!0);
1638
- const d = () => {
1639
- o.value = !o.value, r("update:modelValue", o.value);
1636
+ setup(t, { emit: c }) {
1637
+ let l = w(!0);
1638
+ const i = () => {
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(o) }]),
1646
- onClick: d
1645
+ class: ve(["base_tree_fold", { "base_tree_fold--hide": !s(l) }]),
1646
+ onClick: i
1647
1647
  }, [
1648
- N(c, { color: "#fff" }, {
1648
+ D(r, { color: "#fff" }, {
1649
1649
  default: C(() => [
1650
- H(N(s(Tt), null, null, 512), [
1651
- [te, s(o)]
1650
+ X(D(s(At), null, null, 512), [
1651
+ [te, s(l)]
1652
1652
  ]),
1653
- H(N(s(Nt), null, null, 512), [
1654
- [te, !s(o)]
1653
+ X(D(s($t), null, null, 512), [
1654
+ [te, !s(l)]
1655
1655
  ])
1656
1656
  ]),
1657
1657
  _: 1
@@ -1716,65 +1716,65 @@ 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 o = a, d = pe.height, _ = w(""), l = w(null);
1721
- ue(_, (M) => {
1722
- l.value.filter(M);
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 = (M, $) => M ? $.label.includes(M) : !0, E = w(!0), T = (M, $, x, F) => {
1725
- r("on-click", M, $, x, F);
1726
- }, D = async (M, $, x) => {
1727
- if (M.level === 0) {
1728
- const F = await x.initNode(M);
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
1729
  return $(F || []);
1730
1730
  } else {
1731
- const F = await x.lazyLoad(M);
1731
+ const F = await N.lazyLoad(V);
1732
1732
  $(F || []);
1733
1733
  }
1734
1734
  };
1735
- return (M, $) => {
1736
- const x = 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
- H((u(), A("div", _a, [
1739
- H(O("div", ma, [
1740
- N(x, {
1738
+ X((u(), A("div", _a, [
1739
+ X(O("div", ma, [
1740
+ D(N, {
1741
1741
  modelValue: _.value,
1742
- "onUpdate:modelValue": $[0] || ($[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, h) => D(v, h, o),
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: T
1754
+ props: t.treeProps,
1755
+ "filter-node-method": r,
1756
+ onNodeClick: p
1757
1757
  }, null, 8, ["load", "props"])
1758
1758
  ], 512), [
1759
- [te, E.value]
1759
+ [te, m.value]
1760
1760
  ]),
1761
- H(N(be, { vertical: "" }, null, 512), [
1762
- [te, E.value]
1761
+ X(D(be, { vertical: "" }, null, 512), [
1762
+ [te, m.value]
1763
1763
  ]),
1764
- N(ia, {
1765
- modelValue: E.value,
1766
- "onUpdate:modelValue": $[1] || ($[1] = (v) => E.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(d), a.gasket]
1769
+ [s(i), t.gasket]
1770
1770
  ])
1771
1771
  ]);
1772
1772
  };
1773
1773
  }
1774
1774
  });
1775
- const va = { class: "bsgoal-base-dialog" }, ha = { class: "base_dialog" }, pa = { class: "base_dialog_header" }, Ea = { class: "base_dialog_content" }, ba = { class: "base_dialog_footer" }, Aa = {
1775
+ const va = { class: "bsgoal-base-dialog" }, ha = { class: "base_dialog" }, pa = { class: "base_dialog_header" }, Ea = { class: "base_dialog_content" }, ba = { class: "base_dialog_footer" }, ya = {
1776
1776
  name: "BsgoalBaseDialog"
1777
- }, Ta = /* @__PURE__ */ Object.assign(Aa, {
1777
+ }, Aa = /* @__PURE__ */ Object.assign(ya, {
1778
1778
  props: {
1779
1779
  /**
1780
1780
  * 弹窗状态
@@ -1805,53 +1805,67 @@ 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 o = a, d = w(o.modelValue.value), _ = () => {
1817
- d.value = !1;
1818
- }, l = () => {
1819
- d.value = !1, r("on-confirm");
1823
+ setup(t, { emit: c }) {
1824
+ const l = t, i = w(l.modelValue.value), _ = () => {
1825
+ i.value = !1;
1826
+ }, n = () => {
1827
+ i.value = !1, c("on-confirm");
1820
1828
  };
1821
- return ue(
1822
- () => o.modelValue,
1823
- (c) => {
1824
- d.value = c;
1829
+ ue(
1830
+ () => l.modelValue,
1831
+ (m) => {
1832
+ i.value = m;
1825
1833
  }
1826
- ), ue(d, (c) => {
1827
- r("update:modelValue", c);
1828
- }), (c, E) => {
1829
- const T = f("el-button"), D = 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(D, {
1833
- modelValue: d.value,
1834
- "onUpdate:modelValue": E[0] || (E[0] = (M) => d.value = M),
1835
- "custom-class": "bsgoal_base_dialog_main",
1836
- width: a.width
1846
+ D(V, {
1847
+ modelValue: i.value,
1848
+ "onUpdate:modelValue": p[0] || (p[0] = ($) => i.value = $),
1849
+ "custom-class": s(r),
1850
+ width: t.width
1837
1851
  }, {
1838
1852
  header: C(() => [
1839
- O("div", pa, W(a.title), 1)
1853
+ O("div", pa, G(t.title), 1)
1840
1854
  ]),
1841
1855
  footer: C(() => [
1842
1856
  O("span", ba, [
1843
- N(T, { onClick: _ }, {
1857
+ D(x, { onClick: _ }, {
1844
1858
  default: C(() => [
1845
- Q(W(a.cancelTxt), 1)
1859
+ Q(G(t.cancelTxt), 1)
1846
1860
  ]),
1847
1861
  _: 1
1848
1862
  }),
1849
- N(T, {
1863
+ D(x, {
1850
1864
  type: "primary",
1851
- onClick: l
1865
+ onClick: n
1852
1866
  }, {
1853
1867
  default: C(() => [
1854
- Q(W(a.confirmTxt), 1)
1868
+ Q(G(t.confirmTxt), 1)
1855
1869
  ]),
1856
1870
  _: 1
1857
1871
  })
@@ -1859,34 +1873,105 @@ const va = { class: "bsgoal-base-dialog" }, ha = { class: "base_dialog" }, pa =
1859
1873
  ]),
1860
1874
  default: C(() => [
1861
1875
  O("div", Ea, [
1862
- ie(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
- }), Va = e, xa = Ee, Na = {
1872
- install(a, r = {}) {
1873
- const { exclude: o = [] } = r, d = {
1885
+ });
1886
+ const Ta = { class: "bsgoal-base-tabs" }, Ca = {
1887
+ name: "BsgoalBaseTabs"
1888
+ }, Va = /* @__PURE__ */ Object.assign(Ca, {
1889
+ props: {
1890
+ /**
1891
+ * 配置项
1892
+ * [
1893
+ * {
1894
+ * label: '' // 对应 label值
1895
+ * value: '' // 对应 name值
1896
+ * }
1897
+ * ]
1898
+ */
1899
+ configOptions: {
1900
+ type: [Array],
1901
+ default: () => []
1902
+ },
1903
+ /**
1904
+ * 风格
1905
+ * card : 卡片风格
1906
+ * border-card : 带有边框的卡片风格
1907
+ */
1908
+ type: {
1909
+ type: [String],
1910
+ default: "",
1911
+ validator: (t) => ["card", "border-card"].includes(t)
1912
+ },
1913
+ /**
1914
+ * 组件绑定的值
1915
+ */
1916
+ modelValue: {
1917
+ type: [String],
1918
+ default: ""
1919
+ }
1920
+ },
1921
+ emits: ["update:modelValue"],
1922
+ setup(t, { emit: c }) {
1923
+ const l = (i = "") => {
1924
+ c("update:modelValue", i);
1925
+ };
1926
+ return (i, _) => {
1927
+ const n = v("el-tab-pane"), r = v("el-tabs");
1928
+ return u(), A("div", Ta, [
1929
+ D(r, {
1930
+ stretch: "",
1931
+ class: "bsgoal_base_tabs",
1932
+ type: t.type,
1933
+ "model-value": t.modelValue,
1934
+ onTabChange: l
1935
+ }, {
1936
+ default: C(() => [
1937
+ (u(!0), A(L, null, W(t.configOptions, ({ label: m, value: p }, x) => (u(), y(n, {
1938
+ key: x,
1939
+ label: m,
1940
+ name: p
1941
+ }, {
1942
+ default: C(() => [
1943
+ se(i.$slots, p, {}, () => [
1944
+ Q(G(m), 1)
1945
+ ])
1946
+ ]),
1947
+ _: 2
1948
+ }, 1032, ["label", "name"]))), 128))
1949
+ ]),
1950
+ _: 3
1951
+ }, 8, ["type", "model-value"])
1952
+ ]);
1953
+ };
1954
+ }
1955
+ }), Na = e, Da = Ee, wa = {
1956
+ install(t, c = {}) {
1957
+ const { exclude: l = [] } = c, i = {
1874
1958
  BsgoalBaseForm: ze,
1875
- BsgoalBaseTable: Ve,
1959
+ BsgoalBaseTable: Me,
1876
1960
  BsgoalBaseLine: be,
1877
1961
  BsgoalBaseSearchTable: sa,
1878
1962
  BsgoalBaseTree: fa,
1879
- BsgoalBaseDialog: Ta
1963
+ BsgoalBaseDialog: Aa,
1964
+ BsgoalBaseTabs: Va
1880
1965
  };
1881
- for (const [_, l] of Object.entries(d))
1882
- o.includes(_) || a.component(_, l);
1966
+ for (const [_, n] of Object.entries(i))
1967
+ l.includes(_) || t.component(_, n);
1883
1968
  },
1884
1969
  enumType: e,
1885
1970
  useFetch: Ee
1886
1971
  };
1887
1972
  export {
1888
- Va as EnumType,
1889
- Na as default,
1890
- xa as useFetchApi
1973
+ Na as EnumType,
1974
+ wa as default,
1975
+ Da as useFetchApi
1891
1976
  };
1892
1977
  //# sourceMappingURL=index.mjs.map