@bsgoal/common 1.8.5 → 1.8.7
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 +550 -537
- 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 +23 -2
- package/src/components/bsgoal-base-form/index.vue +20 -6
- package/src/enums/enumType.js +2 -1
package/dist/index.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var De = Object.prototype.hasOwnProperty,
|
|
4
|
-
var
|
|
1
|
+
var Oe = Object.defineProperty;
|
|
2
|
+
var Ve = Object.getOwnPropertySymbols;
|
|
3
|
+
var De = Object.prototype.hasOwnProperty, Ie = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var Ce = (e, s, a) => s in e ? Oe(e, s, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[s] = a, Ee = (e, s) => {
|
|
5
5
|
for (var a in s || (s = {}))
|
|
6
|
-
De.call(s, a) &&
|
|
7
|
-
if (
|
|
8
|
-
for (var a of
|
|
9
|
-
|
|
6
|
+
De.call(s, a) && Ce(e, a, s[a]);
|
|
7
|
+
if (Ve)
|
|
8
|
+
for (var a of Ve(s))
|
|
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
|
|
12
|
+
import { computed as Z, resolveComponent as v, openBlock as n, createElementBlock as b, createVNode as $, withCtx as A, renderSlot as q, createTextVNode as H, toDisplayString as j, ref as N, watchEffect as pe, unref as c, createElementVNode as D, withDirectives as J, createBlock as y, Fragment as P, renderList as Q, createCommentVNode as C, nextTick as $e, inject as Me, watch as me, resolveDirective as Re, normalizeClass as ge, vShow as te, isProxy as Fe, toRaw as Ue, provide as Le, useSlots as Be, createSlots as Pe, normalizeStyle as ze } from "vue";
|
|
13
13
|
import { ElMessage as je } from "element-plus";
|
|
14
14
|
const l = {
|
|
15
15
|
INPUT: "text",
|
|
@@ -31,10 +31,11 @@ const l = {
|
|
|
31
31
|
DATE_TIME: "datetime",
|
|
32
32
|
DATE_TIME_RANGE: "datetimerange",
|
|
33
33
|
OPERATION: "operation",
|
|
34
|
-
CASCADER: "cascader"
|
|
34
|
+
CASCADER: "cascader",
|
|
35
|
+
CHECKBOX_SINGLE: "checkboxsingle"
|
|
35
36
|
};
|
|
36
|
-
let
|
|
37
|
-
const
|
|
37
|
+
let be = null;
|
|
38
|
+
const ye = (e) => {
|
|
38
39
|
const s = [], a = [], i = (u = []) => {
|
|
39
40
|
const t = u.map((_) => _.width), d = Math.max(...t);
|
|
40
41
|
u.forEach((_) => {
|
|
@@ -54,24 +55,24 @@ const be = (e) => {
|
|
|
54
55
|
}
|
|
55
56
|
}
|
|
56
57
|
};
|
|
57
|
-
|
|
58
|
+
be && clearTimeout(be), be = setTimeout(() => {
|
|
58
59
|
r(), i(s), i(a);
|
|
59
60
|
}, 50);
|
|
60
|
-
},
|
|
61
|
+
}, xe = {
|
|
61
62
|
/**
|
|
62
63
|
* 表单自动左对齐
|
|
63
64
|
*/
|
|
64
65
|
align: {
|
|
65
66
|
created(e) {
|
|
66
67
|
window.addEventListener("resize", () => {
|
|
67
|
-
|
|
68
|
+
ye(e);
|
|
68
69
|
});
|
|
69
70
|
},
|
|
70
71
|
mounted(e) {
|
|
71
|
-
|
|
72
|
+
ye(e);
|
|
72
73
|
},
|
|
73
74
|
unmounted(e) {
|
|
74
|
-
window.removeEventListener("resize",
|
|
75
|
+
window.removeEventListener("resize", ye(e));
|
|
75
76
|
}
|
|
76
77
|
},
|
|
77
78
|
/**
|
|
@@ -84,9 +85,9 @@ const be = (e) => {
|
|
|
84
85
|
}
|
|
85
86
|
}
|
|
86
87
|
};
|
|
87
|
-
const
|
|
88
|
+
const Ge = { class: "bsgoal-base-tooltip" }, Ye = {
|
|
88
89
|
name: "BsgoalBaseTooltip"
|
|
89
|
-
},
|
|
90
|
+
}, Ne = /* @__PURE__ */ Object.assign(Ye, {
|
|
90
91
|
props: {
|
|
91
92
|
/**
|
|
92
93
|
* 文字提示内容
|
|
@@ -137,8 +138,8 @@ const ze = { class: "bsgoal-base-tooltip" }, Ge = {
|
|
|
137
138
|
});
|
|
138
139
|
return (r, u) => {
|
|
139
140
|
const t = v("el-tooltip");
|
|
140
|
-
return n(), b("div",
|
|
141
|
-
|
|
141
|
+
return n(), b("div", Ge, [
|
|
142
|
+
$(t, {
|
|
142
143
|
class: "base_tooltip",
|
|
143
144
|
effect: "dark",
|
|
144
145
|
"popper-class": "base_tooltip_popper",
|
|
@@ -147,8 +148,8 @@ const ze = { class: "bsgoal-base-tooltip" }, Ge = {
|
|
|
147
148
|
disabled: i.value
|
|
148
149
|
}, {
|
|
149
150
|
default: A(() => [
|
|
150
|
-
|
|
151
|
-
|
|
151
|
+
q(r.$slots, "default", {}, () => [
|
|
152
|
+
H(j(a.value), 1)
|
|
152
153
|
])
|
|
153
154
|
]),
|
|
154
155
|
_: 3
|
|
@@ -157,9 +158,9 @@ const ze = { class: "bsgoal-base-tooltip" }, Ge = {
|
|
|
157
158
|
};
|
|
158
159
|
}
|
|
159
160
|
});
|
|
160
|
-
const
|
|
161
|
+
const He = { class: "bsgoal-base-form" }, We = { class: "base_form" }, Xe = { key: 1 }, Ke = {
|
|
161
162
|
name: "BsgoalBaseForm"
|
|
162
|
-
}, Qe = /* @__PURE__ */ Object.assign(
|
|
163
|
+
}, Qe = /* @__PURE__ */ Object.assign(Ke, {
|
|
163
164
|
props: {
|
|
164
165
|
/**
|
|
165
166
|
* >----------props----------<
|
|
@@ -229,22 +230,22 @@ const Ye = { class: "bsgoal-base-form" }, He = { class: "base_form" }, We = { ke
|
|
|
229
230
|
},
|
|
230
231
|
emits: ["on-form", "on-clear", "on-change", "on-fold"],
|
|
231
232
|
setup(e, { expose: s, emit: a }) {
|
|
232
|
-
const i = e, r =
|
|
233
|
+
const i = e, r = N(null), u = xe.align, t = N(i.bindModel);
|
|
233
234
|
pe(() => {
|
|
234
235
|
const { configOptions: h, values: x } = i, T = c(h), B = c(x);
|
|
235
236
|
T.forEach((m) => {
|
|
236
|
-
const { value: I = "", prop:
|
|
237
|
+
const { value: I = "", prop: k = "", type: L = "" } = m;
|
|
237
238
|
[l.INPUT, l.INPUT_TEXT_AREA].includes(L);
|
|
238
|
-
const F = c(t)[
|
|
239
|
-
t.value[
|
|
239
|
+
const F = c(t)[k];
|
|
240
|
+
t.value[k] = F || B[k] || I;
|
|
240
241
|
});
|
|
241
242
|
});
|
|
242
243
|
const d = Z(() => {
|
|
243
244
|
const { configOptions: h } = i;
|
|
244
245
|
return c(h).map((B) => {
|
|
245
246
|
let { rules: m = !1, label: I = "" } = B;
|
|
246
|
-
const
|
|
247
|
-
return m && (typeof m == "boolean" ? m = [
|
|
247
|
+
const k = { required: !0, message: `${I}不能为空`, trigger: "blur" };
|
|
248
|
+
return m && (typeof m == "boolean" ? m = [k] : Array.isArray(m) ? m = [k, ...m] : m = [k, m]), B.rules = m, B;
|
|
248
249
|
});
|
|
249
250
|
}), _ = (h = "", x = "", T = "") => {
|
|
250
251
|
if (!T)
|
|
@@ -294,16 +295,16 @@ const Ye = { class: "bsgoal-base-form" }, He = { class: "base_form" }, We = { ke
|
|
|
294
295
|
}, M = () => {
|
|
295
296
|
const h = c(t), { configOptions: x } = i, T = c(x);
|
|
296
297
|
for (const B of T) {
|
|
297
|
-
const { type: m = "", range: I = [], prop:
|
|
298
|
+
const { type: m = "", range: I = [], prop: k = "" } = B;
|
|
298
299
|
if (m.endsWith("range") && I && I.length === 2) {
|
|
299
|
-
const { 0: L = "", 1: F = "" } = h[
|
|
300
|
-
h[
|
|
300
|
+
const { 0: L = "", 1: F = "" } = h[k], { 0: W = "", 1: R = "" } = I;
|
|
301
|
+
h[W] = L, h[R] = F;
|
|
301
302
|
}
|
|
302
303
|
}
|
|
303
304
|
return a("on-form", h), h;
|
|
304
305
|
}, S = () => {
|
|
305
306
|
r.value.resetFields(), a("on-clear", t.value);
|
|
306
|
-
},
|
|
307
|
+
}, w = (h, x) => {
|
|
307
308
|
const T = {
|
|
308
309
|
type: h,
|
|
309
310
|
prop: x,
|
|
@@ -326,13 +327,13 @@ const Ye = { class: "bsgoal-base-form" }, He = { class: "base_form" }, We = { ke
|
|
|
326
327
|
je.error(m);
|
|
327
328
|
}
|
|
328
329
|
});
|
|
329
|
-
},
|
|
330
|
-
const { 0: T = {}, 1: B = {} } = h, { value: m = !1, label: I = "" } = T, { value:
|
|
330
|
+
}, O = (h = [], x = "") => {
|
|
331
|
+
const { 0: T = {}, 1: B = {} } = h, { value: m = !1, label: I = "" } = T, { value: k = !1, label: L = "" } = B;
|
|
331
332
|
switch (x) {
|
|
332
333
|
case "active-value":
|
|
333
334
|
return m;
|
|
334
335
|
case "inactive-value":
|
|
335
|
-
return
|
|
336
|
+
return k;
|
|
336
337
|
case "active-text":
|
|
337
338
|
return I;
|
|
338
339
|
case "inactive-text":
|
|
@@ -344,200 +345,212 @@ const Ye = { class: "bsgoal-base-form" }, He = { class: "base_form" }, We = { ke
|
|
|
344
345
|
triggerOperationForm: M,
|
|
345
346
|
validateForm: U
|
|
346
347
|
}), (h, x) => {
|
|
347
|
-
const T = v("el-input"), B = v("el-input-number"), m = v("el-radio"), I = v("el-radio-group"),
|
|
348
|
-
return n(), b("div",
|
|
349
|
-
|
|
350
|
-
|
|
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"), W = v("el-switch"), R = v("el-date-picker"), X = 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
|
+
return n(), b("div", He, [
|
|
350
|
+
D("div", We, [
|
|
351
|
+
J((n(), y(ue, {
|
|
351
352
|
ref_key: "EL_FORM_REF",
|
|
352
353
|
ref: r,
|
|
353
354
|
"label-suffix": ":",
|
|
354
355
|
model: t.value
|
|
355
356
|
}, {
|
|
356
357
|
default: A(() => [
|
|
357
|
-
|
|
358
|
+
$(ie, null, {
|
|
358
359
|
default: A(() => [
|
|
359
360
|
(n(!0), b(P, null, Q(d.value, ({
|
|
360
|
-
label:
|
|
361
|
-
prop:
|
|
361
|
+
label: G = "",
|
|
362
|
+
prop: g = "",
|
|
362
363
|
type: o = "text",
|
|
363
|
-
placeholder:
|
|
364
|
-
readonly:
|
|
365
|
-
clearable:
|
|
366
|
-
rows:
|
|
367
|
-
min:
|
|
368
|
-
max:
|
|
369
|
-
range:
|
|
370
|
-
format:
|
|
364
|
+
placeholder: f = "",
|
|
365
|
+
readonly: Y = e.readonlys,
|
|
366
|
+
clearable: fe = !0,
|
|
367
|
+
rows: ve = 2,
|
|
368
|
+
min: he = 1,
|
|
369
|
+
max: de = 10,
|
|
370
|
+
range: z = [],
|
|
371
|
+
format: K = "",
|
|
371
372
|
rules: ne = [],
|
|
372
|
-
limit:
|
|
373
|
-
|
|
374
|
-
|
|
373
|
+
limit: ce = e.limits,
|
|
374
|
+
length: p = 255
|
|
375
|
+
} = {}, oe) => (n(), y(re, {
|
|
376
|
+
key: oe,
|
|
375
377
|
xs: 24,
|
|
376
378
|
sm: 24,
|
|
377
379
|
md: e.medium
|
|
378
380
|
}, {
|
|
379
381
|
default: A(() => [
|
|
380
|
-
|
|
381
|
-
label:
|
|
382
|
-
prop:
|
|
382
|
+
$(le, {
|
|
383
|
+
label: G,
|
|
384
|
+
prop: g,
|
|
383
385
|
rules: ne
|
|
384
386
|
}, {
|
|
385
387
|
default: A(() => [
|
|
386
|
-
|
|
387
|
-
option: { readonly:
|
|
388
|
+
q(h.$slots, [g], {
|
|
389
|
+
option: { readonly: Y, value: t.value[g], values: t.value }
|
|
388
390
|
}, () => [
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
content: t.value[
|
|
392
|
-
limit:
|
|
391
|
+
Y ? (n(), b("div", Xe, [
|
|
392
|
+
$(Ne, {
|
|
393
|
+
content: t.value[g],
|
|
394
|
+
limit: ce,
|
|
393
395
|
none: e.none
|
|
394
396
|
}, null, 8, ["content", "limit", "none"])
|
|
395
397
|
])) : (n(), b(P, { key: 0 }, [
|
|
396
398
|
o === c(l).INPUT ? (n(), y(T, {
|
|
397
399
|
key: 0,
|
|
398
|
-
modelValue: t.value[
|
|
399
|
-
"onUpdate:modelValue": (
|
|
400
|
-
placeholder: _(o,
|
|
401
|
-
clearable:
|
|
402
|
-
onChange: (
|
|
403
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) :
|
|
400
|
+
modelValue: t.value[g],
|
|
401
|
+
"onUpdate:modelValue": (E) => t.value[g] = E,
|
|
402
|
+
placeholder: _(o, G, f),
|
|
403
|
+
clearable: fe,
|
|
404
|
+
onChange: (E) => w(o, g)
|
|
405
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : C("", !0),
|
|
404
406
|
o === c(l).INPUT_TEXT_AREA ? (n(), y(T, {
|
|
405
407
|
key: 1,
|
|
406
|
-
modelValue: t.value[
|
|
407
|
-
"onUpdate:modelValue": (
|
|
408
|
+
modelValue: t.value[g],
|
|
409
|
+
"onUpdate:modelValue": (E) => t.value[g] = E,
|
|
410
|
+
"show-word-limit": "",
|
|
408
411
|
type: "textarea",
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
412
|
+
autosize: { minRows: ve },
|
|
413
|
+
maxlength: p,
|
|
414
|
+
clearable: fe,
|
|
415
|
+
placeholder: _(o, G, f),
|
|
416
|
+
onChange: (E) => w(o, g)
|
|
417
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "autosize", "maxlength", "clearable", "placeholder", "onChange"])) : C("", !0),
|
|
414
418
|
o === c(l).INPUT_NUMBER ? (n(), y(B, {
|
|
415
419
|
key: 2,
|
|
416
|
-
modelValue: t.value[
|
|
417
|
-
"onUpdate:modelValue": (
|
|
420
|
+
modelValue: t.value[g],
|
|
421
|
+
"onUpdate:modelValue": (E) => t.value[g] = E,
|
|
418
422
|
"controls-position": "right",
|
|
419
|
-
min:
|
|
420
|
-
max:
|
|
421
|
-
onChange:
|
|
422
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max"])) :
|
|
423
|
+
min: he,
|
|
424
|
+
max: de,
|
|
425
|
+
onChange: w
|
|
426
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max"])) : C("", !0),
|
|
423
427
|
o === c(l).RADIO ? (n(), y(I, {
|
|
424
428
|
key: 3,
|
|
425
|
-
modelValue: t.value[
|
|
426
|
-
"onUpdate:modelValue": (
|
|
427
|
-
onChange: (
|
|
429
|
+
modelValue: t.value[g],
|
|
430
|
+
"onUpdate:modelValue": (E) => t.value[g] = E,
|
|
431
|
+
onChange: (E) => w(o, g)
|
|
428
432
|
}, {
|
|
429
433
|
default: A(() => [
|
|
430
|
-
(n(!0), b(P, null, Q(
|
|
431
|
-
key:
|
|
432
|
-
label:
|
|
434
|
+
(n(!0), b(P, null, Q(z, (E, _e) => (n(), y(m, {
|
|
435
|
+
key: _e,
|
|
436
|
+
label: E.value
|
|
433
437
|
}, {
|
|
434
438
|
default: A(() => [
|
|
435
|
-
|
|
439
|
+
H(j(E.label), 1)
|
|
436
440
|
]),
|
|
437
441
|
_: 2
|
|
438
442
|
}, 1032, ["label"]))), 128))
|
|
439
443
|
]),
|
|
440
444
|
_: 2
|
|
441
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) :
|
|
445
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : C("", !0),
|
|
442
446
|
o === c(l).SELECT ? (n(), y(L, {
|
|
443
447
|
key: 4,
|
|
444
|
-
modelValue: t.value[
|
|
445
|
-
"onUpdate:modelValue": (
|
|
446
|
-
placeholder: _(o,
|
|
447
|
-
onChange: (
|
|
448
|
+
modelValue: t.value[g],
|
|
449
|
+
"onUpdate:modelValue": (E) => t.value[g] = E,
|
|
450
|
+
placeholder: _(o, G, f),
|
|
451
|
+
onChange: (E) => w(o, g)
|
|
448
452
|
}, {
|
|
449
453
|
default: A(() => [
|
|
450
|
-
(n(!0), b(P, null, Q(
|
|
451
|
-
key:
|
|
452
|
-
label:
|
|
453
|
-
value:
|
|
454
|
+
(n(!0), b(P, null, Q(z, (E, _e) => (n(), y(k, {
|
|
455
|
+
key: _e,
|
|
456
|
+
label: E.label,
|
|
457
|
+
value: E.value
|
|
454
458
|
}, null, 8, ["label", "value"]))), 128))
|
|
455
459
|
]),
|
|
456
460
|
_: 2
|
|
457
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) :
|
|
461
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : C("", !0),
|
|
458
462
|
o === c(l).SLIDER ? (n(), y(F, {
|
|
459
463
|
key: 5,
|
|
460
|
-
modelValue: t.value[
|
|
461
|
-
"onUpdate:modelValue": (
|
|
462
|
-
min:
|
|
463
|
-
max:
|
|
464
|
-
onChange: (
|
|
465
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) :
|
|
466
|
-
o === c(l).SWITCH ? (n(), y(
|
|
464
|
+
modelValue: t.value[g],
|
|
465
|
+
"onUpdate:modelValue": (E) => t.value[g] = E,
|
|
466
|
+
min: he,
|
|
467
|
+
max: de,
|
|
468
|
+
onChange: (E) => w(o, g)
|
|
469
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : C("", !0),
|
|
470
|
+
o === c(l).SWITCH ? (n(), y(W, {
|
|
467
471
|
key: 6,
|
|
468
|
-
modelValue: t.value[
|
|
469
|
-
"onUpdate:modelValue": (
|
|
470
|
-
"active-value":
|
|
471
|
-
"inactive-value":
|
|
472
|
-
"active-text":
|
|
473
|
-
"inactive-text":
|
|
474
|
-
onChange: (
|
|
475
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "active-text", "inactive-text", "onChange"])) :
|
|
472
|
+
modelValue: t.value[g],
|
|
473
|
+
"onUpdate:modelValue": (E) => t.value[g] = E,
|
|
474
|
+
"active-value": O(z, "active-value"),
|
|
475
|
+
"inactive-value": O(z, "inactive-value"),
|
|
476
|
+
"active-text": O(z, "active-text"),
|
|
477
|
+
"inactive-text": O(z, "inactive-text"),
|
|
478
|
+
onChange: (E) => w(o, g)
|
|
479
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "active-text", "inactive-text", "onChange"])) : C("", !0),
|
|
476
480
|
[c(l).DATE, c(l).MONTH, c(l).YEAR, c(l).DATE_TIME].includes(
|
|
477
481
|
o
|
|
478
482
|
) ? (n(), y(R, {
|
|
479
483
|
key: 7,
|
|
480
|
-
modelValue: t.value[
|
|
481
|
-
"onUpdate:modelValue": (
|
|
482
|
-
format: V(o,
|
|
483
|
-
"value-format": V(o,
|
|
484
|
+
modelValue: t.value[g],
|
|
485
|
+
"onUpdate:modelValue": (E) => t.value[g] = E,
|
|
486
|
+
format: V(o, K),
|
|
487
|
+
"value-format": V(o, K),
|
|
484
488
|
type: o,
|
|
485
|
-
placeholder: _(o,
|
|
486
|
-
onChange: (
|
|
487
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) :
|
|
489
|
+
placeholder: _(o, G, f),
|
|
490
|
+
onChange: (E) => w(o, g)
|
|
491
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : C("", !0),
|
|
488
492
|
[
|
|
489
493
|
c(l).DATE_RANGE,
|
|
490
494
|
c(l).MONTH_RANGE,
|
|
491
495
|
c(l).DATE_TIME_RANGE
|
|
492
496
|
].includes(o) ? (n(), y(R, {
|
|
493
497
|
key: 8,
|
|
494
|
-
modelValue: t.value[
|
|
495
|
-
"onUpdate:modelValue": (
|
|
498
|
+
modelValue: t.value[g],
|
|
499
|
+
"onUpdate:modelValue": (E) => t.value[g] = E,
|
|
496
500
|
type: o,
|
|
497
|
-
"value-format": V(o,
|
|
498
|
-
"start-placeholder": _(o,
|
|
499
|
-
"end-placeholder": _(o,
|
|
500
|
-
onChange: (
|
|
501
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) :
|
|
502
|
-
[c(l).TIME].includes(o) ? (n(), y(
|
|
501
|
+
"value-format": V(o, K),
|
|
502
|
+
"start-placeholder": _(o, G, f)[0],
|
|
503
|
+
"end-placeholder": _(o, G, f)[1],
|
|
504
|
+
onChange: (E) => w(o, g)
|
|
505
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : C("", !0),
|
|
506
|
+
[c(l).TIME].includes(o) ? (n(), y(X, {
|
|
503
507
|
key: 9,
|
|
504
|
-
modelValue: t.value[
|
|
505
|
-
"onUpdate:modelValue": (
|
|
508
|
+
modelValue: t.value[g],
|
|
509
|
+
"onUpdate:modelValue": (E) => t.value[g] = E,
|
|
506
510
|
"arrow-control": "",
|
|
507
|
-
"value-format": V(o,
|
|
508
|
-
placeholder: _(o,
|
|
509
|
-
onChange: (
|
|
510
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) :
|
|
511
|
-
[c(l).TIME_RANGE].includes(o) ? (n(), y(
|
|
511
|
+
"value-format": V(o, K),
|
|
512
|
+
placeholder: _(o, G, f),
|
|
513
|
+
onChange: (E) => w(o, g)
|
|
514
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : C("", !0),
|
|
515
|
+
[c(l).TIME_RANGE].includes(o) ? (n(), y(X, {
|
|
512
516
|
key: 10,
|
|
513
|
-
modelValue: t.value[
|
|
514
|
-
"onUpdate:modelValue": (
|
|
517
|
+
modelValue: t.value[g],
|
|
518
|
+
"onUpdate:modelValue": (E) => t.value[g] = E,
|
|
515
519
|
"is-range": "",
|
|
516
|
-
"value-format": V(o,
|
|
517
|
-
"start-placeholder": _(o,
|
|
518
|
-
"end-placeholder": _(o,
|
|
519
|
-
onChange: (
|
|
520
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) :
|
|
520
|
+
"value-format": V(o, K),
|
|
521
|
+
"start-placeholder": _(o, G, f)[0],
|
|
522
|
+
"end-placeholder": _(o, G, f)[1],
|
|
523
|
+
onChange: (E) => w(o, g)
|
|
524
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : C("", !0),
|
|
521
525
|
[c(l).CHECKBOX].includes(o) ? (n(), y(ae, {
|
|
522
526
|
key: 11,
|
|
523
|
-
modelValue: t.value[
|
|
524
|
-
"onUpdate:modelValue": (
|
|
525
|
-
onChange: (
|
|
527
|
+
modelValue: t.value[g],
|
|
528
|
+
"onUpdate:modelValue": (E) => t.value[g] = E,
|
|
529
|
+
onChange: (E) => w(o, g)
|
|
526
530
|
}, {
|
|
527
531
|
default: A(() => [
|
|
528
|
-
(n(!0), b(P, null, Q(
|
|
529
|
-
key:
|
|
530
|
-
label:
|
|
532
|
+
(n(!0), b(P, null, Q(z, (E, _e) => (n(), y(ee, {
|
|
533
|
+
key: _e,
|
|
534
|
+
label: E.value
|
|
531
535
|
}, {
|
|
532
536
|
default: A(() => [
|
|
533
|
-
|
|
537
|
+
H(j(E.label), 1)
|
|
534
538
|
]),
|
|
535
539
|
_: 2
|
|
536
540
|
}, 1032, ["label"]))), 128))
|
|
537
541
|
]),
|
|
538
542
|
_: 2
|
|
539
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) :
|
|
540
|
-
[].includes(o) ? (n(),
|
|
543
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : C("", !0),
|
|
544
|
+
[c(l).CHECKBOX_SINGLE].includes(o) ? (n(), y(ee, {
|
|
545
|
+
key: 12,
|
|
546
|
+
modelValue: t.value[g],
|
|
547
|
+
"onUpdate:modelValue": (E) => t.value[g] = E,
|
|
548
|
+
label: G,
|
|
549
|
+
"true-label": z[0] ? z[0].value : "1",
|
|
550
|
+
"false-label": z[1] ? z[1].value : "0",
|
|
551
|
+
onChange: (E) => w(o, g)
|
|
552
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "label", "true-label", "false-label", "onChange"])) : C("", !0),
|
|
553
|
+
[].includes(o) ? (n(), b(P, { key: 13 }, [], 64)) : C("", !0)
|
|
541
554
|
], 64))
|
|
542
555
|
])
|
|
543
556
|
]),
|
|
@@ -559,12 +572,12 @@ const Ye = { class: "bsgoal-base-form" }, He = { class: "base_form" }, We = { ke
|
|
|
559
572
|
};
|
|
560
573
|
}
|
|
561
574
|
});
|
|
562
|
-
const Ze = { class: "bsgoal-base-table-content" },
|
|
575
|
+
const Ze = { class: "bsgoal-base-table-content" }, Je = { class: "base_table_content" }, qe = {
|
|
563
576
|
key: 1,
|
|
564
577
|
class: "base_table_table_txt"
|
|
565
|
-
},
|
|
578
|
+
}, et = {
|
|
566
579
|
name: "BsgoalBaseTableContent"
|
|
567
|
-
},
|
|
580
|
+
}, tt = /* @__PURE__ */ Object.assign(et, {
|
|
568
581
|
props: {
|
|
569
582
|
/**
|
|
570
583
|
* 数据
|
|
@@ -590,18 +603,18 @@ const Ze = { class: "bsgoal-base-table-content" }, Ke = { class: "base_table_con
|
|
|
590
603
|
},
|
|
591
604
|
setup(e) {
|
|
592
605
|
return (s, a) => (n(), b("div", Ze, [
|
|
593
|
-
|
|
594
|
-
e.tooltip ? (n(), y(
|
|
606
|
+
D("div", Je, [
|
|
607
|
+
e.tooltip ? (n(), y(Ne, {
|
|
595
608
|
key: 0,
|
|
596
609
|
content: e.data,
|
|
597
610
|
limit: e.limit
|
|
598
|
-
}, null, 8, ["content", "limit"])) : (n(), b("div",
|
|
611
|
+
}, null, 8, ["content", "limit"])) : (n(), b("div", qe, j(e.data), 1))
|
|
599
612
|
])
|
|
600
613
|
]));
|
|
601
614
|
}
|
|
602
615
|
});
|
|
603
616
|
/*! Element Plus v2.3.4 */
|
|
604
|
-
var
|
|
617
|
+
var at = {
|
|
605
618
|
name: "zh-cn",
|
|
606
619
|
el: {
|
|
607
620
|
colorpicker: {
|
|
@@ -728,9 +741,9 @@ var tt = {
|
|
|
728
741
|
}
|
|
729
742
|
}
|
|
730
743
|
};
|
|
731
|
-
const
|
|
744
|
+
const lt = { class: "bsgoal-base-table-pagination" }, nt = { class: "base_table_pagination" }, ot = /* @__PURE__ */ D("span", null, "总数", -1), st = {
|
|
732
745
|
name: "BsgoalBaseTablePagination"
|
|
733
|
-
},
|
|
746
|
+
}, ut = /* @__PURE__ */ Object.assign(st, {
|
|
734
747
|
props: {
|
|
735
748
|
/**
|
|
736
749
|
* 当前页数
|
|
@@ -767,14 +780,14 @@ const at = { class: "bsgoal-base-table-pagination" }, lt = { class: "base_table_
|
|
|
767
780
|
s("on-size-change", u);
|
|
768
781
|
}, i = (u = 1) => {
|
|
769
782
|
s("on-current-change", u);
|
|
770
|
-
}, r =
|
|
783
|
+
}, r = N(1);
|
|
771
784
|
return (u, t) => {
|
|
772
785
|
const d = v("el-pagination"), _ = v("el-config-provider");
|
|
773
|
-
return n(), b("div",
|
|
774
|
-
|
|
775
|
-
|
|
786
|
+
return n(), b("div", lt, [
|
|
787
|
+
D("div", nt, [
|
|
788
|
+
$(_, { locale: c(at) }, {
|
|
776
789
|
default: A(() => [
|
|
777
|
-
|
|
790
|
+
$(d, {
|
|
778
791
|
background: "",
|
|
779
792
|
layout: "total, sizes, prev, pager, next, jumper",
|
|
780
793
|
"current-page": r.value,
|
|
@@ -786,7 +799,7 @@ const at = { class: "bsgoal-base-table-pagination" }, lt = { class: "base_table_
|
|
|
786
799
|
onCurrentChange: i
|
|
787
800
|
}, {
|
|
788
801
|
next: A(() => [
|
|
789
|
-
|
|
802
|
+
ot
|
|
790
803
|
]),
|
|
791
804
|
_: 1
|
|
792
805
|
}, 8, ["current-page", "page-sizes", "page-size", "total"])
|
|
@@ -803,23 +816,23 @@ const we = (e, s) => {
|
|
|
803
816
|
for (const [i, r] of s)
|
|
804
817
|
a[i] = r;
|
|
805
818
|
return a;
|
|
806
|
-
},
|
|
819
|
+
}, ct = {
|
|
807
820
|
name: "BsgoalBaseTableEmpty"
|
|
808
|
-
},
|
|
809
|
-
/* @__PURE__ */
|
|
810
|
-
/* @__PURE__ */
|
|
821
|
+
}, rt = { class: "bsgoal-base-table-empty" }, it = /* @__PURE__ */ D("div", { class: "base_table_empty" }, [
|
|
822
|
+
/* @__PURE__ */ D("div", { class: "base_table_empty_img" }, [
|
|
823
|
+
/* @__PURE__ */ D("img", {
|
|
811
824
|
src: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjQiIGhlaWdodD0iNDEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCAxKSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgIDxlbGxpcHNlIGZpbGw9IiNGNUY1RjUiIGN4PSIzMiIgY3k9IjMzIiByeD0iMzIiIHJ5PSI3Ii8+CiAgICA8ZyBmaWxsLXJ1bGU9Im5vbnplcm8iIHN0cm9rZT0iI0Q5RDlEOSI+CiAgICAgIDxwYXRoIGQ9Ik01NSAxMi43Nkw0NC44NTQgMS4yNThDNDQuMzY3LjQ3NCA0My42NTYgMCA0Mi45MDcgMEgyMS4wOTNjLS43NDkgMC0xLjQ2LjQ3NC0xLjk0NyAxLjI1N0w5IDEyLjc2MVYyMmg0NnYtOS4yNHoiLz4KICAgICAgPHBhdGggZD0iTTQxLjYxMyAxNS45MzFjMC0xLjYwNS45OTQtMi45MyAyLjIyNy0yLjkzMUg1NXYxOC4xMzdDNTUgMzMuMjYgNTMuNjggMzUgNTIuMDUgMzVoLTQwLjFDMTAuMzIgMzUgOSAzMy4yNTkgOSAzMS4xMzdWMTNoMTEuMTZjMS4yMzMgMCAyLjIyNyAxLjMyMyAyLjIyNyAyLjkyOHYuMDIyYzAgMS42MDUgMS4wMDUgMi45MDEgMi4yMzcgMi45MDFoMTQuNzUyYzEuMjMyIDAgMi4yMzctMS4zMDggMi4yMzctMi45MTN2LS4wMDd6IiBmaWxsPSIjRkFGQUZBIi8+CiAgICA8L2c+CiAgPC9nPgo8L3N2Zz4K",
|
|
812
825
|
alt: ""
|
|
813
826
|
})
|
|
814
827
|
]),
|
|
815
|
-
/* @__PURE__ */
|
|
816
|
-
], -1),
|
|
817
|
-
|
|
828
|
+
/* @__PURE__ */ D("div", { class: "base_table_empty_text" }, "暂无数据")
|
|
829
|
+
], -1), dt = [
|
|
830
|
+
it
|
|
818
831
|
];
|
|
819
|
-
function
|
|
820
|
-
return n(), b("div",
|
|
832
|
+
function _t(e, s, a, i, r, u) {
|
|
833
|
+
return n(), b("div", rt, dt);
|
|
821
834
|
}
|
|
822
|
-
const
|
|
835
|
+
const mt = /* @__PURE__ */ we(ct, [["render", _t]]), gt = (e = null, { expression: s = 75, arg: a = {}, height: i = "" } = {}) => {
|
|
823
836
|
const r = c(e);
|
|
824
837
|
if (r) {
|
|
825
838
|
const u = r.querySelector(".el-table");
|
|
@@ -830,8 +843,8 @@ const _t = /* @__PURE__ */ we(ut, [["render", dt]]), mt = (e = null, { expressio
|
|
|
830
843
|
i && (_ ? d = `${i}px` : d = i), u.style.height = d;
|
|
831
844
|
});
|
|
832
845
|
}
|
|
833
|
-
},
|
|
834
|
-
const r =
|
|
846
|
+
}, Ae = (e = Promise.resolve(), s = null, a = N(!1), i = N(null)) => {
|
|
847
|
+
const r = N("");
|
|
835
848
|
return a.value = !0, e.then((u = {}) => {
|
|
836
849
|
const { data: t = {}, message: d = "" } = u;
|
|
837
850
|
i.value = t, r.value = d, s && s(!0, t), a.value = !1;
|
|
@@ -845,7 +858,7 @@ const _t = /* @__PURE__ */ we(ut, [["render", dt]]), mt = (e = null, { expressio
|
|
|
845
858
|
}).finally(() => {
|
|
846
859
|
a.value = !1;
|
|
847
860
|
}), { data: i, message: r, loading: a };
|
|
848
|
-
},
|
|
861
|
+
}, ft = (e = null) => {
|
|
849
862
|
switch (toString.apply(e)) {
|
|
850
863
|
case "[object Object]":
|
|
851
864
|
return "object";
|
|
@@ -862,13 +875,13 @@ const _t = /* @__PURE__ */ we(ut, [["render", dt]]), mt = (e = null, { expressio
|
|
|
862
875
|
case "[object Undefind]":
|
|
863
876
|
return "undefind";
|
|
864
877
|
}
|
|
865
|
-
},
|
|
866
|
-
const
|
|
878
|
+
}, vt = (e) => ft(e) === "boolean";
|
|
879
|
+
const ht = { class: "bsgoal-base-table" }, pt = { class: "base_table" }, Et = {
|
|
867
880
|
key: 0,
|
|
868
881
|
class: "base_table_menu"
|
|
869
|
-
},
|
|
882
|
+
}, bt = {
|
|
870
883
|
name: "BsgoalBaseTable"
|
|
871
|
-
},
|
|
884
|
+
}, ke = /* @__PURE__ */ Object.assign(bt, {
|
|
872
885
|
props: {
|
|
873
886
|
/**
|
|
874
887
|
* >----------props----------<
|
|
@@ -976,30 +989,30 @@ const vt = { class: "bsgoal-base-table" }, pt = { class: "base_table" }, ht = {
|
|
|
976
989
|
},
|
|
977
990
|
setup(e, { expose: s }) {
|
|
978
991
|
const a = e, i = Z(() => {
|
|
979
|
-
const { configOptions: m = [], operation: I = !1, operationWidth:
|
|
992
|
+
const { configOptions: m = [], operation: I = !1, operationWidth: k = 0 } = a, L = c(m), F = [];
|
|
980
993
|
return I && F.push({
|
|
981
994
|
label: "操作",
|
|
982
995
|
fixed: "right",
|
|
983
996
|
prop: "operation",
|
|
984
|
-
width:
|
|
997
|
+
width: k
|
|
985
998
|
}), [...L, ...F];
|
|
986
|
-
}), r =
|
|
999
|
+
}), r = N(null), u = Me("transferFoldStatus");
|
|
987
1000
|
pe(() => {
|
|
988
|
-
const { height: m } = a, I = u ? u.value : !1,
|
|
989
|
-
|
|
1001
|
+
const { height: m } = a, I = u ? u.value : !1, k = c(a.expression);
|
|
1002
|
+
vt(m) || gt(r, { arg: I, expression: k, height: m });
|
|
990
1003
|
});
|
|
991
|
-
const t = c(a.mapProps), d =
|
|
1004
|
+
const t = c(a.mapProps), d = Ee({
|
|
992
1005
|
currentPage: "currentPage",
|
|
993
1006
|
pageSize: "pageSize",
|
|
994
1007
|
rows: "rows",
|
|
995
1008
|
total: "total"
|
|
996
|
-
}, t), _ =
|
|
997
|
-
const { fetch: m, call: I, hasPage:
|
|
998
|
-
|
|
1009
|
+
}, t), _ = N(1), V = N(10), M = N(0), S = N({}), w = N(a.loading), U = N(), O = N({}), h = () => {
|
|
1010
|
+
const { fetch: m, call: I, hasPage: k } = a, L = S.value, F = _.value, W = V.value, R = Ee({}, L);
|
|
1011
|
+
k && (R[d.currentPage] = F, R[d.pageSize] = W), Ae(m(R), I, w, O);
|
|
999
1012
|
};
|
|
1000
1013
|
pe(() => {
|
|
1001
1014
|
U.value = a.data;
|
|
1002
|
-
}),
|
|
1015
|
+
}), me(O, (m) => {
|
|
1003
1016
|
a.hasPage ? (U.value = m[d.rows], M.value = m[d.total]) : U.value = m;
|
|
1004
1017
|
});
|
|
1005
1018
|
const x = (m = {}) => {
|
|
@@ -1009,22 +1022,22 @@ const vt = { class: "bsgoal-base-table" }, pt = { class: "base_table" }, ht = {
|
|
|
1009
1022
|
}, B = (m = 10) => {
|
|
1010
1023
|
V.value = m;
|
|
1011
1024
|
};
|
|
1012
|
-
return
|
|
1025
|
+
return me([_, V], () => {
|
|
1013
1026
|
h();
|
|
1014
1027
|
}), s({
|
|
1015
1028
|
refreshList: x
|
|
1016
1029
|
}), (m, I) => {
|
|
1017
|
-
const
|
|
1018
|
-
return n(), b("div",
|
|
1019
|
-
|
|
1020
|
-
m.$slots.menu ? (n(), b("div",
|
|
1021
|
-
|
|
1022
|
-
])) :
|
|
1023
|
-
|
|
1030
|
+
const k = v("el-table-column"), L = v("el-table"), F = Re("loading");
|
|
1031
|
+
return n(), b("div", ht, [
|
|
1032
|
+
D("div", pt, [
|
|
1033
|
+
m.$slots.menu ? (n(), b("div", Et, [
|
|
1034
|
+
q(m.$slots, "menu")
|
|
1035
|
+
])) : C("", !0),
|
|
1036
|
+
D("div", {
|
|
1024
1037
|
ref_key: "EL_TABLE_WRAP_REF",
|
|
1025
1038
|
ref: r
|
|
1026
1039
|
}, [
|
|
1027
|
-
|
|
1040
|
+
J((n(), y(L, {
|
|
1028
1041
|
stripe: "",
|
|
1029
1042
|
border: "",
|
|
1030
1043
|
"highlight-current-row": "",
|
|
@@ -1038,37 +1051,37 @@ const vt = { class: "bsgoal-base-table" }, pt = { class: "base_table" }, ht = {
|
|
|
1038
1051
|
}
|
|
1039
1052
|
}, {
|
|
1040
1053
|
empty: A(() => [
|
|
1041
|
-
|
|
1054
|
+
$(mt)
|
|
1042
1055
|
]),
|
|
1043
1056
|
default: A(() => [
|
|
1044
|
-
e.selection ? (n(), y(
|
|
1057
|
+
e.selection ? (n(), y(k, {
|
|
1045
1058
|
key: 0,
|
|
1046
1059
|
fixed: "left",
|
|
1047
1060
|
type: "selection",
|
|
1048
1061
|
width: "40"
|
|
1049
|
-
})) :
|
|
1062
|
+
})) : C("", !0),
|
|
1050
1063
|
(n(!0), b(P, null, Q(i.value, ({
|
|
1051
|
-
prop:
|
|
1064
|
+
prop: W = "",
|
|
1052
1065
|
label: R = "",
|
|
1053
|
-
align:
|
|
1066
|
+
align: X = "center",
|
|
1054
1067
|
width: ee = "",
|
|
1055
1068
|
fixed: ae = !1,
|
|
1056
1069
|
tooltip: le = !1,
|
|
1057
|
-
limit:
|
|
1058
|
-
} = {},
|
|
1059
|
-
key:
|
|
1070
|
+
limit: re = 0
|
|
1071
|
+
} = {}, ie) => (n(), y(k, {
|
|
1072
|
+
key: ie,
|
|
1060
1073
|
label: R,
|
|
1061
|
-
align:
|
|
1074
|
+
align: X,
|
|
1062
1075
|
width: ee,
|
|
1063
1076
|
fixed: ae,
|
|
1064
1077
|
"min-width": `${R.length * 14 + 24}px`
|
|
1065
1078
|
}, {
|
|
1066
|
-
default: A(({ row:
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
limit:
|
|
1079
|
+
default: A(({ row: ue }) => [
|
|
1080
|
+
q(m.$slots, W, { row: ue }, () => [
|
|
1081
|
+
$(tt, {
|
|
1082
|
+
limit: re,
|
|
1070
1083
|
tooltip: le,
|
|
1071
|
-
data:
|
|
1084
|
+
data: ue[W]
|
|
1072
1085
|
}, null, 8, ["limit", "tooltip", "data"])
|
|
1073
1086
|
])
|
|
1074
1087
|
]),
|
|
@@ -1077,23 +1090,23 @@ const vt = { class: "bsgoal-base-table" }, pt = { class: "base_table" }, ht = {
|
|
|
1077
1090
|
]),
|
|
1078
1091
|
_: 3
|
|
1079
1092
|
}, 8, ["data", "header-cell-style"])), [
|
|
1080
|
-
[F,
|
|
1093
|
+
[F, w.value]
|
|
1081
1094
|
])
|
|
1082
1095
|
], 512),
|
|
1083
|
-
e.hasPage ? (n(), y(
|
|
1096
|
+
e.hasPage ? (n(), y(ut, {
|
|
1084
1097
|
key: 1,
|
|
1085
1098
|
total: M.value,
|
|
1086
1099
|
onOnCurrentChange: T,
|
|
1087
1100
|
onOnSizeChange: B
|
|
1088
|
-
}, null, 8, ["total"])) :
|
|
1101
|
+
}, null, 8, ["total"])) : C("", !0)
|
|
1089
1102
|
])
|
|
1090
1103
|
]);
|
|
1091
1104
|
};
|
|
1092
1105
|
}
|
|
1093
1106
|
});
|
|
1094
|
-
const
|
|
1107
|
+
const yt = {
|
|
1095
1108
|
name: "BsgoalBaseLine"
|
|
1096
|
-
},
|
|
1109
|
+
}, Te = /* @__PURE__ */ Object.assign(yt, {
|
|
1097
1110
|
props: {
|
|
1098
1111
|
/**
|
|
1099
1112
|
* 是否为垂直
|
|
@@ -1105,26 +1118,26 @@ const bt = {
|
|
|
1105
1118
|
},
|
|
1106
1119
|
setup(e) {
|
|
1107
1120
|
return (s, a) => (n(), b("div", {
|
|
1108
|
-
class:
|
|
1121
|
+
class: ge(["bsgoal-base-line", { "bsgoal-base-line__vertical": e.vertical }])
|
|
1109
1122
|
}, [
|
|
1110
|
-
|
|
1111
|
-
class:
|
|
1123
|
+
D("div", {
|
|
1124
|
+
class: ge(["base_line", { base_line__vertical: e.vertical }])
|
|
1112
1125
|
}, null, 2)
|
|
1113
1126
|
], 2));
|
|
1114
1127
|
}
|
|
1115
1128
|
});
|
|
1116
1129
|
/*! Element Plus Icons Vue v2.1.0 */
|
|
1117
|
-
var
|
|
1130
|
+
var se = (e, s) => {
|
|
1118
1131
|
let a = e.__vccOpts || e;
|
|
1119
1132
|
for (let [i, r] of s)
|
|
1120
1133
|
a[i] = r;
|
|
1121
1134
|
return a;
|
|
1122
|
-
}, yt = {
|
|
1123
|
-
name: "ArrowDown"
|
|
1124
1135
|
}, xt = {
|
|
1136
|
+
name: "ArrowDown"
|
|
1137
|
+
}, At = {
|
|
1125
1138
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1126
1139
|
viewBox: "0 0 1024 1024"
|
|
1127
|
-
},
|
|
1140
|
+
}, Tt = /* @__PURE__ */ D(
|
|
1128
1141
|
"path",
|
|
1129
1142
|
{
|
|
1130
1143
|
fill: "currentColor",
|
|
@@ -1133,18 +1146,18 @@ var oe = (e, s) => {
|
|
|
1133
1146
|
null,
|
|
1134
1147
|
-1
|
|
1135
1148
|
/* HOISTED */
|
|
1136
|
-
),
|
|
1137
|
-
|
|
1149
|
+
), Vt = [
|
|
1150
|
+
Tt
|
|
1138
1151
|
];
|
|
1139
|
-
function
|
|
1140
|
-
return n(), b("svg",
|
|
1152
|
+
function Ct(e, s, a, i, r, u) {
|
|
1153
|
+
return n(), b("svg", At, Vt);
|
|
1141
1154
|
}
|
|
1142
|
-
var $t = /* @__PURE__ */
|
|
1155
|
+
var $t = /* @__PURE__ */ se(xt, [["render", Ct], ["__file", "arrow-down.vue"]]), Mt = {
|
|
1143
1156
|
name: "ArrowLeft"
|
|
1144
|
-
},
|
|
1157
|
+
}, Bt = {
|
|
1145
1158
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1146
1159
|
viewBox: "0 0 1024 1024"
|
|
1147
|
-
},
|
|
1160
|
+
}, Nt = /* @__PURE__ */ D(
|
|
1148
1161
|
"path",
|
|
1149
1162
|
{
|
|
1150
1163
|
fill: "currentColor",
|
|
@@ -1154,17 +1167,17 @@ var $t = /* @__PURE__ */ oe(yt, [["render", Vt], ["__file", "arrow-down.vue"]]),
|
|
|
1154
1167
|
-1
|
|
1155
1168
|
/* HOISTED */
|
|
1156
1169
|
), wt = [
|
|
1157
|
-
|
|
1170
|
+
Nt
|
|
1158
1171
|
];
|
|
1159
|
-
function
|
|
1160
|
-
return n(), b("svg",
|
|
1172
|
+
function kt(e, s, a, i, r, u) {
|
|
1173
|
+
return n(), b("svg", Bt, wt);
|
|
1161
1174
|
}
|
|
1162
|
-
var
|
|
1175
|
+
var St = /* @__PURE__ */ se(Mt, [["render", kt], ["__file", "arrow-left.vue"]]), Ot = {
|
|
1163
1176
|
name: "ArrowRight"
|
|
1164
1177
|
}, Dt = {
|
|
1165
1178
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1166
1179
|
viewBox: "0 0 1024 1024"
|
|
1167
|
-
},
|
|
1180
|
+
}, It = /* @__PURE__ */ D(
|
|
1168
1181
|
"path",
|
|
1169
1182
|
{
|
|
1170
1183
|
fill: "currentColor",
|
|
@@ -1173,18 +1186,18 @@ var kt = /* @__PURE__ */ oe(Ct, [["render", Nt], ["__file", "arrow-left.vue"]]),
|
|
|
1173
1186
|
null,
|
|
1174
1187
|
-1
|
|
1175
1188
|
/* HOISTED */
|
|
1176
|
-
),
|
|
1177
|
-
|
|
1189
|
+
), Rt = [
|
|
1190
|
+
It
|
|
1178
1191
|
];
|
|
1179
|
-
function
|
|
1180
|
-
return n(), b("svg", Dt,
|
|
1192
|
+
function Ft(e, s, a, i, r, u) {
|
|
1193
|
+
return n(), b("svg", Dt, Rt);
|
|
1181
1194
|
}
|
|
1182
|
-
var
|
|
1195
|
+
var Ut = /* @__PURE__ */ se(Ot, [["render", Ft], ["__file", "arrow-right.vue"]]), Lt = {
|
|
1183
1196
|
name: "ArrowUp"
|
|
1184
|
-
},
|
|
1197
|
+
}, Pt = {
|
|
1185
1198
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1186
1199
|
viewBox: "0 0 1024 1024"
|
|
1187
|
-
},
|
|
1200
|
+
}, zt = /* @__PURE__ */ D(
|
|
1188
1201
|
"path",
|
|
1189
1202
|
{
|
|
1190
1203
|
fill: "currentColor",
|
|
@@ -1194,17 +1207,17 @@ var Ft = /* @__PURE__ */ oe(St, [["render", Rt], ["__file", "arrow-right.vue"]])
|
|
|
1194
1207
|
-1
|
|
1195
1208
|
/* HOISTED */
|
|
1196
1209
|
), jt = [
|
|
1197
|
-
|
|
1210
|
+
zt
|
|
1198
1211
|
];
|
|
1199
|
-
function
|
|
1200
|
-
return n(), b("svg",
|
|
1212
|
+
function Gt(e, s, a, i, r, u) {
|
|
1213
|
+
return n(), b("svg", Pt, jt);
|
|
1201
1214
|
}
|
|
1202
|
-
var
|
|
1215
|
+
var Yt = /* @__PURE__ */ se(Lt, [["render", Gt], ["__file", "arrow-up.vue"]]), Ht = {
|
|
1203
1216
|
name: "Delete"
|
|
1204
|
-
},
|
|
1217
|
+
}, Wt = {
|
|
1205
1218
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1206
1219
|
viewBox: "0 0 1024 1024"
|
|
1207
|
-
},
|
|
1220
|
+
}, Xt = /* @__PURE__ */ D(
|
|
1208
1221
|
"path",
|
|
1209
1222
|
{
|
|
1210
1223
|
fill: "currentColor",
|
|
@@ -1213,18 +1226,18 @@ var Gt = /* @__PURE__ */ oe(Ut, [["render", zt], ["__file", "arrow-up.vue"]]), Y
|
|
|
1213
1226
|
null,
|
|
1214
1227
|
-1
|
|
1215
1228
|
/* HOISTED */
|
|
1216
|
-
),
|
|
1217
|
-
|
|
1229
|
+
), Kt = [
|
|
1230
|
+
Xt
|
|
1218
1231
|
];
|
|
1219
1232
|
function Qt(e, s, a, i, r, u) {
|
|
1220
|
-
return n(), b("svg",
|
|
1233
|
+
return n(), b("svg", Wt, Kt);
|
|
1221
1234
|
}
|
|
1222
|
-
var
|
|
1235
|
+
var Se = /* @__PURE__ */ se(Ht, [["render", Qt], ["__file", "delete.vue"]]), Zt = {
|
|
1223
1236
|
name: "Plus"
|
|
1224
|
-
},
|
|
1237
|
+
}, Jt = {
|
|
1225
1238
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1226
1239
|
viewBox: "0 0 1024 1024"
|
|
1227
|
-
},
|
|
1240
|
+
}, qt = /* @__PURE__ */ D(
|
|
1228
1241
|
"path",
|
|
1229
1242
|
{
|
|
1230
1243
|
fill: "currentColor",
|
|
@@ -1233,18 +1246,18 @@ var ke = /* @__PURE__ */ oe(Yt, [["render", Qt], ["__file", "delete.vue"]]), Zt
|
|
|
1233
1246
|
null,
|
|
1234
1247
|
-1
|
|
1235
1248
|
/* HOISTED */
|
|
1236
|
-
),
|
|
1237
|
-
|
|
1249
|
+
), ea = [
|
|
1250
|
+
qt
|
|
1238
1251
|
];
|
|
1239
|
-
function
|
|
1240
|
-
return n(), b("svg",
|
|
1252
|
+
function ta(e, s, a, i, r, u) {
|
|
1253
|
+
return n(), b("svg", Jt, ea);
|
|
1241
1254
|
}
|
|
1242
|
-
var
|
|
1255
|
+
var aa = /* @__PURE__ */ se(Zt, [["render", ta], ["__file", "plus.vue"]]), la = {
|
|
1243
1256
|
name: "Search"
|
|
1244
|
-
},
|
|
1257
|
+
}, na = {
|
|
1245
1258
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1246
1259
|
viewBox: "0 0 1024 1024"
|
|
1247
|
-
},
|
|
1260
|
+
}, oa = /* @__PURE__ */ D(
|
|
1248
1261
|
"path",
|
|
1249
1262
|
{
|
|
1250
1263
|
fill: "currentColor",
|
|
@@ -1253,16 +1266,16 @@ var ta = /* @__PURE__ */ oe(Zt, [["render", ea], ["__file", "plus.vue"]]), aa =
|
|
|
1253
1266
|
null,
|
|
1254
1267
|
-1
|
|
1255
1268
|
/* HOISTED */
|
|
1256
|
-
),
|
|
1257
|
-
|
|
1269
|
+
), sa = [
|
|
1270
|
+
oa
|
|
1258
1271
|
];
|
|
1259
|
-
function
|
|
1260
|
-
return n(), b("svg",
|
|
1272
|
+
function ua(e, s, a, i, r, u) {
|
|
1273
|
+
return n(), b("svg", na, sa);
|
|
1261
1274
|
}
|
|
1262
|
-
var
|
|
1263
|
-
const
|
|
1275
|
+
var ca = /* @__PURE__ */ se(la, [["render", ua], ["__file", "search.vue"]]);
|
|
1276
|
+
const ra = { class: "bsgoal-base-search-operation" }, ia = {
|
|
1264
1277
|
name: "BsgoalBaseSearchOperation"
|
|
1265
|
-
},
|
|
1278
|
+
}, da = /* @__PURE__ */ Object.assign(ia, {
|
|
1266
1279
|
props: {
|
|
1267
1280
|
/**
|
|
1268
1281
|
* 是否显示折叠按钮
|
|
@@ -1274,28 +1287,28 @@ const ca = { class: "bsgoal-base-search-operation" }, ra = {
|
|
|
1274
1287
|
},
|
|
1275
1288
|
emits: ["on-fold"],
|
|
1276
1289
|
setup(e, { emit: s }) {
|
|
1277
|
-
const a =
|
|
1290
|
+
const a = N(!1), i = () => {
|
|
1278
1291
|
a.value = !c(a), s("on-fold", a.value);
|
|
1279
1292
|
};
|
|
1280
1293
|
return (r, u) => {
|
|
1281
1294
|
const t = v("el-button"), d = v("el-icon");
|
|
1282
|
-
return n(), b("div",
|
|
1283
|
-
|
|
1295
|
+
return n(), b("div", ra, [
|
|
1296
|
+
$(t, {
|
|
1284
1297
|
type: "primary",
|
|
1285
|
-
icon: c(
|
|
1298
|
+
icon: c(ca),
|
|
1286
1299
|
onClick: u[0] || (u[0] = (_) => r.$emit("on-search"))
|
|
1287
1300
|
}, {
|
|
1288
1301
|
default: A(() => [
|
|
1289
|
-
|
|
1302
|
+
H("搜索")
|
|
1290
1303
|
]),
|
|
1291
1304
|
_: 1
|
|
1292
1305
|
}, 8, ["icon"]),
|
|
1293
|
-
|
|
1294
|
-
icon: c(
|
|
1306
|
+
$(t, {
|
|
1307
|
+
icon: c(Se),
|
|
1295
1308
|
onClick: u[1] || (u[1] = (_) => r.$emit("on-clear"))
|
|
1296
1309
|
}, {
|
|
1297
1310
|
default: A(() => [
|
|
1298
|
-
|
|
1311
|
+
H("清空")
|
|
1299
1312
|
]),
|
|
1300
1313
|
_: 1
|
|
1301
1314
|
}, 8, ["icon"]),
|
|
@@ -1305,26 +1318,26 @@ const ca = { class: "bsgoal-base-search-operation" }, ra = {
|
|
|
1305
1318
|
style: { color: "var(--el-color-primary)" },
|
|
1306
1319
|
onClick: i
|
|
1307
1320
|
}, [
|
|
1308
|
-
|
|
1309
|
-
|
|
1321
|
+
H(j(a.value ? "收起" : "展开"), 1),
|
|
1322
|
+
$(d, { color: "#409EFC" }, {
|
|
1310
1323
|
default: A(() => [
|
|
1311
|
-
|
|
1324
|
+
J($(c(Yt), null, null, 512), [
|
|
1312
1325
|
[te, a.value]
|
|
1313
1326
|
]),
|
|
1314
|
-
|
|
1327
|
+
J($(c($t), null, null, 512), [
|
|
1315
1328
|
[te, !a.value]
|
|
1316
1329
|
])
|
|
1317
1330
|
]),
|
|
1318
1331
|
_: 1
|
|
1319
1332
|
})
|
|
1320
|
-
])) :
|
|
1333
|
+
])) : C("", !0)
|
|
1321
1334
|
]);
|
|
1322
1335
|
};
|
|
1323
1336
|
}
|
|
1324
1337
|
});
|
|
1325
|
-
const
|
|
1338
|
+
const _a = { class: "bsgoal-base-cascader" }, ma = {
|
|
1326
1339
|
name: "BsgoalBaseCascader"
|
|
1327
|
-
},
|
|
1340
|
+
}, ga = /* @__PURE__ */ Object.assign(ma, {
|
|
1328
1341
|
props: {
|
|
1329
1342
|
/**
|
|
1330
1343
|
* 绑定的值
|
|
@@ -1357,7 +1370,7 @@ const da = { class: "bsgoal-base-cascader" }, _a = {
|
|
|
1357
1370
|
},
|
|
1358
1371
|
emits: ["update:model-value", "on-change"],
|
|
1359
1372
|
setup(e, { emit: s }) {
|
|
1360
|
-
const a =
|
|
1373
|
+
const a = N({
|
|
1361
1374
|
checkStrictly: !0,
|
|
1362
1375
|
multiple: !1
|
|
1363
1376
|
}), i = (r) => {
|
|
@@ -1365,8 +1378,8 @@ const da = { class: "bsgoal-base-cascader" }, _a = {
|
|
|
1365
1378
|
};
|
|
1366
1379
|
return (r, u) => {
|
|
1367
1380
|
const t = v("el-cascader");
|
|
1368
|
-
return n(), b("div",
|
|
1369
|
-
|
|
1381
|
+
return n(), b("div", _a, [
|
|
1382
|
+
$(t, {
|
|
1370
1383
|
clearable: "",
|
|
1371
1384
|
class: "base_cascader",
|
|
1372
1385
|
"show-all-levels": !1,
|
|
@@ -1380,9 +1393,9 @@ const da = { class: "bsgoal-base-cascader" }, _a = {
|
|
|
1380
1393
|
};
|
|
1381
1394
|
}
|
|
1382
1395
|
});
|
|
1383
|
-
const
|
|
1396
|
+
const fa = { class: "bsgoal-base-search" }, va = { class: "base_search" }, ha = { key: 1 }, pa = {
|
|
1384
1397
|
name: "BsgoalBaseSearch"
|
|
1385
|
-
},
|
|
1398
|
+
}, Ea = /* @__PURE__ */ Object.assign(pa, {
|
|
1386
1399
|
props: {
|
|
1387
1400
|
/**
|
|
1388
1401
|
* >----------props----------<
|
|
@@ -1424,12 +1437,12 @@ const ga = { class: "bsgoal-base-search" }, fa = { class: "base_search" }, va =
|
|
|
1424
1437
|
},
|
|
1425
1438
|
emits: ["on-search", "on-clear", "on-change", "on-fold"],
|
|
1426
1439
|
setup(e, { expose: s, emit: a }) {
|
|
1427
|
-
const i = e, r =
|
|
1440
|
+
const i = e, r = N(null), u = xe.align, t = N({});
|
|
1428
1441
|
pe(() => {
|
|
1429
1442
|
const { configOptions: x } = i;
|
|
1430
1443
|
c(x).forEach((B) => {
|
|
1431
|
-
const { value: m, prop: I = "", type:
|
|
1432
|
-
[l.INPUT, l.INPUT_TEXT_AREA].includes(
|
|
1444
|
+
const { value: m, prop: I = "", type: k = "" } = B;
|
|
1445
|
+
[l.INPUT, l.INPUT_TEXT_AREA].includes(k), t.value[I] = [0, !1].includes(m) ? m : "";
|
|
1433
1446
|
});
|
|
1434
1447
|
});
|
|
1435
1448
|
const d = Z(() => {
|
|
@@ -1486,15 +1499,15 @@ const ga = { class: "bsgoal-base-search" }, fa = { class: "base_search" }, va =
|
|
|
1486
1499
|
}, M = () => {
|
|
1487
1500
|
const { configOptions: x } = i, T = c(t), B = c(x), m = {};
|
|
1488
1501
|
for (const I of B) {
|
|
1489
|
-
const { type:
|
|
1490
|
-
if ([l.CASCADER].includes(
|
|
1491
|
-
const
|
|
1492
|
-
|
|
1502
|
+
const { type: k = "", range: L = [], prop: F = "", single: W = !1 } = I, R = T[F];
|
|
1503
|
+
if ([l.CASCADER].includes(k) && Array.isArray(R) && W) {
|
|
1504
|
+
const X = R.length;
|
|
1505
|
+
X ? m[F] = R[X - 1] : m[F] = R;
|
|
1493
1506
|
} else
|
|
1494
|
-
|
|
1495
|
-
if (
|
|
1496
|
-
const { 0:
|
|
1497
|
-
m[ae] =
|
|
1507
|
+
Fe(R) ? m[F] = Ue(R) : m[F] = R;
|
|
1508
|
+
if (k.endsWith("range") && L && L.length === 2) {
|
|
1509
|
+
const { 0: X = "", 1: ee = "" } = R, { 0: ae = "", 1: le = "" } = L;
|
|
1510
|
+
m[ae] = X, m[le] = ee;
|
|
1498
1511
|
}
|
|
1499
1512
|
}
|
|
1500
1513
|
a("on-search", m), a("update:modelValue", m);
|
|
@@ -1504,8 +1517,8 @@ const ga = { class: "bsgoal-base-search" }, fa = { class: "base_search" }, va =
|
|
|
1504
1517
|
});
|
|
1505
1518
|
const S = () => {
|
|
1506
1519
|
r.value.resetFields(), a("on-clear", t.value);
|
|
1507
|
-
},
|
|
1508
|
-
U.value = x,
|
|
1520
|
+
}, w = Me("transferFoldStatus"), U = N(!1), O = (x = !1) => {
|
|
1521
|
+
U.value = x, w && (w.value = x), a("on-fold", U);
|
|
1509
1522
|
}, h = (x, T) => {
|
|
1510
1523
|
M();
|
|
1511
1524
|
const B = {
|
|
@@ -1518,10 +1531,10 @@ const ga = { class: "bsgoal-base-search" }, fa = { class: "base_search" }, va =
|
|
|
1518
1531
|
return s({
|
|
1519
1532
|
triggerOperationSearch: M
|
|
1520
1533
|
}), (x, T) => {
|
|
1521
|
-
const B = v("el-input"), m = v("el-input-number"), I = v("el-radio"),
|
|
1522
|
-
return n(), b("div",
|
|
1523
|
-
|
|
1524
|
-
|
|
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"), W = v("el-slider"), R = v("el-switch"), X = 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"), G = v("el-form");
|
|
1535
|
+
return n(), b("div", fa, [
|
|
1536
|
+
D("div", va, [
|
|
1537
|
+
J((n(), y(G, {
|
|
1525
1538
|
ref_key: "EL_FORM_REF",
|
|
1526
1539
|
ref: r,
|
|
1527
1540
|
"label-suffix": ":",
|
|
@@ -1529,189 +1542,189 @@ const ga = { class: "bsgoal-base-search" }, fa = { class: "base_search" }, va =
|
|
|
1529
1542
|
model: t.value
|
|
1530
1543
|
}, {
|
|
1531
1544
|
default: A(() => [
|
|
1532
|
-
|
|
1545
|
+
$(ue, null, {
|
|
1533
1546
|
default: A(() => [
|
|
1534
1547
|
(n(!0), b(P, null, Q(d.value, ({
|
|
1535
|
-
label:
|
|
1548
|
+
label: g = "",
|
|
1536
1549
|
prop: o = "",
|
|
1537
|
-
type:
|
|
1538
|
-
placeholder:
|
|
1539
|
-
readonly:
|
|
1540
|
-
clearable:
|
|
1541
|
-
rows:
|
|
1542
|
-
min:
|
|
1543
|
-
max:
|
|
1544
|
-
range:
|
|
1550
|
+
type: f = "text",
|
|
1551
|
+
placeholder: Y = "",
|
|
1552
|
+
readonly: fe = !1,
|
|
1553
|
+
clearable: ve = !0,
|
|
1554
|
+
rows: he = 2,
|
|
1555
|
+
min: de = 1,
|
|
1556
|
+
max: z = 10,
|
|
1557
|
+
range: K = [],
|
|
1545
1558
|
format: ne = ""
|
|
1546
|
-
} = {},
|
|
1547
|
-
key:
|
|
1559
|
+
} = {}, ce) => J((n(), y(ie, {
|
|
1560
|
+
key: ce,
|
|
1548
1561
|
xs: 24,
|
|
1549
1562
|
sm: 12,
|
|
1550
1563
|
md: e.medium
|
|
1551
1564
|
}, {
|
|
1552
1565
|
default: A(() => [
|
|
1553
|
-
|
|
1554
|
-
label:
|
|
1566
|
+
$(re, {
|
|
1567
|
+
label: g,
|
|
1555
1568
|
prop: o
|
|
1556
1569
|
}, {
|
|
1557
1570
|
default: A(() => [
|
|
1558
|
-
|
|
1559
|
-
|
|
1571
|
+
fe ? (n(), b("div", ha, j(t.value[o]), 1)) : (n(), b(P, { key: 0 }, [
|
|
1572
|
+
f === c(l).INPUT ? (n(), y(B, {
|
|
1560
1573
|
key: 0,
|
|
1561
1574
|
modelValue: t.value[o],
|
|
1562
|
-
"onUpdate:modelValue": (
|
|
1563
|
-
placeholder: _(
|
|
1564
|
-
clearable:
|
|
1565
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable"])) :
|
|
1566
|
-
|
|
1575
|
+
"onUpdate:modelValue": (p) => t.value[o] = p,
|
|
1576
|
+
placeholder: _(f, g, Y),
|
|
1577
|
+
clearable: ve
|
|
1578
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable"])) : C("", !0),
|
|
1579
|
+
f === c(l).INPUT_TEXT_AREA ? (n(), y(B, {
|
|
1567
1580
|
key: 1,
|
|
1568
1581
|
modelValue: t.value[o],
|
|
1569
|
-
"onUpdate:modelValue": (
|
|
1582
|
+
"onUpdate:modelValue": (p) => t.value[o] = p,
|
|
1570
1583
|
type: "textarea",
|
|
1571
|
-
rows:
|
|
1572
|
-
clearable:
|
|
1573
|
-
placeholder: _(
|
|
1574
|
-
onChange: (
|
|
1575
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) :
|
|
1576
|
-
|
|
1584
|
+
rows: he,
|
|
1585
|
+
clearable: ve,
|
|
1586
|
+
placeholder: _(f, g, Y),
|
|
1587
|
+
onChange: (p) => h(f, o)
|
|
1588
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : C("", !0),
|
|
1589
|
+
f === c(l).INPUT_NUMBER ? (n(), y(m, {
|
|
1577
1590
|
key: 2,
|
|
1578
1591
|
modelValue: x.num,
|
|
1579
|
-
"onUpdate:modelValue": T[0] || (T[0] = (
|
|
1580
|
-
min:
|
|
1581
|
-
max:
|
|
1592
|
+
"onUpdate:modelValue": T[0] || (T[0] = (p) => x.num = p),
|
|
1593
|
+
min: de,
|
|
1594
|
+
max: z,
|
|
1582
1595
|
onChange: h
|
|
1583
|
-
}, null, 8, ["modelValue", "min", "max"])) :
|
|
1584
|
-
|
|
1596
|
+
}, null, 8, ["modelValue", "min", "max"])) : C("", !0),
|
|
1597
|
+
f === c(l).RADIO ? (n(), y(k, {
|
|
1585
1598
|
key: 3,
|
|
1586
1599
|
modelValue: t.value[o],
|
|
1587
|
-
"onUpdate:modelValue": (
|
|
1588
|
-
onChange: (
|
|
1600
|
+
"onUpdate:modelValue": (p) => t.value[o] = p,
|
|
1601
|
+
onChange: (p) => h(f, o)
|
|
1589
1602
|
}, {
|
|
1590
1603
|
default: A(() => [
|
|
1591
|
-
(n(!0), b(P, null, Q(
|
|
1592
|
-
key:
|
|
1593
|
-
label:
|
|
1604
|
+
(n(!0), b(P, null, Q(K, (p, oe) => (n(), y(I, {
|
|
1605
|
+
key: oe,
|
|
1606
|
+
label: p.value
|
|
1594
1607
|
}, {
|
|
1595
1608
|
default: A(() => [
|
|
1596
|
-
|
|
1609
|
+
H(j(p.label), 1)
|
|
1597
1610
|
]),
|
|
1598
1611
|
_: 2
|
|
1599
1612
|
}, 1032, ["label"]))), 128))
|
|
1600
1613
|
]),
|
|
1601
1614
|
_: 2
|
|
1602
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) :
|
|
1603
|
-
|
|
1615
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : C("", !0),
|
|
1616
|
+
f === c(l).SELECT ? (n(), y(F, {
|
|
1604
1617
|
key: 4,
|
|
1605
1618
|
modelValue: t.value[o],
|
|
1606
|
-
"onUpdate:modelValue": (
|
|
1607
|
-
placeholder: _(
|
|
1608
|
-
onChange: (
|
|
1619
|
+
"onUpdate:modelValue": (p) => t.value[o] = p,
|
|
1620
|
+
placeholder: _(f, g, Y),
|
|
1621
|
+
onChange: (p) => h(f, o)
|
|
1609
1622
|
}, {
|
|
1610
1623
|
default: A(() => [
|
|
1611
|
-
(n(!0), b(P, null, Q(
|
|
1612
|
-
key:
|
|
1613
|
-
label:
|
|
1614
|
-
value:
|
|
1624
|
+
(n(!0), b(P, null, Q(K, (p, oe) => (n(), y(L, {
|
|
1625
|
+
key: oe,
|
|
1626
|
+
label: p.label,
|
|
1627
|
+
value: p.value
|
|
1615
1628
|
}, null, 8, ["label", "value"]))), 128))
|
|
1616
1629
|
]),
|
|
1617
1630
|
_: 2
|
|
1618
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) :
|
|
1619
|
-
|
|
1631
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : C("", !0),
|
|
1632
|
+
f === c(l).SLIDER ? (n(), y(W, {
|
|
1620
1633
|
key: 5,
|
|
1621
1634
|
modelValue: t.value[o],
|
|
1622
|
-
"onUpdate:modelValue": (
|
|
1623
|
-
min:
|
|
1624
|
-
max:
|
|
1625
|
-
onChange: (
|
|
1626
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) :
|
|
1627
|
-
|
|
1635
|
+
"onUpdate:modelValue": (p) => t.value[o] = p,
|
|
1636
|
+
min: de,
|
|
1637
|
+
max: z,
|
|
1638
|
+
onChange: (p) => h(f, o)
|
|
1639
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : C("", !0),
|
|
1640
|
+
f === c(l).SWITCH ? (n(), y(R, {
|
|
1628
1641
|
key: 6,
|
|
1629
1642
|
modelValue: t.value[o],
|
|
1630
|
-
"onUpdate:modelValue": (
|
|
1631
|
-
"active-value":
|
|
1632
|
-
"inactive-value":
|
|
1633
|
-
onChange: (
|
|
1634
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) :
|
|
1643
|
+
"onUpdate:modelValue": (p) => t.value[o] = p,
|
|
1644
|
+
"active-value": K[0] || !0,
|
|
1645
|
+
"inactive-value": K[1] || !1,
|
|
1646
|
+
onChange: (p) => h(f, o)
|
|
1647
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : C("", !0),
|
|
1635
1648
|
[c(l).DATE, c(l).MONTH, c(l).YEAR, c(l).DATE_TIME].includes(
|
|
1636
|
-
|
|
1637
|
-
) ? (n(), y(
|
|
1649
|
+
f
|
|
1650
|
+
) ? (n(), y(X, {
|
|
1638
1651
|
key: 7,
|
|
1639
1652
|
modelValue: t.value[o],
|
|
1640
|
-
"onUpdate:modelValue": (
|
|
1641
|
-
format: V(
|
|
1642
|
-
"value-format": V(
|
|
1643
|
-
type:
|
|
1644
|
-
placeholder: _(
|
|
1645
|
-
onChange: (
|
|
1646
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) :
|
|
1653
|
+
"onUpdate:modelValue": (p) => t.value[o] = p,
|
|
1654
|
+
format: V(f, ne),
|
|
1655
|
+
"value-format": V(f, ne),
|
|
1656
|
+
type: f,
|
|
1657
|
+
placeholder: _(f, g, Y),
|
|
1658
|
+
onChange: (p) => h(f, o)
|
|
1659
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : C("", !0),
|
|
1647
1660
|
[
|
|
1648
1661
|
c(l).DATE_RANGE,
|
|
1649
1662
|
c(l).MONTH_RANGE,
|
|
1650
1663
|
c(l).DATE_TIME_RANGE
|
|
1651
|
-
].includes(
|
|
1664
|
+
].includes(f) ? (n(), y(X, {
|
|
1652
1665
|
key: 8,
|
|
1653
1666
|
modelValue: t.value[o],
|
|
1654
|
-
"onUpdate:modelValue": (
|
|
1655
|
-
type:
|
|
1656
|
-
"value-format": V(
|
|
1657
|
-
"start-placeholder": _(
|
|
1658
|
-
"end-placeholder": _(
|
|
1659
|
-
onChange: (
|
|
1660
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) :
|
|
1661
|
-
[c(l).TIME].includes(
|
|
1667
|
+
"onUpdate:modelValue": (p) => t.value[o] = p,
|
|
1668
|
+
type: f,
|
|
1669
|
+
"value-format": V(f, ne),
|
|
1670
|
+
"start-placeholder": _(f, g, Y)[0],
|
|
1671
|
+
"end-placeholder": _(f, g, Y)[1],
|
|
1672
|
+
onChange: (p) => h(f, o)
|
|
1673
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : C("", !0),
|
|
1674
|
+
[c(l).TIME].includes(f) ? (n(), y(ee, {
|
|
1662
1675
|
key: 9,
|
|
1663
1676
|
modelValue: t.value[o],
|
|
1664
|
-
"onUpdate:modelValue": (
|
|
1677
|
+
"onUpdate:modelValue": (p) => t.value[o] = p,
|
|
1665
1678
|
"arrow-control": "",
|
|
1666
|
-
"value-format": V(
|
|
1667
|
-
placeholder: _(
|
|
1668
|
-
onChange: (
|
|
1669
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) :
|
|
1670
|
-
[c(l).TIME_RANGE].includes(
|
|
1679
|
+
"value-format": V(f, ne),
|
|
1680
|
+
placeholder: _(f, g, Y),
|
|
1681
|
+
onChange: (p) => h(f, o)
|
|
1682
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : C("", !0),
|
|
1683
|
+
[c(l).TIME_RANGE].includes(f) ? (n(), y(ee, {
|
|
1671
1684
|
key: 10,
|
|
1672
1685
|
modelValue: t.value[o],
|
|
1673
|
-
"onUpdate:modelValue": (
|
|
1686
|
+
"onUpdate:modelValue": (p) => t.value[o] = p,
|
|
1674
1687
|
"is-range": "",
|
|
1675
|
-
"value-format": V(
|
|
1676
|
-
"start-placeholder": _(
|
|
1677
|
-
"end-placeholder": _(
|
|
1678
|
-
onChange: (
|
|
1679
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) :
|
|
1680
|
-
[c(l).CHECKBOX].includes(
|
|
1688
|
+
"value-format": V(f, ne),
|
|
1689
|
+
"start-placeholder": _(f, g, Y)[0],
|
|
1690
|
+
"end-placeholder": _(f, g, Y)[1],
|
|
1691
|
+
onChange: (p) => h(f, o)
|
|
1692
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : C("", !0),
|
|
1693
|
+
[c(l).CHECKBOX].includes(f) ? (n(), y(le, {
|
|
1681
1694
|
key: 11,
|
|
1682
1695
|
modelValue: t.value[o],
|
|
1683
|
-
"onUpdate:modelValue": (
|
|
1684
|
-
onChange: (
|
|
1696
|
+
"onUpdate:modelValue": (p) => t.value[o] = p,
|
|
1697
|
+
onChange: (p) => h(f, o)
|
|
1685
1698
|
}, {
|
|
1686
1699
|
default: A(() => [
|
|
1687
|
-
(n(!0), b(P, null, Q(
|
|
1688
|
-
key:
|
|
1689
|
-
label:
|
|
1700
|
+
(n(!0), b(P, null, Q(K, (p, oe) => (n(), y(ae, {
|
|
1701
|
+
key: oe,
|
|
1702
|
+
label: p.value
|
|
1690
1703
|
}, {
|
|
1691
1704
|
default: A(() => [
|
|
1692
|
-
|
|
1705
|
+
H(j(p.label), 1)
|
|
1693
1706
|
]),
|
|
1694
1707
|
_: 2
|
|
1695
1708
|
}, 1032, ["label"]))), 128))
|
|
1696
1709
|
]),
|
|
1697
1710
|
_: 2
|
|
1698
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) :
|
|
1699
|
-
[c(l).CASCADER].includes(
|
|
1711
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : C("", !0),
|
|
1712
|
+
[c(l).CASCADER].includes(f) ? (n(), y(ga, {
|
|
1700
1713
|
key: 12,
|
|
1701
1714
|
modelValue: t.value[o],
|
|
1702
|
-
"onUpdate:modelValue": (
|
|
1703
|
-
"data-options":
|
|
1704
|
-
placeholder: _(
|
|
1705
|
-
onOnChange: (
|
|
1706
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "data-options", "placeholder", "onOnChange"])) :
|
|
1707
|
-
[].includes(
|
|
1708
|
-
[c(l).OPERATION].includes(
|
|
1715
|
+
"onUpdate:modelValue": (p) => t.value[o] = p,
|
|
1716
|
+
"data-options": K,
|
|
1717
|
+
placeholder: _(f, g, Y),
|
|
1718
|
+
onOnChange: (p) => h(f, o)
|
|
1719
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "data-options", "placeholder", "onOnChange"])) : C("", !0),
|
|
1720
|
+
[].includes(f) ? (n(), b(P, { key: 13 }, [], 64)) : C("", !0),
|
|
1721
|
+
[c(l).OPERATION].includes(f) ? (n(), y(da, {
|
|
1709
1722
|
key: 14,
|
|
1710
|
-
fold:
|
|
1723
|
+
fold: ce >= 7,
|
|
1711
1724
|
onOnSearch: M,
|
|
1712
1725
|
onOnClear: S,
|
|
1713
|
-
onOnFold:
|
|
1714
|
-
}, null, 8, ["fold"])) :
|
|
1726
|
+
onOnFold: O
|
|
1727
|
+
}, null, 8, ["fold"])) : C("", !0)
|
|
1715
1728
|
], 64))
|
|
1716
1729
|
]),
|
|
1717
1730
|
_: 2
|
|
@@ -1719,7 +1732,7 @@ const ga = { class: "bsgoal-base-search" }, fa = { class: "base_search" }, va =
|
|
|
1719
1732
|
]),
|
|
1720
1733
|
_: 2
|
|
1721
1734
|
}, 1032, ["md"])), [
|
|
1722
|
-
[te,
|
|
1735
|
+
[te, ce < 7 || f === c(l).OPERATION || ce >= 7 && U.value]
|
|
1723
1736
|
])), 128))
|
|
1724
1737
|
]),
|
|
1725
1738
|
_: 1
|
|
@@ -1730,14 +1743,14 @@ const ga = { class: "bsgoal-base-search" }, fa = { class: "base_search" }, va =
|
|
|
1730
1743
|
[c(u)]
|
|
1731
1744
|
])
|
|
1732
1745
|
]),
|
|
1733
|
-
|
|
1746
|
+
$(Te)
|
|
1734
1747
|
]);
|
|
1735
1748
|
};
|
|
1736
1749
|
}
|
|
1737
1750
|
});
|
|
1738
|
-
const
|
|
1751
|
+
const ba = { class: "bsgoal-base-search-table" }, ya = { class: "base_search_table" }, xa = {
|
|
1739
1752
|
name: "BsgoalBaseSearchTable"
|
|
1740
|
-
},
|
|
1753
|
+
}, Aa = /* @__PURE__ */ Object.assign(xa, {
|
|
1741
1754
|
props: {
|
|
1742
1755
|
/**
|
|
1743
1756
|
* >----------props----------<
|
|
@@ -1844,37 +1857,37 @@ const Ea = { class: "bsgoal-base-search-table" }, ba = { class: "base_search_tab
|
|
|
1844
1857
|
}
|
|
1845
1858
|
},
|
|
1846
1859
|
setup(e, { expose: s }) {
|
|
1847
|
-
const a = e, i =
|
|
1848
|
-
|
|
1849
|
-
const r = c(a.configOptions), u = Z(() => r.filter((
|
|
1850
|
-
const { type: h = "" } =
|
|
1860
|
+
const a = e, i = N(!1);
|
|
1861
|
+
Le("transferFoldStatus", i);
|
|
1862
|
+
const r = c(a.configOptions), u = Z(() => r.filter((O) => {
|
|
1863
|
+
const { type: h = "" } = O;
|
|
1851
1864
|
return !!h;
|
|
1852
|
-
})), t = Z(() => r.filter((
|
|
1853
|
-
const { item: h = !1 } =
|
|
1865
|
+
})), t = Z(() => r.filter((O) => {
|
|
1866
|
+
const { item: h = !1 } = O;
|
|
1854
1867
|
return !h;
|
|
1855
|
-
})), d =
|
|
1856
|
-
V.value.refreshList(
|
|
1868
|
+
})), d = Be(), _ = N(Object.keys(d)), V = N(null), M = (O) => {
|
|
1869
|
+
V.value.refreshList(O);
|
|
1857
1870
|
}, S = Z(() => {
|
|
1858
|
-
const { expression:
|
|
1859
|
-
return h === !1 ? 25 :
|
|
1860
|
-
}),
|
|
1871
|
+
const { expression: O, hasPage: h } = a;
|
|
1872
|
+
return h === !1 ? 25 : O;
|
|
1873
|
+
}), w = N(null);
|
|
1861
1874
|
return s({
|
|
1862
1875
|
refresh: () => {
|
|
1863
|
-
const { hasSearch:
|
|
1864
|
-
c(
|
|
1876
|
+
const { hasSearch: O } = a;
|
|
1877
|
+
c(O) && w.value.triggerOperationSearch();
|
|
1865
1878
|
}
|
|
1866
|
-
}), (
|
|
1867
|
-
|
|
1868
|
-
|
|
1879
|
+
}), (O, h) => (n(), b("div", ba, [
|
|
1880
|
+
D("div", ya, [
|
|
1881
|
+
J($(Ea, {
|
|
1869
1882
|
ref_key: "BSGOAL_BASE_SEARCH_REF",
|
|
1870
|
-
ref:
|
|
1883
|
+
ref: w,
|
|
1871
1884
|
"config-options": u.value,
|
|
1872
1885
|
onOnSearch: M,
|
|
1873
1886
|
onOnClear: M
|
|
1874
1887
|
}, null, 8, ["config-options"]), [
|
|
1875
1888
|
[te, e.hasSearch]
|
|
1876
1889
|
]),
|
|
1877
|
-
|
|
1890
|
+
$(ke, {
|
|
1878
1891
|
ref_key: "BSGOAL_BASE_TABLE_REF",
|
|
1879
1892
|
ref: V,
|
|
1880
1893
|
"map-props": e.mapProps,
|
|
@@ -1887,11 +1900,11 @@ const Ea = { class: "bsgoal-base-search-table" }, ba = { class: "base_search_tab
|
|
|
1887
1900
|
fetch: e.fetch,
|
|
1888
1901
|
call: e.call,
|
|
1889
1902
|
"has-page": e.hasPage
|
|
1890
|
-
},
|
|
1903
|
+
}, Pe({ _: 2 }, [
|
|
1891
1904
|
Q(_.value, (x) => ({
|
|
1892
1905
|
name: x,
|
|
1893
1906
|
fn: A(({ row: T = {} }) => [
|
|
1894
|
-
|
|
1907
|
+
q(O.$slots, x, { row: T })
|
|
1895
1908
|
])
|
|
1896
1909
|
}))
|
|
1897
1910
|
]), 1032, ["map-props", "operationWidth", "config-options", "data", "selection", "operation", "expression", "fetch", "call", "has-page"])
|
|
@@ -1899,29 +1912,29 @@ const Ea = { class: "bsgoal-base-search-table" }, ba = { class: "base_search_tab
|
|
|
1899
1912
|
]));
|
|
1900
1913
|
}
|
|
1901
1914
|
});
|
|
1902
|
-
const
|
|
1915
|
+
const Ta = { class: "bsgoal-base-tree-fold" }, Va = {
|
|
1903
1916
|
name: "BsgoalBaseTreeFold"
|
|
1904
|
-
},
|
|
1917
|
+
}, Ca = /* @__PURE__ */ Object.assign(Va, {
|
|
1905
1918
|
props: ["modelValue"],
|
|
1906
1919
|
emits: ["update:modelValue"],
|
|
1907
1920
|
setup(e, { emit: s }) {
|
|
1908
|
-
let a =
|
|
1921
|
+
let a = N(!0);
|
|
1909
1922
|
const i = () => {
|
|
1910
1923
|
a.value = !a.value, s("update:modelValue", a.value);
|
|
1911
1924
|
};
|
|
1912
1925
|
return (r, u) => {
|
|
1913
1926
|
const t = v("el-icon");
|
|
1914
|
-
return n(), b("div",
|
|
1915
|
-
|
|
1916
|
-
class:
|
|
1927
|
+
return n(), b("div", Ta, [
|
|
1928
|
+
D("div", {
|
|
1929
|
+
class: ge(["base_tree_fold", { "base_tree_fold--hide": !c(a) }]),
|
|
1917
1930
|
onClick: i
|
|
1918
1931
|
}, [
|
|
1919
|
-
|
|
1932
|
+
$(t, { color: "#fff" }, {
|
|
1920
1933
|
default: A(() => [
|
|
1921
|
-
|
|
1934
|
+
J($(c(St), null, null, 512), [
|
|
1922
1935
|
[te, c(a)]
|
|
1923
1936
|
]),
|
|
1924
|
-
|
|
1937
|
+
J($(c(Ut), null, null, 512), [
|
|
1925
1938
|
[te, !c(a)]
|
|
1926
1939
|
])
|
|
1927
1940
|
]),
|
|
@@ -1932,9 +1945,9 @@ const Aa = { class: "bsgoal-base-tree-fold" }, Ta = {
|
|
|
1932
1945
|
};
|
|
1933
1946
|
}
|
|
1934
1947
|
});
|
|
1935
|
-
const $a = { class: "bsgoal-base-tree" },
|
|
1948
|
+
const $a = { class: "bsgoal-base-tree" }, Ma = { class: "base_tree" }, Ba = { class: "base_tree_main" }, Na = {
|
|
1936
1949
|
name: "BsgoalBaseTree"
|
|
1937
|
-
}, wa = /* @__PURE__ */ Object.assign(
|
|
1950
|
+
}, wa = /* @__PURE__ */ Object.assign(Na, {
|
|
1938
1951
|
props: {
|
|
1939
1952
|
/**
|
|
1940
1953
|
* 树结构 的下边距
|
|
@@ -1988,39 +2001,39 @@ const $a = { class: "bsgoal-base-tree" }, Ca = { class: "base_tree" }, Ma = { cl
|
|
|
1988
2001
|
},
|
|
1989
2002
|
emits: ["on-click"],
|
|
1990
2003
|
setup(e, { emit: s }) {
|
|
1991
|
-
const a = e, i =
|
|
1992
|
-
|
|
2004
|
+
const a = e, i = xe.height, r = N(""), u = N(null);
|
|
2005
|
+
me(r, (M) => {
|
|
1993
2006
|
u.value.filter(M);
|
|
1994
2007
|
});
|
|
1995
|
-
const t = (M, S) => M ? S.label.includes(M) : !0, d =
|
|
1996
|
-
s("on-click", M, S,
|
|
1997
|
-
}, V = async (M, S,
|
|
2008
|
+
const t = (M, S) => M ? S.label.includes(M) : !0, d = N(!0), _ = (M, S, w, U) => {
|
|
2009
|
+
s("on-click", M, S, w, U);
|
|
2010
|
+
}, V = async (M, S, w) => {
|
|
1998
2011
|
if (M.level === 0) {
|
|
1999
|
-
const U = await
|
|
2012
|
+
const U = await w.initNode(M);
|
|
2000
2013
|
return S(U || []);
|
|
2001
2014
|
} else {
|
|
2002
|
-
const U = await
|
|
2015
|
+
const U = await w.lazyLoad(M);
|
|
2003
2016
|
S(U || []);
|
|
2004
2017
|
}
|
|
2005
2018
|
};
|
|
2006
2019
|
return (M, S) => {
|
|
2007
|
-
const
|
|
2020
|
+
const w = v("el-input"), U = v("el-tree");
|
|
2008
2021
|
return n(), b("div", $a, [
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2022
|
+
J((n(), b("div", Ma, [
|
|
2023
|
+
J(D("div", Ba, [
|
|
2024
|
+
$(w, {
|
|
2012
2025
|
modelValue: r.value,
|
|
2013
|
-
"onUpdate:modelValue": S[0] || (S[0] = (
|
|
2026
|
+
"onUpdate:modelValue": S[0] || (S[0] = (O) => r.value = O),
|
|
2014
2027
|
class: "base_tree_main_input",
|
|
2015
2028
|
placeholder: "输入关键字过滤"
|
|
2016
2029
|
}, null, 8, ["modelValue"]),
|
|
2017
|
-
|
|
2030
|
+
$(U, {
|
|
2018
2031
|
ref_key: "EL_TREE_REF",
|
|
2019
2032
|
ref: u,
|
|
2020
2033
|
lazy: "",
|
|
2021
2034
|
"highlight-current": "",
|
|
2022
2035
|
"empty-text": "暂无数据",
|
|
2023
|
-
load: (
|
|
2036
|
+
load: (O, h) => V(O, h, a),
|
|
2024
2037
|
"expand-on-click-node": !1,
|
|
2025
2038
|
props: e.treeProps,
|
|
2026
2039
|
"filter-node-method": t,
|
|
@@ -2029,12 +2042,12 @@ const $a = { class: "bsgoal-base-tree" }, Ca = { class: "base_tree" }, Ma = { cl
|
|
|
2029
2042
|
], 512), [
|
|
2030
2043
|
[te, d.value]
|
|
2031
2044
|
]),
|
|
2032
|
-
|
|
2045
|
+
J($(Te, { vertical: "" }, null, 512), [
|
|
2033
2046
|
[te, d.value]
|
|
2034
2047
|
]),
|
|
2035
|
-
|
|
2048
|
+
$(Ca, {
|
|
2036
2049
|
modelValue: d.value,
|
|
2037
|
-
"onUpdate:modelValue": S[1] || (S[1] = (
|
|
2050
|
+
"onUpdate:modelValue": S[1] || (S[1] = (O) => d.value = O)
|
|
2038
2051
|
}, null, 8, ["modelValue"])
|
|
2039
2052
|
])), [
|
|
2040
2053
|
[c(i), e.gasket]
|
|
@@ -2043,9 +2056,9 @@ const $a = { class: "bsgoal-base-tree" }, Ca = { class: "base_tree" }, Ma = { cl
|
|
|
2043
2056
|
};
|
|
2044
2057
|
}
|
|
2045
2058
|
});
|
|
2046
|
-
const
|
|
2059
|
+
const ka = { class: "bsgoal-base-dialog" }, Sa = { class: "base_dialog" }, Oa = { class: "base_dialog_header" }, Da = { class: "base_dialog_footer" }, Ia = {
|
|
2047
2060
|
name: "BsgoalBaseDialog"
|
|
2048
|
-
},
|
|
2061
|
+
}, Ra = /* @__PURE__ */ Object.assign(Ia, {
|
|
2049
2062
|
props: {
|
|
2050
2063
|
/**
|
|
2051
2064
|
* 弹窗状态
|
|
@@ -2107,19 +2120,19 @@ const Na = { class: "bsgoal-base-dialog" }, ka = { class: "base_dialog" }, Sa =
|
|
|
2107
2120
|
},
|
|
2108
2121
|
emits: ["update:modelValue", "on-confirm"],
|
|
2109
2122
|
setup(e, { emit: s }) {
|
|
2110
|
-
const a = e, i =
|
|
2123
|
+
const a = e, i = N(a.modelValue.value), r = () => {
|
|
2111
2124
|
i.value = !1;
|
|
2112
2125
|
}, u = () => {
|
|
2113
2126
|
s("on-confirm", () => {
|
|
2114
2127
|
i.value = !1;
|
|
2115
2128
|
});
|
|
2116
2129
|
};
|
|
2117
|
-
|
|
2130
|
+
me(
|
|
2118
2131
|
() => a.modelValue,
|
|
2119
2132
|
(d) => {
|
|
2120
2133
|
i.value = d;
|
|
2121
2134
|
}
|
|
2122
|
-
),
|
|
2135
|
+
), me(i, (d) => {
|
|
2123
2136
|
s("update:modelValue", d);
|
|
2124
2137
|
});
|
|
2125
2138
|
const t = Z(() => {
|
|
@@ -2143,44 +2156,44 @@ const Na = { class: "bsgoal-base-dialog" }, ka = { class: "base_dialog" }, Sa =
|
|
|
2143
2156
|
});
|
|
2144
2157
|
return (d, _) => {
|
|
2145
2158
|
const V = v("el-button"), M = v("el-dialog");
|
|
2146
|
-
return n(), b("div",
|
|
2147
|
-
|
|
2148
|
-
|
|
2159
|
+
return n(), b("div", ka, [
|
|
2160
|
+
D("div", Sa, [
|
|
2161
|
+
$(M, {
|
|
2149
2162
|
modelValue: i.value,
|
|
2150
2163
|
"onUpdate:modelValue": _[0] || (_[0] = (S) => i.value = S),
|
|
2151
2164
|
"custom-class": "bsgoal_base_dialog_main",
|
|
2152
|
-
class:
|
|
2165
|
+
class: ge({ "bsgoal-dialog__footer--conceal": !e.footer }),
|
|
2153
2166
|
width: t.value
|
|
2154
2167
|
}, {
|
|
2155
2168
|
header: A(() => [
|
|
2156
|
-
|
|
2169
|
+
D("div", Oa, j(e.title), 1)
|
|
2157
2170
|
]),
|
|
2158
2171
|
footer: A(() => [
|
|
2159
|
-
e.footer ?
|
|
2160
|
-
|
|
2161
|
-
|
|
2172
|
+
e.footer ? q(d.$slots, "footer", { key: 0 }, () => [
|
|
2173
|
+
D("span", Da, [
|
|
2174
|
+
$(V, { onClick: r }, {
|
|
2162
2175
|
default: A(() => [
|
|
2163
|
-
|
|
2176
|
+
H(j(e.cancelTxt), 1)
|
|
2164
2177
|
]),
|
|
2165
2178
|
_: 1
|
|
2166
2179
|
}),
|
|
2167
|
-
|
|
2180
|
+
$(V, {
|
|
2168
2181
|
type: "primary",
|
|
2169
2182
|
onClick: u
|
|
2170
2183
|
}, {
|
|
2171
2184
|
default: A(() => [
|
|
2172
|
-
|
|
2185
|
+
H(j(e.confirmTxt), 1)
|
|
2173
2186
|
]),
|
|
2174
2187
|
_: 1
|
|
2175
2188
|
})
|
|
2176
2189
|
])
|
|
2177
|
-
]) :
|
|
2190
|
+
]) : C("", !0)
|
|
2178
2191
|
]),
|
|
2179
2192
|
default: A(() => [
|
|
2180
|
-
|
|
2181
|
-
class:
|
|
2193
|
+
D("div", {
|
|
2194
|
+
class: ge(["base_dialog_content", { "base_dialog_content--form": e.type === "form" }])
|
|
2182
2195
|
}, [
|
|
2183
|
-
|
|
2196
|
+
q(d.$slots, "default")
|
|
2184
2197
|
], 2)
|
|
2185
2198
|
]),
|
|
2186
2199
|
_: 3
|
|
@@ -2190,9 +2203,9 @@ const Na = { class: "bsgoal-base-dialog" }, ka = { class: "base_dialog" }, Sa =
|
|
|
2190
2203
|
};
|
|
2191
2204
|
}
|
|
2192
2205
|
});
|
|
2193
|
-
const
|
|
2206
|
+
const Fa = { class: "bsgoal-base-tabs" }, Ua = {
|
|
2194
2207
|
name: "BsgoalBaseTabs"
|
|
2195
|
-
},
|
|
2208
|
+
}, La = /* @__PURE__ */ Object.assign(Ua, {
|
|
2196
2209
|
props: {
|
|
2197
2210
|
/**
|
|
2198
2211
|
* 配置项
|
|
@@ -2242,8 +2255,8 @@ const Ra = { class: "bsgoal-base-tabs" }, Fa = {
|
|
|
2242
2255
|
};
|
|
2243
2256
|
return (u, t) => {
|
|
2244
2257
|
const d = v("el-tab-pane"), _ = v("el-tabs");
|
|
2245
|
-
return n(), b("div",
|
|
2246
|
-
|
|
2258
|
+
return n(), b("div", Fa, [
|
|
2259
|
+
$(_, {
|
|
2247
2260
|
class: "bsgoal_base_tabs",
|
|
2248
2261
|
stretch: e.stretch,
|
|
2249
2262
|
type: e.type,
|
|
@@ -2257,8 +2270,8 @@ const Ra = { class: "bsgoal-base-tabs" }, Fa = {
|
|
|
2257
2270
|
name: M
|
|
2258
2271
|
}, {
|
|
2259
2272
|
default: A(() => [
|
|
2260
|
-
|
|
2261
|
-
|
|
2273
|
+
q(u.$slots, M, {}, () => [
|
|
2274
|
+
H(j(V), 1)
|
|
2262
2275
|
])
|
|
2263
2276
|
]),
|
|
2264
2277
|
_: 2
|
|
@@ -2270,9 +2283,9 @@ const Ra = { class: "bsgoal-base-tabs" }, Fa = {
|
|
|
2270
2283
|
};
|
|
2271
2284
|
}
|
|
2272
2285
|
});
|
|
2273
|
-
const
|
|
2286
|
+
const Pa = { class: "bsgoal-base-link" }, za = {
|
|
2274
2287
|
name: "BsgoalBaseLink"
|
|
2275
|
-
}, ja = /* @__PURE__ */ Object.assign(
|
|
2288
|
+
}, ja = /* @__PURE__ */ Object.assign(za, {
|
|
2276
2289
|
props: {
|
|
2277
2290
|
/**
|
|
2278
2291
|
* 内容
|
|
@@ -2303,17 +2316,17 @@ const La = { class: "bsgoal-base-link" }, Pa = {
|
|
|
2303
2316
|
};
|
|
2304
2317
|
return (i, r) => {
|
|
2305
2318
|
const u = v("el-link");
|
|
2306
|
-
return n(), b("div",
|
|
2307
|
-
|
|
2319
|
+
return n(), b("div", Pa, [
|
|
2320
|
+
$(u, {
|
|
2308
2321
|
class: "bsgoal_base_link",
|
|
2309
2322
|
type: "primary",
|
|
2310
2323
|
underline: e.underline,
|
|
2311
|
-
style:
|
|
2324
|
+
style: ze(e.styler),
|
|
2312
2325
|
onClick: a
|
|
2313
2326
|
}, {
|
|
2314
2327
|
default: A(() => [
|
|
2315
|
-
|
|
2316
|
-
|
|
2328
|
+
q(i.$slots, "default", {}, () => [
|
|
2329
|
+
H(j(e.content), 1)
|
|
2317
2330
|
], !0)
|
|
2318
2331
|
]),
|
|
2319
2332
|
_: 3
|
|
@@ -2321,10 +2334,10 @@ const La = { class: "bsgoal-base-link" }, Pa = {
|
|
|
2321
2334
|
]);
|
|
2322
2335
|
};
|
|
2323
2336
|
}
|
|
2324
|
-
}),
|
|
2325
|
-
const
|
|
2337
|
+
}), Ga = /* @__PURE__ */ we(ja, [["__scopeId", "data-v-3b0290b0"]]);
|
|
2338
|
+
const Ya = { class: "bsgoal-base-button" }, Ha = {
|
|
2326
2339
|
name: "BsgoalBaseButton"
|
|
2327
|
-
},
|
|
2340
|
+
}, Wa = /* @__PURE__ */ Object.assign(Ha, {
|
|
2328
2341
|
props: {
|
|
2329
2342
|
task: {
|
|
2330
2343
|
type: [Object, Function],
|
|
@@ -2360,7 +2373,7 @@ const Ga = { class: "bsgoal-base-button" }, Ya = {
|
|
|
2360
2373
|
}
|
|
2361
2374
|
},
|
|
2362
2375
|
setup(e) {
|
|
2363
|
-
const s = e, a =
|
|
2376
|
+
const s = e, a = N(!1), i = () => {
|
|
2364
2377
|
a.value = !0;
|
|
2365
2378
|
const { task: t } = s;
|
|
2366
2379
|
c(t)(() => {
|
|
@@ -2377,28 +2390,28 @@ const Ga = { class: "bsgoal-base-button" }, Ya = {
|
|
|
2377
2390
|
const { mode: t = "", icon: d = "" } = s;
|
|
2378
2391
|
switch (t) {
|
|
2379
2392
|
case "delete":
|
|
2380
|
-
return
|
|
2393
|
+
return Se;
|
|
2381
2394
|
case "add":
|
|
2382
|
-
return
|
|
2395
|
+
return aa;
|
|
2383
2396
|
}
|
|
2384
2397
|
return d;
|
|
2385
2398
|
});
|
|
2386
2399
|
return (t, d) => {
|
|
2387
2400
|
const _ = v("el-button");
|
|
2388
|
-
return n(), b("div",
|
|
2389
|
-
|
|
2401
|
+
return n(), b("div", Ya, [
|
|
2402
|
+
D("div", {
|
|
2390
2403
|
class: "base_button",
|
|
2391
2404
|
onClick: i
|
|
2392
2405
|
}, [
|
|
2393
|
-
|
|
2394
|
-
|
|
2406
|
+
q(t.$slots, "default", { loading: a.value }, () => [
|
|
2407
|
+
$(_, {
|
|
2395
2408
|
type: r.value,
|
|
2396
2409
|
icon: u.value,
|
|
2397
2410
|
loading: a.value,
|
|
2398
2411
|
plain: e.plain
|
|
2399
2412
|
}, {
|
|
2400
2413
|
default: A(() => [
|
|
2401
|
-
|
|
2414
|
+
H(j(e.content), 1)
|
|
2402
2415
|
]),
|
|
2403
2416
|
_: 1
|
|
2404
2417
|
}, 8, ["type", "icon", "loading", "plain"])
|
|
@@ -2408,9 +2421,9 @@ const Ga = { class: "bsgoal-base-button" }, Ya = {
|
|
|
2408
2421
|
};
|
|
2409
2422
|
}
|
|
2410
2423
|
});
|
|
2411
|
-
const
|
|
2424
|
+
const Xa = { class: "bsgoal-base-layout" }, Ka = {
|
|
2412
2425
|
name: "BsgoalBaseLayout"
|
|
2413
|
-
}, Qa = /* @__PURE__ */ Object.assign(
|
|
2426
|
+
}, Qa = /* @__PURE__ */ Object.assign(Ka, {
|
|
2414
2427
|
props: {
|
|
2415
2428
|
/**
|
|
2416
2429
|
* 间隔
|
|
@@ -2428,11 +2441,11 @@ const Wa = { class: "bsgoal-base-layout" }, Xa = {
|
|
|
2428
2441
|
}
|
|
2429
2442
|
},
|
|
2430
2443
|
setup(e) {
|
|
2431
|
-
const s =
|
|
2444
|
+
const s = Be(), a = N(Object.keys(s));
|
|
2432
2445
|
return (i, r) => {
|
|
2433
2446
|
const u = v("el-col"), t = v("el-row");
|
|
2434
|
-
return n(), b("div",
|
|
2435
|
-
|
|
2447
|
+
return n(), b("div", Xa, [
|
|
2448
|
+
$(t, {
|
|
2436
2449
|
class: "base_layout",
|
|
2437
2450
|
gutter: e.gutter
|
|
2438
2451
|
}, {
|
|
@@ -2446,7 +2459,7 @@ const Wa = { class: "bsgoal-base-layout" }, Xa = {
|
|
|
2446
2459
|
xl: e.ratio
|
|
2447
2460
|
}, {
|
|
2448
2461
|
default: A(() => [
|
|
2449
|
-
|
|
2462
|
+
q(i.$slots, d)
|
|
2450
2463
|
]),
|
|
2451
2464
|
_: 2
|
|
2452
2465
|
}, 1032, ["md", "lg", "xl"]))), 128))
|
|
@@ -2456,29 +2469,29 @@ const Wa = { class: "bsgoal-base-layout" }, Xa = {
|
|
|
2456
2469
|
]);
|
|
2457
2470
|
};
|
|
2458
2471
|
}
|
|
2459
|
-
}),
|
|
2472
|
+
}), el = l, tl = Ae, al = {
|
|
2460
2473
|
install(e, s = {}) {
|
|
2461
2474
|
const { exclude: a = [] } = s, i = {
|
|
2462
2475
|
BsgoalBaseForm: Qe,
|
|
2463
|
-
BsgoalBaseTable:
|
|
2464
|
-
BsgoalBaseLine:
|
|
2465
|
-
BsgoalBaseSearchTable:
|
|
2476
|
+
BsgoalBaseTable: ke,
|
|
2477
|
+
BsgoalBaseLine: Te,
|
|
2478
|
+
BsgoalBaseSearchTable: Aa,
|
|
2466
2479
|
BsgoalBaseTree: wa,
|
|
2467
|
-
BsgoalBaseDialog:
|
|
2468
|
-
BsgoalBaseTabs:
|
|
2469
|
-
BsgoalBaseLink:
|
|
2470
|
-
BsgoalBaseButton:
|
|
2480
|
+
BsgoalBaseDialog: Ra,
|
|
2481
|
+
BsgoalBaseTabs: La,
|
|
2482
|
+
BsgoalBaseLink: Ga,
|
|
2483
|
+
BsgoalBaseButton: Wa,
|
|
2471
2484
|
BsgoalBaseLayout: Qa
|
|
2472
2485
|
};
|
|
2473
2486
|
for (const [r, u] of Object.entries(i))
|
|
2474
2487
|
a.includes(r) || e.component(r, u);
|
|
2475
2488
|
},
|
|
2476
2489
|
enumType: l,
|
|
2477
|
-
useFetch:
|
|
2490
|
+
useFetch: Ae
|
|
2478
2491
|
};
|
|
2479
2492
|
export {
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2493
|
+
el as EnumType,
|
|
2494
|
+
al as default,
|
|
2495
|
+
tl as useFetchApi
|
|
2483
2496
|
};
|
|
2484
2497
|
//# sourceMappingURL=index.mjs.map
|