@bsgoal/common 1.8.8 → 1.9.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
@@ -9,32 +9,73 @@ var Ce = (e, s, a) => s in e ? Oe(e, s, { enumerable: !0, configurable: !0, writ
9
9
  Ie.call(s, a) && Ce(e, a, s[a]);
10
10
  return e;
11
11
  };
12
- import { computed as Z, resolveComponent as v, openBlock as n, createElementBlock as b, createVNode as $, withCtx as A, renderSlot as q, createTextVNode as Y, toDisplayString as j, ref as N, watchEffect as pe, unref as c, createElementVNode as D, withDirectives as J, createBlock as y, Fragment as P, renderList as Q, createCommentVNode as C, nextTick as $e, inject as Me, watch as me, resolveDirective as Re, normalizeClass as ge, vShow as te, isProxy as Fe, toRaw as Ue, provide as Le, useSlots as Be, createSlots as Pe, normalizeStyle as ze } from "vue";
12
+ import { computed as Z, resolveComponent as v, openBlock as n, createElementBlock as b, createVNode as $, withCtx as A, renderSlot as q, createTextVNode as Y, toDisplayString as j, ref as N, watchEffect as he, unref as c, createElementVNode as D, withDirectives as J, createBlock as y, Fragment as P, renderList as Q, createCommentVNode as C, nextTick as $e, inject as Me, watch as me, resolveDirective as Re, normalizeClass as ge, vShow as te, isProxy as Fe, toRaw as Ue, provide as Le, useSlots as Be, createSlots as Pe, normalizeStyle as ze } from "vue";
13
13
  import { ElMessage as je } from "element-plus";
14
- const l = {
15
- INPUT: "text",
16
- INPUT_NUMBER: "number",
17
- INPUT_TEXT_AREA: "textarea",
18
- SELECT: "select",
19
- SLIDER: "slider",
20
- SWITCH: "switch",
21
- RADIO: "radio",
22
- CHECKBOX: "checkbox",
23
- DATE: "date",
24
- WEEK: "week",
25
- MONTH: "month",
26
- YEAR: "year",
27
- DATE_RANGE: "daterange",
28
- MONTH_RANGE: "monthrange",
29
- TIME: "time",
30
- TIME_RANGE: "timerange",
31
- DATE_TIME: "datetime",
32
- DATE_TIME_RANGE: "datetimerange",
33
- OPERATION: "operation",
34
- CASCADER: "cascader",
35
- CHECKBOX_SINGLE: "checkboxsingle"
36
- };
37
- let be = null;
14
+ let l = class {
15
+ static get INPUT() {
16
+ return "text";
17
+ }
18
+ static get INPUT_NUMBER() {
19
+ return "number";
20
+ }
21
+ static get INPUT_TEXT_AREA() {
22
+ return "textarea";
23
+ }
24
+ static get SELECT() {
25
+ return "select";
26
+ }
27
+ static get SLIDER() {
28
+ return "slider";
29
+ }
30
+ static get SWITCH() {
31
+ return "switch";
32
+ }
33
+ static get RADIO() {
34
+ return "radio";
35
+ }
36
+ static get CHECKBOX() {
37
+ return "checkbox";
38
+ }
39
+ static get DATE() {
40
+ return "date";
41
+ }
42
+ static get WEEK() {
43
+ return "week";
44
+ }
45
+ static get MONTH() {
46
+ return "month";
47
+ }
48
+ static get YEAR() {
49
+ return "year";
50
+ }
51
+ static get DATE_RANGE() {
52
+ return "daterange";
53
+ }
54
+ static get MONTH_RANGE() {
55
+ return "monthrange";
56
+ }
57
+ static get TIME() {
58
+ return "time";
59
+ }
60
+ static get TIME_RANGE() {
61
+ return "timerange";
62
+ }
63
+ static get DATE_TIME() {
64
+ return "datetime";
65
+ }
66
+ static get DATE_TIME_RANGE() {
67
+ return "datetimerange";
68
+ }
69
+ static get OPERATION() {
70
+ return "operation";
71
+ }
72
+ static get CASCADER() {
73
+ return "cascader";
74
+ }
75
+ static get CHECKBOX_SINGLE() {
76
+ return "checkboxsingle";
77
+ }
78
+ }, be = null;
38
79
  const ye = (e) => {
39
80
  const s = [], a = [], i = (u = []) => {
40
81
  const t = u.map((_) => _.width), d = Math.max(...t);
@@ -57,14 +98,14 @@ const ye = (e) => {
57
98
  };
58
99
  be && clearTimeout(be), be = setTimeout(() => {
59
100
  r(), i(s), i(a);
60
- }, 50);
101
+ }, 500);
61
102
  }, xe = {
62
103
  /**
63
104
  * 表单自动左对齐
64
105
  */
65
106
  align: {
66
107
  created(e) {
67
- window.addEventListener("resize", () => {
108
+ console.log("el", e), window.addEventListener("resize", () => {
68
109
  ye(e);
69
110
  });
70
111
  },
@@ -168,7 +209,7 @@ const He = { class: "bsgoal-base-form" }, We = { class: "base_form" }, Xe = { ke
168
209
  * label:'' // 名称
169
210
  * value:'' // 值
170
211
  * prop:'' // 绑定字段
171
- * type:'text' // 内容组件的类型 : 参照 enumType
212
+ * type:'text' // 内容组件的类型 : 参照 componentTypeEnums
172
213
  * placeholder:'' // placeholder 提示文本
173
214
  * readonly: false // 是否为只读文本
174
215
  * clearable: true //是否为可清空
@@ -226,13 +267,21 @@ const He = { class: "bsgoal-base-form" }, We = { class: "base_form" }, Xe = { ke
226
267
  bindModel: {
227
268
  type: [Object],
228
269
  default: () => ({})
270
+ },
271
+ /**
272
+ * label 位置
273
+ */
274
+ labelPosition: {
275
+ type: [String],
276
+ default: "right",
277
+ validator: (e) => ["left", "rightn", "top"].includes(e)
229
278
  }
230
279
  },
231
280
  emits: ["on-form", "on-clear", "on-change", "on-fold"],
232
281
  setup(e, { expose: s, emit: a }) {
233
282
  const i = e, r = N(null), u = xe.align, t = N(i.bindModel);
234
- pe(() => {
235
- const { configOptions: h, values: x } = i, T = c(h), B = c(x);
283
+ he(() => {
284
+ const { configOptions: p, values: x } = i, T = c(p), B = c(x);
236
285
  T.forEach((m) => {
237
286
  const { value: I = "", prop: k = "", type: L = "" } = m;
238
287
  [l.INPUT, l.INPUT_TEXT_AREA].includes(L);
@@ -241,15 +290,15 @@ const He = { class: "bsgoal-base-form" }, We = { class: "base_form" }, Xe = { ke
241
290
  });
242
291
  });
243
292
  const d = Z(() => {
244
- const { configOptions: h } = i;
245
- return c(h).map((B) => {
293
+ const { configOptions: p } = i;
294
+ return c(p).map((B) => {
246
295
  let { rules: m = !1, label: I = "" } = B;
247
296
  const k = { required: !0, message: `${I}不能为空`, trigger: "blur" };
248
297
  return m && (typeof m == "boolean" ? m = [k] : Array.isArray(m) ? m = [k, ...m] : m = [k, m]), B.rules = m, B;
249
298
  });
250
- }), _ = (h = "", x = "", T = "") => {
299
+ }), _ = (p = "", x = "", T = "") => {
251
300
  if (!T)
252
- switch (h) {
301
+ switch (p) {
253
302
  case l.INPUT:
254
303
  case l.INPUT_TEXT_AREA:
255
304
  return `请输入${x}`;
@@ -270,9 +319,9 @@ const He = { class: "bsgoal-base-form" }, We = { class: "base_form" }, Xe = { ke
270
319
  return ["开始月份", "结束月份"];
271
320
  }
272
321
  return T;
273
- }, V = (h = "", x = "") => {
322
+ }, V = (p = "", x = "") => {
274
323
  if (!x)
275
- switch (h) {
324
+ switch (p) {
276
325
  case l.WEEK:
277
326
  return "ww";
278
327
  case l.DATE:
@@ -293,32 +342,32 @@ const He = { class: "bsgoal-base-form" }, We = { class: "base_form" }, Xe = { ke
293
342
  }
294
343
  return x;
295
344
  }, M = () => {
296
- const h = c(t), { configOptions: x } = i, T = c(x);
345
+ const p = c(t), { configOptions: x } = i, T = c(x);
297
346
  for (const B of T) {
298
347
  const { type: m = "", range: I = [], prop: k = "" } = B;
299
348
  if (m.endsWith("range") && I && I.length === 2) {
300
- const { 0: L = "", 1: F = "" } = h[k], { 0: H = "", 1: R = "" } = I;
301
- h[H] = L, h[R] = F;
349
+ const { 0: L = "", 1: F = "" } = p[k], { 0: H = "", 1: R = "" } = I;
350
+ p[H] = L, p[R] = F;
302
351
  }
303
352
  }
304
- return a("on-form", h), h;
353
+ return a("on-form", p), p;
305
354
  }, S = () => {
306
355
  r.value.resetFields(), a("on-clear", t.value);
307
- }, w = (h, x) => {
356
+ }, w = (p, x) => {
308
357
  const T = {
309
- type: h,
358
+ type: p,
310
359
  prop: x,
311
360
  value: t.value[x] || ""
312
361
  };
313
362
  a("on-change", T);
314
- }, U = (h = () => {
363
+ }, U = (p = () => {
315
364
  }) => {
316
365
  r.value.validate((x = !1, T = {}) => {
317
366
  if (x) {
318
367
  const B = M();
319
- h(B);
368
+ p(B);
320
369
  } else {
321
- h(!1);
370
+ p(!1);
322
371
  const B = Object.keys(T)[0], {
323
372
  [B]: {
324
373
  0: { message: m = "" }
@@ -327,8 +376,8 @@ const He = { class: "bsgoal-base-form" }, We = { class: "base_form" }, Xe = { ke
327
376
  je.error(m);
328
377
  }
329
378
  });
330
- }, O = (h = [], x = "") => {
331
- const { 0: T = {}, 1: B = {} } = h, { value: m = !1, label: I = "" } = T, { value: k = !1, label: L = "" } = B;
379
+ }, O = (p = [], x = "") => {
380
+ const { 0: T = {}, 1: B = {} } = p, { value: m = !1, label: I = "" } = T, { value: k = !1, label: L = "" } = B;
332
381
  switch (x) {
333
382
  case "active-value":
334
383
  return m;
@@ -344,7 +393,7 @@ const He = { class: "bsgoal-base-form" }, We = { class: "base_form" }, Xe = { ke
344
393
  triggerOperationClear: S,
345
394
  triggerOperationForm: M,
346
395
  validateForm: U
347
- }), (h, x) => {
396
+ }), (p, x) => {
348
397
  const T = v("el-input"), B = v("el-input-number"), m = v("el-radio"), I = v("el-radio-group"), k = v("el-option"), L = v("el-select"), F = v("el-slider"), H = v("el-switch"), R = v("el-date-picker"), W = v("el-time-picker"), ee = v("el-checkbox"), ae = v("el-checkbox-group"), le = v("el-form-item"), re = v("el-col"), ie = v("el-row"), ue = v("el-form");
349
398
  return n(), b("div", He, [
350
399
  D("div", We, [
@@ -352,6 +401,7 @@ const He = { class: "bsgoal-base-form" }, We = { class: "base_form" }, Xe = { ke
352
401
  ref_key: "EL_FORM_REF",
353
402
  ref: r,
354
403
  "label-suffix": ":",
404
+ "label-position": e.labelPosition,
355
405
  model: t.value
356
406
  }, {
357
407
  default: A(() => [
@@ -365,13 +415,13 @@ const He = { class: "bsgoal-base-form" }, We = { class: "base_form" }, Xe = { ke
365
415
  readonly: G = e.readonlys,
366
416
  clearable: fe = !0,
367
417
  rows: ve = 2,
368
- min: he = 1,
418
+ min: pe = 1,
369
419
  max: de = 10,
370
420
  range: z = [],
371
421
  format: K = "",
372
422
  rules: ne = [],
373
423
  limit: ce = e.limits,
374
- length: p = 255
424
+ length: h = 255
375
425
  } = {}, oe) => (n(), y(re, {
376
426
  key: oe,
377
427
  xs: 24,
@@ -385,7 +435,7 @@ const He = { class: "bsgoal-base-form" }, We = { class: "base_form" }, Xe = { ke
385
435
  rules: ne
386
436
  }, {
387
437
  default: A(() => [
388
- q(h.$slots, [g], {
438
+ q(p.$slots, [g], {
389
439
  option: { readonly: G, value: t.value[g], values: t.value }
390
440
  }, () => [
391
441
  G ? (n(), b("div", Xe, [
@@ -410,7 +460,7 @@ const He = { class: "bsgoal-base-form" }, We = { class: "base_form" }, Xe = { ke
410
460
  "show-word-limit": "",
411
461
  type: "textarea",
412
462
  autosize: { minRows: ve },
413
- maxlength: p,
463
+ maxlength: h,
414
464
  clearable: fe,
415
465
  placeholder: _(o, X, f),
416
466
  onChange: (E) => w(o, g)
@@ -420,7 +470,7 @@ const He = { class: "bsgoal-base-form" }, We = { class: "base_form" }, Xe = { ke
420
470
  modelValue: t.value[g],
421
471
  "onUpdate:modelValue": (E) => t.value[g] = E,
422
472
  "controls-position": "right",
423
- min: he,
473
+ min: pe,
424
474
  max: de,
425
475
  onChange: w
426
476
  }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max"])) : C("", !0),
@@ -463,7 +513,7 @@ const He = { class: "bsgoal-base-form" }, We = { class: "base_form" }, Xe = { ke
463
513
  key: 5,
464
514
  modelValue: t.value[g],
465
515
  "onUpdate:modelValue": (E) => t.value[g] = E,
466
- min: he,
516
+ min: pe,
467
517
  max: de,
468
518
  onChange: (E) => w(o, g)
469
519
  }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : C("", !0),
@@ -563,7 +613,7 @@ const He = { class: "bsgoal-base-form" }, We = { class: "base_form" }, Xe = { ke
563
613
  })
564
614
  ]),
565
615
  _: 3
566
- }, 8, ["model"])), [
616
+ }, 8, ["label-position", "model"])), [
567
617
  [c(u)]
568
618
  ])
569
619
  ])
@@ -875,7 +925,7 @@ const mt = /* @__PURE__ */ we(ct, [["render", _t]]), gt = (e = null, { expressio
875
925
  return "undefind";
876
926
  }
877
927
  }, vt = (e) => ft(e) === "boolean";
878
- const ht = { class: "bsgoal-base-table" }, pt = { class: "base_table" }, Et = {
928
+ const pt = { class: "bsgoal-base-table" }, ht = { class: "base_table" }, Et = {
879
929
  key: 0,
880
930
  class: "base_table_menu"
881
931
  }, bt = {
@@ -996,7 +1046,7 @@ const ht = { class: "bsgoal-base-table" }, pt = { class: "base_table" }, Et = {
996
1046
  width: k
997
1047
  }), [...L, ...F];
998
1048
  }), r = N(null), u = Me("transferFoldStatus");
999
- pe(() => {
1049
+ he(() => {
1000
1050
  const { height: m } = a, I = u ? u.value : !1, k = c(a.expression);
1001
1051
  vt(m) || gt(r, { arg: I, expression: k, height: m });
1002
1052
  });
@@ -1005,30 +1055,30 @@ const ht = { class: "bsgoal-base-table" }, pt = { class: "base_table" }, Et = {
1005
1055
  pageSize: "pageSize",
1006
1056
  rows: "rows",
1007
1057
  total: "total"
1008
- }, t), _ = N(1), V = N(10), M = N(0), S = N({}), w = N(a.loading), U = N(), O = N({}), h = () => {
1058
+ }, t), _ = N(1), V = N(10), M = N(0), S = N({}), w = N(a.loading), U = N(), O = N({}), p = () => {
1009
1059
  const { fetch: m, call: I, hasPage: k } = a, L = S.value, F = _.value, H = V.value, R = Ee({}, L);
1010
1060
  k && (R[d.currentPage] = F, R[d.pageSize] = H), Ae(m(R), I, w, O);
1011
1061
  };
1012
- pe(() => {
1062
+ he(() => {
1013
1063
  U.value = a.data;
1014
1064
  }), me(O, (m) => {
1015
1065
  a.hasPage ? (U.value = m[d.rows], M.value = m[d.total]) : U.value = m;
1016
1066
  });
1017
1067
  const x = (m = {}) => {
1018
- S.value = m, _.value = 1, h();
1068
+ S.value = m, _.value = 1, p();
1019
1069
  }, T = (m = 1) => {
1020
1070
  _.value = m;
1021
1071
  }, B = (m = 10) => {
1022
1072
  V.value = m;
1023
1073
  };
1024
1074
  return me([_, V], () => {
1025
- h();
1075
+ p();
1026
1076
  }), s({
1027
1077
  refreshList: x
1028
1078
  }), (m, I) => {
1029
1079
  const k = v("el-table-column"), L = v("el-table"), F = Re("loading");
1030
- return n(), b("div", ht, [
1031
- D("div", pt, [
1080
+ return n(), b("div", pt, [
1081
+ D("div", ht, [
1032
1082
  m.$slots.menu ? (n(), b("div", Et, [
1033
1083
  q(m.$slots, "menu")
1034
1084
  ])) : C("", !0),
@@ -1392,9 +1442,9 @@ const _a = { class: "bsgoal-base-cascader" }, ma = {
1392
1442
  };
1393
1443
  }
1394
1444
  });
1395
- const fa = { class: "bsgoal-base-search" }, va = { class: "base_search" }, ha = { key: 1 }, pa = {
1445
+ const fa = { class: "bsgoal-base-search" }, va = { class: "base_search" }, pa = { key: 1 }, ha = {
1396
1446
  name: "BsgoalBaseSearch"
1397
- }, Ea = /* @__PURE__ */ Object.assign(pa, {
1447
+ }, Ea = /* @__PURE__ */ Object.assign(ha, {
1398
1448
  props: {
1399
1449
  /**
1400
1450
  * >----------props----------<
@@ -1402,7 +1452,7 @@ const fa = { class: "bsgoal-base-search" }, va = { class: "base_search" }, ha =
1402
1452
  * label:'' // 名称
1403
1453
  * value:'' // 值
1404
1454
  * prop:'' // 绑定字段
1405
- * type:'text' // 内容组件的类型 : 参照 enumType
1455
+ * type:'text' // 内容组件的类型 : 参照 componentTypeEnums
1406
1456
  * placeholder:'' // placeholder 提示文本
1407
1457
  * readonly: false // 是否为只读文本
1408
1458
  * clearable: true //是否为可清空
@@ -1437,7 +1487,7 @@ const fa = { class: "bsgoal-base-search" }, va = { class: "base_search" }, ha =
1437
1487
  emits: ["on-search", "on-clear", "on-change", "on-fold"],
1438
1488
  setup(e, { expose: s, emit: a }) {
1439
1489
  const i = e, r = N(null), u = xe.align, t = N({});
1440
- pe(() => {
1490
+ he(() => {
1441
1491
  const { configOptions: x } = i;
1442
1492
  c(x).forEach((B) => {
1443
1493
  const { value: m, prop: I = "", type: k = "" } = B;
@@ -1518,7 +1568,7 @@ const fa = { class: "bsgoal-base-search" }, va = { class: "base_search" }, ha =
1518
1568
  r.value.resetFields(), a("on-clear", t.value);
1519
1569
  }, w = Me("transferFoldStatus"), U = N(!1), O = (x = !1) => {
1520
1570
  U.value = x, w && (w.value = x), a("on-fold", U);
1521
- }, h = (x, T) => {
1571
+ }, p = (x, T) => {
1522
1572
  M();
1523
1573
  const B = {
1524
1574
  type: x,
@@ -1550,7 +1600,7 @@ const fa = { class: "bsgoal-base-search" }, va = { class: "base_search" }, ha =
1550
1600
  placeholder: G = "",
1551
1601
  readonly: fe = !1,
1552
1602
  clearable: ve = !0,
1553
- rows: he = 2,
1603
+ rows: pe = 2,
1554
1604
  min: de = 1,
1555
1605
  max: z = 10,
1556
1606
  range: K = [],
@@ -1567,45 +1617,45 @@ const fa = { class: "bsgoal-base-search" }, va = { class: "base_search" }, ha =
1567
1617
  prop: o
1568
1618
  }, {
1569
1619
  default: A(() => [
1570
- fe ? (n(), b("div", ha, j(t.value[o]), 1)) : (n(), b(P, { key: 0 }, [
1620
+ fe ? (n(), b("div", pa, j(t.value[o]), 1)) : (n(), b(P, { key: 0 }, [
1571
1621
  f === c(l).INPUT ? (n(), y(B, {
1572
1622
  key: 0,
1573
1623
  modelValue: t.value[o],
1574
- "onUpdate:modelValue": (p) => t.value[o] = p,
1624
+ "onUpdate:modelValue": (h) => t.value[o] = h,
1575
1625
  placeholder: _(f, g, G),
1576
1626
  clearable: ve
1577
1627
  }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable"])) : C("", !0),
1578
1628
  f === c(l).INPUT_TEXT_AREA ? (n(), y(B, {
1579
1629
  key: 1,
1580
1630
  modelValue: t.value[o],
1581
- "onUpdate:modelValue": (p) => t.value[o] = p,
1631
+ "onUpdate:modelValue": (h) => t.value[o] = h,
1582
1632
  type: "textarea",
1583
- rows: he,
1633
+ rows: pe,
1584
1634
  clearable: ve,
1585
1635
  placeholder: _(f, g, G),
1586
- onChange: (p) => h(f, o)
1636
+ onChange: (h) => p(f, o)
1587
1637
  }, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : C("", !0),
1588
1638
  f === c(l).INPUT_NUMBER ? (n(), y(m, {
1589
1639
  key: 2,
1590
1640
  modelValue: x.num,
1591
- "onUpdate:modelValue": T[0] || (T[0] = (p) => x.num = p),
1641
+ "onUpdate:modelValue": T[0] || (T[0] = (h) => x.num = h),
1592
1642
  min: de,
1593
1643
  max: z,
1594
- onChange: h
1644
+ onChange: p
1595
1645
  }, null, 8, ["modelValue", "min", "max"])) : C("", !0),
1596
1646
  f === c(l).RADIO ? (n(), y(k, {
1597
1647
  key: 3,
1598
1648
  modelValue: t.value[o],
1599
- "onUpdate:modelValue": (p) => t.value[o] = p,
1600
- onChange: (p) => h(f, o)
1649
+ "onUpdate:modelValue": (h) => t.value[o] = h,
1650
+ onChange: (h) => p(f, o)
1601
1651
  }, {
1602
1652
  default: A(() => [
1603
- (n(!0), b(P, null, Q(K, (p, oe) => (n(), y(I, {
1653
+ (n(!0), b(P, null, Q(K, (h, oe) => (n(), y(I, {
1604
1654
  key: oe,
1605
- label: p.value
1655
+ label: h.value
1606
1656
  }, {
1607
1657
  default: A(() => [
1608
- Y(j(p.label), 1)
1658
+ Y(j(h.label), 1)
1609
1659
  ]),
1610
1660
  _: 2
1611
1661
  }, 1032, ["label"]))), 128))
@@ -1615,15 +1665,15 @@ const fa = { class: "bsgoal-base-search" }, va = { class: "base_search" }, ha =
1615
1665
  f === c(l).SELECT ? (n(), y(F, {
1616
1666
  key: 4,
1617
1667
  modelValue: t.value[o],
1618
- "onUpdate:modelValue": (p) => t.value[o] = p,
1668
+ "onUpdate:modelValue": (h) => t.value[o] = h,
1619
1669
  placeholder: _(f, g, G),
1620
- onChange: (p) => h(f, o)
1670
+ onChange: (h) => p(f, o)
1621
1671
  }, {
1622
1672
  default: A(() => [
1623
- (n(!0), b(P, null, Q(K, (p, oe) => (n(), y(L, {
1673
+ (n(!0), b(P, null, Q(K, (h, oe) => (n(), y(L, {
1624
1674
  key: oe,
1625
- label: p.label,
1626
- value: p.value
1675
+ label: h.label,
1676
+ value: h.value
1627
1677
  }, null, 8, ["label", "value"]))), 128))
1628
1678
  ]),
1629
1679
  _: 2
@@ -1631,30 +1681,30 @@ const fa = { class: "bsgoal-base-search" }, va = { class: "base_search" }, ha =
1631
1681
  f === c(l).SLIDER ? (n(), y(H, {
1632
1682
  key: 5,
1633
1683
  modelValue: t.value[o],
1634
- "onUpdate:modelValue": (p) => t.value[o] = p,
1684
+ "onUpdate:modelValue": (h) => t.value[o] = h,
1635
1685
  min: de,
1636
1686
  max: z,
1637
- onChange: (p) => h(f, o)
1687
+ onChange: (h) => p(f, o)
1638
1688
  }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : C("", !0),
1639
1689
  f === c(l).SWITCH ? (n(), y(R, {
1640
1690
  key: 6,
1641
1691
  modelValue: t.value[o],
1642
- "onUpdate:modelValue": (p) => t.value[o] = p,
1692
+ "onUpdate:modelValue": (h) => t.value[o] = h,
1643
1693
  "active-value": K[0] || !0,
1644
1694
  "inactive-value": K[1] || !1,
1645
- onChange: (p) => h(f, o)
1695
+ onChange: (h) => p(f, o)
1646
1696
  }, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : C("", !0),
1647
1697
  [c(l).DATE, c(l).MONTH, c(l).YEAR, c(l).DATE_TIME].includes(
1648
1698
  f
1649
1699
  ) ? (n(), y(W, {
1650
1700
  key: 7,
1651
1701
  modelValue: t.value[o],
1652
- "onUpdate:modelValue": (p) => t.value[o] = p,
1702
+ "onUpdate:modelValue": (h) => t.value[o] = h,
1653
1703
  format: V(f, ne),
1654
1704
  "value-format": V(f, ne),
1655
1705
  type: f,
1656
1706
  placeholder: _(f, g, G),
1657
- onChange: (p) => h(f, o)
1707
+ onChange: (h) => p(f, o)
1658
1708
  }, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : C("", !0),
1659
1709
  [
1660
1710
  c(l).DATE_RANGE,
@@ -1663,45 +1713,45 @@ const fa = { class: "bsgoal-base-search" }, va = { class: "base_search" }, ha =
1663
1713
  ].includes(f) ? (n(), y(W, {
1664
1714
  key: 8,
1665
1715
  modelValue: t.value[o],
1666
- "onUpdate:modelValue": (p) => t.value[o] = p,
1716
+ "onUpdate:modelValue": (h) => t.value[o] = h,
1667
1717
  type: f,
1668
1718
  "value-format": V(f, ne),
1669
1719
  "start-placeholder": _(f, g, G)[0],
1670
1720
  "end-placeholder": _(f, g, G)[1],
1671
- onChange: (p) => h(f, o)
1721
+ onChange: (h) => p(f, o)
1672
1722
  }, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : C("", !0),
1673
1723
  [c(l).TIME].includes(f) ? (n(), y(ee, {
1674
1724
  key: 9,
1675
1725
  modelValue: t.value[o],
1676
- "onUpdate:modelValue": (p) => t.value[o] = p,
1726
+ "onUpdate:modelValue": (h) => t.value[o] = h,
1677
1727
  "arrow-control": "",
1678
1728
  "value-format": V(f, ne),
1679
1729
  placeholder: _(f, g, G),
1680
- onChange: (p) => h(f, o)
1730
+ onChange: (h) => p(f, o)
1681
1731
  }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : C("", !0),
1682
1732
  [c(l).TIME_RANGE].includes(f) ? (n(), y(ee, {
1683
1733
  key: 10,
1684
1734
  modelValue: t.value[o],
1685
- "onUpdate:modelValue": (p) => t.value[o] = p,
1735
+ "onUpdate:modelValue": (h) => t.value[o] = h,
1686
1736
  "is-range": "",
1687
1737
  "value-format": V(f, ne),
1688
1738
  "start-placeholder": _(f, g, G)[0],
1689
1739
  "end-placeholder": _(f, g, G)[1],
1690
- onChange: (p) => h(f, o)
1740
+ onChange: (h) => p(f, o)
1691
1741
  }, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : C("", !0),
1692
1742
  [c(l).CHECKBOX].includes(f) ? (n(), y(le, {
1693
1743
  key: 11,
1694
1744
  modelValue: t.value[o],
1695
- "onUpdate:modelValue": (p) => t.value[o] = p,
1696
- onChange: (p) => h(f, o)
1745
+ "onUpdate:modelValue": (h) => t.value[o] = h,
1746
+ onChange: (h) => p(f, o)
1697
1747
  }, {
1698
1748
  default: A(() => [
1699
- (n(!0), b(P, null, Q(K, (p, oe) => (n(), y(ae, {
1749
+ (n(!0), b(P, null, Q(K, (h, oe) => (n(), y(ae, {
1700
1750
  key: oe,
1701
- label: p.value
1751
+ label: h.value
1702
1752
  }, {
1703
1753
  default: A(() => [
1704
- Y(j(p.label), 1)
1754
+ Y(j(h.label), 1)
1705
1755
  ]),
1706
1756
  _: 2
1707
1757
  }, 1032, ["label"]))), 128))
@@ -1711,10 +1761,10 @@ const fa = { class: "bsgoal-base-search" }, va = { class: "base_search" }, ha =
1711
1761
  [c(l).CASCADER].includes(f) ? (n(), y(ga, {
1712
1762
  key: 12,
1713
1763
  modelValue: t.value[o],
1714
- "onUpdate:modelValue": (p) => t.value[o] = p,
1764
+ "onUpdate:modelValue": (h) => t.value[o] = h,
1715
1765
  "data-options": K,
1716
1766
  placeholder: _(f, g, G),
1717
- onOnChange: (p) => h(f, o)
1767
+ onOnChange: (h) => p(f, o)
1718
1768
  }, null, 8, ["modelValue", "onUpdate:modelValue", "data-options", "placeholder", "onOnChange"])) : C("", !0),
1719
1769
  [].includes(f) ? (n(), b(P, { key: 13 }, [], 64)) : C("", !0),
1720
1770
  [c(l).OPERATION].includes(f) ? (n(), y(da, {
@@ -1859,23 +1909,23 @@ const ba = { class: "bsgoal-base-search-table" }, ya = { class: "base_search_tab
1859
1909
  const a = e, i = N(!1);
1860
1910
  Le("transferFoldStatus", i);
1861
1911
  const r = c(a.configOptions), u = Z(() => r.filter((O) => {
1862
- const { type: h = "" } = O;
1863
- return !!h;
1912
+ const { type: p = "" } = O;
1913
+ return !!p;
1864
1914
  })), t = Z(() => r.filter((O) => {
1865
- const { item: h = !1 } = O;
1866
- return !h;
1915
+ const { item: p = !1 } = O;
1916
+ return !p;
1867
1917
  })), d = Be(), _ = N(Object.keys(d)), V = N(null), M = (O) => {
1868
1918
  V.value.refreshList(O);
1869
1919
  }, S = Z(() => {
1870
- const { expression: O, hasPage: h } = a;
1871
- return h === !1 ? 25 : O;
1920
+ const { expression: O, hasPage: p } = a;
1921
+ return p === !1 ? 25 : O;
1872
1922
  }), w = N(null);
1873
1923
  return s({
1874
1924
  refresh: () => {
1875
1925
  const { hasSearch: O } = a;
1876
1926
  c(O) && w.value.triggerOperationSearch();
1877
1927
  }
1878
- }), (O, h) => (n(), b("div", ba, [
1928
+ }), (O, p) => (n(), b("div", ba, [
1879
1929
  D("div", ya, [
1880
1930
  J($(Ea, {
1881
1931
  ref_key: "BSGOAL_BASE_SEARCH_REF",
@@ -2032,7 +2082,7 @@ const $a = { class: "bsgoal-base-tree" }, Ma = { class: "base_tree" }, Ba = { cl
2032
2082
  lazy: "",
2033
2083
  "highlight-current": "",
2034
2084
  "empty-text": "暂无数据",
2035
- load: (O, h) => V(O, h, a),
2085
+ load: (O, p) => V(O, p, a),
2036
2086
  "expand-on-click-node": !1,
2037
2087
  props: e.treeProps,
2038
2088
  "filter-node-method": t,
@@ -2468,7 +2518,7 @@ const Xa = { class: "bsgoal-base-layout" }, Ka = {
2468
2518
  ]);
2469
2519
  };
2470
2520
  }
2471
- }), el = l, tl = Ae, al = {
2521
+ }), Za = l, al = Ae, ll = {
2472
2522
  install(e, s = {}) {
2473
2523
  const { exclude: a = [] } = s, i = {
2474
2524
  BsgoalBaseForm: Qe,
@@ -2485,12 +2535,12 @@ const Xa = { class: "bsgoal-base-layout" }, Ka = {
2485
2535
  for (const [r, u] of Object.entries(i))
2486
2536
  a.includes(r) || e.component(r, u);
2487
2537
  },
2488
- enumType: l,
2538
+ ComponentTypeEnums: Za,
2489
2539
  useFetch: Ae
2490
2540
  };
2491
2541
  export {
2492
- el as EnumType,
2493
- al as default,
2494
- tl as useFetchApi
2542
+ Za as ComponentTypeEnums,
2543
+ ll as default,
2544
+ al as useFetchApi
2495
2545
  };
2496
2546
  //# sourceMappingURL=index.mjs.map