@bsgoal/common 1.5.0 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,15 +1,15 @@
1
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]);
2
+ var ye = Object.getOwnPropertySymbols;
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]);
7
+ if (ye)
8
+ for (var n of ye(r))
9
+ Ne.call(r, n) && Ae(a, n, r[n]);
10
10
  return a;
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 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";
13
13
  import { ElMessage as Se } from "element-plus";
14
14
  const e = {
15
15
  INPUT: "text",
@@ -35,27 +35,27 @@ const e = {
35
35
  };
36
36
  let ge = null;
37
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`;
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`;
43
43
  });
44
44
  }, _ = () => {
45
45
  if (a) {
46
46
  const l = a.querySelectorAll(".el-form-item__label");
47
47
  if (l && l.length) {
48
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($);
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);
53
53
  });
54
54
  }
55
55
  }
56
56
  };
57
57
  ge && clearTimeout(ge), ge = setTimeout(() => {
58
- _(), d(r), d(o);
58
+ _(), i(r), i(n);
59
59
  }, 50);
60
60
  }, pe = {
61
61
  /**
@@ -77,10 +77,10 @@ const fe = (a) => {
77
77
  /**
78
78
  * 表格自动高度
79
79
  */
80
- height: (a, { value: r = 65, arg: o = "" }) => {
80
+ height: (a, { value: r = 65, arg: n = "" }) => {
81
81
  if (a) {
82
- const { y: d = 0 } = a.getBoundingClientRect();
83
- a.style.height = `calc(100vh - ${d + r}px)`;
82
+ const { y: i = 0 } = a.getBoundingClientRect();
83
+ a.style.height = `calc(100vh - ${i + r}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(a, { expose: r, emit: n }) {
131
+ const i = a, _ = w(null), l = pe.align, c = 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;
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
136
  [e.INPUT, e.INPUT_TEXT_AREA].includes(S), c.value[k] = g[k] || B;
137
137
  });
138
138
  });
139
- const E = oe(() => {
140
- const { configOptions: v } = d;
139
+ const h = oe(() => {
140
+ const { configOptions: v } = i;
141
141
  return s(v).map((g) => {
142
- let { rules: p = !1, label: B = "" } = g;
142
+ let { rules: E = !1, label: B = "" } = g;
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 E && (typeof E == "boolean" ? E = [k] : Array.isArray(E) ? E = [k, ...E] : E = [k, E]), g.rules = E, g;
145
145
  });
146
- }), T = (v = "", h = "", y = "") => {
147
- if (!y)
146
+ }), y = (v = "", p = "", T = "") => {
147
+ if (!T)
148
148
  switch (v) {
149
149
  case e.INPUT:
150
150
  case e.INPUT_TEXT_AREA:
151
- return `请输入${h}`;
151
+ return `请输入${p}`;
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 `请选择${p}`;
160
160
  case e.DATE_RANGE:
161
161
  case e.DATE_TIME_RANGE:
162
162
  return ["开始日期", "结束日期"];
@@ -165,9 +165,9 @@ 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)
168
+ return T;
169
+ }, x = (v = "", p = "") => {
170
+ if (!p)
171
171
  switch (v) {
172
172
  case e.WEEK:
173
173
  return "ww";
@@ -187,69 +187,69 @@ 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) {
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
196
  const { 0: S = "", 1: R = "" } = v[k], { 0: U = "", 1: I = "" } = B;
197
197
  v[U] = S, v[I] = R;
198
198
  }
199
199
  }
200
- return o("on-form", v), v;
201
- }, $ = () => {
202
- _.value.resetFields(), o("on-clear", c.value);
203
- }, x = (v, h) => {
204
- const y = {
200
+ return n("on-form", v), v;
201
+ }, D = () => {
202
+ _.value.resetFields(), n("on-clear", c.value);
203
+ }, $ = (v, p) => {
204
+ const T = {
205
205
  type: v,
206
- prop: h,
207
- value: c.value[h] || ""
206
+ prop: p,
207
+ value: c.value[p] || ""
208
208
  };
209
- o("on-change", y);
209
+ n("on-change", T);
210
210
  };
211
211
  return r({
212
- triggerOperationClear: $,
213
- triggerOperationForm: M,
212
+ triggerOperationClear: D,
213
+ triggerOperationForm: C,
214
214
  validateForm: (v = () => {
215
215
  }) => {
216
- _.value.validate((h = !1, y = {}) => {
217
- if (h) {
218
- const g = M();
216
+ _.value.validate((p = !1, T = {}) => {
217
+ if (p) {
218
+ const g = C();
219
219
  v(g);
220
220
  } else {
221
- v(!1), console.log("field", y);
222
- const g = Object.keys(y)[0], {
221
+ v(!1), console.log("field", T);
222
+ const g = Object.keys(T)[0], {
223
223
  [g]: {
224
- 0: { message: p = "" }
224
+ 0: { message: E = "" }
225
225
  }
226
- } = y;
227
- Se.error(p);
226
+ } = T;
227
+ Se.error(E);
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
+ }), (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");
233
233
  return u(), A("div", Re, [
234
234
  O("div", Fe, [
235
- H((u(), b(me, {
235
+ X((u(), b(me, {
236
236
  ref_key: "EL_FORM_REF",
237
237
  ref: _,
238
238
  "label-suffix": ":",
239
239
  model: c.value
240
240
  }, {
241
- default: C(() => [
241
+ default: V(() => [
242
242
  N(_e, null, {
243
- default: C(() => [
244
- (u(!0), A(L, null, X(s(E), ({
243
+ default: V(() => [
244
+ (u(!0), A(L, null, W(s(h), ({
245
245
  label: P = "",
246
246
  prop: m = "",
247
- type: n = "text",
248
- placeholder: i = "",
247
+ type: o = "text",
248
+ placeholder: d = "",
249
249
  readonly: j = !1,
250
- clearable: se = !0,
251
- rows: ce = 2,
252
- min: re = 1,
250
+ clearable: ce = !0,
251
+ rows: re = 2,
252
+ min: ie = 1,
253
253
  max: ne = 10,
254
254
  range: J = [],
255
255
  format: Y = "",
@@ -260,156 +260,156 @@ const Re = { class: "bsgoal-base-form" }, Fe = { class: "base_form" }, Ue = { ke
260
260
  sm: 24,
261
261
  md: a.medium
262
262
  }, {
263
- default: C(() => [
263
+ default: V(() => [
264
264
  N(K, {
265
265
  label: P,
266
266
  prop: m,
267
267
  rules: ee
268
268
  }, {
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, {
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, {
272
272
  key: 0,
273
273
  modelValue: c.value[m],
274
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, {
275
+ placeholder: y(o, P, d),
276
+ clearable: ce,
277
+ onChange: (t) => $(o, m)
278
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : M("", !0),
279
+ o === s(e).INPUT_TEXT_AREA ? (u(), b(T, {
280
280
  key: 1,
281
281
  modelValue: c.value[m],
282
282
  "onUpdate:modelValue": (t) => c.value[m] = t,
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: y(o, P, d),
287
+ onChange: (t) => $(o, m)
288
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : M("", !0),
289
+ o === s(e).INPUT_NUMBER ? (u(), b(g, {
290
290
  key: 2,
291
291
  modelValue: v.num,
292
- "onUpdate:modelValue": h[0] || (h[0] = (t) => v.num = t),
293
- min: re,
292
+ "onUpdate:modelValue": p[0] || (p[0] = (t) => v.num = t),
293
+ min: ie,
294
294
  max: ne,
295
- onChange: x
296
- }, null, 8, ["modelValue", "min", "max"])) : V("", !0),
297
- n === s(e).RADIO ? (u(), b(B, {
295
+ onChange: $
296
+ }, null, 8, ["modelValue", "min", "max"])) : M("", !0),
297
+ o === s(e).RADIO ? (u(), b(B, {
298
298
  key: 3,
299
299
  modelValue: c.value[m],
300
300
  "onUpdate:modelValue": (t) => c.value[m] = t,
301
- onChange: (t) => x(n, m)
301
+ onChange: (t) => $(o, m)
302
302
  }, {
303
- default: C(() => [
304
- (u(!0), A(L, null, X(J, (t, G) => (u(), b(p, {
305
- key: G,
303
+ default: V(() => [
304
+ (u(!0), A(L, null, W(J, (t, H) => (u(), b(E, {
305
+ key: H,
306
306
  label: t.value
307
307
  }, {
308
- default: C(() => [
309
- Q(W(t.label), 1)
308
+ default: V(() => [
309
+ Q(G(t.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(), b(S, {
317
317
  key: 4,
318
318
  modelValue: c.value[m],
319
319
  "onUpdate:modelValue": (t) => c.value[m] = t,
320
- placeholder: T(n, P, i),
321
- onChange: (t) => x(n, m)
320
+ placeholder: y(o, P, d),
321
+ onChange: (t) => $(o, m)
322
322
  }, {
323
- default: C(() => [
324
- (u(!0), A(L, null, X(J, (t, G) => (u(), b(k, {
325
- key: G,
323
+ default: V(() => [
324
+ (u(!0), A(L, null, W(J, (t, H) => (u(), b(k, {
325
+ key: H,
326
326
  label: t.label,
327
327
  value: t.value
328
328
  }, null, 8, ["label", "value"]))), 128))
329
329
  ]),
330
330
  _: 2
331
- }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : 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(), b(R, {
333
333
  key: 5,
334
334
  modelValue: c.value[m],
335
335
  "onUpdate:modelValue": (t) => c.value[m] = t,
336
- min: re,
336
+ min: ie,
337
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, {
338
+ onChange: (t) => $(o, m)
339
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : M("", !0),
340
+ o === s(e).SWITCH ? (u(), b(U, {
341
341
  key: 6,
342
342
  modelValue: c.value[m],
343
343
  "onUpdate:modelValue": (t) => c.value[m] = t,
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: (t) => $(o, m)
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
349
+ o
350
350
  ) ? (u(), b(I, {
351
351
  key: 7,
352
352
  modelValue: c.value[m],
353
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),
354
+ format: x(o, Y),
355
+ "value-format": x(o, Y),
356
+ type: o,
357
+ placeholder: y(o, P, d),
358
+ onChange: (t) => $(o, m)
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(), b(I, {
365
365
  key: 8,
366
366
  modelValue: c.value[m],
367
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, {
368
+ type: o,
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)
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, {
375
375
  key: 9,
376
376
  modelValue: c.value[m],
377
377
  "onUpdate:modelValue": (t) => c.value[m] = t,
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: y(o, P, d),
381
+ onChange: (t) => $(o, m)
382
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : M("", !0),
383
+ [s(e).TIME_RANGE].includes(o) ? (u(), b(z, {
384
384
  key: 10,
385
385
  modelValue: c.value[m],
386
386
  "onUpdate:modelValue": (t) => c.value[m] = t,
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": y(o, P, d)[0],
390
+ "end-placeholder": y(o, P, d)[1],
391
+ onChange: (t) => $(o, m)
392
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : M("", !0),
393
+ [s(e).CHECKBOX].includes(o) ? (u(), b(q, {
394
394
  key: 11,
395
395
  modelValue: c.value[m],
396
396
  "onUpdate:modelValue": (t) => c.value[m] = t,
397
- onChange: (t) => x(n, m)
397
+ onChange: (t) => $(o, m)
398
398
  }, {
399
- default: C(() => [
400
- (u(!0), A(L, null, X(J, (t, G) => (u(), b(Z, {
401
- key: G,
399
+ default: V(() => [
400
+ (u(!0), A(L, null, W(J, (t, H) => (u(), b(Z, {
401
+ key: H,
402
402
  label: t.value
403
403
  }, {
404
- default: C(() => [
405
- Q(W(t.label), 1)
404
+ default: V(() => [
405
+ Q(G(t.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
@@ -440,8 +440,8 @@ const Pe = { class: "bsgoal-base-table-content" }, je = { class: "bas_tabl_conte
440
440
  }
441
441
  },
442
442
  setup(a) {
443
- return (r, o) => (u(), A("div", Pe, [
444
- O("div", je, W(a.data), 1)
443
+ return (r, n) => (u(), A("div", Pe, [
444
+ O("div", je, G(a.data), 1)
445
445
  ]));
446
446
  }
447
447
  });
@@ -608,29 +608,29 @@ const We = { class: "bsgoal-base-table-pagination" }, Xe = { class: "base_table_
608
608
  },
609
609
  emits: ["on-size-change", "on-current-change"],
610
610
  setup(a, { emit: r }) {
611
- const o = (l = 0) => {
611
+ const n = (l = 0) => {
612
612
  r("on-size-change", l);
613
- }, d = (l = 1) => {
613
+ }, i = (l = 1) => {
614
614
  r("on-current-change", l);
615
615
  }, _ = w(1);
616
616
  return (l, c) => {
617
- const E = f("el-pagination"), T = f("el-config-provider");
617
+ const h = f("el-pagination"), y = f("el-config-provider");
618
618
  return u(), A("div", We, [
619
619
  O("div", Xe, [
620
- N(T, { locale: s(He) }, {
621
- default: C(() => [
622
- N(E, {
620
+ N(y, { locale: s(He) }, {
621
+ default: V(() => [
622
+ N(h, {
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),
626
+ "onUpdate:currentPage": c[0] || (c[0] = (x) => _.value = x),
627
627
  "page-sizes": a.pageSizes,
628
628
  "page-size": a.pageSize,
629
629
  total: a.total,
630
- onSizeChange: o,
631
- onCurrentChange: d
630
+ onSizeChange: n,
631
+ onCurrentChange: i
632
632
  }, {
633
- next: C(() => [
633
+ next: V(() => [
634
634
  Qe
635
635
  ]),
636
636
  _: 1
@@ -644,10 +644,10 @@ const We = { class: "bsgoal-base-table-pagination" }, Xe = { class: "base_table_
644
644
  }
645
645
  });
646
646
  const Je = (a, r) => {
647
- const o = a.__vccOpts || a;
648
- for (const [d, _] of r)
649
- o[d] = _;
650
- return o;
647
+ const n = a.__vccOpts || a;
648
+ for (const [i, _] of r)
649
+ n[i] = _;
650
+ return n;
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(a, r, n, i, _, l) {
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");
671
- _ && Ce(() => {
667
+ const nt = /* @__PURE__ */ Je(qe, [["render", lt]]), ot = (a = null, { expression: r = 75, arg: n = {} } = {}) => {
668
+ const i = s(a);
669
+ if (i) {
670
+ const _ = i.querySelector(".el-table");
671
+ _ && Ve(() => {
672
672
  const { y: l = 0 } = _.getBoundingClientRect();
673
673
  _.style.height = `calc(100vh - ${l + r}px)`;
674
674
  });
675
675
  }
676
- }, Ee = (a = Promise.resolve(), r = null, o = w(!1), d = w(null)) => {
676
+ }, Ee = (a = Promise.resolve(), r = null, n = 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;
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
681
  }).catch((l = {}) => {
682
682
  if (typeof l == "object") {
683
683
  const { message: c = "" } = l;
684
684
  _.value = c;
685
685
  } else
686
686
  _.value = l;
687
- r && r(!1, l), o.value = !1;
687
+ r && r(!1, l), n.value = !1;
688
688
  }).finally(() => {
689
- o.value = !1;
690
- }), { data: d, message: _, loading: o };
689
+ n.value = !1;
690
+ }), { data: i, message: _, loading: n };
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----------<
@@ -782,55 +782,55 @@ const ut = { class: "bsgoal-base-table" }, st = { class: "base_table" }, ct = {
782
782
  }
783
783
  },
784
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({
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({
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), l = Ce("transferFoldStatus");
794
794
  he(() => {
795
- const g = l ? l.value : !1, p = s(o.expression);
796
- ot(_, { arg: g, expression: p });
795
+ const g = l ? l.value : !1, E = s(n.expression);
796
+ ot(_, { arg: g, expression: E });
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 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, $);
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($, (g) => {
803
+ const { mapProps: E } = n, B = s(E);
804
+ D.value = g[B.rows], y.value = g[B.total];
805
805
  });
806
806
  const v = (g = {}) => {
807
- D.value = g, c.value = 1, F();
808
- }, h = (g = 1) => {
807
+ x.value = g, c.value = 1, F();
808
+ }, p = (g = 1) => {
809
809
  c.value = g;
810
- }, y = (g = 10) => {
811
- E.value = g;
810
+ }, T = (g = 10) => {
811
+ h.value = g;
812
812
  };
813
- return ue([c, E], () => {
813
+ return ue([c, h], () => {
814
814
  F();
815
815
  }), r({
816
816
  refreshList: v
817
- }), (g, p) => {
818
- const B = f("el-table-column"), k = f("el-table"), S = $e("loading");
817
+ }), (g, E) => {
818
+ const B = f("el-table-column"), k = f("el-table"), S = De("loading");
819
819
  return u(), A("div", ut, [
820
820
  O("div", st, [
821
821
  g.$slots.menu ? (u(), A("div", ct, [
822
- ie(g.$slots, "menu")
823
- ])) : V("", !0),
822
+ se(g.$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(), b(k, {
829
829
  stripe: "",
830
830
  border: "",
831
831
  "highlight-current-row": "",
832
832
  style: { width: "100%" },
833
- data: $.value,
833
+ data: D.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: C(() => [
841
+ empty: V(() => [
842
842
  N(nt)
843
843
  ]),
844
- default: C(() => [
844
+ default: V(() => [
845
845
  a.selection ? (u(), b(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(), b(B, {
852
852
  key: q,
853
853
  label: U,
854
854
  align: I,
@@ -856,8 +856,8 @@ 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: C(({ row: K }) => [
860
- ie(g.$slots, R, { row: K }, () => [
859
+ default: V(({ row: K }) => [
860
+ se(g.$slots, R, { row: K }, () => [
861
861
  N(Ge, {
862
862
  data: K[R]
863
863
  }, null, 8, ["data"])
@@ -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, C.value]
872
872
  ])
873
873
  ], 512),
874
874
  N(Ke, {
875
- total: T.value,
876
- onOnCurrentChange: h,
877
- onOnSizeChange: y
875
+ total: y.value,
876
+ onOnCurrentChange: p,
877
+ onOnSizeChange: T
878
878
  }, null, 8, ["total"])
879
879
  ])
880
880
  ]);
@@ -894,7 +894,7 @@ const it = {
894
894
  }
895
895
  },
896
896
  setup(a) {
897
- return (r, o) => (u(), A("div", {
897
+ return (r, n) => (u(), A("div", {
898
898
  class: ve(["bsgoal-base-line", { "bsgoal-base-line__vertical": a.vertical }])
899
899
  }, [
900
900
  O("div", {
@@ -905,10 +905,10 @@ const it = {
905
905
  });
906
906
  /*! Element Plus Icons Vue v2.1.0 */
907
907
  var le = (a, r) => {
908
- let o = a.__vccOpts || a;
909
- for (let [d, _] of r)
910
- o[d] = _;
911
- return o;
908
+ let n = a.__vccOpts || a;
909
+ for (let [i, _] of r)
910
+ n[i] = _;
911
+ return n;
912
912
  }, dt = {
913
913
  name: "ArrowDown"
914
914
  }, _t = {
@@ -926,7 +926,7 @@ var le = (a, r) => {
926
926
  ), gt = [
927
927
  mt
928
928
  ];
929
- function ft(a, r, o, d, _, l) {
929
+ function ft(a, r, n, i, _, l) {
930
930
  return u(), A("svg", _t, gt);
931
931
  }
932
932
  var vt = /* @__PURE__ */ le(dt, [["render", ft], ["__file", "arrow-down.vue"]]), ht = {
@@ -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(a, r, n, i, _, l) {
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__ */ le(ht, [["render", yt], ["__file", "arrow-left.vue"]]), Tt = {
953
953
  name: "ArrowRight"
954
- }, Ct = {
954
+ }, Vt = {
955
955
  xmlns: "http://www.w3.org/2000/svg",
956
956
  viewBox: "0 0 1024 1024"
957
- }, Mt = /* @__PURE__ */ O(
957
+ }, Ct = /* @__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
+ Ct
968
968
  ];
969
- function xt(a, r, o, d, _, l) {
970
- return u(), A("svg", Ct, Vt);
969
+ function xt(a, r, n, i, _, l) {
970
+ return u(), A("svg", Vt, Mt);
971
971
  }
972
- var Nt = /* @__PURE__ */ le(yt, [["render", xt], ["__file", "arrow-right.vue"]]), Dt = {
972
+ var $t = /* @__PURE__ */ le(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(a, r, n, i, _, l) {
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__ */ le(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,7 +1006,7 @@ 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(a, r, n, i, _, l) {
1010
1010
  return u(), A("svg", St, Ft);
1011
1011
  }
1012
1012
  var Lt = /* @__PURE__ */ le(It, [["render", Ut], ["__file", "delete.vue"]]), zt = {
@@ -1026,7 +1026,7 @@ 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(a, r, n, i, _, l) {
1030
1030
  return u(), A("svg", Pt, Yt);
1031
1031
  }
1032
1032
  var Ht = /* @__PURE__ */ le(zt, [["render", Gt], ["__file", "search.vue"]]);
@@ -1044,27 +1044,27 @@ const Wt = { class: "bsgoal-base-search-operation" }, Xt = {
1044
1044
  },
1045
1045
  emits: ["on-fold"],
1046
1046
  setup(a, { emit: r }) {
1047
- const o = w(!1), d = () => {
1048
- o.value = !s(o), r("on-fold", o.value);
1047
+ const n = w(!1), i = () => {
1048
+ n.value = !s(n), r("on-fold", n.value);
1049
1049
  };
1050
1050
  return (_, l) => {
1051
- const c = f("el-button"), E = f("el-icon");
1051
+ const c = f("el-button"), h = f("el-icon");
1052
1052
  return u(), A("div", Wt, [
1053
1053
  N(c, {
1054
1054
  type: "primary",
1055
1055
  icon: s(Ht),
1056
- onClick: l[0] || (l[0] = (T) => _.$emit("on-search"))
1056
+ onClick: l[0] || (l[0] = (y) => _.$emit("on-search"))
1057
1057
  }, {
1058
- default: C(() => [
1058
+ default: V(() => [
1059
1059
  Q("搜索")
1060
1060
  ]),
1061
1061
  _: 1
1062
1062
  }, 8, ["icon"]),
1063
1063
  N(c, {
1064
1064
  icon: s(Lt),
1065
- onClick: l[1] || (l[1] = (T) => _.$emit("on-clear"))
1065
+ onClick: l[1] || (l[1] = (y) => _.$emit("on-clear"))
1066
1066
  }, {
1067
- default: C(() => [
1067
+ default: V(() => [
1068
1068
  Q("清空")
1069
1069
  ]),
1070
1070
  _: 1
@@ -1073,21 +1073,21 @@ const Wt = { class: "bsgoal-base-search-operation" }, Xt = {
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" }, {
1080
- default: C(() => [
1081
- H(N(s(kt), null, null, 512), [
1082
- [te, o.value]
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]
1083
1083
  ]),
1084
- H(N(s(vt), null, null, 512), [
1085
- [te, !o.value]
1084
+ X(N(s(vt), null, null, 512), [
1085
+ [te, !n.value]
1086
1086
  ])
1087
1087
  ]),
1088
1088
  _: 1
1089
1089
  })
1090
- ])) : V("", !0)
1090
+ ])) : M("", !0)
1091
1091
  ]);
1092
1092
  };
1093
1093
  }
@@ -1127,10 +1127,10 @@ const Zt = { class: "bsgoal-base-cascader" }, Kt = {
1127
1127
  },
1128
1128
  emits: ["update:model-value", "on-change"],
1129
1129
  setup(a, { emit: r }) {
1130
- const o = w({
1130
+ const n = w({
1131
1131
  checkStrictly: !0,
1132
1132
  multiple: !1
1133
- }), d = (_) => {
1133
+ }), i = (_) => {
1134
1134
  r("update:model-value", _), r("on-change", _);
1135
1135
  };
1136
1136
  return (_, l) => {
@@ -1142,9 +1142,9 @@ const Zt = { class: "bsgoal-base-cascader" }, Kt = {
1142
1142
  "show-all-levels": !1,
1143
1143
  "model-value": a.modelValue,
1144
1144
  options: a.dataOptions,
1145
- props: o.value,
1145
+ props: n.value,
1146
1146
  placeholder: a.placeholder,
1147
- onChange: d
1147
+ onChange: i
1148
1148
  }, null, 8, ["model-value", "options", "props", "placeholder"])
1149
1149
  ]);
1150
1150
  };
@@ -1194,25 +1194,25 @@ const qt = { class: "bsgoal-base-search" }, ea = { class: "base_search" }, ta =
1194
1194
  },
1195
1195
  emits: ["on-search", "on-clear", "on-change", "on-fold"],
1196
1196
  setup(a, { emit: r }) {
1197
- const o = a, d = w(null), _ = pe.align, l = w({});
1197
+ const n = a, i = w(null), _ = pe.align, l = 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: 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 : "";
1203
1203
  });
1204
1204
  });
1205
1205
  const c = oe(() => {
1206
- const { configOptions: h } = o, y = s(h), g = {
1206
+ const { configOptions: p } = n, T = s(p), g = {
1207
1207
  type: e.OPERATION
1208
1208
  };
1209
- return [...y, g];
1210
- }), E = (h = "", y = "", g = "") => {
1209
+ return [...T, g];
1210
+ }), h = (p = "", T = "", g = "") => {
1211
1211
  if (!g)
1212
- switch (h) {
1212
+ switch (p) {
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 ["开始日期", "结束日期"];
@@ -1231,9 +1231,9 @@ const qt = { class: "bsgoal-base-search" }, ea = { class: "base_search" }, ta =
1231
1231
  return ["开始月份", "结束月份"];
1232
1232
  }
1233
1233
  return g;
1234
- }, T = (h = "", y = "") => {
1235
- if (!y)
1236
- switch (h) {
1234
+ }, y = (p = "", T = "") => {
1235
+ if (!T)
1236
+ switch (p) {
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 = {};
1255
+ return T;
1256
+ }, x = () => {
1257
+ const { configOptions: p } = n, T = s(l), g = s(p), E = {};
1258
1258
  for (const B of g) {
1259
- const { type: k = "", range: S = [], prop: R = "", single: U = !1 } = B, I = y[R];
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 ? E[R] = I[z - 1] : E[R] = I;
1263
1263
  } else
1264
- we(I) ? p[R] = Be(I) : p[R] = I;
1264
+ we(I) ? E[R] = Be(I) : E[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
+ E[q] = z, E[K] = Z;
1268
1268
  }
1269
1269
  }
1270
- r("on-search", p), r("update:modelValue", p);
1270
+ r("on-search", E), r("update:modelValue", E);
1271
1271
  };
1272
- Ce(() => {
1273
- D();
1272
+ Ve(() => {
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();
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) => {
1280
+ x();
1281
1281
  const g = {
1282
- type: h,
1283
- prop: y,
1284
- value: l.value[y] || ""
1282
+ type: p,
1283
+ prop: T,
1284
+ value: l.value[T] || ""
1285
1285
  };
1286
1286
  r("on-change", g);
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 (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");
1290
1290
  return u(), A("div", qt, [
1291
1291
  O("div", ea, [
1292
- H((u(), b(P, {
1292
+ X((u(), b(P, {
1293
1293
  ref_key: "EL_FORM_REF",
1294
- ref: d,
1294
+ ref: i,
1295
1295
  "label-suffix": ":",
1296
1296
  "show-message": !1,
1297
1297
  model: l.value
1298
1298
  }, {
1299
- default: C(() => [
1299
+ default: V(() => [
1300
1300
  N(me, null, {
1301
- default: C(() => [
1302
- (u(!0), A(L, null, X(s(c), ({
1301
+ default: V(() => [
1302
+ (u(!0), A(L, null, W(s(c), ({
1303
1303
  label: m = "",
1304
- prop: n = "",
1305
- type: i = "text",
1304
+ prop: o = "",
1305
+ type: d = "text",
1306
1306
  placeholder: j = "",
1307
- readonly: se = !1,
1308
- clearable: ce = !0,
1309
- rows: re = 2,
1307
+ readonly: ce = !1,
1308
+ clearable: re = !0,
1309
+ rows: ie = 2,
1310
1310
  min: ne = 1,
1311
1311
  max: J = 10,
1312
1312
  range: Y = [],
1313
1313
  format: ee = ""
1314
- } = {}, ae) => H((u(), b(_e, {
1314
+ } = {}, ae) => X((u(), b(_e, {
1315
1315
  key: ae,
1316
1316
  xs: 24,
1317
1317
  sm: 12,
1318
1318
  md: a.medium
1319
1319
  }, {
1320
- default: C(() => [
1320
+ default: V(() => [
1321
1321
  N(de, {
1322
1322
  label: m,
1323
- prop: n
1323
+ prop: o
1324
1324
  }, {
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, {
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, {
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: l.value[o],
1330
+ "onUpdate:modelValue": (t) => l.value[o] = t,
1331
+ placeholder: h(d, m, j),
1332
+ clearable: re,
1333
+ onChange: (t) => v(d, o)
1334
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : M("", !0),
1335
+ d === s(e).INPUT_TEXT_AREA ? (u(), b(g, {
1336
1336
  key: 1,
1337
- modelValue: l.value[n],
1338
- "onUpdate:modelValue": (t) => l.value[n] = t,
1337
+ modelValue: l.value[o],
1338
+ "onUpdate:modelValue": (t) => l.value[o] = t,
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: h(d, m, j),
1343
+ onChange: (t) => v(d, o)
1344
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : M("", !0),
1345
+ d === s(e).INPUT_NUMBER ? (u(), b(E, {
1346
1346
  key: 2,
1347
- modelValue: h.num,
1348
- "onUpdate:modelValue": y[0] || (y[0] = (t) => h.num = t),
1347
+ modelValue: p.num,
1348
+ "onUpdate:modelValue": T[0] || (T[0] = (t) => p.num = t),
1349
1349
  min: ne,
1350
1350
  max: J,
1351
1351
  onChange: v
1352
- }, null, 8, ["modelValue", "min", "max"])) : V("", !0),
1353
- i === s(e).RADIO ? (u(), b(k, {
1352
+ }, null, 8, ["modelValue", "min", "max"])) : M("", !0),
1353
+ d === s(e).RADIO ? (u(), b(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: l.value[o],
1356
+ "onUpdate:modelValue": (t) => l.value[o] = t,
1357
+ onChange: (t) => v(d, o)
1358
1358
  }, {
1359
- default: C(() => [
1360
- (u(!0), A(L, null, X(Y, (t, G) => (u(), b(B, {
1361
- key: G,
1359
+ default: V(() => [
1360
+ (u(!0), A(L, null, W(Y, (t, H) => (u(), b(B, {
1361
+ key: H,
1362
1362
  label: t.value
1363
1363
  }, {
1364
- default: C(() => [
1365
- Q(W(t.label), 1)
1364
+ default: V(() => [
1365
+ Q(G(t.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(), b(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: l.value[o],
1375
+ "onUpdate:modelValue": (t) => l.value[o] = t,
1376
+ placeholder: h(d, m, j),
1377
+ onChange: (t) => v(d, o)
1378
1378
  }, {
1379
- default: C(() => [
1380
- (u(!0), A(L, null, X(Y, (t, G) => (u(), b(S, {
1381
- key: G,
1379
+ default: V(() => [
1380
+ (u(!0), A(L, null, W(Y, (t, H) => (u(), b(S, {
1381
+ key: H,
1382
1382
  label: t.label,
1383
1383
  value: t.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(), b(U, {
1389
1389
  key: 5,
1390
- modelValue: l.value[n],
1391
- "onUpdate:modelValue": (t) => l.value[n] = t,
1390
+ modelValue: l.value[o],
1391
+ "onUpdate:modelValue": (t) => l.value[o] = t,
1392
1392
  min: ne,
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: (t) => v(d, o)
1395
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : M("", !0),
1396
+ d === s(e).SWITCH ? (u(), b(I, {
1397
1397
  key: 6,
1398
- modelValue: l.value[n],
1399
- "onUpdate:modelValue": (t) => l.value[n] = t,
1398
+ modelValue: l.value[o],
1399
+ "onUpdate:modelValue": (t) => l.value[o] = t,
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: (t) => v(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
1405
+ d
1406
1406
  ) ? (u(), b(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: l.value[o],
1409
+ "onUpdate:modelValue": (t) => l.value[o] = t,
1410
+ format: y(d, ee),
1411
+ "value-format": y(d, ee),
1412
+ type: d,
1413
+ placeholder: h(d, m, j),
1414
+ onChange: (t) => v(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(), b(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: l.value[o],
1423
+ "onUpdate:modelValue": (t) => l.value[o] = t,
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)
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, {
1431
1431
  key: 9,
1432
- modelValue: l.value[n],
1433
- "onUpdate:modelValue": (t) => l.value[n] = t,
1432
+ modelValue: l.value[o],
1433
+ "onUpdate:modelValue": (t) => l.value[o] = t,
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": y(d, ee),
1436
+ placeholder: h(d, m, j),
1437
+ onChange: (t) => v(d, o)
1438
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : M("", !0),
1439
+ [s(e).TIME_RANGE].includes(d) ? (u(), b(Z, {
1440
1440
  key: 10,
1441
- modelValue: l.value[n],
1442
- "onUpdate:modelValue": (t) => l.value[n] = t,
1441
+ modelValue: l.value[o],
1442
+ "onUpdate:modelValue": (t) => l.value[o] = t,
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": 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)
1448
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : M("", !0),
1449
+ [s(e).CHECKBOX].includes(d) ? (u(), b(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: l.value[o],
1452
+ "onUpdate:modelValue": (t) => l.value[o] = t,
1453
+ onChange: (t) => v(d, o)
1454
1454
  }, {
1455
- default: C(() => [
1456
- (u(!0), A(L, null, X(Y, (t, G) => (u(), b(q, {
1457
- key: G,
1455
+ default: V(() => [
1456
+ (u(!0), A(L, null, W(Y, (t, H) => (u(), b(q, {
1457
+ key: H,
1458
1458
  label: t.value
1459
1459
  }, {
1460
- default: C(() => [
1461
- Q(W(t.label), 1)
1460
+ default: V(() => [
1461
+ Q(G(t.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(), b(Jt, {
1469
1469
  key: 12,
1470
- modelValue: l.value[n],
1471
- "onUpdate:modelValue": (t) => l.value[n] = t,
1470
+ modelValue: l.value[o],
1471
+ "onUpdate:modelValue": (t) => l.value[o] = t,
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: h(d, m, j),
1474
+ onOnChange: (t) => v(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(), b(Qt, {
1478
1478
  key: 14,
1479
1479
  fold: ae >= 7,
1480
- onOnSearch: D,
1481
- onOnClear: M,
1480
+ onOnSearch: x,
1481
+ onOnClear: C,
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 && $.value]
1492
1492
  ])), 128))
1493
1493
  ]),
1494
1494
  _: 1
@@ -1587,27 +1587,27 @@ const na = { class: "bsgoal-base-search-table" }, oa = { class: "base_search_tab
1587
1587
  }
1588
1588
  },
1589
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;
1594
- return !!$;
1595
- })), l = oe(() => d.filter((M) => {
1596
- const { item: $ = !1 } = M;
1597
- return !$;
1598
- })), c = ke(), E = w(Object.keys(c)), T = w(null), D = (M) => {
1599
- T.value.refreshList(M);
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);
1600
1600
  };
1601
- return (M, $) => (u(), A("div", na, [
1601
+ return (C, D) => (u(), A("div", na, [
1602
1602
  O("div", oa, [
1603
1603
  N(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
+ N(Me, {
1609
1609
  ref_key: "BSGOAL_BASE_TABLE_REF",
1610
- ref: T,
1610
+ ref: y,
1611
1611
  operationWidth: a.operationWidth,
1612
1612
  "config-options": s(l),
1613
1613
  data: a.tableData,
@@ -1617,10 +1617,10 @@ const na = { class: "bsgoal-base-search-table" }, oa = { class: "base_search_tab
1617
1617
  fetch: a.fetch,
1618
1618
  call: a.call
1619
1619
  }, Ie({ _: 2 }, [
1620
- X(E.value, (x) => ({
1621
- name: x,
1622
- fn: C(({ row: F = {} }) => [
1623
- ie(M.$slots, x, { row: F })
1620
+ W(h.value, ($) => ({
1621
+ name: $,
1622
+ fn: V(({ row: F = {} }) => [
1623
+ se(C.$slots, $, { row: F })
1624
1624
  ])
1625
1625
  }))
1626
1626
  ]), 1032, ["operationWidth", "config-options", "data", "selection", "operation", "expression", "fetch", "call"])
@@ -1634,24 +1634,24 @@ const ca = { class: "bsgoal-base-tree-fold" }, ra = {
1634
1634
  props: ["modelValue"],
1635
1635
  emits: ["update:modelValue"],
1636
1636
  setup(a, { emit: r }) {
1637
- let o = w(!0);
1638
- const d = () => {
1639
- o.value = !o.value, r("update:modelValue", o.value);
1637
+ let n = w(!0);
1638
+ const i = () => {
1639
+ n.value = !n.value, r("update:modelValue", n.value);
1640
1640
  };
1641
1641
  return (_, l) => {
1642
1642
  const c = f("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(n) }]),
1646
+ onClick: i
1647
1647
  }, [
1648
1648
  N(c, { color: "#fff" }, {
1649
- default: C(() => [
1650
- H(N(s(Tt), null, null, 512), [
1651
- [te, s(o)]
1649
+ default: V(() => [
1650
+ X(N(s(At), null, null, 512), [
1651
+ [te, s(n)]
1652
1652
  ]),
1653
- H(N(s(Nt), null, null, 512), [
1654
- [te, !s(o)]
1653
+ X(N(s($t), null, null, 512), [
1654
+ [te, !s(n)]
1655
1655
  ])
1656
1656
  ]),
1657
1657
  _: 1
@@ -1717,29 +1717,29 @@ const da = { class: "bsgoal-base-tree" }, _a = { class: "base_tree" }, ma = { cl
1717
1717
  },
1718
1718
  emits: ["on-click"],
1719
1719
  setup(a, { emit: r }) {
1720
- const o = a, d = pe.height, _ = w(""), l = w(null);
1721
- ue(_, (M) => {
1722
- l.value.filter(M);
1720
+ const n = a, i = pe.height, _ = w(""), l = w(null);
1721
+ ue(_, (C) => {
1722
+ l.value.filter(C);
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);
1729
- return $(F || []);
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 || []);
1730
1730
  } else {
1731
- const F = await x.lazyLoad(M);
1732
- $(F || []);
1731
+ const F = await $.lazyLoad(C);
1732
+ D(F || []);
1733
1733
  }
1734
1734
  };
1735
- return (M, $) => {
1736
- const x = f("el-input"), F = f("el-tree");
1735
+ return (C, D) => {
1736
+ const $ = f("el-input"), F = f("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
+ N($, {
1741
1741
  modelValue: _.value,
1742
- "onUpdate:modelValue": $[0] || ($[0] = (v) => _.value = v),
1742
+ "onUpdate:modelValue": D[0] || (D[0] = (v) => _.value = v),
1743
1743
  class: "base_tree_main_input",
1744
1744
  placeholder: "输入关键字过滤"
1745
1745
  }, null, 8, ["modelValue"]),
@@ -1749,32 +1749,32 @@ const da = { class: "bsgoal-base-tree" }, _a = { class: "base_tree" }, ma = { cl
1749
1749
  lazy: "",
1750
1750
  "highlight-current": "",
1751
1751
  "empty-text": "暂无数据",
1752
- load: (v, h) => D(v, h, o),
1752
+ load: (v, p) => x(v, p, n),
1753
1753
  "expand-on-click-node": !1,
1754
1754
  props: a.treeProps,
1755
1755
  "filter-node-method": c,
1756
- onNodeClick: T
1756
+ onNodeClick: y
1757
1757
  }, null, 8, ["load", "props"])
1758
1758
  ], 512), [
1759
- [te, E.value]
1759
+ [te, h.value]
1760
1760
  ]),
1761
- H(N(be, { vertical: "" }, null, 512), [
1762
- [te, E.value]
1761
+ X(N(be, { vertical: "" }, null, 512), [
1762
+ [te, h.value]
1763
1763
  ]),
1764
1764
  N(ia, {
1765
- modelValue: E.value,
1766
- "onUpdate:modelValue": $[1] || ($[1] = (v) => E.value = v)
1765
+ modelValue: h.value,
1766
+ "onUpdate:modelValue": D[1] || (D[1] = (v) => h.value = v)
1767
1767
  }, null, 8, ["modelValue"])
1768
1768
  ])), [
1769
- [s(d), a.gasket]
1769
+ [s(i), a.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
  * 弹窗状态
@@ -1813,53 +1813,53 @@ const va = { class: "bsgoal-base-dialog" }, ha = { class: "base_dialog" }, pa =
1813
1813
  },
1814
1814
  emits: ["update:modelValue", "on-confirm"],
1815
1815
  setup(a, { emit: r }) {
1816
- const o = a, d = w(o.modelValue.value), _ = () => {
1817
- d.value = !1;
1816
+ const n = a, i = w(n.modelValue.value), _ = () => {
1817
+ i.value = !1;
1818
1818
  }, l = () => {
1819
- d.value = !1, r("on-confirm");
1819
+ i.value = !1, r("on-confirm");
1820
1820
  };
1821
1821
  return ue(
1822
- () => o.modelValue,
1822
+ () => n.modelValue,
1823
1823
  (c) => {
1824
- d.value = c;
1824
+ i.value = c;
1825
1825
  }
1826
- ), ue(d, (c) => {
1826
+ ), ue(i, (c) => {
1827
1827
  r("update:modelValue", c);
1828
- }), (c, E) => {
1829
- const T = f("el-button"), D = f("el-dialog");
1828
+ }), (c, h) => {
1829
+ const y = f("el-button"), x = f("el-dialog");
1830
1830
  return u(), A("div", va, [
1831
1831
  O("div", ha, [
1832
- N(D, {
1833
- modelValue: d.value,
1834
- "onUpdate:modelValue": E[0] || (E[0] = (M) => d.value = M),
1832
+ N(x, {
1833
+ modelValue: i.value,
1834
+ "onUpdate:modelValue": h[0] || (h[0] = (C) => i.value = C),
1835
1835
  "custom-class": "bsgoal_base_dialog_main",
1836
1836
  width: a.width
1837
1837
  }, {
1838
- header: C(() => [
1839
- O("div", pa, W(a.title), 1)
1838
+ header: V(() => [
1839
+ O("div", pa, G(a.title), 1)
1840
1840
  ]),
1841
- footer: C(() => [
1841
+ footer: V(() => [
1842
1842
  O("span", ba, [
1843
- N(T, { onClick: _ }, {
1844
- default: C(() => [
1845
- Q(W(a.cancelTxt), 1)
1843
+ N(y, { onClick: _ }, {
1844
+ default: V(() => [
1845
+ Q(G(a.cancelTxt), 1)
1846
1846
  ]),
1847
1847
  _: 1
1848
1848
  }),
1849
- N(T, {
1849
+ N(y, {
1850
1850
  type: "primary",
1851
1851
  onClick: l
1852
1852
  }, {
1853
- default: C(() => [
1854
- Q(W(a.confirmTxt), 1)
1853
+ default: V(() => [
1854
+ Q(G(a.confirmTxt), 1)
1855
1855
  ]),
1856
1856
  _: 1
1857
1857
  })
1858
1858
  ])
1859
1859
  ]),
1860
- default: C(() => [
1860
+ default: V(() => [
1861
1861
  O("div", Ea, [
1862
- ie(c.$slots, "default")
1862
+ se(c.$slots, "default")
1863
1863
  ])
1864
1864
  ]),
1865
1865
  _: 3
@@ -1868,25 +1868,96 @@ const va = { class: "bsgoal-base-dialog" }, ha = { class: "base_dialog" }, pa =
1868
1868
  ]);
1869
1869
  };
1870
1870
  }
1871
- }), Va = e, xa = Ee, Na = {
1871
+ });
1872
+ const Ta = { class: "bsgoal-base-tabs" }, Va = {
1873
+ name: "BsgoalBaseTabs"
1874
+ }, Ca = /* @__PURE__ */ Object.assign(Va, {
1875
+ props: {
1876
+ /**
1877
+ * 配置项
1878
+ * [
1879
+ * {
1880
+ * label: '' // 对应 label值
1881
+ * value: '' // 对应 name值
1882
+ * }
1883
+ * ]
1884
+ */
1885
+ configOptions: {
1886
+ type: [Array],
1887
+ default: () => []
1888
+ },
1889
+ /**
1890
+ * 风格
1891
+ * card : 卡片风格
1892
+ * border-card : 带有边框的卡片风格
1893
+ */
1894
+ type: {
1895
+ type: [String],
1896
+ default: "",
1897
+ validator: (a) => ["card", "border-card"].includes(a)
1898
+ },
1899
+ /**
1900
+ * 组件绑定的值
1901
+ */
1902
+ modelValue: {
1903
+ type: [String],
1904
+ default: ""
1905
+ }
1906
+ },
1907
+ emits: ["update:modelValue"],
1908
+ setup(a, { emit: r }) {
1909
+ const n = (i = "") => {
1910
+ r("update:modelValue", i);
1911
+ };
1912
+ return (i, _) => {
1913
+ const l = f("el-tab-pane"), c = f("el-tabs");
1914
+ return u(), A("div", Ta, [
1915
+ N(c, {
1916
+ stretch: "",
1917
+ class: "bsgoal_base_tabs",
1918
+ type: a.type,
1919
+ "model-value": a.modelValue,
1920
+ onTabChange: n
1921
+ }, {
1922
+ default: V(() => [
1923
+ (u(!0), A(L, null, W(a.configOptions, ({ label: h, value: y }, x) => (u(), b(l, {
1924
+ key: x,
1925
+ label: h,
1926
+ name: y
1927
+ }, {
1928
+ default: V(() => [
1929
+ se(i.$slots, y, {}, () => [
1930
+ Q(G(h), 1)
1931
+ ])
1932
+ ]),
1933
+ _: 2
1934
+ }, 1032, ["label", "name"]))), 128))
1935
+ ]),
1936
+ _: 3
1937
+ }, 8, ["type", "model-value"])
1938
+ ]);
1939
+ };
1940
+ }
1941
+ }), Na = e, Da = Ee, wa = {
1872
1942
  install(a, r = {}) {
1873
- const { exclude: o = [] } = r, d = {
1943
+ const { exclude: n = [] } = r, i = {
1874
1944
  BsgoalBaseForm: ze,
1875
- BsgoalBaseTable: Ve,
1945
+ BsgoalBaseTable: Me,
1876
1946
  BsgoalBaseLine: be,
1877
1947
  BsgoalBaseSearchTable: sa,
1878
1948
  BsgoalBaseTree: fa,
1879
- BsgoalBaseDialog: Ta
1949
+ BsgoalBaseDialog: Aa,
1950
+ BsgoalBaseTabs: Ca
1880
1951
  };
1881
- for (const [_, l] of Object.entries(d))
1882
- o.includes(_) || a.component(_, l);
1952
+ for (const [_, l] of Object.entries(i))
1953
+ n.includes(_) || a.component(_, l);
1883
1954
  },
1884
1955
  enumType: e,
1885
1956
  useFetch: Ee
1886
1957
  };
1887
1958
  export {
1888
- Va as EnumType,
1889
- Na as default,
1890
- xa as useFetchApi
1959
+ Na as EnumType,
1960
+ wa as default,
1961
+ Da as useFetchApi
1891
1962
  };
1892
1963
  //# sourceMappingURL=index.mjs.map