@bsgoal/common 1.8.2 → 1.8.3
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,7 +9,7 @@ var xe = (e, s, a) => s in e ? ke(e, s, { enumerable: !0, configurable: !0, writ
|
|
|
9
9
|
De.call(s, a) && xe(e, a, s[a]);
|
|
10
10
|
return e;
|
|
11
11
|
};
|
|
12
|
-
import { computed as X, resolveComponent as g, openBlock as o, createElementBlock as p, createVNode as B, withCtx as A, renderSlot as J, createTextVNode as H, toDisplayString as z, ref as w, watchEffect as fe, unref as c, createElementVNode as D, withDirectives as Q, createBlock as y, Fragment as j, renderList as W, createCommentVNode as M, nextTick as
|
|
12
|
+
import { computed as X, resolveComponent as g, openBlock as o, createElementBlock as p, createVNode as B, withCtx as A, renderSlot as J, createTextVNode as H, toDisplayString as z, ref as w, watchEffect as fe, unref as c, createElementVNode as D, withDirectives as Q, createBlock as y, Fragment as j, renderList as W, createCommentVNode as M, nextTick as Ve, inject as $e, watch as _e, resolveDirective as Oe, normalizeClass as me, vShow as le, isProxy as Ie, toRaw as Fe, provide as Re, useSlots as Ce, createSlots as Ue, normalizeStyle as Le } from "vue";
|
|
13
13
|
import { ElMessage as Pe } from "element-plus";
|
|
14
14
|
const l = {
|
|
15
15
|
INPUT: "text",
|
|
@@ -38,8 +38,8 @@ const Ee = (e) => {
|
|
|
38
38
|
const s = [], a = [], i = (u = []) => {
|
|
39
39
|
const t = u.map((_) => _.width), d = Math.max(...t);
|
|
40
40
|
u.forEach((_) => {
|
|
41
|
-
const { labelEl:
|
|
42
|
-
|
|
41
|
+
const { labelEl: V } = _;
|
|
42
|
+
V.style.width = `${d}px`;
|
|
43
43
|
});
|
|
44
44
|
}, r = () => {
|
|
45
45
|
if (e) {
|
|
@@ -48,8 +48,8 @@ const Ee = (e) => {
|
|
|
48
48
|
let t = 0;
|
|
49
49
|
u.forEach((d, _) => {
|
|
50
50
|
d.style.width = "initial", d.style.whiteSpace = "nowrap";
|
|
51
|
-
const { x:
|
|
52
|
-
_ === 0 && (t =
|
|
51
|
+
const { x: V = 0, width: N = 0 } = d.getBoundingClientRect(), S = { x: V, width: N, labelEl: d };
|
|
52
|
+
_ === 0 && (t = V), V === t ? s.push(S) : a.push(S);
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
55
|
}
|
|
@@ -218,24 +218,33 @@ const Ge = { class: "bsgoal-base-form" }, Ye = { class: "base_form" }, He = { ke
|
|
|
218
218
|
none: {
|
|
219
219
|
type: [String],
|
|
220
220
|
default: "无"
|
|
221
|
+
},
|
|
222
|
+
/**
|
|
223
|
+
* 绑定的 mdel
|
|
224
|
+
*/
|
|
225
|
+
bindModel: {
|
|
226
|
+
type: [Object],
|
|
227
|
+
default: () => ({})
|
|
221
228
|
}
|
|
222
229
|
},
|
|
223
230
|
emits: ["on-form", "on-clear", "on-change", "on-fold"],
|
|
224
231
|
setup(e, { expose: s, emit: a }) {
|
|
225
|
-
const i = e, r = w(null), u = be.align, t = w(
|
|
232
|
+
const i = e, r = w(null), u = be.align, t = w(i.bindModel);
|
|
226
233
|
fe(() => {
|
|
227
|
-
const { configOptions: h, values: b } = i, x = c(h),
|
|
234
|
+
const { configOptions: h, values: b } = i, x = c(h), $ = c(b);
|
|
228
235
|
x.forEach((C) => {
|
|
229
236
|
const { value: E = "", prop: O = "", type: I = "" } = C;
|
|
230
|
-
[l.INPUT, l.INPUT_TEXT_AREA].includes(I)
|
|
237
|
+
[l.INPUT, l.INPUT_TEXT_AREA].includes(I);
|
|
238
|
+
const U = c(t)[O];
|
|
239
|
+
console.log("bindValue", U), console.log("valuesModel[prop]", $[O]), t.value[O] = U || $[O] || E;
|
|
231
240
|
});
|
|
232
241
|
});
|
|
233
242
|
const d = X(() => {
|
|
234
243
|
const { configOptions: h } = i;
|
|
235
|
-
return c(h).map((
|
|
236
|
-
let { rules: C = !1, label: E = "" } =
|
|
244
|
+
return c(h).map(($) => {
|
|
245
|
+
let { rules: C = !1, label: E = "" } = $;
|
|
237
246
|
const O = { required: !0, message: `${E}不能为空`, trigger: "blur" };
|
|
238
|
-
return C && (typeof C == "boolean" ? C = [O] : Array.isArray(C) ? C = [O, ...C] : C = [O, C]),
|
|
247
|
+
return C && (typeof C == "boolean" ? C = [O] : Array.isArray(C) ? C = [O, ...C] : C = [O, C]), $.rules = C, $;
|
|
239
248
|
});
|
|
240
249
|
}), _ = (h = "", b = "", x = "") => {
|
|
241
250
|
if (!x)
|
|
@@ -260,7 +269,7 @@ const Ge = { class: "bsgoal-base-form" }, Ye = { class: "base_form" }, He = { ke
|
|
|
260
269
|
return ["开始月份", "结束月份"];
|
|
261
270
|
}
|
|
262
271
|
return x;
|
|
263
|
-
},
|
|
272
|
+
}, V = (h = "", b = "") => {
|
|
264
273
|
if (!b)
|
|
265
274
|
switch (h) {
|
|
266
275
|
case l.WEEK:
|
|
@@ -284,11 +293,11 @@ const Ge = { class: "bsgoal-base-form" }, Ye = { class: "base_form" }, He = { ke
|
|
|
284
293
|
return b;
|
|
285
294
|
}, N = () => {
|
|
286
295
|
const h = c(t), { configOptions: b } = i, x = c(b);
|
|
287
|
-
for (const
|
|
288
|
-
const { type: C = "", range: E = [], prop: O = "" } =
|
|
296
|
+
for (const $ of x) {
|
|
297
|
+
const { type: C = "", range: E = [], prop: O = "" } = $;
|
|
289
298
|
if (C.endsWith("range") && E && E.length === 2) {
|
|
290
|
-
const { 0: I = "", 1:
|
|
291
|
-
h[
|
|
299
|
+
const { 0: I = "", 1: U = "" } = h[O], { 0: L = "", 1: G = "" } = E;
|
|
300
|
+
h[L] = I, h[G] = U;
|
|
292
301
|
}
|
|
293
302
|
}
|
|
294
303
|
return a("on-form", h), h;
|
|
@@ -309,12 +318,12 @@ const Ge = { class: "bsgoal-base-form" }, Ye = { class: "base_form" }, He = { ke
|
|
|
309
318
|
}) => {
|
|
310
319
|
r.value.validate((b = !1, x = {}) => {
|
|
311
320
|
if (b) {
|
|
312
|
-
const
|
|
313
|
-
h(
|
|
321
|
+
const $ = N();
|
|
322
|
+
h($);
|
|
314
323
|
} else {
|
|
315
324
|
h(!1);
|
|
316
|
-
const
|
|
317
|
-
[
|
|
325
|
+
const $ = Object.keys(x)[0], {
|
|
326
|
+
[$]: {
|
|
318
327
|
0: { message: C = "" }
|
|
319
328
|
}
|
|
320
329
|
} = x;
|
|
@@ -323,7 +332,7 @@ const Ge = { class: "bsgoal-base-form" }, Ye = { class: "base_form" }, He = { ke
|
|
|
323
332
|
});
|
|
324
333
|
}
|
|
325
334
|
}), (h, b) => {
|
|
326
|
-
const x = g("el-input"),
|
|
335
|
+
const x = g("el-input"), $ = g("el-input-number"), C = g("el-radio"), E = g("el-radio-group"), O = g("el-option"), I = g("el-select"), U = g("el-slider"), L = g("el-switch"), G = g("el-date-picker"), F = g("el-time-picker"), Z = g("el-checkbox"), q = g("el-checkbox-group"), ne = g("el-form-item"), oe = g("el-col"), re = g("el-row"), ie = g("el-form");
|
|
327
336
|
return o(), p("div", Ge, [
|
|
328
337
|
D("div", Ye, [
|
|
329
338
|
Q((o(), y(ie, {
|
|
@@ -390,7 +399,7 @@ const Ge = { class: "bsgoal-base-form" }, Ye = { class: "base_form" }, He = { ke
|
|
|
390
399
|
placeholder: _(m, P, f),
|
|
391
400
|
onChange: (n) => k(m, T)
|
|
392
401
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : M("", !0),
|
|
393
|
-
m === c(l).INPUT_NUMBER ? (o(), y(
|
|
402
|
+
m === c(l).INPUT_NUMBER ? (o(), y($, {
|
|
394
403
|
key: 2,
|
|
395
404
|
modelValue: h.num,
|
|
396
405
|
"onUpdate:modelValue": b[0] || (b[0] = (n) => h.num = n),
|
|
@@ -433,7 +442,7 @@ const Ge = { class: "bsgoal-base-form" }, Ye = { class: "base_form" }, He = { ke
|
|
|
433
442
|
]),
|
|
434
443
|
_: 2
|
|
435
444
|
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : M("", !0),
|
|
436
|
-
m === c(l).SLIDER ? (o(), y(
|
|
445
|
+
m === c(l).SLIDER ? (o(), y(U, {
|
|
437
446
|
key: 5,
|
|
438
447
|
modelValue: t.value[T],
|
|
439
448
|
"onUpdate:modelValue": (n) => t.value[T] = n,
|
|
@@ -441,7 +450,7 @@ const Ge = { class: "bsgoal-base-form" }, Ye = { class: "base_form" }, He = { ke
|
|
|
441
450
|
max: ge,
|
|
442
451
|
onChange: (n) => k(m, T)
|
|
443
452
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : M("", !0),
|
|
444
|
-
m === c(l).SWITCH ? (o(), y(
|
|
453
|
+
m === c(l).SWITCH ? (o(), y(L, {
|
|
445
454
|
key: 6,
|
|
446
455
|
modelValue: t.value[T],
|
|
447
456
|
"onUpdate:modelValue": (n) => t.value[T] = n,
|
|
@@ -455,8 +464,8 @@ const Ge = { class: "bsgoal-base-form" }, Ye = { class: "base_form" }, He = { ke
|
|
|
455
464
|
key: 7,
|
|
456
465
|
modelValue: t.value[T],
|
|
457
466
|
"onUpdate:modelValue": (n) => t.value[T] = n,
|
|
458
|
-
format:
|
|
459
|
-
"value-format":
|
|
467
|
+
format: V(m, te),
|
|
468
|
+
"value-format": V(m, te),
|
|
460
469
|
type: m,
|
|
461
470
|
placeholder: _(m, P, f),
|
|
462
471
|
onChange: (n) => k(m, T)
|
|
@@ -470,7 +479,7 @@ const Ge = { class: "bsgoal-base-form" }, Ye = { class: "base_form" }, He = { ke
|
|
|
470
479
|
modelValue: t.value[T],
|
|
471
480
|
"onUpdate:modelValue": (n) => t.value[T] = n,
|
|
472
481
|
type: m,
|
|
473
|
-
"value-format":
|
|
482
|
+
"value-format": V(m, te),
|
|
474
483
|
"start-placeholder": _(m, P, f)[0],
|
|
475
484
|
"end-placeholder": _(m, P, f)[1],
|
|
476
485
|
onChange: (n) => k(m, T)
|
|
@@ -480,7 +489,7 @@ const Ge = { class: "bsgoal-base-form" }, Ye = { class: "base_form" }, He = { ke
|
|
|
480
489
|
modelValue: t.value[T],
|
|
481
490
|
"onUpdate:modelValue": (n) => t.value[T] = n,
|
|
482
491
|
"arrow-control": "",
|
|
483
|
-
"value-format":
|
|
492
|
+
"value-format": V(m, te),
|
|
484
493
|
placeholder: _(m, P, f),
|
|
485
494
|
onChange: (n) => k(m, T)
|
|
486
495
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : M("", !0),
|
|
@@ -489,7 +498,7 @@ const Ge = { class: "bsgoal-base-form" }, Ye = { class: "base_form" }, He = { ke
|
|
|
489
498
|
modelValue: t.value[T],
|
|
490
499
|
"onUpdate:modelValue": (n) => t.value[T] = n,
|
|
491
500
|
"is-range": "",
|
|
492
|
-
"value-format":
|
|
501
|
+
"value-format": V(m, te),
|
|
493
502
|
"start-placeholder": _(m, P, f)[0],
|
|
494
503
|
"end-placeholder": _(m, P, f)[1],
|
|
495
504
|
onChange: (n) => k(m, T)
|
|
@@ -754,7 +763,7 @@ const tt = { class: "bsgoal-base-table-pagination" }, at = { class: "base_table_
|
|
|
754
763
|
background: "",
|
|
755
764
|
layout: "total, sizes, prev, pager, next, jumper",
|
|
756
765
|
"current-page": r.value,
|
|
757
|
-
"onUpdate:currentPage": t[0] || (t[0] = (
|
|
766
|
+
"onUpdate:currentPage": t[0] || (t[0] = (V) => r.value = V),
|
|
758
767
|
"page-sizes": e.pageSizes,
|
|
759
768
|
"page-size": e.pageSize,
|
|
760
769
|
total: e.total,
|
|
@@ -799,7 +808,7 @@ const dt = /* @__PURE__ */ Be(st, [["render", it]]), _t = (e = null, { expressio
|
|
|
799
808
|
const r = c(e);
|
|
800
809
|
if (r) {
|
|
801
810
|
const u = r.querySelector(".el-table");
|
|
802
|
-
u &&
|
|
811
|
+
u && Ve(() => {
|
|
803
812
|
const { y: t = 0 } = u.getBoundingClientRect();
|
|
804
813
|
let d = `calc(100vh - ${t + s}px)`;
|
|
805
814
|
const _ = Number.parseInt(i);
|
|
@@ -952,14 +961,14 @@ const ft = { class: "bsgoal-base-table" }, vt = { class: "base_table" }, pt = {
|
|
|
952
961
|
},
|
|
953
962
|
setup(e, { expose: s }) {
|
|
954
963
|
const a = e, i = X(() => {
|
|
955
|
-
const { configOptions: E = [], operation: O = !1, operationWidth: I = 0 } = a,
|
|
956
|
-
return O &&
|
|
964
|
+
const { configOptions: E = [], operation: O = !1, operationWidth: I = 0 } = a, U = c(E), L = [];
|
|
965
|
+
return O && L.push({
|
|
957
966
|
label: "操作",
|
|
958
967
|
fixed: "right",
|
|
959
968
|
prop: "operation",
|
|
960
969
|
width: I
|
|
961
|
-
}), [...
|
|
962
|
-
}), r = w(null), u =
|
|
970
|
+
}), [...U, ...L];
|
|
971
|
+
}), r = w(null), u = $e("transferFoldStatus");
|
|
963
972
|
fe(() => {
|
|
964
973
|
const { height: E } = a, O = u ? u.value : !1, I = c(a.expression);
|
|
965
974
|
gt(E) || _t(r, { arg: O, expression: I, height: E });
|
|
@@ -969,9 +978,9 @@ const ft = { class: "bsgoal-base-table" }, vt = { class: "base_table" }, pt = {
|
|
|
969
978
|
pageSize: "pageSize",
|
|
970
979
|
rows: "rows",
|
|
971
980
|
total: "total"
|
|
972
|
-
}, t), _ = w(1),
|
|
973
|
-
const { fetch: E, call: O, hasPage: I } = a,
|
|
974
|
-
I && (F[d.currentPage] =
|
|
981
|
+
}, t), _ = w(1), V = w(10), N = w(0), S = w({}), k = w(a.loading), R = w(), h = w({}), b = () => {
|
|
982
|
+
const { fetch: E, call: O, hasPage: I } = a, U = S.value, L = _.value, G = V.value, F = pe({}, U);
|
|
983
|
+
I && (F[d.currentPage] = L, F[d.pageSize] = G), ye(E(F), O, k, h);
|
|
975
984
|
};
|
|
976
985
|
fe(() => {
|
|
977
986
|
R.value = a.data;
|
|
@@ -980,17 +989,17 @@ const ft = { class: "bsgoal-base-table" }, vt = { class: "base_table" }, pt = {
|
|
|
980
989
|
});
|
|
981
990
|
const x = (E = {}) => {
|
|
982
991
|
S.value = E, _.value = 1, b();
|
|
983
|
-
},
|
|
992
|
+
}, $ = (E = 1) => {
|
|
984
993
|
_.value = E;
|
|
985
994
|
}, C = (E = 10) => {
|
|
986
|
-
|
|
995
|
+
V.value = E;
|
|
987
996
|
};
|
|
988
|
-
return _e([_,
|
|
997
|
+
return _e([_, V], () => {
|
|
989
998
|
b();
|
|
990
999
|
}), s({
|
|
991
1000
|
refreshList: x
|
|
992
1001
|
}), (E, O) => {
|
|
993
|
-
const I = g("el-table-column"),
|
|
1002
|
+
const I = g("el-table-column"), U = g("el-table"), L = Oe("loading");
|
|
994
1003
|
return o(), p("div", ft, [
|
|
995
1004
|
D("div", vt, [
|
|
996
1005
|
E.$slots.menu ? (o(), p("div", pt, [
|
|
@@ -1000,7 +1009,7 @@ const ft = { class: "bsgoal-base-table" }, vt = { class: "base_table" }, pt = {
|
|
|
1000
1009
|
ref_key: "EL_TABLE_WRAP_REF",
|
|
1001
1010
|
ref: r
|
|
1002
1011
|
}, [
|
|
1003
|
-
Q((o(), y(
|
|
1012
|
+
Q((o(), y(U, {
|
|
1004
1013
|
stripe: "",
|
|
1005
1014
|
border: "",
|
|
1006
1015
|
"highlight-current-row": "",
|
|
@@ -1053,13 +1062,13 @@ const ft = { class: "bsgoal-base-table" }, vt = { class: "base_table" }, pt = {
|
|
|
1053
1062
|
]),
|
|
1054
1063
|
_: 3
|
|
1055
1064
|
}, 8, ["data", "header-cell-style"])), [
|
|
1056
|
-
[
|
|
1065
|
+
[L, k.value]
|
|
1057
1066
|
])
|
|
1058
1067
|
], 512),
|
|
1059
1068
|
e.hasPage ? (o(), y(ot, {
|
|
1060
1069
|
key: 1,
|
|
1061
1070
|
total: N.value,
|
|
1062
|
-
onOnCurrentChange:
|
|
1071
|
+
onOnCurrentChange: $,
|
|
1063
1072
|
onOnSizeChange: C
|
|
1064
1073
|
}, null, 8, ["total"])) : M("", !0)
|
|
1065
1074
|
])
|
|
@@ -1115,7 +1124,7 @@ var ue = (e, s) => {
|
|
|
1115
1124
|
function xt(e, s, a, i, r, u) {
|
|
1116
1125
|
return o(), p("svg", yt, Tt);
|
|
1117
1126
|
}
|
|
1118
|
-
var
|
|
1127
|
+
var Vt = /* @__PURE__ */ ue(bt, [["render", xt], ["__file", "arrow-down.vue"]]), $t = {
|
|
1119
1128
|
name: "ArrowLeft"
|
|
1120
1129
|
}, Ct = {
|
|
1121
1130
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1135,7 +1144,7 @@ var $t = /* @__PURE__ */ ue(bt, [["render", xt], ["__file", "arrow-down.vue"]]),
|
|
|
1135
1144
|
function Nt(e, s, a, i, r, u) {
|
|
1136
1145
|
return o(), p("svg", Ct, Bt);
|
|
1137
1146
|
}
|
|
1138
|
-
var wt = /* @__PURE__ */ ue(
|
|
1147
|
+
var wt = /* @__PURE__ */ ue($t, [["render", Nt], ["__file", "arrow-left.vue"]]), kt = {
|
|
1139
1148
|
name: "ArrowRight"
|
|
1140
1149
|
}, St = {
|
|
1141
1150
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1287,7 +1296,7 @@ const ua = { class: "bsgoal-base-search-operation" }, ca = {
|
|
|
1287
1296
|
Q(B(c(zt), null, null, 512), [
|
|
1288
1297
|
[le, a.value]
|
|
1289
1298
|
]),
|
|
1290
|
-
Q(B(c(
|
|
1299
|
+
Q(B(c(Vt), null, null, 512), [
|
|
1291
1300
|
[le, !a.value]
|
|
1292
1301
|
])
|
|
1293
1302
|
]),
|
|
@@ -1409,16 +1418,16 @@ const ma = { class: "bsgoal-base-search" }, ga = { class: "base_search" }, fa =
|
|
|
1409
1418
|
});
|
|
1410
1419
|
});
|
|
1411
1420
|
const d = X(() => {
|
|
1412
|
-
const { configOptions: x } = i,
|
|
1421
|
+
const { configOptions: x } = i, $ = c(x), C = {
|
|
1413
1422
|
type: l.OPERATION
|
|
1414
1423
|
};
|
|
1415
|
-
return [
|
|
1416
|
-
}), _ = (x = "",
|
|
1424
|
+
return [...$, C];
|
|
1425
|
+
}), _ = (x = "", $ = "", C = "") => {
|
|
1417
1426
|
if (!C)
|
|
1418
1427
|
switch (x) {
|
|
1419
1428
|
case l.INPUT:
|
|
1420
1429
|
case l.INPUT_TEXT_AREA:
|
|
1421
|
-
return `请输入${
|
|
1430
|
+
return `请输入${$}`;
|
|
1422
1431
|
case l.SELECT:
|
|
1423
1432
|
case l.DATE:
|
|
1424
1433
|
case l.WEEK:
|
|
@@ -1427,7 +1436,7 @@ const ma = { class: "bsgoal-base-search" }, ga = { class: "base_search" }, fa =
|
|
|
1427
1436
|
case l.DATE_TIME:
|
|
1428
1437
|
case l.TIME:
|
|
1429
1438
|
case l.CASCADER:
|
|
1430
|
-
return `请选择${
|
|
1439
|
+
return `请选择${$}`;
|
|
1431
1440
|
case l.DATE_RANGE:
|
|
1432
1441
|
case l.DATE_TIME_RANGE:
|
|
1433
1442
|
return ["开始日期", "结束日期"];
|
|
@@ -1437,8 +1446,8 @@ const ma = { class: "bsgoal-base-search" }, ga = { class: "base_search" }, fa =
|
|
|
1437
1446
|
return ["开始月份", "结束月份"];
|
|
1438
1447
|
}
|
|
1439
1448
|
return C;
|
|
1440
|
-
},
|
|
1441
|
-
if (
|
|
1449
|
+
}, V = (x = "", $ = "") => {
|
|
1450
|
+
if (!$)
|
|
1442
1451
|
switch (x) {
|
|
1443
1452
|
case l.WEEK:
|
|
1444
1453
|
return "ww";
|
|
@@ -1458,43 +1467,43 @@ const ma = { class: "bsgoal-base-search" }, ga = { class: "base_search" }, fa =
|
|
|
1458
1467
|
case l.DATE_TIME_RANGE:
|
|
1459
1468
|
return "YYYY-MM-DD HH:mm:ss";
|
|
1460
1469
|
}
|
|
1461
|
-
return
|
|
1470
|
+
return $;
|
|
1462
1471
|
}, N = () => {
|
|
1463
|
-
const { configOptions: x } = i,
|
|
1472
|
+
const { configOptions: x } = i, $ = c(t), C = c(x), E = {};
|
|
1464
1473
|
for (const O of C) {
|
|
1465
|
-
const { type: I = "", range:
|
|
1474
|
+
const { type: I = "", range: U = [], prop: L = "", single: G = !1 } = O, F = $[L];
|
|
1466
1475
|
if ([l.CASCADER].includes(I) && Array.isArray(F) && G) {
|
|
1467
1476
|
const Z = F.length;
|
|
1468
|
-
Z ? E[
|
|
1477
|
+
Z ? E[L] = F[Z - 1] : E[L] = F;
|
|
1469
1478
|
} else
|
|
1470
|
-
Ie(F) ? E[
|
|
1471
|
-
if (I.endsWith("range") &&
|
|
1472
|
-
const { 0: Z = "", 1: q = "" } = F, { 0: ne = "", 1: oe = "" } =
|
|
1479
|
+
Ie(F) ? E[L] = Fe(F) : E[L] = F;
|
|
1480
|
+
if (I.endsWith("range") && U && U.length === 2) {
|
|
1481
|
+
const { 0: Z = "", 1: q = "" } = F, { 0: ne = "", 1: oe = "" } = U;
|
|
1473
1482
|
E[ne] = Z, E[oe] = q;
|
|
1474
1483
|
}
|
|
1475
1484
|
}
|
|
1476
1485
|
a("on-search", E), a("update:modelValue", E);
|
|
1477
1486
|
};
|
|
1478
|
-
|
|
1487
|
+
Ve(() => {
|
|
1479
1488
|
N();
|
|
1480
1489
|
});
|
|
1481
1490
|
const S = () => {
|
|
1482
1491
|
r.value.resetFields(), a("on-clear", t.value);
|
|
1483
|
-
}, k =
|
|
1492
|
+
}, k = $e("transferFoldStatus"), R = w(!1), h = (x = !1) => {
|
|
1484
1493
|
R.value = x, k && (k.value = x), a("on-fold", R);
|
|
1485
|
-
}, b = (x,
|
|
1494
|
+
}, b = (x, $) => {
|
|
1486
1495
|
N();
|
|
1487
1496
|
const C = {
|
|
1488
1497
|
type: x,
|
|
1489
|
-
prop:
|
|
1490
|
-
value: t.value[
|
|
1498
|
+
prop: $,
|
|
1499
|
+
value: t.value[$] || ""
|
|
1491
1500
|
};
|
|
1492
1501
|
a("on-change", C);
|
|
1493
1502
|
};
|
|
1494
1503
|
return s({
|
|
1495
1504
|
triggerOperationSearch: N
|
|
1496
|
-
}), (x,
|
|
1497
|
-
const C = g("el-input"), E = g("el-input-number"), O = g("el-radio"), I = g("el-radio-group"),
|
|
1505
|
+
}), (x, $) => {
|
|
1506
|
+
const C = g("el-input"), E = g("el-input-number"), O = g("el-radio"), I = g("el-radio-group"), U = g("el-option"), L = g("el-select"), G = g("el-slider"), F = g("el-switch"), Z = g("el-date-picker"), q = g("el-time-picker"), ne = g("el-checkbox"), oe = g("el-checkbox-group"), re = g("el-form-item"), ie = g("el-col"), P = g("el-row"), T = g("el-form");
|
|
1498
1507
|
return o(), p("div", ma, [
|
|
1499
1508
|
D("div", ga, [
|
|
1500
1509
|
Q((o(), y(T, {
|
|
@@ -1552,7 +1561,7 @@ const ma = { class: "bsgoal-base-search" }, ga = { class: "base_search" }, fa =
|
|
|
1552
1561
|
v === c(l).INPUT_NUMBER ? (o(), y(E, {
|
|
1553
1562
|
key: 2,
|
|
1554
1563
|
modelValue: x.num,
|
|
1555
|
-
"onUpdate:modelValue":
|
|
1564
|
+
"onUpdate:modelValue": $[0] || ($[0] = (n) => x.num = n),
|
|
1556
1565
|
min: ee,
|
|
1557
1566
|
max: te,
|
|
1558
1567
|
onChange: b
|
|
@@ -1576,7 +1585,7 @@ const ma = { class: "bsgoal-base-search" }, ga = { class: "base_search" }, fa =
|
|
|
1576
1585
|
]),
|
|
1577
1586
|
_: 2
|
|
1578
1587
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : M("", !0),
|
|
1579
|
-
v === c(l).SELECT ? (o(), y(
|
|
1588
|
+
v === c(l).SELECT ? (o(), y(L, {
|
|
1580
1589
|
key: 4,
|
|
1581
1590
|
modelValue: t.value[f],
|
|
1582
1591
|
"onUpdate:modelValue": (n) => t.value[f] = n,
|
|
@@ -1584,7 +1593,7 @@ const ma = { class: "bsgoal-base-search" }, ga = { class: "base_search" }, fa =
|
|
|
1584
1593
|
onChange: (n) => b(v, f)
|
|
1585
1594
|
}, {
|
|
1586
1595
|
default: A(() => [
|
|
1587
|
-
(o(!0), p(j, null, W(ae, (n, K) => (o(), y(
|
|
1596
|
+
(o(!0), p(j, null, W(ae, (n, K) => (o(), y(U, {
|
|
1588
1597
|
key: K,
|
|
1589
1598
|
label: n.label,
|
|
1590
1599
|
value: n.value
|
|
@@ -1614,8 +1623,8 @@ const ma = { class: "bsgoal-base-search" }, ga = { class: "base_search" }, fa =
|
|
|
1614
1623
|
key: 7,
|
|
1615
1624
|
modelValue: t.value[f],
|
|
1616
1625
|
"onUpdate:modelValue": (n) => t.value[f] = n,
|
|
1617
|
-
format:
|
|
1618
|
-
"value-format":
|
|
1626
|
+
format: V(v, se),
|
|
1627
|
+
"value-format": V(v, se),
|
|
1619
1628
|
type: v,
|
|
1620
1629
|
placeholder: _(v, m, Y),
|
|
1621
1630
|
onChange: (n) => b(v, f)
|
|
@@ -1629,7 +1638,7 @@ const ma = { class: "bsgoal-base-search" }, ga = { class: "base_search" }, fa =
|
|
|
1629
1638
|
modelValue: t.value[f],
|
|
1630
1639
|
"onUpdate:modelValue": (n) => t.value[f] = n,
|
|
1631
1640
|
type: v,
|
|
1632
|
-
"value-format":
|
|
1641
|
+
"value-format": V(v, se),
|
|
1633
1642
|
"start-placeholder": _(v, m, Y)[0],
|
|
1634
1643
|
"end-placeholder": _(v, m, Y)[1],
|
|
1635
1644
|
onChange: (n) => b(v, f)
|
|
@@ -1639,7 +1648,7 @@ const ma = { class: "bsgoal-base-search" }, ga = { class: "base_search" }, fa =
|
|
|
1639
1648
|
modelValue: t.value[f],
|
|
1640
1649
|
"onUpdate:modelValue": (n) => t.value[f] = n,
|
|
1641
1650
|
"arrow-control": "",
|
|
1642
|
-
"value-format":
|
|
1651
|
+
"value-format": V(v, se),
|
|
1643
1652
|
placeholder: _(v, m, Y),
|
|
1644
1653
|
onChange: (n) => b(v, f)
|
|
1645
1654
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : M("", !0),
|
|
@@ -1648,7 +1657,7 @@ const ma = { class: "bsgoal-base-search" }, ga = { class: "base_search" }, fa =
|
|
|
1648
1657
|
modelValue: t.value[f],
|
|
1649
1658
|
"onUpdate:modelValue": (n) => t.value[f] = n,
|
|
1650
1659
|
"is-range": "",
|
|
1651
|
-
"value-format":
|
|
1660
|
+
"value-format": V(v, se),
|
|
1652
1661
|
"start-placeholder": _(v, m, Y)[0],
|
|
1653
1662
|
"end-placeholder": _(v, m, Y)[1],
|
|
1654
1663
|
onChange: (n) => b(v, f)
|
|
@@ -1828,8 +1837,8 @@ const ha = { class: "bsgoal-base-search-table" }, Ea = { class: "base_search_tab
|
|
|
1828
1837
|
})), t = X(() => r.filter((h) => {
|
|
1829
1838
|
const { item: b = !1 } = h;
|
|
1830
1839
|
return !b;
|
|
1831
|
-
})), d = Ce(), _ = w(Object.keys(d)),
|
|
1832
|
-
|
|
1840
|
+
})), d = Ce(), _ = w(Object.keys(d)), V = w(null), N = (h) => {
|
|
1841
|
+
V.value.refreshList(h);
|
|
1833
1842
|
}, S = X(() => {
|
|
1834
1843
|
const { expression: h, hasPage: b } = a;
|
|
1835
1844
|
return b === !1 ? 25 : h;
|
|
@@ -1852,7 +1861,7 @@ const ha = { class: "bsgoal-base-search-table" }, Ea = { class: "base_search_tab
|
|
|
1852
1861
|
]),
|
|
1853
1862
|
B(Ne, {
|
|
1854
1863
|
ref_key: "BSGOAL_BASE_TABLE_REF",
|
|
1855
|
-
ref:
|
|
1864
|
+
ref: V,
|
|
1856
1865
|
"map-props": e.mapProps,
|
|
1857
1866
|
operationWidth: e.operationWidth,
|
|
1858
1867
|
"config-options": t.value,
|
|
@@ -1866,8 +1875,8 @@ const ha = { class: "bsgoal-base-search-table" }, Ea = { class: "base_search_tab
|
|
|
1866
1875
|
}, Ue({ _: 2 }, [
|
|
1867
1876
|
W(_.value, (x) => ({
|
|
1868
1877
|
name: x,
|
|
1869
|
-
fn: A(({ row:
|
|
1870
|
-
J(h.$slots, x, { row:
|
|
1878
|
+
fn: A(({ row: $ = {} }) => [
|
|
1879
|
+
J(h.$slots, x, { row: $ })
|
|
1871
1880
|
])
|
|
1872
1881
|
}))
|
|
1873
1882
|
]), 1032, ["map-props", "operationWidth", "config-options", "data", "selection", "operation", "expression", "fetch", "call", "has-page"])
|
|
@@ -1908,7 +1917,7 @@ const Aa = { class: "bsgoal-base-tree-fold" }, Ta = {
|
|
|
1908
1917
|
};
|
|
1909
1918
|
}
|
|
1910
1919
|
});
|
|
1911
|
-
const
|
|
1920
|
+
const Va = { class: "bsgoal-base-tree" }, $a = { class: "base_tree" }, Ca = { class: "base_tree_main" }, Ma = {
|
|
1912
1921
|
name: "BsgoalBaseTree"
|
|
1913
1922
|
}, Ba = /* @__PURE__ */ Object.assign(Ma, {
|
|
1914
1923
|
props: {
|
|
@@ -1970,7 +1979,7 @@ const $a = { class: "bsgoal-base-tree" }, Va = { class: "base_tree" }, Ca = { cl
|
|
|
1970
1979
|
});
|
|
1971
1980
|
const t = (N, S) => N ? S.label.includes(N) : !0, d = w(!0), _ = (N, S, k, R) => {
|
|
1972
1981
|
s("on-click", N, S, k, R);
|
|
1973
|
-
},
|
|
1982
|
+
}, V = async (N, S, k) => {
|
|
1974
1983
|
if (N.level === 0) {
|
|
1975
1984
|
const R = await k.initNode(N);
|
|
1976
1985
|
return S(R || []);
|
|
@@ -1981,8 +1990,8 @@ const $a = { class: "bsgoal-base-tree" }, Va = { class: "base_tree" }, Ca = { cl
|
|
|
1981
1990
|
};
|
|
1982
1991
|
return (N, S) => {
|
|
1983
1992
|
const k = g("el-input"), R = g("el-tree");
|
|
1984
|
-
return o(), p("div",
|
|
1985
|
-
Q((o(), p("div",
|
|
1993
|
+
return o(), p("div", Va, [
|
|
1994
|
+
Q((o(), p("div", $a, [
|
|
1986
1995
|
Q(D("div", Ca, [
|
|
1987
1996
|
B(k, {
|
|
1988
1997
|
modelValue: r.value,
|
|
@@ -1996,7 +2005,7 @@ const $a = { class: "bsgoal-base-tree" }, Va = { class: "base_tree" }, Ca = { cl
|
|
|
1996
2005
|
lazy: "",
|
|
1997
2006
|
"highlight-current": "",
|
|
1998
2007
|
"empty-text": "暂无数据",
|
|
1999
|
-
load: (h, b) =>
|
|
2008
|
+
load: (h, b) => V(h, b, a),
|
|
2000
2009
|
"expand-on-click-node": !1,
|
|
2001
2010
|
props: e.treeProps,
|
|
2002
2011
|
"filter-node-method": t,
|
|
@@ -2118,7 +2127,7 @@ const Na = { class: "bsgoal-base-dialog" }, wa = { class: "base_dialog" }, ka =
|
|
|
2118
2127
|
}
|
|
2119
2128
|
});
|
|
2120
2129
|
return (d, _) => {
|
|
2121
|
-
const
|
|
2130
|
+
const V = g("el-button"), N = g("el-dialog");
|
|
2122
2131
|
return o(), p("div", Na, [
|
|
2123
2132
|
D("div", wa, [
|
|
2124
2133
|
B(N, {
|
|
@@ -2134,13 +2143,13 @@ const Na = { class: "bsgoal-base-dialog" }, wa = { class: "base_dialog" }, ka =
|
|
|
2134
2143
|
footer: A(() => [
|
|
2135
2144
|
e.footer ? J(d.$slots, "footer", { key: 0 }, () => [
|
|
2136
2145
|
D("span", Sa, [
|
|
2137
|
-
B(
|
|
2146
|
+
B(V, { onClick: r }, {
|
|
2138
2147
|
default: A(() => [
|
|
2139
2148
|
H(z(e.cancelTxt), 1)
|
|
2140
2149
|
]),
|
|
2141
2150
|
_: 1
|
|
2142
2151
|
}),
|
|
2143
|
-
B(
|
|
2152
|
+
B(V, {
|
|
2144
2153
|
type: "primary",
|
|
2145
2154
|
onClick: u
|
|
2146
2155
|
}, {
|
|
@@ -2211,7 +2220,7 @@ const Ia = { class: "bsgoal-base-tabs" }, Fa = {
|
|
|
2211
2220
|
emits: ["update:modelValue"],
|
|
2212
2221
|
setup(e, { emit: s }) {
|
|
2213
2222
|
const a = e, i = X(() => {
|
|
2214
|
-
const { modelValue: u = "", configOptions: t = [] } = a, d = c(t).map((
|
|
2223
|
+
const { modelValue: u = "", configOptions: t = [] } = a, d = c(t).map((V) => V.value);
|
|
2215
2224
|
return c(u) || d[0];
|
|
2216
2225
|
}), r = (u = "") => {
|
|
2217
2226
|
s("update:modelValue", u);
|
|
@@ -2227,14 +2236,14 @@ const Ia = { class: "bsgoal-base-tabs" }, Fa = {
|
|
|
2227
2236
|
onTabChange: r
|
|
2228
2237
|
}, {
|
|
2229
2238
|
default: A(() => [
|
|
2230
|
-
(o(!0), p(j, null, W(e.configOptions, ({ label:
|
|
2239
|
+
(o(!0), p(j, null, W(e.configOptions, ({ label: V, value: N }, S) => (o(), y(d, {
|
|
2231
2240
|
key: S,
|
|
2232
|
-
label:
|
|
2241
|
+
label: V,
|
|
2233
2242
|
name: N
|
|
2234
2243
|
}, {
|
|
2235
2244
|
default: A(() => [
|
|
2236
2245
|
J(u.$slots, N, {}, () => [
|
|
2237
|
-
H(z(
|
|
2246
|
+
H(z(V), 1)
|
|
2238
2247
|
])
|
|
2239
2248
|
]),
|
|
2240
2249
|
_: 2
|