@bsgoal/common 1.8.7 → 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 +215 -175
- 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 +3 -4
- 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
|
|
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);
|
|
@@ -149,7 +190,7 @@ const Ge = { class: "bsgoal-base-tooltip" }, Ye = {
|
|
|
149
190
|
}, {
|
|
150
191
|
default: A(() => [
|
|
151
192
|
q(r.$slots, "default", {}, () => [
|
|
152
|
-
|
|
193
|
+
Y(j(a.value), 1)
|
|
153
194
|
])
|
|
154
195
|
]),
|
|
155
196
|
_: 3
|
|
@@ -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,8 +385,8 @@ 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
|
-
}), (
|
|
348
|
-
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"),
|
|
388
|
+
}), (p, x) => {
|
|
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, [
|
|
351
392
|
J((n(), y(ue, {
|
|
@@ -358,20 +399,20 @@ const He = { class: "bsgoal-base-form" }, We = { class: "base_form" }, Xe = { ke
|
|
|
358
399
|
$(ie, null, {
|
|
359
400
|
default: A(() => [
|
|
360
401
|
(n(!0), b(P, null, Q(d.value, ({
|
|
361
|
-
label:
|
|
402
|
+
label: X = "",
|
|
362
403
|
prop: g = "",
|
|
363
404
|
type: o = "text",
|
|
364
405
|
placeholder: f = "",
|
|
365
|
-
readonly:
|
|
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,
|
|
@@ -380,15 +421,15 @@ const He = { class: "bsgoal-base-form" }, We = { class: "base_form" }, Xe = { ke
|
|
|
380
421
|
}, {
|
|
381
422
|
default: A(() => [
|
|
382
423
|
$(le, {
|
|
383
|
-
label:
|
|
424
|
+
label: X,
|
|
384
425
|
prop: g,
|
|
385
426
|
rules: ne
|
|
386
427
|
}, {
|
|
387
428
|
default: A(() => [
|
|
388
|
-
q(
|
|
389
|
-
option: { readonly:
|
|
429
|
+
q(p.$slots, [g], {
|
|
430
|
+
option: { readonly: G, value: t.value[g], values: t.value }
|
|
390
431
|
}, () => [
|
|
391
|
-
|
|
432
|
+
G ? (n(), b("div", Xe, [
|
|
392
433
|
$(Ne, {
|
|
393
434
|
content: t.value[g],
|
|
394
435
|
limit: ce,
|
|
@@ -399,7 +440,7 @@ const He = { class: "bsgoal-base-form" }, We = { class: "base_form" }, Xe = { ke
|
|
|
399
440
|
key: 0,
|
|
400
441
|
modelValue: t.value[g],
|
|
401
442
|
"onUpdate:modelValue": (E) => t.value[g] = E,
|
|
402
|
-
placeholder: _(o,
|
|
443
|
+
placeholder: _(o, X, f),
|
|
403
444
|
clearable: fe,
|
|
404
445
|
onChange: (E) => w(o, g)
|
|
405
446
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : C("", !0),
|
|
@@ -410,9 +451,9 @@ 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
|
-
placeholder: _(o,
|
|
456
|
+
placeholder: _(o, X, f),
|
|
416
457
|
onChange: (E) => w(o, g)
|
|
417
458
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "autosize", "maxlength", "clearable", "placeholder", "onChange"])) : C("", !0),
|
|
418
459
|
o === c(l).INPUT_NUMBER ? (n(), y(B, {
|
|
@@ -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),
|
|
@@ -436,7 +477,7 @@ const He = { class: "bsgoal-base-form" }, We = { class: "base_form" }, Xe = { ke
|
|
|
436
477
|
label: E.value
|
|
437
478
|
}, {
|
|
438
479
|
default: A(() => [
|
|
439
|
-
|
|
480
|
+
Y(j(E.label), 1)
|
|
440
481
|
]),
|
|
441
482
|
_: 2
|
|
442
483
|
}, 1032, ["label"]))), 128))
|
|
@@ -447,7 +488,7 @@ const He = { class: "bsgoal-base-form" }, We = { class: "base_form" }, Xe = { ke
|
|
|
447
488
|
key: 4,
|
|
448
489
|
modelValue: t.value[g],
|
|
449
490
|
"onUpdate:modelValue": (E) => t.value[g] = E,
|
|
450
|
-
placeholder: _(o,
|
|
491
|
+
placeholder: _(o, X, f),
|
|
451
492
|
onChange: (E) => w(o, g)
|
|
452
493
|
}, {
|
|
453
494
|
default: A(() => [
|
|
@@ -463,11 +504,11 @@ 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),
|
|
470
|
-
o === c(l).SWITCH ? (n(), y(
|
|
511
|
+
o === c(l).SWITCH ? (n(), y(H, {
|
|
471
512
|
key: 6,
|
|
472
513
|
modelValue: t.value[g],
|
|
473
514
|
"onUpdate:modelValue": (E) => t.value[g] = E,
|
|
@@ -486,7 +527,7 @@ const He = { class: "bsgoal-base-form" }, We = { class: "base_form" }, Xe = { ke
|
|
|
486
527
|
format: V(o, K),
|
|
487
528
|
"value-format": V(o, K),
|
|
488
529
|
type: o,
|
|
489
|
-
placeholder: _(o,
|
|
530
|
+
placeholder: _(o, X, f),
|
|
490
531
|
onChange: (E) => w(o, g)
|
|
491
532
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : C("", !0),
|
|
492
533
|
[
|
|
@@ -499,27 +540,27 @@ const He = { class: "bsgoal-base-form" }, We = { class: "base_form" }, Xe = { ke
|
|
|
499
540
|
"onUpdate:modelValue": (E) => t.value[g] = E,
|
|
500
541
|
type: o,
|
|
501
542
|
"value-format": V(o, K),
|
|
502
|
-
"start-placeholder": _(o,
|
|
503
|
-
"end-placeholder": _(o,
|
|
543
|
+
"start-placeholder": _(o, X, f)[0],
|
|
544
|
+
"end-placeholder": _(o, X, f)[1],
|
|
504
545
|
onChange: (E) => w(o, g)
|
|
505
546
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : C("", !0),
|
|
506
|
-
[c(l).TIME].includes(o) ? (n(), y(
|
|
547
|
+
[c(l).TIME].includes(o) ? (n(), y(W, {
|
|
507
548
|
key: 9,
|
|
508
549
|
modelValue: t.value[g],
|
|
509
550
|
"onUpdate:modelValue": (E) => t.value[g] = E,
|
|
510
551
|
"arrow-control": "",
|
|
511
552
|
"value-format": V(o, K),
|
|
512
|
-
placeholder: _(o,
|
|
553
|
+
placeholder: _(o, X, f),
|
|
513
554
|
onChange: (E) => w(o, g)
|
|
514
555
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : C("", !0),
|
|
515
|
-
[c(l).TIME_RANGE].includes(o) ? (n(), y(
|
|
556
|
+
[c(l).TIME_RANGE].includes(o) ? (n(), y(W, {
|
|
516
557
|
key: 10,
|
|
517
558
|
modelValue: t.value[g],
|
|
518
559
|
"onUpdate:modelValue": (E) => t.value[g] = E,
|
|
519
560
|
"is-range": "",
|
|
520
561
|
"value-format": V(o, K),
|
|
521
|
-
"start-placeholder": _(o,
|
|
522
|
-
"end-placeholder": _(o,
|
|
562
|
+
"start-placeholder": _(o, X, f)[0],
|
|
563
|
+
"end-placeholder": _(o, X, f)[1],
|
|
523
564
|
onChange: (E) => w(o, g)
|
|
524
565
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : C("", !0),
|
|
525
566
|
[c(l).CHECKBOX].includes(o) ? (n(), y(ae, {
|
|
@@ -534,7 +575,7 @@ const He = { class: "bsgoal-base-form" }, We = { class: "base_form" }, Xe = { ke
|
|
|
534
575
|
label: E.value
|
|
535
576
|
}, {
|
|
536
577
|
default: A(() => [
|
|
537
|
-
|
|
578
|
+
Y(j(E.label), 1)
|
|
538
579
|
]),
|
|
539
580
|
_: 2
|
|
540
581
|
}, 1032, ["label"]))), 128))
|
|
@@ -545,11 +586,10 @@ const He = { class: "bsgoal-base-form" }, We = { class: "base_form" }, Xe = { ke
|
|
|
545
586
|
key: 12,
|
|
546
587
|
modelValue: t.value[g],
|
|
547
588
|
"onUpdate:modelValue": (E) => t.value[g] = E,
|
|
548
|
-
label: G,
|
|
549
589
|
"true-label": z[0] ? z[0].value : "1",
|
|
550
590
|
"false-label": z[1] ? z[1].value : "0",
|
|
551
591
|
onChange: (E) => w(o, g)
|
|
552
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "
|
|
592
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "true-label", "false-label", "onChange"])) : C("", !0),
|
|
553
593
|
[].includes(o) ? (n(), b(P, { key: 13 }, [], 64)) : C("", !0)
|
|
554
594
|
], 64))
|
|
555
595
|
])
|
|
@@ -876,7 +916,7 @@ const mt = /* @__PURE__ */ we(ct, [["render", _t]]), gt = (e = null, { expressio
|
|
|
876
916
|
return "undefind";
|
|
877
917
|
}
|
|
878
918
|
}, vt = (e) => ft(e) === "boolean";
|
|
879
|
-
const
|
|
919
|
+
const pt = { class: "bsgoal-base-table" }, ht = { class: "base_table" }, Et = {
|
|
880
920
|
key: 0,
|
|
881
921
|
class: "base_table_menu"
|
|
882
922
|
}, bt = {
|
|
@@ -997,7 +1037,7 @@ const ht = { class: "bsgoal-base-table" }, pt = { class: "base_table" }, Et = {
|
|
|
997
1037
|
width: k
|
|
998
1038
|
}), [...L, ...F];
|
|
999
1039
|
}), r = N(null), u = Me("transferFoldStatus");
|
|
1000
|
-
|
|
1040
|
+
he(() => {
|
|
1001
1041
|
const { height: m } = a, I = u ? u.value : !1, k = c(a.expression);
|
|
1002
1042
|
vt(m) || gt(r, { arg: I, expression: k, height: m });
|
|
1003
1043
|
});
|
|
@@ -1006,30 +1046,30 @@ const ht = { class: "bsgoal-base-table" }, pt = { class: "base_table" }, Et = {
|
|
|
1006
1046
|
pageSize: "pageSize",
|
|
1007
1047
|
rows: "rows",
|
|
1008
1048
|
total: "total"
|
|
1009
|
-
}, t), _ = N(1), V = N(10), M = N(0), S = N({}), w = N(a.loading), U = N(), O = N({}),
|
|
1010
|
-
const { fetch: m, call: I, hasPage: k } = a, L = S.value, F = _.value,
|
|
1011
|
-
k && (R[d.currentPage] = F, R[d.pageSize] =
|
|
1049
|
+
}, t), _ = N(1), V = N(10), M = N(0), S = N({}), w = N(a.loading), U = N(), O = N({}), p = () => {
|
|
1050
|
+
const { fetch: m, call: I, hasPage: k } = a, L = S.value, F = _.value, H = V.value, R = Ee({}, L);
|
|
1051
|
+
k && (R[d.currentPage] = F, R[d.pageSize] = H), Ae(m(R), I, w, O);
|
|
1012
1052
|
};
|
|
1013
|
-
|
|
1053
|
+
he(() => {
|
|
1014
1054
|
U.value = a.data;
|
|
1015
1055
|
}), me(O, (m) => {
|
|
1016
1056
|
a.hasPage ? (U.value = m[d.rows], M.value = m[d.total]) : U.value = m;
|
|
1017
1057
|
});
|
|
1018
1058
|
const x = (m = {}) => {
|
|
1019
|
-
S.value = m, _.value = 1,
|
|
1059
|
+
S.value = m, _.value = 1, p();
|
|
1020
1060
|
}, T = (m = 1) => {
|
|
1021
1061
|
_.value = m;
|
|
1022
1062
|
}, B = (m = 10) => {
|
|
1023
1063
|
V.value = m;
|
|
1024
1064
|
};
|
|
1025
1065
|
return me([_, V], () => {
|
|
1026
|
-
|
|
1066
|
+
p();
|
|
1027
1067
|
}), s({
|
|
1028
1068
|
refreshList: x
|
|
1029
1069
|
}), (m, I) => {
|
|
1030
1070
|
const k = v("el-table-column"), L = v("el-table"), F = Re("loading");
|
|
1031
|
-
return n(), b("div",
|
|
1032
|
-
D("div",
|
|
1071
|
+
return n(), b("div", pt, [
|
|
1072
|
+
D("div", ht, [
|
|
1033
1073
|
m.$slots.menu ? (n(), b("div", Et, [
|
|
1034
1074
|
q(m.$slots, "menu")
|
|
1035
1075
|
])) : C("", !0),
|
|
@@ -1061,9 +1101,9 @@ const ht = { class: "bsgoal-base-table" }, pt = { class: "base_table" }, Et = {
|
|
|
1061
1101
|
width: "40"
|
|
1062
1102
|
})) : C("", !0),
|
|
1063
1103
|
(n(!0), b(P, null, Q(i.value, ({
|
|
1064
|
-
prop:
|
|
1104
|
+
prop: H = "",
|
|
1065
1105
|
label: R = "",
|
|
1066
|
-
align:
|
|
1106
|
+
align: W = "center",
|
|
1067
1107
|
width: ee = "",
|
|
1068
1108
|
fixed: ae = !1,
|
|
1069
1109
|
tooltip: le = !1,
|
|
@@ -1071,17 +1111,17 @@ const ht = { class: "bsgoal-base-table" }, pt = { class: "base_table" }, Et = {
|
|
|
1071
1111
|
} = {}, ie) => (n(), y(k, {
|
|
1072
1112
|
key: ie,
|
|
1073
1113
|
label: R,
|
|
1074
|
-
align:
|
|
1114
|
+
align: W,
|
|
1075
1115
|
width: ee,
|
|
1076
1116
|
fixed: ae,
|
|
1077
1117
|
"min-width": `${R.length * 14 + 24}px`
|
|
1078
1118
|
}, {
|
|
1079
1119
|
default: A(({ row: ue }) => [
|
|
1080
|
-
q(m.$slots,
|
|
1120
|
+
q(m.$slots, H, { row: ue }, () => [
|
|
1081
1121
|
$(tt, {
|
|
1082
1122
|
limit: re,
|
|
1083
1123
|
tooltip: le,
|
|
1084
|
-
data: ue[
|
|
1124
|
+
data: ue[H]
|
|
1085
1125
|
}, null, 8, ["limit", "tooltip", "data"])
|
|
1086
1126
|
])
|
|
1087
1127
|
]),
|
|
@@ -1299,7 +1339,7 @@ const ra = { class: "bsgoal-base-search-operation" }, ia = {
|
|
|
1299
1339
|
onClick: u[0] || (u[0] = (_) => r.$emit("on-search"))
|
|
1300
1340
|
}, {
|
|
1301
1341
|
default: A(() => [
|
|
1302
|
-
|
|
1342
|
+
Y("搜索")
|
|
1303
1343
|
]),
|
|
1304
1344
|
_: 1
|
|
1305
1345
|
}, 8, ["icon"]),
|
|
@@ -1308,7 +1348,7 @@ const ra = { class: "bsgoal-base-search-operation" }, ia = {
|
|
|
1308
1348
|
onClick: u[1] || (u[1] = (_) => r.$emit("on-clear"))
|
|
1309
1349
|
}, {
|
|
1310
1350
|
default: A(() => [
|
|
1311
|
-
|
|
1351
|
+
Y("清空")
|
|
1312
1352
|
]),
|
|
1313
1353
|
_: 1
|
|
1314
1354
|
}, 8, ["icon"]),
|
|
@@ -1318,7 +1358,7 @@ const ra = { class: "bsgoal-base-search-operation" }, ia = {
|
|
|
1318
1358
|
style: { color: "var(--el-color-primary)" },
|
|
1319
1359
|
onClick: i
|
|
1320
1360
|
}, [
|
|
1321
|
-
|
|
1361
|
+
Y(j(a.value ? "收起" : "展开"), 1),
|
|
1322
1362
|
$(d, { color: "#409EFC" }, {
|
|
1323
1363
|
default: A(() => [
|
|
1324
1364
|
J($(c(Yt), null, null, 512), [
|
|
@@ -1393,9 +1433,9 @@ const _a = { class: "bsgoal-base-cascader" }, ma = {
|
|
|
1393
1433
|
};
|
|
1394
1434
|
}
|
|
1395
1435
|
});
|
|
1396
|
-
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 = {
|
|
1397
1437
|
name: "BsgoalBaseSearch"
|
|
1398
|
-
}, Ea = /* @__PURE__ */ Object.assign(
|
|
1438
|
+
}, Ea = /* @__PURE__ */ Object.assign(ha, {
|
|
1399
1439
|
props: {
|
|
1400
1440
|
/**
|
|
1401
1441
|
* >----------props----------<
|
|
@@ -1403,7 +1443,7 @@ const fa = { class: "bsgoal-base-search" }, va = { class: "base_search" }, ha =
|
|
|
1403
1443
|
* label:'' // 名称
|
|
1404
1444
|
* value:'' // 值
|
|
1405
1445
|
* prop:'' // 绑定字段
|
|
1406
|
-
* type:'text' // 内容组件的类型 : 参照
|
|
1446
|
+
* type:'text' // 内容组件的类型 : 参照 componentTypeEnums
|
|
1407
1447
|
* placeholder:'' // placeholder 提示文本
|
|
1408
1448
|
* readonly: false // 是否为只读文本
|
|
1409
1449
|
* clearable: true //是否为可清空
|
|
@@ -1438,7 +1478,7 @@ const fa = { class: "bsgoal-base-search" }, va = { class: "base_search" }, ha =
|
|
|
1438
1478
|
emits: ["on-search", "on-clear", "on-change", "on-fold"],
|
|
1439
1479
|
setup(e, { expose: s, emit: a }) {
|
|
1440
1480
|
const i = e, r = N(null), u = xe.align, t = N({});
|
|
1441
|
-
|
|
1481
|
+
he(() => {
|
|
1442
1482
|
const { configOptions: x } = i;
|
|
1443
1483
|
c(x).forEach((B) => {
|
|
1444
1484
|
const { value: m, prop: I = "", type: k = "" } = B;
|
|
@@ -1499,15 +1539,15 @@ const fa = { class: "bsgoal-base-search" }, va = { class: "base_search" }, ha =
|
|
|
1499
1539
|
}, M = () => {
|
|
1500
1540
|
const { configOptions: x } = i, T = c(t), B = c(x), m = {};
|
|
1501
1541
|
for (const I of B) {
|
|
1502
|
-
const { type: k = "", range: L = [], prop: F = "", single:
|
|
1503
|
-
if ([l.CASCADER].includes(k) && Array.isArray(R) &&
|
|
1504
|
-
const
|
|
1505
|
-
|
|
1542
|
+
const { type: k = "", range: L = [], prop: F = "", single: H = !1 } = I, R = T[F];
|
|
1543
|
+
if ([l.CASCADER].includes(k) && Array.isArray(R) && H) {
|
|
1544
|
+
const W = R.length;
|
|
1545
|
+
W ? m[F] = R[W - 1] : m[F] = R;
|
|
1506
1546
|
} else
|
|
1507
1547
|
Fe(R) ? m[F] = Ue(R) : m[F] = R;
|
|
1508
1548
|
if (k.endsWith("range") && L && L.length === 2) {
|
|
1509
|
-
const { 0:
|
|
1510
|
-
m[ae] =
|
|
1549
|
+
const { 0: W = "", 1: ee = "" } = R, { 0: ae = "", 1: le = "" } = L;
|
|
1550
|
+
m[ae] = W, m[le] = ee;
|
|
1511
1551
|
}
|
|
1512
1552
|
}
|
|
1513
1553
|
a("on-search", m), a("update:modelValue", m);
|
|
@@ -1519,7 +1559,7 @@ const fa = { class: "bsgoal-base-search" }, va = { class: "base_search" }, ha =
|
|
|
1519
1559
|
r.value.resetFields(), a("on-clear", t.value);
|
|
1520
1560
|
}, w = Me("transferFoldStatus"), U = N(!1), O = (x = !1) => {
|
|
1521
1561
|
U.value = x, w && (w.value = x), a("on-fold", U);
|
|
1522
|
-
},
|
|
1562
|
+
}, p = (x, T) => {
|
|
1523
1563
|
M();
|
|
1524
1564
|
const B = {
|
|
1525
1565
|
type: x,
|
|
@@ -1531,10 +1571,10 @@ const fa = { class: "bsgoal-base-search" }, va = { class: "base_search" }, ha =
|
|
|
1531
1571
|
return s({
|
|
1532
1572
|
triggerOperationSearch: M
|
|
1533
1573
|
}), (x, T) => {
|
|
1534
|
-
const B = v("el-input"), m = v("el-input-number"), I = v("el-radio"), k = v("el-radio-group"), L = v("el-option"), F = v("el-select"),
|
|
1574
|
+
const B = v("el-input"), m = v("el-input-number"), I = v("el-radio"), k = v("el-radio-group"), L = v("el-option"), F = v("el-select"), H = v("el-slider"), R = v("el-switch"), W = v("el-date-picker"), ee = v("el-time-picker"), ae = v("el-checkbox"), le = v("el-checkbox-group"), re = v("el-form-item"), ie = v("el-col"), ue = v("el-row"), X = v("el-form");
|
|
1535
1575
|
return n(), b("div", fa, [
|
|
1536
1576
|
D("div", va, [
|
|
1537
|
-
J((n(), y(
|
|
1577
|
+
J((n(), y(X, {
|
|
1538
1578
|
ref_key: "EL_FORM_REF",
|
|
1539
1579
|
ref: r,
|
|
1540
1580
|
"label-suffix": ":",
|
|
@@ -1548,10 +1588,10 @@ const fa = { class: "bsgoal-base-search" }, va = { class: "base_search" }, ha =
|
|
|
1548
1588
|
label: g = "",
|
|
1549
1589
|
prop: o = "",
|
|
1550
1590
|
type: f = "text",
|
|
1551
|
-
placeholder:
|
|
1591
|
+
placeholder: G = "",
|
|
1552
1592
|
readonly: fe = !1,
|
|
1553
1593
|
clearable: ve = !0,
|
|
1554
|
-
rows:
|
|
1594
|
+
rows: pe = 2,
|
|
1555
1595
|
min: de = 1,
|
|
1556
1596
|
max: z = 10,
|
|
1557
1597
|
range: K = [],
|
|
@@ -1568,45 +1608,45 @@ const fa = { class: "bsgoal-base-search" }, va = { class: "base_search" }, ha =
|
|
|
1568
1608
|
prop: o
|
|
1569
1609
|
}, {
|
|
1570
1610
|
default: A(() => [
|
|
1571
|
-
fe ? (n(), b("div",
|
|
1611
|
+
fe ? (n(), b("div", pa, j(t.value[o]), 1)) : (n(), b(P, { key: 0 }, [
|
|
1572
1612
|
f === c(l).INPUT ? (n(), y(B, {
|
|
1573
1613
|
key: 0,
|
|
1574
1614
|
modelValue: t.value[o],
|
|
1575
|
-
"onUpdate:modelValue": (
|
|
1576
|
-
placeholder: _(f, g,
|
|
1615
|
+
"onUpdate:modelValue": (h) => t.value[o] = h,
|
|
1616
|
+
placeholder: _(f, g, G),
|
|
1577
1617
|
clearable: ve
|
|
1578
1618
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable"])) : C("", !0),
|
|
1579
1619
|
f === c(l).INPUT_TEXT_AREA ? (n(), y(B, {
|
|
1580
1620
|
key: 1,
|
|
1581
1621
|
modelValue: t.value[o],
|
|
1582
|
-
"onUpdate:modelValue": (
|
|
1622
|
+
"onUpdate:modelValue": (h) => t.value[o] = h,
|
|
1583
1623
|
type: "textarea",
|
|
1584
|
-
rows:
|
|
1624
|
+
rows: pe,
|
|
1585
1625
|
clearable: ve,
|
|
1586
|
-
placeholder: _(f, g,
|
|
1587
|
-
onChange: (
|
|
1626
|
+
placeholder: _(f, g, G),
|
|
1627
|
+
onChange: (h) => p(f, o)
|
|
1588
1628
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : C("", !0),
|
|
1589
1629
|
f === c(l).INPUT_NUMBER ? (n(), y(m, {
|
|
1590
1630
|
key: 2,
|
|
1591
1631
|
modelValue: x.num,
|
|
1592
|
-
"onUpdate:modelValue": T[0] || (T[0] = (
|
|
1632
|
+
"onUpdate:modelValue": T[0] || (T[0] = (h) => x.num = h),
|
|
1593
1633
|
min: de,
|
|
1594
1634
|
max: z,
|
|
1595
|
-
onChange:
|
|
1635
|
+
onChange: p
|
|
1596
1636
|
}, null, 8, ["modelValue", "min", "max"])) : C("", !0),
|
|
1597
1637
|
f === c(l).RADIO ? (n(), y(k, {
|
|
1598
1638
|
key: 3,
|
|
1599
1639
|
modelValue: t.value[o],
|
|
1600
|
-
"onUpdate:modelValue": (
|
|
1601
|
-
onChange: (
|
|
1640
|
+
"onUpdate:modelValue": (h) => t.value[o] = h,
|
|
1641
|
+
onChange: (h) => p(f, o)
|
|
1602
1642
|
}, {
|
|
1603
1643
|
default: A(() => [
|
|
1604
|
-
(n(!0), b(P, null, Q(K, (
|
|
1644
|
+
(n(!0), b(P, null, Q(K, (h, oe) => (n(), y(I, {
|
|
1605
1645
|
key: oe,
|
|
1606
|
-
label:
|
|
1646
|
+
label: h.value
|
|
1607
1647
|
}, {
|
|
1608
1648
|
default: A(() => [
|
|
1609
|
-
|
|
1649
|
+
Y(j(h.label), 1)
|
|
1610
1650
|
]),
|
|
1611
1651
|
_: 2
|
|
1612
1652
|
}, 1032, ["label"]))), 128))
|
|
@@ -1616,93 +1656,93 @@ const fa = { class: "bsgoal-base-search" }, va = { class: "base_search" }, ha =
|
|
|
1616
1656
|
f === c(l).SELECT ? (n(), y(F, {
|
|
1617
1657
|
key: 4,
|
|
1618
1658
|
modelValue: t.value[o],
|
|
1619
|
-
"onUpdate:modelValue": (
|
|
1620
|
-
placeholder: _(f, g,
|
|
1621
|
-
onChange: (
|
|
1659
|
+
"onUpdate:modelValue": (h) => t.value[o] = h,
|
|
1660
|
+
placeholder: _(f, g, G),
|
|
1661
|
+
onChange: (h) => p(f, o)
|
|
1622
1662
|
}, {
|
|
1623
1663
|
default: A(() => [
|
|
1624
|
-
(n(!0), b(P, null, Q(K, (
|
|
1664
|
+
(n(!0), b(P, null, Q(K, (h, oe) => (n(), y(L, {
|
|
1625
1665
|
key: oe,
|
|
1626
|
-
label:
|
|
1627
|
-
value:
|
|
1666
|
+
label: h.label,
|
|
1667
|
+
value: h.value
|
|
1628
1668
|
}, null, 8, ["label", "value"]))), 128))
|
|
1629
1669
|
]),
|
|
1630
1670
|
_: 2
|
|
1631
1671
|
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : C("", !0),
|
|
1632
|
-
f === c(l).SLIDER ? (n(), y(
|
|
1672
|
+
f === c(l).SLIDER ? (n(), y(H, {
|
|
1633
1673
|
key: 5,
|
|
1634
1674
|
modelValue: t.value[o],
|
|
1635
|
-
"onUpdate:modelValue": (
|
|
1675
|
+
"onUpdate:modelValue": (h) => t.value[o] = h,
|
|
1636
1676
|
min: de,
|
|
1637
1677
|
max: z,
|
|
1638
|
-
onChange: (
|
|
1678
|
+
onChange: (h) => p(f, o)
|
|
1639
1679
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : C("", !0),
|
|
1640
1680
|
f === c(l).SWITCH ? (n(), y(R, {
|
|
1641
1681
|
key: 6,
|
|
1642
1682
|
modelValue: t.value[o],
|
|
1643
|
-
"onUpdate:modelValue": (
|
|
1683
|
+
"onUpdate:modelValue": (h) => t.value[o] = h,
|
|
1644
1684
|
"active-value": K[0] || !0,
|
|
1645
1685
|
"inactive-value": K[1] || !1,
|
|
1646
|
-
onChange: (
|
|
1686
|
+
onChange: (h) => p(f, o)
|
|
1647
1687
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : C("", !0),
|
|
1648
1688
|
[c(l).DATE, c(l).MONTH, c(l).YEAR, c(l).DATE_TIME].includes(
|
|
1649
1689
|
f
|
|
1650
|
-
) ? (n(), y(
|
|
1690
|
+
) ? (n(), y(W, {
|
|
1651
1691
|
key: 7,
|
|
1652
1692
|
modelValue: t.value[o],
|
|
1653
|
-
"onUpdate:modelValue": (
|
|
1693
|
+
"onUpdate:modelValue": (h) => t.value[o] = h,
|
|
1654
1694
|
format: V(f, ne),
|
|
1655
1695
|
"value-format": V(f, ne),
|
|
1656
1696
|
type: f,
|
|
1657
|
-
placeholder: _(f, g,
|
|
1658
|
-
onChange: (
|
|
1697
|
+
placeholder: _(f, g, G),
|
|
1698
|
+
onChange: (h) => p(f, o)
|
|
1659
1699
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : C("", !0),
|
|
1660
1700
|
[
|
|
1661
1701
|
c(l).DATE_RANGE,
|
|
1662
1702
|
c(l).MONTH_RANGE,
|
|
1663
1703
|
c(l).DATE_TIME_RANGE
|
|
1664
|
-
].includes(f) ? (n(), y(
|
|
1704
|
+
].includes(f) ? (n(), y(W, {
|
|
1665
1705
|
key: 8,
|
|
1666
1706
|
modelValue: t.value[o],
|
|
1667
|
-
"onUpdate:modelValue": (
|
|
1707
|
+
"onUpdate:modelValue": (h) => t.value[o] = h,
|
|
1668
1708
|
type: f,
|
|
1669
1709
|
"value-format": V(f, ne),
|
|
1670
|
-
"start-placeholder": _(f, g,
|
|
1671
|
-
"end-placeholder": _(f, g,
|
|
1672
|
-
onChange: (
|
|
1710
|
+
"start-placeholder": _(f, g, G)[0],
|
|
1711
|
+
"end-placeholder": _(f, g, G)[1],
|
|
1712
|
+
onChange: (h) => p(f, o)
|
|
1673
1713
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : C("", !0),
|
|
1674
1714
|
[c(l).TIME].includes(f) ? (n(), y(ee, {
|
|
1675
1715
|
key: 9,
|
|
1676
1716
|
modelValue: t.value[o],
|
|
1677
|
-
"onUpdate:modelValue": (
|
|
1717
|
+
"onUpdate:modelValue": (h) => t.value[o] = h,
|
|
1678
1718
|
"arrow-control": "",
|
|
1679
1719
|
"value-format": V(f, ne),
|
|
1680
|
-
placeholder: _(f, g,
|
|
1681
|
-
onChange: (
|
|
1720
|
+
placeholder: _(f, g, G),
|
|
1721
|
+
onChange: (h) => p(f, o)
|
|
1682
1722
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : C("", !0),
|
|
1683
1723
|
[c(l).TIME_RANGE].includes(f) ? (n(), y(ee, {
|
|
1684
1724
|
key: 10,
|
|
1685
1725
|
modelValue: t.value[o],
|
|
1686
|
-
"onUpdate:modelValue": (
|
|
1726
|
+
"onUpdate:modelValue": (h) => t.value[o] = h,
|
|
1687
1727
|
"is-range": "",
|
|
1688
1728
|
"value-format": V(f, ne),
|
|
1689
|
-
"start-placeholder": _(f, g,
|
|
1690
|
-
"end-placeholder": _(f, g,
|
|
1691
|
-
onChange: (
|
|
1729
|
+
"start-placeholder": _(f, g, G)[0],
|
|
1730
|
+
"end-placeholder": _(f, g, G)[1],
|
|
1731
|
+
onChange: (h) => p(f, o)
|
|
1692
1732
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : C("", !0),
|
|
1693
1733
|
[c(l).CHECKBOX].includes(f) ? (n(), y(le, {
|
|
1694
1734
|
key: 11,
|
|
1695
1735
|
modelValue: t.value[o],
|
|
1696
|
-
"onUpdate:modelValue": (
|
|
1697
|
-
onChange: (
|
|
1736
|
+
"onUpdate:modelValue": (h) => t.value[o] = h,
|
|
1737
|
+
onChange: (h) => p(f, o)
|
|
1698
1738
|
}, {
|
|
1699
1739
|
default: A(() => [
|
|
1700
|
-
(n(!0), b(P, null, Q(K, (
|
|
1740
|
+
(n(!0), b(P, null, Q(K, (h, oe) => (n(), y(ae, {
|
|
1701
1741
|
key: oe,
|
|
1702
|
-
label:
|
|
1742
|
+
label: h.value
|
|
1703
1743
|
}, {
|
|
1704
1744
|
default: A(() => [
|
|
1705
|
-
|
|
1745
|
+
Y(j(h.label), 1)
|
|
1706
1746
|
]),
|
|
1707
1747
|
_: 2
|
|
1708
1748
|
}, 1032, ["label"]))), 128))
|
|
@@ -1712,10 +1752,10 @@ const fa = { class: "bsgoal-base-search" }, va = { class: "base_search" }, ha =
|
|
|
1712
1752
|
[c(l).CASCADER].includes(f) ? (n(), y(ga, {
|
|
1713
1753
|
key: 12,
|
|
1714
1754
|
modelValue: t.value[o],
|
|
1715
|
-
"onUpdate:modelValue": (
|
|
1755
|
+
"onUpdate:modelValue": (h) => t.value[o] = h,
|
|
1716
1756
|
"data-options": K,
|
|
1717
|
-
placeholder: _(f, g,
|
|
1718
|
-
onOnChange: (
|
|
1757
|
+
placeholder: _(f, g, G),
|
|
1758
|
+
onOnChange: (h) => p(f, o)
|
|
1719
1759
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "data-options", "placeholder", "onOnChange"])) : C("", !0),
|
|
1720
1760
|
[].includes(f) ? (n(), b(P, { key: 13 }, [], 64)) : C("", !0),
|
|
1721
1761
|
[c(l).OPERATION].includes(f) ? (n(), y(da, {
|
|
@@ -1860,23 +1900,23 @@ const ba = { class: "bsgoal-base-search-table" }, ya = { class: "base_search_tab
|
|
|
1860
1900
|
const a = e, i = N(!1);
|
|
1861
1901
|
Le("transferFoldStatus", i);
|
|
1862
1902
|
const r = c(a.configOptions), u = Z(() => r.filter((O) => {
|
|
1863
|
-
const { type:
|
|
1864
|
-
return !!
|
|
1903
|
+
const { type: p = "" } = O;
|
|
1904
|
+
return !!p;
|
|
1865
1905
|
})), t = Z(() => r.filter((O) => {
|
|
1866
|
-
const { item:
|
|
1867
|
-
return !
|
|
1906
|
+
const { item: p = !1 } = O;
|
|
1907
|
+
return !p;
|
|
1868
1908
|
})), d = Be(), _ = N(Object.keys(d)), V = N(null), M = (O) => {
|
|
1869
1909
|
V.value.refreshList(O);
|
|
1870
1910
|
}, S = Z(() => {
|
|
1871
|
-
const { expression: O, hasPage:
|
|
1872
|
-
return
|
|
1911
|
+
const { expression: O, hasPage: p } = a;
|
|
1912
|
+
return p === !1 ? 25 : O;
|
|
1873
1913
|
}), w = N(null);
|
|
1874
1914
|
return s({
|
|
1875
1915
|
refresh: () => {
|
|
1876
1916
|
const { hasSearch: O } = a;
|
|
1877
1917
|
c(O) && w.value.triggerOperationSearch();
|
|
1878
1918
|
}
|
|
1879
|
-
}), (O,
|
|
1919
|
+
}), (O, p) => (n(), b("div", ba, [
|
|
1880
1920
|
D("div", ya, [
|
|
1881
1921
|
J($(Ea, {
|
|
1882
1922
|
ref_key: "BSGOAL_BASE_SEARCH_REF",
|
|
@@ -2033,7 +2073,7 @@ const $a = { class: "bsgoal-base-tree" }, Ma = { class: "base_tree" }, Ba = { cl
|
|
|
2033
2073
|
lazy: "",
|
|
2034
2074
|
"highlight-current": "",
|
|
2035
2075
|
"empty-text": "暂无数据",
|
|
2036
|
-
load: (O,
|
|
2076
|
+
load: (O, p) => V(O, p, a),
|
|
2037
2077
|
"expand-on-click-node": !1,
|
|
2038
2078
|
props: e.treeProps,
|
|
2039
2079
|
"filter-node-method": t,
|
|
@@ -2173,7 +2213,7 @@ const ka = { class: "bsgoal-base-dialog" }, Sa = { class: "base_dialog" }, Oa =
|
|
|
2173
2213
|
D("span", Da, [
|
|
2174
2214
|
$(V, { onClick: r }, {
|
|
2175
2215
|
default: A(() => [
|
|
2176
|
-
|
|
2216
|
+
Y(j(e.cancelTxt), 1)
|
|
2177
2217
|
]),
|
|
2178
2218
|
_: 1
|
|
2179
2219
|
}),
|
|
@@ -2182,7 +2222,7 @@ const ka = { class: "bsgoal-base-dialog" }, Sa = { class: "base_dialog" }, Oa =
|
|
|
2182
2222
|
onClick: u
|
|
2183
2223
|
}, {
|
|
2184
2224
|
default: A(() => [
|
|
2185
|
-
|
|
2225
|
+
Y(j(e.confirmTxt), 1)
|
|
2186
2226
|
]),
|
|
2187
2227
|
_: 1
|
|
2188
2228
|
})
|
|
@@ -2271,7 +2311,7 @@ const Fa = { class: "bsgoal-base-tabs" }, Ua = {
|
|
|
2271
2311
|
}, {
|
|
2272
2312
|
default: A(() => [
|
|
2273
2313
|
q(u.$slots, M, {}, () => [
|
|
2274
|
-
|
|
2314
|
+
Y(j(V), 1)
|
|
2275
2315
|
])
|
|
2276
2316
|
]),
|
|
2277
2317
|
_: 2
|
|
@@ -2326,7 +2366,7 @@ const Pa = { class: "bsgoal-base-link" }, za = {
|
|
|
2326
2366
|
}, {
|
|
2327
2367
|
default: A(() => [
|
|
2328
2368
|
q(i.$slots, "default", {}, () => [
|
|
2329
|
-
|
|
2369
|
+
Y(j(e.content), 1)
|
|
2330
2370
|
], !0)
|
|
2331
2371
|
]),
|
|
2332
2372
|
_: 3
|
|
@@ -2411,7 +2451,7 @@ const Ya = { class: "bsgoal-base-button" }, Ha = {
|
|
|
2411
2451
|
plain: e.plain
|
|
2412
2452
|
}, {
|
|
2413
2453
|
default: A(() => [
|
|
2414
|
-
|
|
2454
|
+
Y(j(e.content), 1)
|
|
2415
2455
|
]),
|
|
2416
2456
|
_: 1
|
|
2417
2457
|
}, 8, ["type", "icon", "loading", "plain"])
|
|
@@ -2469,7 +2509,7 @@ const Xa = { class: "bsgoal-base-layout" }, Ka = {
|
|
|
2469
2509
|
]);
|
|
2470
2510
|
};
|
|
2471
2511
|
}
|
|
2472
|
-
}),
|
|
2512
|
+
}), Za = l, al = Ae, ll = {
|
|
2473
2513
|
install(e, s = {}) {
|
|
2474
2514
|
const { exclude: a = [] } = s, i = {
|
|
2475
2515
|
BsgoalBaseForm: Qe,
|
|
@@ -2486,12 +2526,12 @@ const Xa = { class: "bsgoal-base-layout" }, Ka = {
|
|
|
2486
2526
|
for (const [r, u] of Object.entries(i))
|
|
2487
2527
|
a.includes(r) || e.component(r, u);
|
|
2488
2528
|
},
|
|
2489
|
-
|
|
2529
|
+
ComponentTypeEnums: Za,
|
|
2490
2530
|
useFetch: Ae
|
|
2491
2531
|
};
|
|
2492
2532
|
export {
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2533
|
+
Za as ComponentTypeEnums,
|
|
2534
|
+
ll as default,
|
|
2535
|
+
al as useFetchApi
|
|
2496
2536
|
};
|
|
2497
2537
|
//# sourceMappingURL=index.mjs.map
|