@bsgoal/common 1.8.8 → 1.9.0
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 +156 -115
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/bsgoal-base-form/demo.vue +1 -1
- package/src/components/bsgoal-base-form/index.vue +2 -2
- package/src/components/bsgoal-base-search/demo.vue +1 -1
- package/src/components/bsgoal-base-search/index.vue +2 -2
- package/src/components/bsgoal-base-search-table/demo.vue +1 -1
- package/src/components/bsgoal-base-table/demo.vue +1 -1
- package/src/components/layout/layout-right-container.vue +3 -2
- package/src/entry.js +3 -3
- package/src/enums/componentTypeEnums.js +35 -0
- package/src/enums/enumType.js +0 -33
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
|
|
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
|
-
|
|
15
|
-
INPUT
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
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);
|
|
@@ -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' // 内容组件的类型 : 参照
|
|
212
|
+
* type:'text' // 内容组件的类型 : 参照 componentTypeEnums
|
|
172
213
|
* placeholder:'' // placeholder 提示文本
|
|
173
214
|
* readonly: false // 是否为只读文本
|
|
174
215
|
* clearable: true //是否为可清空
|
|
@@ -231,8 +272,8 @@ const He = { class: "bsgoal-base-form" }, We = { class: "base_form" }, Xe = { ke
|
|
|
231
272
|
emits: ["on-form", "on-clear", "on-change", "on-fold"],
|
|
232
273
|
setup(e, { expose: s, emit: a }) {
|
|
233
274
|
const i = e, r = N(null), u = xe.align, t = N(i.bindModel);
|
|
234
|
-
|
|
235
|
-
const { configOptions:
|
|
275
|
+
he(() => {
|
|
276
|
+
const { configOptions: p, values: x } = i, T = c(p), B = c(x);
|
|
236
277
|
T.forEach((m) => {
|
|
237
278
|
const { value: I = "", prop: k = "", type: L = "" } = m;
|
|
238
279
|
[l.INPUT, l.INPUT_TEXT_AREA].includes(L);
|
|
@@ -241,15 +282,15 @@ const He = { class: "bsgoal-base-form" }, We = { class: "base_form" }, Xe = { ke
|
|
|
241
282
|
});
|
|
242
283
|
});
|
|
243
284
|
const d = Z(() => {
|
|
244
|
-
const { configOptions:
|
|
245
|
-
return c(
|
|
285
|
+
const { configOptions: p } = i;
|
|
286
|
+
return c(p).map((B) => {
|
|
246
287
|
let { rules: m = !1, label: I = "" } = B;
|
|
247
288
|
const k = { required: !0, message: `${I}不能为空`, trigger: "blur" };
|
|
248
289
|
return m && (typeof m == "boolean" ? m = [k] : Array.isArray(m) ? m = [k, ...m] : m = [k, m]), B.rules = m, B;
|
|
249
290
|
});
|
|
250
|
-
}), _ = (
|
|
291
|
+
}), _ = (p = "", x = "", T = "") => {
|
|
251
292
|
if (!T)
|
|
252
|
-
switch (
|
|
293
|
+
switch (p) {
|
|
253
294
|
case l.INPUT:
|
|
254
295
|
case l.INPUT_TEXT_AREA:
|
|
255
296
|
return `请输入${x}`;
|
|
@@ -270,9 +311,9 @@ const He = { class: "bsgoal-base-form" }, We = { class: "base_form" }, Xe = { ke
|
|
|
270
311
|
return ["开始月份", "结束月份"];
|
|
271
312
|
}
|
|
272
313
|
return T;
|
|
273
|
-
}, V = (
|
|
314
|
+
}, V = (p = "", x = "") => {
|
|
274
315
|
if (!x)
|
|
275
|
-
switch (
|
|
316
|
+
switch (p) {
|
|
276
317
|
case l.WEEK:
|
|
277
318
|
return "ww";
|
|
278
319
|
case l.DATE:
|
|
@@ -293,32 +334,32 @@ const He = { class: "bsgoal-base-form" }, We = { class: "base_form" }, Xe = { ke
|
|
|
293
334
|
}
|
|
294
335
|
return x;
|
|
295
336
|
}, M = () => {
|
|
296
|
-
const
|
|
337
|
+
const p = c(t), { configOptions: x } = i, T = c(x);
|
|
297
338
|
for (const B of T) {
|
|
298
339
|
const { type: m = "", range: I = [], prop: k = "" } = B;
|
|
299
340
|
if (m.endsWith("range") && I && I.length === 2) {
|
|
300
|
-
const { 0: L = "", 1: F = "" } =
|
|
301
|
-
|
|
341
|
+
const { 0: L = "", 1: F = "" } = p[k], { 0: H = "", 1: R = "" } = I;
|
|
342
|
+
p[H] = L, p[R] = F;
|
|
302
343
|
}
|
|
303
344
|
}
|
|
304
|
-
return a("on-form",
|
|
345
|
+
return a("on-form", p), p;
|
|
305
346
|
}, S = () => {
|
|
306
347
|
r.value.resetFields(), a("on-clear", t.value);
|
|
307
|
-
}, w = (
|
|
348
|
+
}, w = (p, x) => {
|
|
308
349
|
const T = {
|
|
309
|
-
type:
|
|
350
|
+
type: p,
|
|
310
351
|
prop: x,
|
|
311
352
|
value: t.value[x] || ""
|
|
312
353
|
};
|
|
313
354
|
a("on-change", T);
|
|
314
|
-
}, U = (
|
|
355
|
+
}, U = (p = () => {
|
|
315
356
|
}) => {
|
|
316
357
|
r.value.validate((x = !1, T = {}) => {
|
|
317
358
|
if (x) {
|
|
318
359
|
const B = M();
|
|
319
|
-
|
|
360
|
+
p(B);
|
|
320
361
|
} else {
|
|
321
|
-
|
|
362
|
+
p(!1);
|
|
322
363
|
const B = Object.keys(T)[0], {
|
|
323
364
|
[B]: {
|
|
324
365
|
0: { message: m = "" }
|
|
@@ -327,8 +368,8 @@ const He = { class: "bsgoal-base-form" }, We = { class: "base_form" }, Xe = { ke
|
|
|
327
368
|
je.error(m);
|
|
328
369
|
}
|
|
329
370
|
});
|
|
330
|
-
}, O = (
|
|
331
|
-
const { 0: T = {}, 1: B = {} } =
|
|
371
|
+
}, O = (p = [], x = "") => {
|
|
372
|
+
const { 0: T = {}, 1: B = {} } = p, { value: m = !1, label: I = "" } = T, { value: k = !1, label: L = "" } = B;
|
|
332
373
|
switch (x) {
|
|
333
374
|
case "active-value":
|
|
334
375
|
return m;
|
|
@@ -344,7 +385,7 @@ const He = { class: "bsgoal-base-form" }, We = { class: "base_form" }, Xe = { ke
|
|
|
344
385
|
triggerOperationClear: S,
|
|
345
386
|
triggerOperationForm: M,
|
|
346
387
|
validateForm: U
|
|
347
|
-
}), (
|
|
388
|
+
}), (p, x) => {
|
|
348
389
|
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
390
|
return n(), b("div", He, [
|
|
350
391
|
D("div", We, [
|
|
@@ -365,13 +406,13 @@ const He = { class: "bsgoal-base-form" }, We = { class: "base_form" }, Xe = { ke
|
|
|
365
406
|
readonly: G = e.readonlys,
|
|
366
407
|
clearable: fe = !0,
|
|
367
408
|
rows: ve = 2,
|
|
368
|
-
min:
|
|
409
|
+
min: pe = 1,
|
|
369
410
|
max: de = 10,
|
|
370
411
|
range: z = [],
|
|
371
412
|
format: K = "",
|
|
372
413
|
rules: ne = [],
|
|
373
414
|
limit: ce = e.limits,
|
|
374
|
-
length:
|
|
415
|
+
length: h = 255
|
|
375
416
|
} = {}, oe) => (n(), y(re, {
|
|
376
417
|
key: oe,
|
|
377
418
|
xs: 24,
|
|
@@ -385,7 +426,7 @@ const He = { class: "bsgoal-base-form" }, We = { class: "base_form" }, Xe = { ke
|
|
|
385
426
|
rules: ne
|
|
386
427
|
}, {
|
|
387
428
|
default: A(() => [
|
|
388
|
-
q(
|
|
429
|
+
q(p.$slots, [g], {
|
|
389
430
|
option: { readonly: G, value: t.value[g], values: t.value }
|
|
390
431
|
}, () => [
|
|
391
432
|
G ? (n(), b("div", Xe, [
|
|
@@ -410,7 +451,7 @@ const He = { class: "bsgoal-base-form" }, We = { class: "base_form" }, Xe = { ke
|
|
|
410
451
|
"show-word-limit": "",
|
|
411
452
|
type: "textarea",
|
|
412
453
|
autosize: { minRows: ve },
|
|
413
|
-
maxlength:
|
|
454
|
+
maxlength: h,
|
|
414
455
|
clearable: fe,
|
|
415
456
|
placeholder: _(o, X, f),
|
|
416
457
|
onChange: (E) => w(o, g)
|
|
@@ -420,7 +461,7 @@ const He = { class: "bsgoal-base-form" }, We = { class: "base_form" }, Xe = { ke
|
|
|
420
461
|
modelValue: t.value[g],
|
|
421
462
|
"onUpdate:modelValue": (E) => t.value[g] = E,
|
|
422
463
|
"controls-position": "right",
|
|
423
|
-
min:
|
|
464
|
+
min: pe,
|
|
424
465
|
max: de,
|
|
425
466
|
onChange: w
|
|
426
467
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max"])) : C("", !0),
|
|
@@ -463,7 +504,7 @@ const He = { class: "bsgoal-base-form" }, We = { class: "base_form" }, Xe = { ke
|
|
|
463
504
|
key: 5,
|
|
464
505
|
modelValue: t.value[g],
|
|
465
506
|
"onUpdate:modelValue": (E) => t.value[g] = E,
|
|
466
|
-
min:
|
|
507
|
+
min: pe,
|
|
467
508
|
max: de,
|
|
468
509
|
onChange: (E) => w(o, g)
|
|
469
510
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : C("", !0),
|
|
@@ -875,7 +916,7 @@ const mt = /* @__PURE__ */ we(ct, [["render", _t]]), gt = (e = null, { expressio
|
|
|
875
916
|
return "undefind";
|
|
876
917
|
}
|
|
877
918
|
}, vt = (e) => ft(e) === "boolean";
|
|
878
|
-
const
|
|
919
|
+
const pt = { class: "bsgoal-base-table" }, ht = { class: "base_table" }, Et = {
|
|
879
920
|
key: 0,
|
|
880
921
|
class: "base_table_menu"
|
|
881
922
|
}, bt = {
|
|
@@ -996,7 +1037,7 @@ const ht = { class: "bsgoal-base-table" }, pt = { class: "base_table" }, Et = {
|
|
|
996
1037
|
width: k
|
|
997
1038
|
}), [...L, ...F];
|
|
998
1039
|
}), r = N(null), u = Me("transferFoldStatus");
|
|
999
|
-
|
|
1040
|
+
he(() => {
|
|
1000
1041
|
const { height: m } = a, I = u ? u.value : !1, k = c(a.expression);
|
|
1001
1042
|
vt(m) || gt(r, { arg: I, expression: k, height: m });
|
|
1002
1043
|
});
|
|
@@ -1005,30 +1046,30 @@ const ht = { class: "bsgoal-base-table" }, pt = { class: "base_table" }, Et = {
|
|
|
1005
1046
|
pageSize: "pageSize",
|
|
1006
1047
|
rows: "rows",
|
|
1007
1048
|
total: "total"
|
|
1008
|
-
}, t), _ = N(1), V = N(10), M = N(0), S = N({}), w = N(a.loading), U = N(), O = N({}),
|
|
1049
|
+
}, t), _ = N(1), V = N(10), M = N(0), S = N({}), w = N(a.loading), U = N(), O = N({}), p = () => {
|
|
1009
1050
|
const { fetch: m, call: I, hasPage: k } = a, L = S.value, F = _.value, H = V.value, R = Ee({}, L);
|
|
1010
1051
|
k && (R[d.currentPage] = F, R[d.pageSize] = H), Ae(m(R), I, w, O);
|
|
1011
1052
|
};
|
|
1012
|
-
|
|
1053
|
+
he(() => {
|
|
1013
1054
|
U.value = a.data;
|
|
1014
1055
|
}), me(O, (m) => {
|
|
1015
1056
|
a.hasPage ? (U.value = m[d.rows], M.value = m[d.total]) : U.value = m;
|
|
1016
1057
|
});
|
|
1017
1058
|
const x = (m = {}) => {
|
|
1018
|
-
S.value = m, _.value = 1,
|
|
1059
|
+
S.value = m, _.value = 1, p();
|
|
1019
1060
|
}, T = (m = 1) => {
|
|
1020
1061
|
_.value = m;
|
|
1021
1062
|
}, B = (m = 10) => {
|
|
1022
1063
|
V.value = m;
|
|
1023
1064
|
};
|
|
1024
1065
|
return me([_, V], () => {
|
|
1025
|
-
|
|
1066
|
+
p();
|
|
1026
1067
|
}), s({
|
|
1027
1068
|
refreshList: x
|
|
1028
1069
|
}), (m, I) => {
|
|
1029
1070
|
const k = v("el-table-column"), L = v("el-table"), F = Re("loading");
|
|
1030
|
-
return n(), b("div",
|
|
1031
|
-
D("div",
|
|
1071
|
+
return n(), b("div", pt, [
|
|
1072
|
+
D("div", ht, [
|
|
1032
1073
|
m.$slots.menu ? (n(), b("div", Et, [
|
|
1033
1074
|
q(m.$slots, "menu")
|
|
1034
1075
|
])) : C("", !0),
|
|
@@ -1392,9 +1433,9 @@ const _a = { class: "bsgoal-base-cascader" }, ma = {
|
|
|
1392
1433
|
};
|
|
1393
1434
|
}
|
|
1394
1435
|
});
|
|
1395
|
-
const fa = { class: "bsgoal-base-search" }, va = { class: "base_search" },
|
|
1436
|
+
const fa = { class: "bsgoal-base-search" }, va = { class: "base_search" }, pa = { key: 1 }, ha = {
|
|
1396
1437
|
name: "BsgoalBaseSearch"
|
|
1397
|
-
}, Ea = /* @__PURE__ */ Object.assign(
|
|
1438
|
+
}, Ea = /* @__PURE__ */ Object.assign(ha, {
|
|
1398
1439
|
props: {
|
|
1399
1440
|
/**
|
|
1400
1441
|
* >----------props----------<
|
|
@@ -1402,7 +1443,7 @@ const fa = { class: "bsgoal-base-search" }, va = { class: "base_search" }, ha =
|
|
|
1402
1443
|
* label:'' // 名称
|
|
1403
1444
|
* value:'' // 值
|
|
1404
1445
|
* prop:'' // 绑定字段
|
|
1405
|
-
* type:'text' // 内容组件的类型 : 参照
|
|
1446
|
+
* type:'text' // 内容组件的类型 : 参照 componentTypeEnums
|
|
1406
1447
|
* placeholder:'' // placeholder 提示文本
|
|
1407
1448
|
* readonly: false // 是否为只读文本
|
|
1408
1449
|
* clearable: true //是否为可清空
|
|
@@ -1437,7 +1478,7 @@ const fa = { class: "bsgoal-base-search" }, va = { class: "base_search" }, ha =
|
|
|
1437
1478
|
emits: ["on-search", "on-clear", "on-change", "on-fold"],
|
|
1438
1479
|
setup(e, { expose: s, emit: a }) {
|
|
1439
1480
|
const i = e, r = N(null), u = xe.align, t = N({});
|
|
1440
|
-
|
|
1481
|
+
he(() => {
|
|
1441
1482
|
const { configOptions: x } = i;
|
|
1442
1483
|
c(x).forEach((B) => {
|
|
1443
1484
|
const { value: m, prop: I = "", type: k = "" } = B;
|
|
@@ -1518,7 +1559,7 @@ const fa = { class: "bsgoal-base-search" }, va = { class: "base_search" }, ha =
|
|
|
1518
1559
|
r.value.resetFields(), a("on-clear", t.value);
|
|
1519
1560
|
}, w = Me("transferFoldStatus"), U = N(!1), O = (x = !1) => {
|
|
1520
1561
|
U.value = x, w && (w.value = x), a("on-fold", U);
|
|
1521
|
-
},
|
|
1562
|
+
}, p = (x, T) => {
|
|
1522
1563
|
M();
|
|
1523
1564
|
const B = {
|
|
1524
1565
|
type: x,
|
|
@@ -1550,7 +1591,7 @@ const fa = { class: "bsgoal-base-search" }, va = { class: "base_search" }, ha =
|
|
|
1550
1591
|
placeholder: G = "",
|
|
1551
1592
|
readonly: fe = !1,
|
|
1552
1593
|
clearable: ve = !0,
|
|
1553
|
-
rows:
|
|
1594
|
+
rows: pe = 2,
|
|
1554
1595
|
min: de = 1,
|
|
1555
1596
|
max: z = 10,
|
|
1556
1597
|
range: K = [],
|
|
@@ -1567,45 +1608,45 @@ const fa = { class: "bsgoal-base-search" }, va = { class: "base_search" }, ha =
|
|
|
1567
1608
|
prop: o
|
|
1568
1609
|
}, {
|
|
1569
1610
|
default: A(() => [
|
|
1570
|
-
fe ? (n(), b("div",
|
|
1611
|
+
fe ? (n(), b("div", pa, j(t.value[o]), 1)) : (n(), b(P, { key: 0 }, [
|
|
1571
1612
|
f === c(l).INPUT ? (n(), y(B, {
|
|
1572
1613
|
key: 0,
|
|
1573
1614
|
modelValue: t.value[o],
|
|
1574
|
-
"onUpdate:modelValue": (
|
|
1615
|
+
"onUpdate:modelValue": (h) => t.value[o] = h,
|
|
1575
1616
|
placeholder: _(f, g, G),
|
|
1576
1617
|
clearable: ve
|
|
1577
1618
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable"])) : C("", !0),
|
|
1578
1619
|
f === c(l).INPUT_TEXT_AREA ? (n(), y(B, {
|
|
1579
1620
|
key: 1,
|
|
1580
1621
|
modelValue: t.value[o],
|
|
1581
|
-
"onUpdate:modelValue": (
|
|
1622
|
+
"onUpdate:modelValue": (h) => t.value[o] = h,
|
|
1582
1623
|
type: "textarea",
|
|
1583
|
-
rows:
|
|
1624
|
+
rows: pe,
|
|
1584
1625
|
clearable: ve,
|
|
1585
1626
|
placeholder: _(f, g, G),
|
|
1586
|
-
onChange: (
|
|
1627
|
+
onChange: (h) => p(f, o)
|
|
1587
1628
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : C("", !0),
|
|
1588
1629
|
f === c(l).INPUT_NUMBER ? (n(), y(m, {
|
|
1589
1630
|
key: 2,
|
|
1590
1631
|
modelValue: x.num,
|
|
1591
|
-
"onUpdate:modelValue": T[0] || (T[0] = (
|
|
1632
|
+
"onUpdate:modelValue": T[0] || (T[0] = (h) => x.num = h),
|
|
1592
1633
|
min: de,
|
|
1593
1634
|
max: z,
|
|
1594
|
-
onChange:
|
|
1635
|
+
onChange: p
|
|
1595
1636
|
}, null, 8, ["modelValue", "min", "max"])) : C("", !0),
|
|
1596
1637
|
f === c(l).RADIO ? (n(), y(k, {
|
|
1597
1638
|
key: 3,
|
|
1598
1639
|
modelValue: t.value[o],
|
|
1599
|
-
"onUpdate:modelValue": (
|
|
1600
|
-
onChange: (
|
|
1640
|
+
"onUpdate:modelValue": (h) => t.value[o] = h,
|
|
1641
|
+
onChange: (h) => p(f, o)
|
|
1601
1642
|
}, {
|
|
1602
1643
|
default: A(() => [
|
|
1603
|
-
(n(!0), b(P, null, Q(K, (
|
|
1644
|
+
(n(!0), b(P, null, Q(K, (h, oe) => (n(), y(I, {
|
|
1604
1645
|
key: oe,
|
|
1605
|
-
label:
|
|
1646
|
+
label: h.value
|
|
1606
1647
|
}, {
|
|
1607
1648
|
default: A(() => [
|
|
1608
|
-
Y(j(
|
|
1649
|
+
Y(j(h.label), 1)
|
|
1609
1650
|
]),
|
|
1610
1651
|
_: 2
|
|
1611
1652
|
}, 1032, ["label"]))), 128))
|
|
@@ -1615,15 +1656,15 @@ const fa = { class: "bsgoal-base-search" }, va = { class: "base_search" }, ha =
|
|
|
1615
1656
|
f === c(l).SELECT ? (n(), y(F, {
|
|
1616
1657
|
key: 4,
|
|
1617
1658
|
modelValue: t.value[o],
|
|
1618
|
-
"onUpdate:modelValue": (
|
|
1659
|
+
"onUpdate:modelValue": (h) => t.value[o] = h,
|
|
1619
1660
|
placeholder: _(f, g, G),
|
|
1620
|
-
onChange: (
|
|
1661
|
+
onChange: (h) => p(f, o)
|
|
1621
1662
|
}, {
|
|
1622
1663
|
default: A(() => [
|
|
1623
|
-
(n(!0), b(P, null, Q(K, (
|
|
1664
|
+
(n(!0), b(P, null, Q(K, (h, oe) => (n(), y(L, {
|
|
1624
1665
|
key: oe,
|
|
1625
|
-
label:
|
|
1626
|
-
value:
|
|
1666
|
+
label: h.label,
|
|
1667
|
+
value: h.value
|
|
1627
1668
|
}, null, 8, ["label", "value"]))), 128))
|
|
1628
1669
|
]),
|
|
1629
1670
|
_: 2
|
|
@@ -1631,30 +1672,30 @@ const fa = { class: "bsgoal-base-search" }, va = { class: "base_search" }, ha =
|
|
|
1631
1672
|
f === c(l).SLIDER ? (n(), y(H, {
|
|
1632
1673
|
key: 5,
|
|
1633
1674
|
modelValue: t.value[o],
|
|
1634
|
-
"onUpdate:modelValue": (
|
|
1675
|
+
"onUpdate:modelValue": (h) => t.value[o] = h,
|
|
1635
1676
|
min: de,
|
|
1636
1677
|
max: z,
|
|
1637
|
-
onChange: (
|
|
1678
|
+
onChange: (h) => p(f, o)
|
|
1638
1679
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : C("", !0),
|
|
1639
1680
|
f === c(l).SWITCH ? (n(), y(R, {
|
|
1640
1681
|
key: 6,
|
|
1641
1682
|
modelValue: t.value[o],
|
|
1642
|
-
"onUpdate:modelValue": (
|
|
1683
|
+
"onUpdate:modelValue": (h) => t.value[o] = h,
|
|
1643
1684
|
"active-value": K[0] || !0,
|
|
1644
1685
|
"inactive-value": K[1] || !1,
|
|
1645
|
-
onChange: (
|
|
1686
|
+
onChange: (h) => p(f, o)
|
|
1646
1687
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : C("", !0),
|
|
1647
1688
|
[c(l).DATE, c(l).MONTH, c(l).YEAR, c(l).DATE_TIME].includes(
|
|
1648
1689
|
f
|
|
1649
1690
|
) ? (n(), y(W, {
|
|
1650
1691
|
key: 7,
|
|
1651
1692
|
modelValue: t.value[o],
|
|
1652
|
-
"onUpdate:modelValue": (
|
|
1693
|
+
"onUpdate:modelValue": (h) => t.value[o] = h,
|
|
1653
1694
|
format: V(f, ne),
|
|
1654
1695
|
"value-format": V(f, ne),
|
|
1655
1696
|
type: f,
|
|
1656
1697
|
placeholder: _(f, g, G),
|
|
1657
|
-
onChange: (
|
|
1698
|
+
onChange: (h) => p(f, o)
|
|
1658
1699
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : C("", !0),
|
|
1659
1700
|
[
|
|
1660
1701
|
c(l).DATE_RANGE,
|
|
@@ -1663,45 +1704,45 @@ const fa = { class: "bsgoal-base-search" }, va = { class: "base_search" }, ha =
|
|
|
1663
1704
|
].includes(f) ? (n(), y(W, {
|
|
1664
1705
|
key: 8,
|
|
1665
1706
|
modelValue: t.value[o],
|
|
1666
|
-
"onUpdate:modelValue": (
|
|
1707
|
+
"onUpdate:modelValue": (h) => t.value[o] = h,
|
|
1667
1708
|
type: f,
|
|
1668
1709
|
"value-format": V(f, ne),
|
|
1669
1710
|
"start-placeholder": _(f, g, G)[0],
|
|
1670
1711
|
"end-placeholder": _(f, g, G)[1],
|
|
1671
|
-
onChange: (
|
|
1712
|
+
onChange: (h) => p(f, o)
|
|
1672
1713
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : C("", !0),
|
|
1673
1714
|
[c(l).TIME].includes(f) ? (n(), y(ee, {
|
|
1674
1715
|
key: 9,
|
|
1675
1716
|
modelValue: t.value[o],
|
|
1676
|
-
"onUpdate:modelValue": (
|
|
1717
|
+
"onUpdate:modelValue": (h) => t.value[o] = h,
|
|
1677
1718
|
"arrow-control": "",
|
|
1678
1719
|
"value-format": V(f, ne),
|
|
1679
1720
|
placeholder: _(f, g, G),
|
|
1680
|
-
onChange: (
|
|
1721
|
+
onChange: (h) => p(f, o)
|
|
1681
1722
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : C("", !0),
|
|
1682
1723
|
[c(l).TIME_RANGE].includes(f) ? (n(), y(ee, {
|
|
1683
1724
|
key: 10,
|
|
1684
1725
|
modelValue: t.value[o],
|
|
1685
|
-
"onUpdate:modelValue": (
|
|
1726
|
+
"onUpdate:modelValue": (h) => t.value[o] = h,
|
|
1686
1727
|
"is-range": "",
|
|
1687
1728
|
"value-format": V(f, ne),
|
|
1688
1729
|
"start-placeholder": _(f, g, G)[0],
|
|
1689
1730
|
"end-placeholder": _(f, g, G)[1],
|
|
1690
|
-
onChange: (
|
|
1731
|
+
onChange: (h) => p(f, o)
|
|
1691
1732
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : C("", !0),
|
|
1692
1733
|
[c(l).CHECKBOX].includes(f) ? (n(), y(le, {
|
|
1693
1734
|
key: 11,
|
|
1694
1735
|
modelValue: t.value[o],
|
|
1695
|
-
"onUpdate:modelValue": (
|
|
1696
|
-
onChange: (
|
|
1736
|
+
"onUpdate:modelValue": (h) => t.value[o] = h,
|
|
1737
|
+
onChange: (h) => p(f, o)
|
|
1697
1738
|
}, {
|
|
1698
1739
|
default: A(() => [
|
|
1699
|
-
(n(!0), b(P, null, Q(K, (
|
|
1740
|
+
(n(!0), b(P, null, Q(K, (h, oe) => (n(), y(ae, {
|
|
1700
1741
|
key: oe,
|
|
1701
|
-
label:
|
|
1742
|
+
label: h.value
|
|
1702
1743
|
}, {
|
|
1703
1744
|
default: A(() => [
|
|
1704
|
-
Y(j(
|
|
1745
|
+
Y(j(h.label), 1)
|
|
1705
1746
|
]),
|
|
1706
1747
|
_: 2
|
|
1707
1748
|
}, 1032, ["label"]))), 128))
|
|
@@ -1711,10 +1752,10 @@ const fa = { class: "bsgoal-base-search" }, va = { class: "base_search" }, ha =
|
|
|
1711
1752
|
[c(l).CASCADER].includes(f) ? (n(), y(ga, {
|
|
1712
1753
|
key: 12,
|
|
1713
1754
|
modelValue: t.value[o],
|
|
1714
|
-
"onUpdate:modelValue": (
|
|
1755
|
+
"onUpdate:modelValue": (h) => t.value[o] = h,
|
|
1715
1756
|
"data-options": K,
|
|
1716
1757
|
placeholder: _(f, g, G),
|
|
1717
|
-
onOnChange: (
|
|
1758
|
+
onOnChange: (h) => p(f, o)
|
|
1718
1759
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "data-options", "placeholder", "onOnChange"])) : C("", !0),
|
|
1719
1760
|
[].includes(f) ? (n(), b(P, { key: 13 }, [], 64)) : C("", !0),
|
|
1720
1761
|
[c(l).OPERATION].includes(f) ? (n(), y(da, {
|
|
@@ -1859,23 +1900,23 @@ const ba = { class: "bsgoal-base-search-table" }, ya = { class: "base_search_tab
|
|
|
1859
1900
|
const a = e, i = N(!1);
|
|
1860
1901
|
Le("transferFoldStatus", i);
|
|
1861
1902
|
const r = c(a.configOptions), u = Z(() => r.filter((O) => {
|
|
1862
|
-
const { type:
|
|
1863
|
-
return !!
|
|
1903
|
+
const { type: p = "" } = O;
|
|
1904
|
+
return !!p;
|
|
1864
1905
|
})), t = Z(() => r.filter((O) => {
|
|
1865
|
-
const { item:
|
|
1866
|
-
return !
|
|
1906
|
+
const { item: p = !1 } = O;
|
|
1907
|
+
return !p;
|
|
1867
1908
|
})), d = Be(), _ = N(Object.keys(d)), V = N(null), M = (O) => {
|
|
1868
1909
|
V.value.refreshList(O);
|
|
1869
1910
|
}, S = Z(() => {
|
|
1870
|
-
const { expression: O, hasPage:
|
|
1871
|
-
return
|
|
1911
|
+
const { expression: O, hasPage: p } = a;
|
|
1912
|
+
return p === !1 ? 25 : O;
|
|
1872
1913
|
}), w = N(null);
|
|
1873
1914
|
return s({
|
|
1874
1915
|
refresh: () => {
|
|
1875
1916
|
const { hasSearch: O } = a;
|
|
1876
1917
|
c(O) && w.value.triggerOperationSearch();
|
|
1877
1918
|
}
|
|
1878
|
-
}), (O,
|
|
1919
|
+
}), (O, p) => (n(), b("div", ba, [
|
|
1879
1920
|
D("div", ya, [
|
|
1880
1921
|
J($(Ea, {
|
|
1881
1922
|
ref_key: "BSGOAL_BASE_SEARCH_REF",
|
|
@@ -2032,7 +2073,7 @@ const $a = { class: "bsgoal-base-tree" }, Ma = { class: "base_tree" }, Ba = { cl
|
|
|
2032
2073
|
lazy: "",
|
|
2033
2074
|
"highlight-current": "",
|
|
2034
2075
|
"empty-text": "暂无数据",
|
|
2035
|
-
load: (O,
|
|
2076
|
+
load: (O, p) => V(O, p, a),
|
|
2036
2077
|
"expand-on-click-node": !1,
|
|
2037
2078
|
props: e.treeProps,
|
|
2038
2079
|
"filter-node-method": t,
|
|
@@ -2468,7 +2509,7 @@ const Xa = { class: "bsgoal-base-layout" }, Ka = {
|
|
|
2468
2509
|
]);
|
|
2469
2510
|
};
|
|
2470
2511
|
}
|
|
2471
|
-
}),
|
|
2512
|
+
}), Za = l, al = Ae, ll = {
|
|
2472
2513
|
install(e, s = {}) {
|
|
2473
2514
|
const { exclude: a = [] } = s, i = {
|
|
2474
2515
|
BsgoalBaseForm: Qe,
|
|
@@ -2485,12 +2526,12 @@ const Xa = { class: "bsgoal-base-layout" }, Ka = {
|
|
|
2485
2526
|
for (const [r, u] of Object.entries(i))
|
|
2486
2527
|
a.includes(r) || e.component(r, u);
|
|
2487
2528
|
},
|
|
2488
|
-
|
|
2529
|
+
ComponentTypeEnums: Za,
|
|
2489
2530
|
useFetch: Ae
|
|
2490
2531
|
};
|
|
2491
2532
|
export {
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2533
|
+
Za as ComponentTypeEnums,
|
|
2534
|
+
ll as default,
|
|
2535
|
+
al as useFetchApi
|
|
2495
2536
|
};
|
|
2496
2537
|
//# sourceMappingURL=index.mjs.map
|