@bsgoal/common 1.5.7 → 1.5.9
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 +528 -488
- 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/combines/useComs.js +12 -3
- package/src/components/bsgoal-base-dialog/demo.vue +6 -3
- package/src/components/bsgoal-base-dialog/index.vue +13 -4
- package/src/components/bsgoal-base-table/demo.vue +164 -172
- package/src/components/bsgoal-base-table/index.vue +19 -2
- package/src/components/bsgoal-base-tooltip/index.vue +3 -3
- package/src/utils/common.js +53 -0
package/dist/index.mjs
CHANGED
|
@@ -9,8 +9,8 @@ var Ae = (e, s, l) => s in e ? $e(e, s, { enumerable: !0, configurable: !0, writ
|
|
|
9
9
|
we.call(s, l) && Ae(e, l, s[l]);
|
|
10
10
|
return e;
|
|
11
11
|
};
|
|
12
|
-
import { computed as q, resolveComponent as
|
|
13
|
-
import { ElMessage as
|
|
12
|
+
import { computed as q, resolveComponent as h, openBlock as n, createElementBlock as A, createVNode as $, unref as u, withCtx as V, renderSlot as ae, createTextVNode as X, toDisplayString as H, ref as O, watchEffect as pe, createElementVNode as S, withDirectives as Q, createBlock as T, Fragment as z, renderList as W, createCommentVNode as M, nextTick as Ce, inject as Me, watch as ce, resolveDirective as De, normalizeClass as _e, vShow as le, isProxy as Be, toRaw as Oe, provide as Se, useSlots as ke, createSlots as Ie } from "vue";
|
|
13
|
+
import { ElMessage as Fe } from "element-plus";
|
|
14
14
|
const t = {
|
|
15
15
|
INPUT: "text",
|
|
16
16
|
INPUT_NUMBER: "number",
|
|
@@ -35,27 +35,27 @@ const t = {
|
|
|
35
35
|
};
|
|
36
36
|
let ve = null;
|
|
37
37
|
const he = (e) => {
|
|
38
|
-
const s = [], l = [],
|
|
39
|
-
const c = a.map((p) => p.width),
|
|
38
|
+
const s = [], l = [], r = (a = []) => {
|
|
39
|
+
const c = a.map((p) => p.width), d = Math.max(...c);
|
|
40
40
|
a.forEach((p) => {
|
|
41
41
|
const { labelEl: N } = p;
|
|
42
|
-
N.style.width = `${
|
|
42
|
+
N.style.width = `${d}px`;
|
|
43
43
|
});
|
|
44
|
-
},
|
|
44
|
+
}, i = () => {
|
|
45
45
|
if (e) {
|
|
46
46
|
const a = e.querySelectorAll(".el-form-item__label");
|
|
47
47
|
if (a && a.length) {
|
|
48
48
|
let c = 0;
|
|
49
|
-
a.forEach((
|
|
50
|
-
|
|
51
|
-
const { x: N = 0, width:
|
|
49
|
+
a.forEach((d, p) => {
|
|
50
|
+
d.style.width = "initial", d.style.whiteSpace = "nowrap";
|
|
51
|
+
const { x: N = 0, width: x = 0 } = d.getBoundingClientRect(), w = { x: N, width: x, labelEl: d };
|
|
52
52
|
p === 0 && (c = N), N === c ? s.push(w) : l.push(w);
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
57
|
ve && clearTimeout(ve), ve = setTimeout(() => {
|
|
58
|
-
|
|
58
|
+
i(), r(s), r(l);
|
|
59
59
|
}, 50);
|
|
60
60
|
}, Ee = {
|
|
61
61
|
/**
|
|
@@ -79,12 +79,12 @@ const he = (e) => {
|
|
|
79
79
|
*/
|
|
80
80
|
height: (e, { value: s = 65, arg: l = "" }) => {
|
|
81
81
|
if (e) {
|
|
82
|
-
const { y:
|
|
83
|
-
e.style.height = `calc(100vh - ${
|
|
82
|
+
const { y: r = 0 } = e.getBoundingClientRect();
|
|
83
|
+
e.style.height = `calc(100vh - ${r + s}px)`;
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
};
|
|
87
|
-
const
|
|
87
|
+
const Re = { class: "bsgoal-base-tooltip" }, Ue = {
|
|
88
88
|
name: "BsgoalBaseTooltip"
|
|
89
89
|
}, Le = /* @__PURE__ */ Object.assign(Ue, {
|
|
90
90
|
props: {
|
|
@@ -127,27 +127,27 @@ const Fe = { class: "bsgoal-base-tooltip" }, Ue = {
|
|
|
127
127
|
},
|
|
128
128
|
setup(e) {
|
|
129
129
|
const s = e, l = q(() => {
|
|
130
|
-
const { content:
|
|
131
|
-
let
|
|
132
|
-
const p =
|
|
133
|
-
return a && p > a && (
|
|
134
|
-
}),
|
|
135
|
-
const { content:
|
|
136
|
-
return
|
|
130
|
+
const { content: i = "", limit: a = 0, none: c = "" } = s;
|
|
131
|
+
let d = i;
|
|
132
|
+
const p = i.length;
|
|
133
|
+
return a && p > a && (d = `${i.substring(0, a)}...`), d || c;
|
|
134
|
+
}), r = q(() => {
|
|
135
|
+
const { content: i = "", limit: a = 0 } = s;
|
|
136
|
+
return i.length < a || !a;
|
|
137
137
|
});
|
|
138
|
-
return (
|
|
139
|
-
const c =
|
|
140
|
-
return n(), A("div",
|
|
138
|
+
return (i, a) => {
|
|
139
|
+
const c = h("el-tooltip");
|
|
140
|
+
return n(), A("div", Re, [
|
|
141
141
|
$(c, {
|
|
142
142
|
class: "base_tooltip",
|
|
143
143
|
effect: "dark",
|
|
144
144
|
"popper-class": "base_tooltip_popper",
|
|
145
145
|
placement: "top-start",
|
|
146
146
|
content: e.content,
|
|
147
|
-
disabled: u(
|
|
147
|
+
disabled: u(r)
|
|
148
148
|
}, {
|
|
149
149
|
default: V(() => [
|
|
150
|
-
|
|
150
|
+
ae(i.$slots, "default", {}, () => [
|
|
151
151
|
X(H(u(l)), 1)
|
|
152
152
|
])
|
|
153
153
|
]),
|
|
@@ -157,7 +157,7 @@ const Fe = { class: "bsgoal-base-tooltip" }, Ue = {
|
|
|
157
157
|
};
|
|
158
158
|
}
|
|
159
159
|
});
|
|
160
|
-
const ze = { class: "bsgoal-base-form" },
|
|
160
|
+
const ze = { class: "bsgoal-base-form" }, je = { class: "base_form" }, Pe = { key: 1 }, Ye = {
|
|
161
161
|
name: "BsgoalBaseForm"
|
|
162
162
|
}, Ge = /* @__PURE__ */ Object.assign(Ye, {
|
|
163
163
|
props: {
|
|
@@ -222,20 +222,20 @@ const ze = { class: "bsgoal-base-form" }, Pe = { class: "base_form" }, je = { ke
|
|
|
222
222
|
},
|
|
223
223
|
emits: ["on-form", "on-clear", "on-change", "on-fold"],
|
|
224
224
|
setup(e, { expose: s, emit: l }) {
|
|
225
|
-
const
|
|
225
|
+
const r = e, i = O(null), a = Ee.align, c = O({});
|
|
226
226
|
pe(() => {
|
|
227
|
-
const { configOptions: E, values: b } =
|
|
227
|
+
const { configOptions: E, values: b } = r, C = u(E), f = u(b);
|
|
228
228
|
C.forEach((y) => {
|
|
229
|
-
const { value:
|
|
230
|
-
[t.INPUT, t.INPUT_TEXT_AREA].includes(
|
|
229
|
+
const { value: B = "", prop: k = "", type: F = "" } = y;
|
|
230
|
+
[t.INPUT, t.INPUT_TEXT_AREA].includes(F), c.value[k] = f[k] || B;
|
|
231
231
|
});
|
|
232
232
|
});
|
|
233
|
-
const
|
|
234
|
-
const { configOptions: E } =
|
|
235
|
-
return u(E).map((
|
|
236
|
-
let { rules: y = !1, label:
|
|
237
|
-
const
|
|
238
|
-
return y && (typeof y == "boolean" ? y = [
|
|
233
|
+
const d = q(() => {
|
|
234
|
+
const { configOptions: E } = r;
|
|
235
|
+
return u(E).map((f) => {
|
|
236
|
+
let { rules: y = !1, label: B = "" } = f;
|
|
237
|
+
const k = { required: !0, message: `${B}不能为空`, trigger: "blur" };
|
|
238
|
+
return y && (typeof y == "boolean" ? y = [k] : Array.isArray(y) ? y = [k, ...y] : y = [k, y]), f.rules = y, f;
|
|
239
239
|
});
|
|
240
240
|
}), p = (E = "", b = "", C = "") => {
|
|
241
241
|
if (!C)
|
|
@@ -282,18 +282,18 @@ const ze = { class: "bsgoal-base-form" }, Pe = { class: "base_form" }, je = { ke
|
|
|
282
282
|
return "YYYY-MM-DD HH:mm:ss";
|
|
283
283
|
}
|
|
284
284
|
return b;
|
|
285
|
-
},
|
|
286
|
-
const E = u(c), { configOptions: b } =
|
|
287
|
-
for (const
|
|
288
|
-
const { type: y = "", range:
|
|
289
|
-
if (y.endsWith("range") &&
|
|
290
|
-
const { 0:
|
|
291
|
-
E[L] =
|
|
285
|
+
}, x = () => {
|
|
286
|
+
const E = u(c), { configOptions: b } = r, C = u(b);
|
|
287
|
+
for (const f of C) {
|
|
288
|
+
const { type: y = "", range: B = [], prop: k = "" } = f;
|
|
289
|
+
if (y.endsWith("range") && B && B.length === 2) {
|
|
290
|
+
const { 0: F = "", 1: R = "" } = E[k], { 0: L = "", 1: I = "" } = B;
|
|
291
|
+
E[L] = F, E[I] = R;
|
|
292
292
|
}
|
|
293
293
|
}
|
|
294
294
|
return l("on-form", E), E;
|
|
295
295
|
}, w = () => {
|
|
296
|
-
|
|
296
|
+
i.value.resetFields(), l("on-clear", c.value);
|
|
297
297
|
}, D = (E, b) => {
|
|
298
298
|
const C = {
|
|
299
299
|
type: E,
|
|
@@ -304,42 +304,42 @@ const ze = { class: "bsgoal-base-form" }, Pe = { class: "base_form" }, je = { ke
|
|
|
304
304
|
};
|
|
305
305
|
return s({
|
|
306
306
|
triggerOperationClear: w,
|
|
307
|
-
triggerOperationForm:
|
|
307
|
+
triggerOperationForm: x,
|
|
308
308
|
validateForm: (E = () => {
|
|
309
309
|
}) => {
|
|
310
|
-
|
|
310
|
+
i.value.validate((b = !1, C = {}) => {
|
|
311
311
|
if (b) {
|
|
312
|
-
const
|
|
313
|
-
E(
|
|
312
|
+
const f = x();
|
|
313
|
+
E(f);
|
|
314
314
|
} else {
|
|
315
315
|
E(!1);
|
|
316
|
-
const
|
|
317
|
-
[
|
|
316
|
+
const f = Object.keys(C)[0], {
|
|
317
|
+
[f]: {
|
|
318
318
|
0: { message: y = "" }
|
|
319
319
|
}
|
|
320
320
|
} = C;
|
|
321
|
-
|
|
321
|
+
Fe.error(y);
|
|
322
322
|
}
|
|
323
323
|
});
|
|
324
324
|
}
|
|
325
325
|
}), (E, b) => {
|
|
326
|
-
const C =
|
|
326
|
+
const C = h("el-input"), f = h("el-input-number"), y = h("el-radio"), B = h("el-radio-group"), k = h("el-option"), F = h("el-select"), R = h("el-slider"), L = h("el-switch"), I = h("el-date-picker"), j = h("el-time-picker"), Z = h("el-checkbox"), ee = h("el-checkbox-group"), K = h("el-form-item"), me = h("el-col"), ge = h("el-row"), fe = h("el-form");
|
|
327
327
|
return n(), A("div", ze, [
|
|
328
|
-
|
|
328
|
+
S("div", je, [
|
|
329
329
|
Q((n(), T(fe, {
|
|
330
330
|
ref_key: "EL_FORM_REF",
|
|
331
|
-
ref:
|
|
331
|
+
ref: i,
|
|
332
332
|
"label-suffix": ":",
|
|
333
333
|
model: c.value
|
|
334
334
|
}, {
|
|
335
335
|
default: V(() => [
|
|
336
336
|
$(ge, null, {
|
|
337
337
|
default: V(() => [
|
|
338
|
-
(n(!0), A(z, null, W(u(
|
|
339
|
-
label:
|
|
340
|
-
prop:
|
|
338
|
+
(n(!0), A(z, null, W(u(d), ({
|
|
339
|
+
label: P = "",
|
|
340
|
+
prop: v = "",
|
|
341
341
|
type: o = "text",
|
|
342
|
-
placeholder:
|
|
342
|
+
placeholder: _ = "",
|
|
343
343
|
readonly: Y = e.readonlys,
|
|
344
344
|
clearable: re = !0,
|
|
345
345
|
rows: ie = 2,
|
|
@@ -348,7 +348,7 @@ const ze = { class: "bsgoal-base-form" }, Pe = { class: "base_form" }, je = { ke
|
|
|
348
348
|
range: J = [],
|
|
349
349
|
format: G = "",
|
|
350
350
|
rules: te = [],
|
|
351
|
-
limit:
|
|
351
|
+
limit: ne = e.limits
|
|
352
352
|
} = {}, g) => (n(), T(me, {
|
|
353
353
|
key: g,
|
|
354
354
|
xs: 24,
|
|
@@ -357,49 +357,49 @@ const ze = { class: "bsgoal-base-form" }, Pe = { class: "base_form" }, je = { ke
|
|
|
357
357
|
}, {
|
|
358
358
|
default: V(() => [
|
|
359
359
|
$(K, {
|
|
360
|
-
label:
|
|
361
|
-
prop:
|
|
360
|
+
label: P,
|
|
361
|
+
prop: v,
|
|
362
362
|
rules: te
|
|
363
363
|
}, {
|
|
364
364
|
default: V(() => [
|
|
365
|
-
Y ? (n(), A("div",
|
|
365
|
+
Y ? (n(), A("div", Pe, [
|
|
366
366
|
$(Le, {
|
|
367
|
-
content: c.value[
|
|
368
|
-
limit:
|
|
367
|
+
content: c.value[v],
|
|
368
|
+
limit: ne,
|
|
369
369
|
none: e.none
|
|
370
370
|
}, null, 8, ["content", "limit", "none"])
|
|
371
371
|
])) : (n(), A(z, { key: 0 }, [
|
|
372
372
|
o === u(t).INPUT ? (n(), T(C, {
|
|
373
373
|
key: 0,
|
|
374
|
-
modelValue: c.value[
|
|
375
|
-
"onUpdate:modelValue": (m) => c.value[
|
|
376
|
-
placeholder: p(o,
|
|
374
|
+
modelValue: c.value[v],
|
|
375
|
+
"onUpdate:modelValue": (m) => c.value[v] = m,
|
|
376
|
+
placeholder: p(o, P, _),
|
|
377
377
|
clearable: re,
|
|
378
|
-
onChange: (m) => D(o,
|
|
379
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) :
|
|
378
|
+
onChange: (m) => D(o, v)
|
|
379
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : M("", !0),
|
|
380
380
|
o === u(t).INPUT_TEXT_AREA ? (n(), T(C, {
|
|
381
381
|
key: 1,
|
|
382
|
-
modelValue: c.value[
|
|
383
|
-
"onUpdate:modelValue": (m) => c.value[
|
|
382
|
+
modelValue: c.value[v],
|
|
383
|
+
"onUpdate:modelValue": (m) => c.value[v] = m,
|
|
384
384
|
type: "textarea",
|
|
385
385
|
rows: ie,
|
|
386
386
|
clearable: re,
|
|
387
|
-
placeholder: p(o,
|
|
388
|
-
onChange: (m) => D(o,
|
|
389
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) :
|
|
390
|
-
o === u(t).INPUT_NUMBER ? (n(), T(
|
|
387
|
+
placeholder: p(o, P, _),
|
|
388
|
+
onChange: (m) => D(o, v)
|
|
389
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : M("", !0),
|
|
390
|
+
o === u(t).INPUT_NUMBER ? (n(), T(f, {
|
|
391
391
|
key: 2,
|
|
392
392
|
modelValue: E.num,
|
|
393
393
|
"onUpdate:modelValue": b[0] || (b[0] = (m) => E.num = m),
|
|
394
394
|
min: de,
|
|
395
395
|
max: ue,
|
|
396
396
|
onChange: D
|
|
397
|
-
}, null, 8, ["modelValue", "min", "max"])) :
|
|
398
|
-
o === u(t).RADIO ? (n(), T(
|
|
397
|
+
}, null, 8, ["modelValue", "min", "max"])) : M("", !0),
|
|
398
|
+
o === u(t).RADIO ? (n(), T(B, {
|
|
399
399
|
key: 3,
|
|
400
|
-
modelValue: c.value[
|
|
401
|
-
"onUpdate:modelValue": (m) => c.value[
|
|
402
|
-
onChange: (m) => D(o,
|
|
400
|
+
modelValue: c.value[v],
|
|
401
|
+
"onUpdate:modelValue": (m) => c.value[v] = m,
|
|
402
|
+
onChange: (m) => D(o, v)
|
|
403
403
|
}, {
|
|
404
404
|
default: V(() => [
|
|
405
405
|
(n(!0), A(z, null, W(J, (m, se) => (n(), T(y, {
|
|
@@ -413,89 +413,89 @@ const ze = { class: "bsgoal-base-form" }, Pe = { class: "base_form" }, je = { ke
|
|
|
413
413
|
}, 1032, ["label"]))), 128))
|
|
414
414
|
]),
|
|
415
415
|
_: 2
|
|
416
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) :
|
|
417
|
-
o === u(t).SELECT ? (n(), T(
|
|
416
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : M("", !0),
|
|
417
|
+
o === u(t).SELECT ? (n(), T(F, {
|
|
418
418
|
key: 4,
|
|
419
|
-
modelValue: c.value[
|
|
420
|
-
"onUpdate:modelValue": (m) => c.value[
|
|
421
|
-
placeholder: p(o,
|
|
422
|
-
onChange: (m) => D(o,
|
|
419
|
+
modelValue: c.value[v],
|
|
420
|
+
"onUpdate:modelValue": (m) => c.value[v] = m,
|
|
421
|
+
placeholder: p(o, P, _),
|
|
422
|
+
onChange: (m) => D(o, v)
|
|
423
423
|
}, {
|
|
424
424
|
default: V(() => [
|
|
425
|
-
(n(!0), A(z, null, W(J, (m, se) => (n(), T(
|
|
425
|
+
(n(!0), A(z, null, W(J, (m, se) => (n(), T(k, {
|
|
426
426
|
key: se,
|
|
427
427
|
label: m.label,
|
|
428
428
|
value: m.value
|
|
429
429
|
}, null, 8, ["label", "value"]))), 128))
|
|
430
430
|
]),
|
|
431
431
|
_: 2
|
|
432
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) :
|
|
433
|
-
o === u(t).SLIDER ? (n(), T(
|
|
432
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : M("", !0),
|
|
433
|
+
o === u(t).SLIDER ? (n(), T(R, {
|
|
434
434
|
key: 5,
|
|
435
|
-
modelValue: c.value[
|
|
436
|
-
"onUpdate:modelValue": (m) => c.value[
|
|
435
|
+
modelValue: c.value[v],
|
|
436
|
+
"onUpdate:modelValue": (m) => c.value[v] = m,
|
|
437
437
|
min: de,
|
|
438
438
|
max: ue,
|
|
439
|
-
onChange: (m) => D(o,
|
|
440
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) :
|
|
439
|
+
onChange: (m) => D(o, v)
|
|
440
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : M("", !0),
|
|
441
441
|
o === u(t).SWITCH ? (n(), T(L, {
|
|
442
442
|
key: 6,
|
|
443
|
-
modelValue: c.value[
|
|
444
|
-
"onUpdate:modelValue": (m) => c.value[
|
|
443
|
+
modelValue: c.value[v],
|
|
444
|
+
"onUpdate:modelValue": (m) => c.value[v] = m,
|
|
445
445
|
"active-value": J[0] || !0,
|
|
446
446
|
"inactive-value": J[1] || !1,
|
|
447
|
-
onChange: (m) => D(o,
|
|
448
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) :
|
|
447
|
+
onChange: (m) => D(o, v)
|
|
448
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : M("", !0),
|
|
449
449
|
[u(t).DATE, u(t).MONTH, u(t).YEAR, u(t).DATE_TIME].includes(
|
|
450
450
|
o
|
|
451
451
|
) ? (n(), T(I, {
|
|
452
452
|
key: 7,
|
|
453
|
-
modelValue: c.value[
|
|
454
|
-
"onUpdate:modelValue": (m) => c.value[
|
|
453
|
+
modelValue: c.value[v],
|
|
454
|
+
"onUpdate:modelValue": (m) => c.value[v] = m,
|
|
455
455
|
format: N(o, G),
|
|
456
456
|
"value-format": N(o, G),
|
|
457
457
|
type: o,
|
|
458
|
-
placeholder: p(o,
|
|
459
|
-
onChange: (m) => D(o,
|
|
460
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) :
|
|
458
|
+
placeholder: p(o, P, _),
|
|
459
|
+
onChange: (m) => D(o, v)
|
|
460
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : M("", !0),
|
|
461
461
|
[
|
|
462
462
|
u(t).DATE_RANGE,
|
|
463
463
|
u(t).MONTH_RANGE,
|
|
464
464
|
u(t).DATE_TIME_RANGE
|
|
465
465
|
].includes(o) ? (n(), T(I, {
|
|
466
466
|
key: 8,
|
|
467
|
-
modelValue: c.value[
|
|
468
|
-
"onUpdate:modelValue": (m) => c.value[
|
|
467
|
+
modelValue: c.value[v],
|
|
468
|
+
"onUpdate:modelValue": (m) => c.value[v] = m,
|
|
469
469
|
type: o,
|
|
470
470
|
"value-format": N(o, G),
|
|
471
|
-
"start-placeholder": p(o,
|
|
472
|
-
"end-placeholder": p(o,
|
|
473
|
-
onChange: (m) => D(o,
|
|
474
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) :
|
|
475
|
-
[u(t).TIME].includes(o) ? (n(), T(
|
|
471
|
+
"start-placeholder": p(o, P, _)[0],
|
|
472
|
+
"end-placeholder": p(o, P, _)[1],
|
|
473
|
+
onChange: (m) => D(o, v)
|
|
474
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : M("", !0),
|
|
475
|
+
[u(t).TIME].includes(o) ? (n(), T(j, {
|
|
476
476
|
key: 9,
|
|
477
|
-
modelValue: c.value[
|
|
478
|
-
"onUpdate:modelValue": (m) => c.value[
|
|
477
|
+
modelValue: c.value[v],
|
|
478
|
+
"onUpdate:modelValue": (m) => c.value[v] = m,
|
|
479
479
|
"arrow-control": "",
|
|
480
480
|
"value-format": N(o, G),
|
|
481
|
-
placeholder: p(o,
|
|
482
|
-
onChange: (m) => D(o,
|
|
483
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) :
|
|
484
|
-
[u(t).TIME_RANGE].includes(o) ? (n(), T(
|
|
481
|
+
placeholder: p(o, P, _),
|
|
482
|
+
onChange: (m) => D(o, v)
|
|
483
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : M("", !0),
|
|
484
|
+
[u(t).TIME_RANGE].includes(o) ? (n(), T(j, {
|
|
485
485
|
key: 10,
|
|
486
|
-
modelValue: c.value[
|
|
487
|
-
"onUpdate:modelValue": (m) => c.value[
|
|
486
|
+
modelValue: c.value[v],
|
|
487
|
+
"onUpdate:modelValue": (m) => c.value[v] = m,
|
|
488
488
|
"is-range": "",
|
|
489
489
|
"value-format": N(o, G),
|
|
490
|
-
"start-placeholder": p(o,
|
|
491
|
-
"end-placeholder": p(o,
|
|
492
|
-
onChange: (m) => D(o,
|
|
493
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) :
|
|
490
|
+
"start-placeholder": p(o, P, _)[0],
|
|
491
|
+
"end-placeholder": p(o, P, _)[1],
|
|
492
|
+
onChange: (m) => D(o, v)
|
|
493
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : M("", !0),
|
|
494
494
|
[u(t).CHECKBOX].includes(o) ? (n(), T(ee, {
|
|
495
495
|
key: 11,
|
|
496
|
-
modelValue: c.value[
|
|
497
|
-
"onUpdate:modelValue": (m) => c.value[
|
|
498
|
-
onChange: (m) => D(o,
|
|
496
|
+
modelValue: c.value[v],
|
|
497
|
+
"onUpdate:modelValue": (m) => c.value[v] = m,
|
|
498
|
+
onChange: (m) => D(o, v)
|
|
499
499
|
}, {
|
|
500
500
|
default: V(() => [
|
|
501
501
|
(n(!0), A(z, null, W(J, (m, se) => (n(), T(Z, {
|
|
@@ -509,8 +509,8 @@ const ze = { class: "bsgoal-base-form" }, Pe = { class: "base_form" }, je = { ke
|
|
|
509
509
|
}, 1032, ["label"]))), 128))
|
|
510
510
|
]),
|
|
511
511
|
_: 2
|
|
512
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) :
|
|
513
|
-
[].includes(o) ? (n(), A(z, { key: 12 }, [], 64)) :
|
|
512
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : M("", !0),
|
|
513
|
+
[].includes(o) ? (n(), A(z, { key: 12 }, [], 64)) : M("", !0)
|
|
514
514
|
], 64))
|
|
515
515
|
]),
|
|
516
516
|
_: 2
|
|
@@ -542,7 +542,7 @@ const He = { class: "bsgoal-base-table-content" }, We = { class: "bas_tabl_conte
|
|
|
542
542
|
},
|
|
543
543
|
setup(e) {
|
|
544
544
|
return (s, l) => (n(), A("div", He, [
|
|
545
|
-
|
|
545
|
+
S("div", We, H(e.data), 1)
|
|
546
546
|
]));
|
|
547
547
|
}
|
|
548
548
|
});
|
|
@@ -674,7 +674,7 @@ var Ze = {
|
|
|
674
674
|
}
|
|
675
675
|
}
|
|
676
676
|
};
|
|
677
|
-
const Ke = { class: "bsgoal-base-table-pagination" }, Je = { class: "base_table_pagination" }, qe = /* @__PURE__ */
|
|
677
|
+
const Ke = { class: "bsgoal-base-table-pagination" }, Je = { class: "base_table_pagination" }, qe = /* @__PURE__ */ S("span", null, "总数", -1), et = {
|
|
678
678
|
name: "BsgoalBaseTablePagination"
|
|
679
679
|
}, tt = /* @__PURE__ */ Object.assign(et, {
|
|
680
680
|
props: {
|
|
@@ -711,25 +711,25 @@ const Ke = { class: "bsgoal-base-table-pagination" }, Je = { class: "base_table_
|
|
|
711
711
|
setup(e, { emit: s }) {
|
|
712
712
|
const l = (a = 0) => {
|
|
713
713
|
s("on-size-change", a);
|
|
714
|
-
},
|
|
714
|
+
}, r = (a = 1) => {
|
|
715
715
|
s("on-current-change", a);
|
|
716
|
-
},
|
|
716
|
+
}, i = O(1);
|
|
717
717
|
return (a, c) => {
|
|
718
|
-
const
|
|
718
|
+
const d = h("el-pagination"), p = h("el-config-provider");
|
|
719
719
|
return n(), A("div", Ke, [
|
|
720
|
-
|
|
720
|
+
S("div", Je, [
|
|
721
721
|
$(p, { locale: u(Ze) }, {
|
|
722
722
|
default: V(() => [
|
|
723
|
-
$(
|
|
723
|
+
$(d, {
|
|
724
724
|
background: "",
|
|
725
725
|
layout: "total, sizes, prev, pager, next, jumper",
|
|
726
|
-
"current-page":
|
|
727
|
-
"onUpdate:currentPage": c[0] || (c[0] = (N) =>
|
|
726
|
+
"current-page": i.value,
|
|
727
|
+
"onUpdate:currentPage": c[0] || (c[0] = (N) => i.value = N),
|
|
728
728
|
"page-sizes": e.pageSizes,
|
|
729
729
|
"page-size": e.pageSize,
|
|
730
730
|
total: e.total,
|
|
731
731
|
onSizeChange: l,
|
|
732
|
-
onCurrentChange:
|
|
732
|
+
onCurrentChange: r
|
|
733
733
|
}, {
|
|
734
734
|
next: V(() => [
|
|
735
735
|
qe
|
|
@@ -746,56 +746,75 @@ const Ke = { class: "bsgoal-base-table-pagination" }, Je = { class: "base_table_
|
|
|
746
746
|
});
|
|
747
747
|
const at = (e, s) => {
|
|
748
748
|
const l = e.__vccOpts || e;
|
|
749
|
-
for (const [
|
|
750
|
-
l[
|
|
749
|
+
for (const [r, i] of s)
|
|
750
|
+
l[r] = i;
|
|
751
751
|
return l;
|
|
752
752
|
}, lt = {
|
|
753
753
|
name: "BsgoalBaseTableEmpty"
|
|
754
|
-
}, nt = { class: "bsgoal-base-table-empty" }, ot = /* @__PURE__ */
|
|
755
|
-
/* @__PURE__ */
|
|
756
|
-
/* @__PURE__ */
|
|
754
|
+
}, nt = { class: "bsgoal-base-table-empty" }, ot = /* @__PURE__ */ S("div", { class: "base_table_empty" }, [
|
|
755
|
+
/* @__PURE__ */ S("div", { class: "base_table_empty_img" }, [
|
|
756
|
+
/* @__PURE__ */ S("img", {
|
|
757
757
|
src: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjQiIGhlaWdodD0iNDEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCAxKSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgIDxlbGxpcHNlIGZpbGw9IiNGNUY1RjUiIGN4PSIzMiIgY3k9IjMzIiByeD0iMzIiIHJ5PSI3Ii8+CiAgICA8ZyBmaWxsLXJ1bGU9Im5vbnplcm8iIHN0cm9rZT0iI0Q5RDlEOSI+CiAgICAgIDxwYXRoIGQ9Ik01NSAxMi43Nkw0NC44NTQgMS4yNThDNDQuMzY3LjQ3NCA0My42NTYgMCA0Mi45MDcgMEgyMS4wOTNjLS43NDkgMC0xLjQ2LjQ3NC0xLjk0NyAxLjI1N0w5IDEyLjc2MVYyMmg0NnYtOS4yNHoiLz4KICAgICAgPHBhdGggZD0iTTQxLjYxMyAxNS45MzFjMC0xLjYwNS45OTQtMi45MyAyLjIyNy0yLjkzMUg1NXYxOC4xMzdDNTUgMzMuMjYgNTMuNjggMzUgNTIuMDUgMzVoLTQwLjFDMTAuMzIgMzUgOSAzMy4yNTkgOSAzMS4xMzdWMTNoMTEuMTZjMS4yMzMgMCAyLjIyNyAxLjMyMyAyLjIyNyAyLjkyOHYuMDIyYzAgMS42MDUgMS4wMDUgMi45MDEgMi4yMzcgMi45MDFoMTQuNzUyYzEuMjMyIDAgMi4yMzctMS4zMDggMi4yMzctMi45MTN2LS4wMDd6IiBmaWxsPSIjRkFGQUZBIi8+CiAgICA8L2c+CiAgPC9nPgo8L3N2Zz4K",
|
|
758
758
|
alt: ""
|
|
759
759
|
})
|
|
760
760
|
]),
|
|
761
|
-
/* @__PURE__ */
|
|
761
|
+
/* @__PURE__ */ S("div", { class: "base_table_empty_text" }, "暂无数据")
|
|
762
762
|
], -1), ut = [
|
|
763
763
|
ot
|
|
764
764
|
];
|
|
765
|
-
function st(e, s, l,
|
|
765
|
+
function st(e, s, l, r, i, a) {
|
|
766
766
|
return n(), A("div", nt, ut);
|
|
767
767
|
}
|
|
768
|
-
const ct = /* @__PURE__ */ at(lt, [["render", st]]), rt = (e = null, { expression: s = 75, arg: l = {} } = {}) => {
|
|
768
|
+
const ct = /* @__PURE__ */ at(lt, [["render", st]]), rt = (e = null, { expression: s = 75, arg: l = {}, height: r = "" } = {}) => {
|
|
769
769
|
const i = u(e);
|
|
770
770
|
if (i) {
|
|
771
|
-
const
|
|
772
|
-
|
|
773
|
-
const { y:
|
|
774
|
-
|
|
771
|
+
const a = i.querySelector(".el-table");
|
|
772
|
+
a && Ce(() => {
|
|
773
|
+
const { y: c = 0 } = a.getBoundingClientRect();
|
|
774
|
+
let d = `calc(100vh - ${c + s}px)`;
|
|
775
|
+
const p = Number.parseInt(r);
|
|
776
|
+
r && (p ? d = `${r}px` : d = r), a.style.height = d;
|
|
775
777
|
});
|
|
776
778
|
}
|
|
777
|
-
}, be = (e = Promise.resolve(), s = null, l =
|
|
778
|
-
const
|
|
779
|
+
}, be = (e = Promise.resolve(), s = null, l = O(!1), r = O(null)) => {
|
|
780
|
+
const i = O("");
|
|
779
781
|
return l.value = !0, e.then((a = {}) => {
|
|
780
|
-
const { data: c = {}, message:
|
|
781
|
-
|
|
782
|
+
const { data: c = {}, message: d = "" } = a;
|
|
783
|
+
r.value = c, i.value = d, s && s(!0, c), l.value = !1;
|
|
782
784
|
}).catch((a = {}) => {
|
|
783
785
|
if (typeof a == "object") {
|
|
784
786
|
const { message: c = "" } = a;
|
|
785
|
-
|
|
787
|
+
i.value = c;
|
|
786
788
|
} else
|
|
787
|
-
|
|
789
|
+
i.value = a;
|
|
788
790
|
s && s(!1, a), l.value = !1;
|
|
789
791
|
}).finally(() => {
|
|
790
792
|
l.value = !1;
|
|
791
|
-
}), { data:
|
|
792
|
-
}
|
|
793
|
-
|
|
793
|
+
}), { data: r, message: i, loading: l };
|
|
794
|
+
}, it = (e = null) => {
|
|
795
|
+
switch (toString.apply(e)) {
|
|
796
|
+
case "[object Object]":
|
|
797
|
+
return "object";
|
|
798
|
+
case "[object Function]":
|
|
799
|
+
return "function";
|
|
800
|
+
case "[object String]":
|
|
801
|
+
return "string";
|
|
802
|
+
case "[object Number]":
|
|
803
|
+
return "number";
|
|
804
|
+
case "[object Null]":
|
|
805
|
+
return "null";
|
|
806
|
+
case "[object Boolean]":
|
|
807
|
+
return "boolean";
|
|
808
|
+
case "[object Undefind]":
|
|
809
|
+
return "undefind";
|
|
810
|
+
}
|
|
811
|
+
}, dt = (e) => it(e) === "boolean";
|
|
812
|
+
const _t = { class: "bsgoal-base-table" }, mt = { class: "base_table" }, gt = {
|
|
794
813
|
key: 0,
|
|
795
814
|
class: "base_table_menu"
|
|
796
|
-
},
|
|
815
|
+
}, ft = {
|
|
797
816
|
name: "BsgoalBaseTable"
|
|
798
|
-
}, xe = /* @__PURE__ */ Object.assign(
|
|
817
|
+
}, xe = /* @__PURE__ */ Object.assign(ft, {
|
|
799
818
|
props: {
|
|
800
819
|
/**
|
|
801
820
|
* >----------props----------<
|
|
@@ -880,53 +899,65 @@ const it = { class: "bsgoal-base-table" }, dt = { class: "base_table" }, _t = {
|
|
|
880
899
|
expression: {
|
|
881
900
|
type: [Number],
|
|
882
901
|
default: 75
|
|
902
|
+
},
|
|
903
|
+
/**
|
|
904
|
+
* 表格高度
|
|
905
|
+
*
|
|
906
|
+
* 默认 : 自动计算
|
|
907
|
+
* 布尔值 : 默认表格高度
|
|
908
|
+
* 字符串 : 直接赋值给 height
|
|
909
|
+
* 数字 : 直接赋值给 height + 'px'
|
|
910
|
+
*/
|
|
911
|
+
height: {
|
|
912
|
+
type: [Number, String, Boolean],
|
|
913
|
+
default: ""
|
|
883
914
|
}
|
|
884
915
|
},
|
|
885
916
|
setup(e, { expose: s }) {
|
|
886
|
-
const l = e,
|
|
887
|
-
const { configOptions:
|
|
888
|
-
return y &&
|
|
917
|
+
const l = e, r = q(() => {
|
|
918
|
+
const { configOptions: f = [], operation: y = !1, operationWidth: B = 0 } = l, k = u(f), F = [];
|
|
919
|
+
return y && F.push({
|
|
889
920
|
label: "操作",
|
|
890
921
|
fixed: "right",
|
|
891
922
|
prop: "operation",
|
|
892
|
-
width:
|
|
893
|
-
}), [...
|
|
894
|
-
}),
|
|
923
|
+
width: B
|
|
924
|
+
}), [...k, ...F];
|
|
925
|
+
}), i = O(null), a = Me("transferFoldStatus");
|
|
895
926
|
pe(() => {
|
|
896
|
-
const
|
|
897
|
-
rt(
|
|
927
|
+
const { height: f } = l, y = a ? a.value : !1, B = u(l.expression);
|
|
928
|
+
dt(f) || rt(i, { arg: y, expression: B, height: f });
|
|
898
929
|
});
|
|
899
|
-
const c =
|
|
900
|
-
const { fetch:
|
|
901
|
-
L[I.currentPage] =
|
|
930
|
+
const c = O(1), d = O(10), p = O(0), N = O({}), x = O(l.loading), w = O(l.data), D = O({}), U = () => {
|
|
931
|
+
const { fetch: f, call: y, mapProps: B } = l, k = N.value, F = c.value, R = d.value, L = Ve({}, k), I = u(B);
|
|
932
|
+
L[I.currentPage] = F, L[I.pageSize] = R, be(f(L), y, x, D);
|
|
902
933
|
};
|
|
903
|
-
ce(D, (
|
|
904
|
-
const { mapProps: y } = l,
|
|
905
|
-
w.value =
|
|
934
|
+
ce(D, (f) => {
|
|
935
|
+
const { mapProps: y } = l, B = u(y);
|
|
936
|
+
w.value = f[B.rows], p.value = f[B.total];
|
|
906
937
|
});
|
|
907
|
-
const E = (
|
|
908
|
-
N.value =
|
|
909
|
-
}, b = (
|
|
910
|
-
c.value =
|
|
911
|
-
}, C = (
|
|
912
|
-
|
|
938
|
+
const E = (f = {}) => {
|
|
939
|
+
N.value = f, c.value = 1, U();
|
|
940
|
+
}, b = (f = 1) => {
|
|
941
|
+
c.value = f;
|
|
942
|
+
}, C = (f = 10) => {
|
|
943
|
+
d.value = f;
|
|
913
944
|
};
|
|
914
|
-
return ce([c,
|
|
945
|
+
return ce([c, d], () => {
|
|
915
946
|
U();
|
|
916
947
|
}), s({
|
|
917
948
|
refreshList: E
|
|
918
|
-
}), (
|
|
919
|
-
const
|
|
920
|
-
return n(), A("div",
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
])) :
|
|
925
|
-
|
|
949
|
+
}), (f, y) => {
|
|
950
|
+
const B = h("el-table-column"), k = h("el-table"), F = De("loading");
|
|
951
|
+
return n(), A("div", _t, [
|
|
952
|
+
S("div", mt, [
|
|
953
|
+
f.$slots.menu ? (n(), A("div", gt, [
|
|
954
|
+
ae(f.$slots, "menu")
|
|
955
|
+
])) : M("", !0),
|
|
956
|
+
S("div", {
|
|
926
957
|
ref_key: "EL_TABLE_WRAP_REF",
|
|
927
|
-
ref:
|
|
958
|
+
ref: i
|
|
928
959
|
}, [
|
|
929
|
-
Q((n(), T(
|
|
960
|
+
Q((n(), T(k, {
|
|
930
961
|
stripe: "",
|
|
931
962
|
border: "",
|
|
932
963
|
"highlight-current-row": "",
|
|
@@ -943,24 +974,24 @@ const it = { class: "bsgoal-base-table" }, dt = { class: "base_table" }, _t = {
|
|
|
943
974
|
$(ct)
|
|
944
975
|
]),
|
|
945
976
|
default: V(() => [
|
|
946
|
-
e.selection ? (n(), T(
|
|
977
|
+
e.selection ? (n(), T(B, {
|
|
947
978
|
key: 0,
|
|
948
979
|
fixed: "left",
|
|
949
980
|
type: "selection",
|
|
950
981
|
width: "40"
|
|
951
|
-
})) :
|
|
952
|
-
(n(!0), A(z, null, W(u(
|
|
982
|
+
})) : M("", !0),
|
|
983
|
+
(n(!0), A(z, null, W(u(r), ({ prop: R = "", label: L = "", align: I = "center", width: j = "", fixed: Z = !1 } = {}, ee) => (n(), T(B, {
|
|
953
984
|
key: ee,
|
|
954
985
|
label: L,
|
|
955
986
|
align: I,
|
|
956
|
-
width:
|
|
987
|
+
width: j,
|
|
957
988
|
fixed: Z,
|
|
958
989
|
"min-width": `${L.length * 14 + 24}px`
|
|
959
990
|
}, {
|
|
960
991
|
default: V(({ row: K }) => [
|
|
961
|
-
|
|
992
|
+
ae(f.$slots, R, { row: K }, () => [
|
|
962
993
|
$(Qe, {
|
|
963
|
-
data: K[
|
|
994
|
+
data: K[R]
|
|
964
995
|
}, null, 8, ["data"])
|
|
965
996
|
])
|
|
966
997
|
]),
|
|
@@ -969,7 +1000,7 @@ const it = { class: "bsgoal-base-table" }, dt = { class: "base_table" }, _t = {
|
|
|
969
1000
|
]),
|
|
970
1001
|
_: 3
|
|
971
1002
|
}, 8, ["data", "header-cell-style"])), [
|
|
972
|
-
[
|
|
1003
|
+
[F, x.value]
|
|
973
1004
|
])
|
|
974
1005
|
], 512),
|
|
975
1006
|
$(tt, {
|
|
@@ -982,9 +1013,9 @@ const it = { class: "bsgoal-base-table" }, dt = { class: "base_table" }, _t = {
|
|
|
982
1013
|
};
|
|
983
1014
|
}
|
|
984
1015
|
});
|
|
985
|
-
const
|
|
1016
|
+
const vt = {
|
|
986
1017
|
name: "BsgoalBaseLine"
|
|
987
|
-
}, ye = /* @__PURE__ */ Object.assign(
|
|
1018
|
+
}, ye = /* @__PURE__ */ Object.assign(vt, {
|
|
988
1019
|
props: {
|
|
989
1020
|
/**
|
|
990
1021
|
* 是否为垂直
|
|
@@ -998,7 +1029,7 @@ const gt = {
|
|
|
998
1029
|
return (s, l) => (n(), A("div", {
|
|
999
1030
|
class: _e(["bsgoal-base-line", { "bsgoal-base-line__vertical": e.vertical }])
|
|
1000
1031
|
}, [
|
|
1001
|
-
|
|
1032
|
+
S("div", {
|
|
1002
1033
|
class: _e(["base_line", { base_line__vertical: e.vertical }])
|
|
1003
1034
|
}, null, 2)
|
|
1004
1035
|
], 2));
|
|
@@ -1007,15 +1038,15 @@ const gt = {
|
|
|
1007
1038
|
/*! Element Plus Icons Vue v2.1.0 */
|
|
1008
1039
|
var oe = (e, s) => {
|
|
1009
1040
|
let l = e.__vccOpts || e;
|
|
1010
|
-
for (let [
|
|
1011
|
-
l[
|
|
1041
|
+
for (let [r, i] of s)
|
|
1042
|
+
l[r] = i;
|
|
1012
1043
|
return l;
|
|
1013
|
-
},
|
|
1044
|
+
}, ht = {
|
|
1014
1045
|
name: "ArrowDown"
|
|
1015
|
-
},
|
|
1046
|
+
}, pt = {
|
|
1016
1047
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1017
1048
|
viewBox: "0 0 1024 1024"
|
|
1018
|
-
},
|
|
1049
|
+
}, Et = /* @__PURE__ */ S(
|
|
1019
1050
|
"path",
|
|
1020
1051
|
{
|
|
1021
1052
|
fill: "currentColor",
|
|
@@ -1024,18 +1055,18 @@ var oe = (e, s) => {
|
|
|
1024
1055
|
null,
|
|
1025
1056
|
-1
|
|
1026
1057
|
/* HOISTED */
|
|
1027
|
-
),
|
|
1028
|
-
|
|
1058
|
+
), bt = [
|
|
1059
|
+
Et
|
|
1029
1060
|
];
|
|
1030
|
-
function
|
|
1031
|
-
return n(), A("svg",
|
|
1061
|
+
function yt(e, s, l, r, i, a) {
|
|
1062
|
+
return n(), A("svg", pt, bt);
|
|
1032
1063
|
}
|
|
1033
|
-
var
|
|
1064
|
+
var Tt = /* @__PURE__ */ oe(ht, [["render", yt], ["__file", "arrow-down.vue"]]), At = {
|
|
1034
1065
|
name: "ArrowLeft"
|
|
1035
|
-
},
|
|
1066
|
+
}, Vt = {
|
|
1036
1067
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1037
1068
|
viewBox: "0 0 1024 1024"
|
|
1038
|
-
},
|
|
1069
|
+
}, Ct = /* @__PURE__ */ S(
|
|
1039
1070
|
"path",
|
|
1040
1071
|
{
|
|
1041
1072
|
fill: "currentColor",
|
|
@@ -1044,18 +1075,18 @@ var bt = /* @__PURE__ */ oe(ft, [["render", Et], ["__file", "arrow-down.vue"]]),
|
|
|
1044
1075
|
null,
|
|
1045
1076
|
-1
|
|
1046
1077
|
/* HOISTED */
|
|
1047
|
-
),
|
|
1048
|
-
|
|
1078
|
+
), Mt = [
|
|
1079
|
+
Ct
|
|
1049
1080
|
];
|
|
1050
|
-
function
|
|
1051
|
-
return n(), A("svg",
|
|
1081
|
+
function xt(e, s, l, r, i, a) {
|
|
1082
|
+
return n(), A("svg", Vt, Mt);
|
|
1052
1083
|
}
|
|
1053
|
-
var
|
|
1084
|
+
var $t = /* @__PURE__ */ oe(At, [["render", xt], ["__file", "arrow-left.vue"]]), Nt = {
|
|
1054
1085
|
name: "ArrowRight"
|
|
1055
|
-
},
|
|
1086
|
+
}, wt = {
|
|
1056
1087
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1057
1088
|
viewBox: "0 0 1024 1024"
|
|
1058
|
-
},
|
|
1089
|
+
}, Dt = /* @__PURE__ */ S(
|
|
1059
1090
|
"path",
|
|
1060
1091
|
{
|
|
1061
1092
|
fill: "currentColor",
|
|
@@ -1064,18 +1095,18 @@ var Mt = /* @__PURE__ */ oe(yt, [["render", Ct], ["__file", "arrow-left.vue"]]),
|
|
|
1064
1095
|
null,
|
|
1065
1096
|
-1
|
|
1066
1097
|
/* HOISTED */
|
|
1067
|
-
),
|
|
1068
|
-
|
|
1098
|
+
), Bt = [
|
|
1099
|
+
Dt
|
|
1069
1100
|
];
|
|
1070
|
-
function
|
|
1071
|
-
return n(), A("svg",
|
|
1101
|
+
function Ot(e, s, l, r, i, a) {
|
|
1102
|
+
return n(), A("svg", wt, Bt);
|
|
1072
1103
|
}
|
|
1073
|
-
var
|
|
1104
|
+
var St = /* @__PURE__ */ oe(Nt, [["render", Ot], ["__file", "arrow-right.vue"]]), kt = {
|
|
1074
1105
|
name: "ArrowUp"
|
|
1075
|
-
},
|
|
1106
|
+
}, It = {
|
|
1076
1107
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1077
1108
|
viewBox: "0 0 1024 1024"
|
|
1078
|
-
},
|
|
1109
|
+
}, Ft = /* @__PURE__ */ S(
|
|
1079
1110
|
"path",
|
|
1080
1111
|
{
|
|
1081
1112
|
fill: "currentColor",
|
|
@@ -1084,18 +1115,18 @@ var Bt = /* @__PURE__ */ oe(xt, [["render", Dt], ["__file", "arrow-right.vue"]])
|
|
|
1084
1115
|
null,
|
|
1085
1116
|
-1
|
|
1086
1117
|
/* HOISTED */
|
|
1087
|
-
),
|
|
1088
|
-
|
|
1118
|
+
), Rt = [
|
|
1119
|
+
Ft
|
|
1089
1120
|
];
|
|
1090
|
-
function
|
|
1091
|
-
return n(), A("svg",
|
|
1121
|
+
function Ut(e, s, l, r, i, a) {
|
|
1122
|
+
return n(), A("svg", It, Rt);
|
|
1092
1123
|
}
|
|
1093
|
-
var
|
|
1124
|
+
var Lt = /* @__PURE__ */ oe(kt, [["render", Ut], ["__file", "arrow-up.vue"]]), zt = {
|
|
1094
1125
|
name: "Delete"
|
|
1095
|
-
},
|
|
1126
|
+
}, jt = {
|
|
1096
1127
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1097
1128
|
viewBox: "0 0 1024 1024"
|
|
1098
|
-
},
|
|
1129
|
+
}, Pt = /* @__PURE__ */ S(
|
|
1099
1130
|
"path",
|
|
1100
1131
|
{
|
|
1101
1132
|
fill: "currentColor",
|
|
@@ -1104,18 +1135,18 @@ var Ft = /* @__PURE__ */ oe(Ot, [["render", Rt], ["__file", "arrow-up.vue"]]), U
|
|
|
1104
1135
|
null,
|
|
1105
1136
|
-1
|
|
1106
1137
|
/* HOISTED */
|
|
1107
|
-
),
|
|
1108
|
-
|
|
1138
|
+
), Yt = [
|
|
1139
|
+
Pt
|
|
1109
1140
|
];
|
|
1110
|
-
function
|
|
1111
|
-
return n(), A("svg",
|
|
1141
|
+
function Gt(e, s, l, r, i, a) {
|
|
1142
|
+
return n(), A("svg", jt, Yt);
|
|
1112
1143
|
}
|
|
1113
|
-
var
|
|
1144
|
+
var Ht = /* @__PURE__ */ oe(zt, [["render", Gt], ["__file", "delete.vue"]]), Wt = {
|
|
1114
1145
|
name: "Search"
|
|
1115
|
-
},
|
|
1146
|
+
}, Xt = {
|
|
1116
1147
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1117
1148
|
viewBox: "0 0 1024 1024"
|
|
1118
|
-
},
|
|
1149
|
+
}, Qt = /* @__PURE__ */ S(
|
|
1119
1150
|
"path",
|
|
1120
1151
|
{
|
|
1121
1152
|
fill: "currentColor",
|
|
@@ -1124,16 +1155,16 @@ var Yt = /* @__PURE__ */ oe(Ut, [["render", jt], ["__file", "delete.vue"]]), Gt
|
|
|
1124
1155
|
null,
|
|
1125
1156
|
-1
|
|
1126
1157
|
/* HOISTED */
|
|
1127
|
-
),
|
|
1128
|
-
|
|
1158
|
+
), Zt = [
|
|
1159
|
+
Qt
|
|
1129
1160
|
];
|
|
1130
|
-
function
|
|
1131
|
-
return n(), A("svg",
|
|
1161
|
+
function Kt(e, s, l, r, i, a) {
|
|
1162
|
+
return n(), A("svg", Xt, Zt);
|
|
1132
1163
|
}
|
|
1133
|
-
var
|
|
1134
|
-
const
|
|
1164
|
+
var Jt = /* @__PURE__ */ oe(Wt, [["render", Kt], ["__file", "search.vue"]]);
|
|
1165
|
+
const qt = { class: "bsgoal-base-search-operation" }, ea = {
|
|
1135
1166
|
name: "BsgoalBaseSearchOperation"
|
|
1136
|
-
},
|
|
1167
|
+
}, ta = /* @__PURE__ */ Object.assign(ea, {
|
|
1137
1168
|
props: {
|
|
1138
1169
|
/**
|
|
1139
1170
|
* 是否显示折叠按钮
|
|
@@ -1145,16 +1176,16 @@ const Kt = { class: "bsgoal-base-search-operation" }, Jt = {
|
|
|
1145
1176
|
},
|
|
1146
1177
|
emits: ["on-fold"],
|
|
1147
1178
|
setup(e, { emit: s }) {
|
|
1148
|
-
const l =
|
|
1179
|
+
const l = O(!1), r = () => {
|
|
1149
1180
|
l.value = !u(l), s("on-fold", l.value);
|
|
1150
1181
|
};
|
|
1151
|
-
return (
|
|
1152
|
-
const c =
|
|
1153
|
-
return n(), A("div",
|
|
1182
|
+
return (i, a) => {
|
|
1183
|
+
const c = h("el-button"), d = h("el-icon");
|
|
1184
|
+
return n(), A("div", qt, [
|
|
1154
1185
|
$(c, {
|
|
1155
1186
|
type: "primary",
|
|
1156
|
-
icon: u(
|
|
1157
|
-
onClick: a[0] || (a[0] = (p) =>
|
|
1187
|
+
icon: u(Jt),
|
|
1188
|
+
onClick: a[0] || (a[0] = (p) => i.$emit("on-search"))
|
|
1158
1189
|
}, {
|
|
1159
1190
|
default: V(() => [
|
|
1160
1191
|
X("搜索")
|
|
@@ -1162,8 +1193,8 @@ const Kt = { class: "bsgoal-base-search-operation" }, Jt = {
|
|
|
1162
1193
|
_: 1
|
|
1163
1194
|
}, 8, ["icon"]),
|
|
1164
1195
|
$(c, {
|
|
1165
|
-
icon: u(
|
|
1166
|
-
onClick: a[1] || (a[1] = (p) =>
|
|
1196
|
+
icon: u(Ht),
|
|
1197
|
+
onClick: a[1] || (a[1] = (p) => i.$emit("on-clear"))
|
|
1167
1198
|
}, {
|
|
1168
1199
|
default: V(() => [
|
|
1169
1200
|
X("清空")
|
|
@@ -1174,28 +1205,28 @@ const Kt = { class: "bsgoal-base-search-operation" }, Jt = {
|
|
|
1174
1205
|
key: 0,
|
|
1175
1206
|
class: "operation_fold",
|
|
1176
1207
|
style: { color: "var(--el-color-primary)" },
|
|
1177
|
-
onClick:
|
|
1208
|
+
onClick: r
|
|
1178
1209
|
}, [
|
|
1179
1210
|
X(H(l.value ? "收起" : "展开"), 1),
|
|
1180
|
-
$(
|
|
1211
|
+
$(d, { color: "#409EFC" }, {
|
|
1181
1212
|
default: V(() => [
|
|
1182
|
-
Q($(u(
|
|
1183
|
-
[
|
|
1213
|
+
Q($(u(Lt), null, null, 512), [
|
|
1214
|
+
[le, l.value]
|
|
1184
1215
|
]),
|
|
1185
|
-
Q($(u(
|
|
1186
|
-
[
|
|
1216
|
+
Q($(u(Tt), null, null, 512), [
|
|
1217
|
+
[le, !l.value]
|
|
1187
1218
|
])
|
|
1188
1219
|
]),
|
|
1189
1220
|
_: 1
|
|
1190
1221
|
})
|
|
1191
|
-
])) :
|
|
1222
|
+
])) : M("", !0)
|
|
1192
1223
|
]);
|
|
1193
1224
|
};
|
|
1194
1225
|
}
|
|
1195
1226
|
});
|
|
1196
|
-
const
|
|
1227
|
+
const aa = { class: "bsgoal-base-cascader" }, la = {
|
|
1197
1228
|
name: "BsgoalBaseCascader"
|
|
1198
|
-
},
|
|
1229
|
+
}, na = /* @__PURE__ */ Object.assign(la, {
|
|
1199
1230
|
props: {
|
|
1200
1231
|
/**
|
|
1201
1232
|
* 绑定的值
|
|
@@ -1228,15 +1259,15 @@ const ea = { class: "bsgoal-base-cascader" }, ta = {
|
|
|
1228
1259
|
},
|
|
1229
1260
|
emits: ["update:model-value", "on-change"],
|
|
1230
1261
|
setup(e, { emit: s }) {
|
|
1231
|
-
const l =
|
|
1262
|
+
const l = O({
|
|
1232
1263
|
checkStrictly: !0,
|
|
1233
1264
|
multiple: !1
|
|
1234
|
-
}),
|
|
1235
|
-
s("update:model-value",
|
|
1265
|
+
}), r = (i) => {
|
|
1266
|
+
s("update:model-value", i), s("on-change", i);
|
|
1236
1267
|
};
|
|
1237
|
-
return (
|
|
1238
|
-
const c =
|
|
1239
|
-
return n(), A("div",
|
|
1268
|
+
return (i, a) => {
|
|
1269
|
+
const c = h("el-cascader");
|
|
1270
|
+
return n(), A("div", aa, [
|
|
1240
1271
|
$(c, {
|
|
1241
1272
|
clearable: "",
|
|
1242
1273
|
class: "base_cascader",
|
|
@@ -1245,15 +1276,15 @@ const ea = { class: "bsgoal-base-cascader" }, ta = {
|
|
|
1245
1276
|
options: e.dataOptions,
|
|
1246
1277
|
props: l.value,
|
|
1247
1278
|
placeholder: e.placeholder,
|
|
1248
|
-
onChange:
|
|
1279
|
+
onChange: r
|
|
1249
1280
|
}, null, 8, ["model-value", "options", "props", "placeholder"])
|
|
1250
1281
|
]);
|
|
1251
1282
|
};
|
|
1252
1283
|
}
|
|
1253
1284
|
});
|
|
1254
|
-
const
|
|
1285
|
+
const oa = { class: "bsgoal-base-search" }, ua = { class: "base_search" }, sa = { key: 1 }, ca = {
|
|
1255
1286
|
name: "BsgoalBaseSearch"
|
|
1256
|
-
},
|
|
1287
|
+
}, ra = /* @__PURE__ */ Object.assign(ca, {
|
|
1257
1288
|
props: {
|
|
1258
1289
|
/**
|
|
1259
1290
|
* >----------props----------<
|
|
@@ -1295,21 +1326,21 @@ const la = { class: "bsgoal-base-search" }, na = { class: "base_search" }, oa =
|
|
|
1295
1326
|
},
|
|
1296
1327
|
emits: ["on-search", "on-clear", "on-change", "on-fold"],
|
|
1297
1328
|
setup(e, { emit: s }) {
|
|
1298
|
-
const l = e,
|
|
1329
|
+
const l = e, r = O(null), i = Ee.align, a = O({});
|
|
1299
1330
|
pe(() => {
|
|
1300
1331
|
const { configOptions: b } = l;
|
|
1301
|
-
u(b).forEach((
|
|
1302
|
-
const { value: y, prop:
|
|
1303
|
-
[t.INPUT, t.INPUT_TEXT_AREA].includes(
|
|
1332
|
+
u(b).forEach((f) => {
|
|
1333
|
+
const { value: y, prop: B = "", type: k = "" } = f;
|
|
1334
|
+
[t.INPUT, t.INPUT_TEXT_AREA].includes(k), a.value[B] = [0, !1].includes(y) ? y : "";
|
|
1304
1335
|
});
|
|
1305
1336
|
});
|
|
1306
1337
|
const c = q(() => {
|
|
1307
|
-
const { configOptions: b } = l, C = u(b),
|
|
1338
|
+
const { configOptions: b } = l, C = u(b), f = {
|
|
1308
1339
|
type: t.OPERATION
|
|
1309
1340
|
};
|
|
1310
|
-
return [...C,
|
|
1311
|
-
}),
|
|
1312
|
-
if (!
|
|
1341
|
+
return [...C, f];
|
|
1342
|
+
}), d = (b = "", C = "", f = "") => {
|
|
1343
|
+
if (!f)
|
|
1313
1344
|
switch (b) {
|
|
1314
1345
|
case t.INPUT:
|
|
1315
1346
|
case t.INPUT_TEXT_AREA:
|
|
@@ -1331,7 +1362,7 @@ const la = { class: "bsgoal-base-search" }, na = { class: "base_search" }, oa =
|
|
|
1331
1362
|
case t.MONTH_RANGE:
|
|
1332
1363
|
return ["开始月份", "结束月份"];
|
|
1333
1364
|
}
|
|
1334
|
-
return
|
|
1365
|
+
return f;
|
|
1335
1366
|
}, p = (b = "", C = "") => {
|
|
1336
1367
|
if (!C)
|
|
1337
1368
|
switch (b) {
|
|
@@ -1355,17 +1386,17 @@ const la = { class: "bsgoal-base-search" }, na = { class: "base_search" }, oa =
|
|
|
1355
1386
|
}
|
|
1356
1387
|
return C;
|
|
1357
1388
|
}, N = () => {
|
|
1358
|
-
const { configOptions: b } = l, C = u(a),
|
|
1359
|
-
for (const
|
|
1360
|
-
const { type:
|
|
1361
|
-
if ([t.CASCADER].includes(
|
|
1362
|
-
const
|
|
1363
|
-
|
|
1389
|
+
const { configOptions: b } = l, C = u(a), f = u(b), y = {};
|
|
1390
|
+
for (const B of f) {
|
|
1391
|
+
const { type: k = "", range: F = [], prop: R = "", single: L = !1 } = B, I = C[R];
|
|
1392
|
+
if ([t.CASCADER].includes(k) && Array.isArray(I) && L) {
|
|
1393
|
+
const j = I.length;
|
|
1394
|
+
j ? y[R] = I[j - 1] : y[R] = I;
|
|
1364
1395
|
} else
|
|
1365
|
-
Be(I) ? y[
|
|
1366
|
-
if (
|
|
1367
|
-
const { 0:
|
|
1368
|
-
y[ee] =
|
|
1396
|
+
Be(I) ? y[R] = Oe(I) : y[R] = I;
|
|
1397
|
+
if (k.endsWith("range") && F && F.length === 2) {
|
|
1398
|
+
const { 0: j = "", 1: Z = "" } = I, { 0: ee = "", 1: K = "" } = F;
|
|
1399
|
+
y[ee] = j, y[K] = Z;
|
|
1369
1400
|
}
|
|
1370
1401
|
}
|
|
1371
1402
|
s("on-search", y), s("update:modelValue", y);
|
|
@@ -1373,26 +1404,26 @@ const la = { class: "bsgoal-base-search" }, na = { class: "base_search" }, oa =
|
|
|
1373
1404
|
Ce(() => {
|
|
1374
1405
|
N();
|
|
1375
1406
|
});
|
|
1376
|
-
const
|
|
1377
|
-
|
|
1378
|
-
}, w = Me("transferFoldStatus"), D =
|
|
1407
|
+
const x = () => {
|
|
1408
|
+
r.value.resetFields(), s("on-clear", a.value);
|
|
1409
|
+
}, w = Me("transferFoldStatus"), D = O(!1), U = (b = !1) => {
|
|
1379
1410
|
D.value = b, w && (w.value = b), s("on-fold", D);
|
|
1380
1411
|
}, E = (b, C) => {
|
|
1381
1412
|
N();
|
|
1382
|
-
const
|
|
1413
|
+
const f = {
|
|
1383
1414
|
type: b,
|
|
1384
1415
|
prop: C,
|
|
1385
1416
|
value: a.value[C] || ""
|
|
1386
1417
|
};
|
|
1387
|
-
s("on-change",
|
|
1418
|
+
s("on-change", f);
|
|
1388
1419
|
};
|
|
1389
1420
|
return (b, C) => {
|
|
1390
|
-
const
|
|
1391
|
-
return n(), A("div",
|
|
1392
|
-
|
|
1393
|
-
Q((n(), T(
|
|
1421
|
+
const f = h("el-input"), y = h("el-input-number"), B = h("el-radio"), k = h("el-radio-group"), F = h("el-option"), R = h("el-select"), L = h("el-slider"), I = h("el-switch"), j = h("el-date-picker"), Z = h("el-time-picker"), ee = h("el-checkbox"), K = h("el-checkbox-group"), me = h("el-form-item"), ge = h("el-col"), fe = h("el-row"), P = h("el-form");
|
|
1422
|
+
return n(), A("div", oa, [
|
|
1423
|
+
S("div", ua, [
|
|
1424
|
+
Q((n(), T(P, {
|
|
1394
1425
|
ref_key: "EL_FORM_REF",
|
|
1395
|
-
ref:
|
|
1426
|
+
ref: r,
|
|
1396
1427
|
"label-suffix": ":",
|
|
1397
1428
|
"show-message": !1,
|
|
1398
1429
|
model: a.value
|
|
@@ -1401,9 +1432,9 @@ const la = { class: "bsgoal-base-search" }, na = { class: "base_search" }, oa =
|
|
|
1401
1432
|
$(fe, null, {
|
|
1402
1433
|
default: V(() => [
|
|
1403
1434
|
(n(!0), A(z, null, W(u(c), ({
|
|
1404
|
-
label:
|
|
1435
|
+
label: v = "",
|
|
1405
1436
|
prop: o = "",
|
|
1406
|
-
type:
|
|
1437
|
+
type: _ = "text",
|
|
1407
1438
|
placeholder: Y = "",
|
|
1408
1439
|
readonly: re = !1,
|
|
1409
1440
|
clearable: ie = !0,
|
|
@@ -1412,53 +1443,53 @@ const la = { class: "bsgoal-base-search" }, na = { class: "base_search" }, oa =
|
|
|
1412
1443
|
max: J = 10,
|
|
1413
1444
|
range: G = [],
|
|
1414
1445
|
format: te = ""
|
|
1415
|
-
} = {},
|
|
1416
|
-
key:
|
|
1446
|
+
} = {}, ne) => Q((n(), T(ge, {
|
|
1447
|
+
key: ne,
|
|
1417
1448
|
xs: 24,
|
|
1418
1449
|
sm: 12,
|
|
1419
1450
|
md: e.medium
|
|
1420
1451
|
}, {
|
|
1421
1452
|
default: V(() => [
|
|
1422
1453
|
$(me, {
|
|
1423
|
-
label:
|
|
1454
|
+
label: v,
|
|
1424
1455
|
prop: o
|
|
1425
1456
|
}, {
|
|
1426
1457
|
default: V(() => [
|
|
1427
|
-
re ? (n(), A("div",
|
|
1428
|
-
|
|
1458
|
+
re ? (n(), A("div", sa, H(a.value[o]), 1)) : (n(), A(z, { key: 0 }, [
|
|
1459
|
+
_ === u(t).INPUT ? (n(), T(f, {
|
|
1429
1460
|
key: 0,
|
|
1430
1461
|
modelValue: a.value[o],
|
|
1431
1462
|
"onUpdate:modelValue": (g) => a.value[o] = g,
|
|
1432
|
-
placeholder: _
|
|
1463
|
+
placeholder: d(_, v, Y),
|
|
1433
1464
|
clearable: ie,
|
|
1434
|
-
onChange: (g) => E(
|
|
1435
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) :
|
|
1436
|
-
|
|
1465
|
+
onChange: (g) => E(_, o)
|
|
1466
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : M("", !0),
|
|
1467
|
+
_ === u(t).INPUT_TEXT_AREA ? (n(), T(f, {
|
|
1437
1468
|
key: 1,
|
|
1438
1469
|
modelValue: a.value[o],
|
|
1439
1470
|
"onUpdate:modelValue": (g) => a.value[o] = g,
|
|
1440
1471
|
type: "textarea",
|
|
1441
1472
|
rows: de,
|
|
1442
1473
|
clearable: ie,
|
|
1443
|
-
placeholder: _
|
|
1444
|
-
onChange: (g) => E(
|
|
1445
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) :
|
|
1446
|
-
|
|
1474
|
+
placeholder: d(_, v, Y),
|
|
1475
|
+
onChange: (g) => E(_, o)
|
|
1476
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : M("", !0),
|
|
1477
|
+
_ === u(t).INPUT_NUMBER ? (n(), T(y, {
|
|
1447
1478
|
key: 2,
|
|
1448
1479
|
modelValue: b.num,
|
|
1449
1480
|
"onUpdate:modelValue": C[0] || (C[0] = (g) => b.num = g),
|
|
1450
1481
|
min: ue,
|
|
1451
1482
|
max: J,
|
|
1452
1483
|
onChange: E
|
|
1453
|
-
}, null, 8, ["modelValue", "min", "max"])) :
|
|
1454
|
-
|
|
1484
|
+
}, null, 8, ["modelValue", "min", "max"])) : M("", !0),
|
|
1485
|
+
_ === u(t).RADIO ? (n(), T(k, {
|
|
1455
1486
|
key: 3,
|
|
1456
1487
|
modelValue: a.value[o],
|
|
1457
1488
|
"onUpdate:modelValue": (g) => a.value[o] = g,
|
|
1458
|
-
onChange: (g) => E(
|
|
1489
|
+
onChange: (g) => E(_, o)
|
|
1459
1490
|
}, {
|
|
1460
1491
|
default: V(() => [
|
|
1461
|
-
(n(!0), A(z, null, W(G, (g, m) => (n(), T(
|
|
1492
|
+
(n(!0), A(z, null, W(G, (g, m) => (n(), T(B, {
|
|
1462
1493
|
key: m,
|
|
1463
1494
|
label: g.value
|
|
1464
1495
|
}, {
|
|
@@ -1469,89 +1500,89 @@ const la = { class: "bsgoal-base-search" }, na = { class: "base_search" }, oa =
|
|
|
1469
1500
|
}, 1032, ["label"]))), 128))
|
|
1470
1501
|
]),
|
|
1471
1502
|
_: 2
|
|
1472
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) :
|
|
1473
|
-
|
|
1503
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : M("", !0),
|
|
1504
|
+
_ === u(t).SELECT ? (n(), T(R, {
|
|
1474
1505
|
key: 4,
|
|
1475
1506
|
modelValue: a.value[o],
|
|
1476
1507
|
"onUpdate:modelValue": (g) => a.value[o] = g,
|
|
1477
|
-
placeholder: _
|
|
1478
|
-
onChange: (g) => E(
|
|
1508
|
+
placeholder: d(_, v, Y),
|
|
1509
|
+
onChange: (g) => E(_, o)
|
|
1479
1510
|
}, {
|
|
1480
1511
|
default: V(() => [
|
|
1481
|
-
(n(!0), A(z, null, W(G, (g, m) => (n(), T(
|
|
1512
|
+
(n(!0), A(z, null, W(G, (g, m) => (n(), T(F, {
|
|
1482
1513
|
key: m,
|
|
1483
1514
|
label: g.label,
|
|
1484
1515
|
value: g.value
|
|
1485
1516
|
}, null, 8, ["label", "value"]))), 128))
|
|
1486
1517
|
]),
|
|
1487
1518
|
_: 2
|
|
1488
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) :
|
|
1489
|
-
|
|
1519
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : M("", !0),
|
|
1520
|
+
_ === u(t).SLIDER ? (n(), T(L, {
|
|
1490
1521
|
key: 5,
|
|
1491
1522
|
modelValue: a.value[o],
|
|
1492
1523
|
"onUpdate:modelValue": (g) => a.value[o] = g,
|
|
1493
1524
|
min: ue,
|
|
1494
1525
|
max: J,
|
|
1495
|
-
onChange: (g) => E(
|
|
1496
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) :
|
|
1497
|
-
|
|
1526
|
+
onChange: (g) => E(_, o)
|
|
1527
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : M("", !0),
|
|
1528
|
+
_ === u(t).SWITCH ? (n(), T(I, {
|
|
1498
1529
|
key: 6,
|
|
1499
1530
|
modelValue: a.value[o],
|
|
1500
1531
|
"onUpdate:modelValue": (g) => a.value[o] = g,
|
|
1501
1532
|
"active-value": G[0] || !0,
|
|
1502
1533
|
"inactive-value": G[1] || !1,
|
|
1503
|
-
onChange: (g) => E(
|
|
1504
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) :
|
|
1534
|
+
onChange: (g) => E(_, o)
|
|
1535
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : M("", !0),
|
|
1505
1536
|
[u(t).DATE, u(t).MONTH, u(t).YEAR, u(t).DATE_TIME].includes(
|
|
1506
|
-
|
|
1507
|
-
) ? (n(), T(
|
|
1537
|
+
_
|
|
1538
|
+
) ? (n(), T(j, {
|
|
1508
1539
|
key: 7,
|
|
1509
1540
|
modelValue: a.value[o],
|
|
1510
1541
|
"onUpdate:modelValue": (g) => a.value[o] = g,
|
|
1511
|
-
format: p(
|
|
1512
|
-
"value-format": p(
|
|
1513
|
-
type:
|
|
1514
|
-
placeholder: _
|
|
1515
|
-
onChange: (g) => E(
|
|
1516
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) :
|
|
1542
|
+
format: p(_, te),
|
|
1543
|
+
"value-format": p(_, te),
|
|
1544
|
+
type: _,
|
|
1545
|
+
placeholder: d(_, v, Y),
|
|
1546
|
+
onChange: (g) => E(_, o)
|
|
1547
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : M("", !0),
|
|
1517
1548
|
[
|
|
1518
1549
|
u(t).DATE_RANGE,
|
|
1519
1550
|
u(t).MONTH_RANGE,
|
|
1520
1551
|
u(t).DATE_TIME_RANGE
|
|
1521
|
-
].includes(
|
|
1552
|
+
].includes(_) ? (n(), T(j, {
|
|
1522
1553
|
key: 8,
|
|
1523
1554
|
modelValue: a.value[o],
|
|
1524
1555
|
"onUpdate:modelValue": (g) => a.value[o] = g,
|
|
1525
|
-
type:
|
|
1526
|
-
"value-format": p(
|
|
1527
|
-
"start-placeholder": _
|
|
1528
|
-
"end-placeholder": _
|
|
1529
|
-
onChange: (g) => E(
|
|
1530
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) :
|
|
1531
|
-
[u(t).TIME].includes(
|
|
1556
|
+
type: _,
|
|
1557
|
+
"value-format": p(_, te),
|
|
1558
|
+
"start-placeholder": d(_, v, Y)[0],
|
|
1559
|
+
"end-placeholder": d(_, v, Y)[1],
|
|
1560
|
+
onChange: (g) => E(_, o)
|
|
1561
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : M("", !0),
|
|
1562
|
+
[u(t).TIME].includes(_) ? (n(), T(Z, {
|
|
1532
1563
|
key: 9,
|
|
1533
1564
|
modelValue: a.value[o],
|
|
1534
1565
|
"onUpdate:modelValue": (g) => a.value[o] = g,
|
|
1535
1566
|
"arrow-control": "",
|
|
1536
|
-
"value-format": p(
|
|
1537
|
-
placeholder: _
|
|
1538
|
-
onChange: (g) => E(
|
|
1539
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) :
|
|
1540
|
-
[u(t).TIME_RANGE].includes(
|
|
1567
|
+
"value-format": p(_, te),
|
|
1568
|
+
placeholder: d(_, v, Y),
|
|
1569
|
+
onChange: (g) => E(_, o)
|
|
1570
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : M("", !0),
|
|
1571
|
+
[u(t).TIME_RANGE].includes(_) ? (n(), T(Z, {
|
|
1541
1572
|
key: 10,
|
|
1542
1573
|
modelValue: a.value[o],
|
|
1543
1574
|
"onUpdate:modelValue": (g) => a.value[o] = g,
|
|
1544
1575
|
"is-range": "",
|
|
1545
|
-
"value-format": p(
|
|
1546
|
-
"start-placeholder": _
|
|
1547
|
-
"end-placeholder": _
|
|
1548
|
-
onChange: (g) => E(
|
|
1549
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) :
|
|
1550
|
-
[u(t).CHECKBOX].includes(
|
|
1576
|
+
"value-format": p(_, te),
|
|
1577
|
+
"start-placeholder": d(_, v, Y)[0],
|
|
1578
|
+
"end-placeholder": d(_, v, Y)[1],
|
|
1579
|
+
onChange: (g) => E(_, o)
|
|
1580
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : M("", !0),
|
|
1581
|
+
[u(t).CHECKBOX].includes(_) ? (n(), T(K, {
|
|
1551
1582
|
key: 11,
|
|
1552
1583
|
modelValue: a.value[o],
|
|
1553
1584
|
"onUpdate:modelValue": (g) => a.value[o] = g,
|
|
1554
|
-
onChange: (g) => E(
|
|
1585
|
+
onChange: (g) => E(_, o)
|
|
1555
1586
|
}, {
|
|
1556
1587
|
default: V(() => [
|
|
1557
1588
|
(n(!0), A(z, null, W(G, (g, m) => (n(), T(ee, {
|
|
@@ -1565,23 +1596,23 @@ const la = { class: "bsgoal-base-search" }, na = { class: "base_search" }, oa =
|
|
|
1565
1596
|
}, 1032, ["label"]))), 128))
|
|
1566
1597
|
]),
|
|
1567
1598
|
_: 2
|
|
1568
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) :
|
|
1569
|
-
[u(t).CASCADER].includes(
|
|
1599
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : M("", !0),
|
|
1600
|
+
[u(t).CASCADER].includes(_) ? (n(), T(na, {
|
|
1570
1601
|
key: 12,
|
|
1571
1602
|
modelValue: a.value[o],
|
|
1572
1603
|
"onUpdate:modelValue": (g) => a.value[o] = g,
|
|
1573
1604
|
"data-options": G,
|
|
1574
|
-
placeholder: _
|
|
1575
|
-
onOnChange: (g) => E(
|
|
1576
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "data-options", "placeholder", "onOnChange"])) :
|
|
1577
|
-
[].includes(
|
|
1578
|
-
[u(t).OPERATION].includes(
|
|
1605
|
+
placeholder: d(_, v, Y),
|
|
1606
|
+
onOnChange: (g) => E(_, o)
|
|
1607
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "data-options", "placeholder", "onOnChange"])) : M("", !0),
|
|
1608
|
+
[].includes(_) ? (n(), A(z, { key: 13 }, [], 64)) : M("", !0),
|
|
1609
|
+
[u(t).OPERATION].includes(_) ? (n(), T(ta, {
|
|
1579
1610
|
key: 14,
|
|
1580
|
-
fold:
|
|
1611
|
+
fold: ne >= 7,
|
|
1581
1612
|
onOnSearch: N,
|
|
1582
|
-
onOnClear:
|
|
1613
|
+
onOnClear: x,
|
|
1583
1614
|
onOnFold: U
|
|
1584
|
-
}, null, 8, ["fold"])) :
|
|
1615
|
+
}, null, 8, ["fold"])) : M("", !0)
|
|
1585
1616
|
], 64))
|
|
1586
1617
|
]),
|
|
1587
1618
|
_: 2
|
|
@@ -1589,7 +1620,7 @@ const la = { class: "bsgoal-base-search" }, na = { class: "base_search" }, oa =
|
|
|
1589
1620
|
]),
|
|
1590
1621
|
_: 2
|
|
1591
1622
|
}, 1032, ["md"])), [
|
|
1592
|
-
[
|
|
1623
|
+
[le, ne < 7 || _ === u(t).OPERATION || ne >= 7 && D.value]
|
|
1593
1624
|
])), 128))
|
|
1594
1625
|
]),
|
|
1595
1626
|
_: 1
|
|
@@ -1597,7 +1628,7 @@ const la = { class: "bsgoal-base-search" }, na = { class: "base_search" }, oa =
|
|
|
1597
1628
|
]),
|
|
1598
1629
|
_: 1
|
|
1599
1630
|
}, 8, ["model"])), [
|
|
1600
|
-
[u(
|
|
1631
|
+
[u(i)]
|
|
1601
1632
|
])
|
|
1602
1633
|
]),
|
|
1603
1634
|
$(ye)
|
|
@@ -1605,9 +1636,9 @@ const la = { class: "bsgoal-base-search" }, na = { class: "base_search" }, oa =
|
|
|
1605
1636
|
};
|
|
1606
1637
|
}
|
|
1607
1638
|
});
|
|
1608
|
-
const
|
|
1639
|
+
const ia = { class: "bsgoal-base-search-table" }, da = { class: "base_search_table" }, _a = {
|
|
1609
1640
|
name: "BsgoalBaseSearchTable"
|
|
1610
|
-
},
|
|
1641
|
+
}, ma = /* @__PURE__ */ Object.assign(_a, {
|
|
1611
1642
|
props: {
|
|
1612
1643
|
/**
|
|
1613
1644
|
* >----------props----------<
|
|
@@ -1688,21 +1719,21 @@ const ca = { class: "bsgoal-base-search-table" }, ra = { class: "base_search_tab
|
|
|
1688
1719
|
}
|
|
1689
1720
|
},
|
|
1690
1721
|
setup(e) {
|
|
1691
|
-
const s = e, l =
|
|
1692
|
-
|
|
1693
|
-
const
|
|
1694
|
-
const { type: w = "" } =
|
|
1722
|
+
const s = e, l = O(!1);
|
|
1723
|
+
Se("transferFoldStatus", l);
|
|
1724
|
+
const r = u(s.configOptions), i = q(() => r.filter((x) => {
|
|
1725
|
+
const { type: w = "" } = x;
|
|
1695
1726
|
return !!w;
|
|
1696
|
-
})), a = q(() =>
|
|
1697
|
-
const { item: w = !1 } =
|
|
1727
|
+
})), a = q(() => r.filter((x) => {
|
|
1728
|
+
const { item: w = !1 } = x;
|
|
1698
1729
|
return !w;
|
|
1699
|
-
})), c =
|
|
1700
|
-
p.value.refreshList(
|
|
1730
|
+
})), c = ke(), d = O(Object.keys(c)), p = O(null), N = (x) => {
|
|
1731
|
+
p.value.refreshList(x);
|
|
1701
1732
|
};
|
|
1702
|
-
return (
|
|
1703
|
-
|
|
1704
|
-
$(
|
|
1705
|
-
"config-options": u(
|
|
1733
|
+
return (x, w) => (n(), A("div", ia, [
|
|
1734
|
+
S("div", da, [
|
|
1735
|
+
$(ra, {
|
|
1736
|
+
"config-options": u(i),
|
|
1706
1737
|
onOnSearch: N,
|
|
1707
1738
|
onOnClear: N
|
|
1708
1739
|
}, null, 8, ["config-options"]),
|
|
@@ -1718,10 +1749,10 @@ const ca = { class: "bsgoal-base-search-table" }, ra = { class: "base_search_tab
|
|
|
1718
1749
|
fetch: e.fetch,
|
|
1719
1750
|
call: e.call
|
|
1720
1751
|
}, Ie({ _: 2 }, [
|
|
1721
|
-
W(
|
|
1752
|
+
W(d.value, (D) => ({
|
|
1722
1753
|
name: D,
|
|
1723
1754
|
fn: V(({ row: U = {} }) => [
|
|
1724
|
-
|
|
1755
|
+
ae(x.$slots, D, { row: U })
|
|
1725
1756
|
])
|
|
1726
1757
|
}))
|
|
1727
1758
|
]), 1032, ["operationWidth", "config-options", "data", "selection", "operation", "expression", "fetch", "call"])
|
|
@@ -1729,30 +1760,30 @@ const ca = { class: "bsgoal-base-search-table" }, ra = { class: "base_search_tab
|
|
|
1729
1760
|
]));
|
|
1730
1761
|
}
|
|
1731
1762
|
});
|
|
1732
|
-
const
|
|
1763
|
+
const ga = { class: "bsgoal-base-tree-fold" }, fa = {
|
|
1733
1764
|
name: "BsgoalBaseTreeFold"
|
|
1734
|
-
},
|
|
1765
|
+
}, va = /* @__PURE__ */ Object.assign(fa, {
|
|
1735
1766
|
props: ["modelValue"],
|
|
1736
1767
|
emits: ["update:modelValue"],
|
|
1737
1768
|
setup(e, { emit: s }) {
|
|
1738
|
-
let l =
|
|
1739
|
-
const
|
|
1769
|
+
let l = O(!0);
|
|
1770
|
+
const r = () => {
|
|
1740
1771
|
l.value = !l.value, s("update:modelValue", l.value);
|
|
1741
1772
|
};
|
|
1742
|
-
return (
|
|
1743
|
-
const c =
|
|
1744
|
-
return n(), A("div",
|
|
1745
|
-
|
|
1773
|
+
return (i, a) => {
|
|
1774
|
+
const c = h("el-icon");
|
|
1775
|
+
return n(), A("div", ga, [
|
|
1776
|
+
S("div", {
|
|
1746
1777
|
class: _e(["base_tree_fold", { "base_tree_fold--hide": !u(l) }]),
|
|
1747
|
-
onClick:
|
|
1778
|
+
onClick: r
|
|
1748
1779
|
}, [
|
|
1749
1780
|
$(c, { color: "#fff" }, {
|
|
1750
1781
|
default: V(() => [
|
|
1751
|
-
Q($(u(
|
|
1752
|
-
[
|
|
1782
|
+
Q($(u($t), null, null, 512), [
|
|
1783
|
+
[le, u(l)]
|
|
1753
1784
|
]),
|
|
1754
|
-
Q($(u(
|
|
1755
|
-
[
|
|
1785
|
+
Q($(u(St), null, null, 512), [
|
|
1786
|
+
[le, !u(l)]
|
|
1756
1787
|
])
|
|
1757
1788
|
]),
|
|
1758
1789
|
_: 1
|
|
@@ -1762,9 +1793,9 @@ const _a = { class: "bsgoal-base-tree-fold" }, ma = {
|
|
|
1762
1793
|
};
|
|
1763
1794
|
}
|
|
1764
1795
|
});
|
|
1765
|
-
const
|
|
1796
|
+
const ha = { class: "bsgoal-base-tree" }, pa = { class: "base_tree" }, Ea = { class: "base_tree_main" }, ba = {
|
|
1766
1797
|
name: "BsgoalBaseTree"
|
|
1767
|
-
},
|
|
1798
|
+
}, ya = /* @__PURE__ */ Object.assign(ba, {
|
|
1768
1799
|
props: {
|
|
1769
1800
|
/**
|
|
1770
1801
|
* 树结构 的下边距
|
|
@@ -1818,29 +1849,29 @@ const fa = { class: "bsgoal-base-tree" }, va = { class: "base_tree" }, ha = { cl
|
|
|
1818
1849
|
},
|
|
1819
1850
|
emits: ["on-click"],
|
|
1820
1851
|
setup(e, { emit: s }) {
|
|
1821
|
-
const l = e,
|
|
1822
|
-
ce(
|
|
1823
|
-
a.value.filter(
|
|
1852
|
+
const l = e, r = Ee.height, i = O(""), a = O(null);
|
|
1853
|
+
ce(i, (x) => {
|
|
1854
|
+
a.value.filter(x);
|
|
1824
1855
|
});
|
|
1825
|
-
const c = (
|
|
1826
|
-
s("on-click",
|
|
1827
|
-
}, N = async (
|
|
1828
|
-
if (
|
|
1829
|
-
const U = await D.initNode(
|
|
1856
|
+
const c = (x, w) => x ? w.label.includes(x) : !0, d = O(!0), p = (x, w, D, U) => {
|
|
1857
|
+
s("on-click", x, w, D, U);
|
|
1858
|
+
}, N = async (x, w, D) => {
|
|
1859
|
+
if (x.level === 0) {
|
|
1860
|
+
const U = await D.initNode(x);
|
|
1830
1861
|
return w(U || []);
|
|
1831
1862
|
} else {
|
|
1832
|
-
const U = await D.lazyLoad(
|
|
1863
|
+
const U = await D.lazyLoad(x);
|
|
1833
1864
|
w(U || []);
|
|
1834
1865
|
}
|
|
1835
1866
|
};
|
|
1836
|
-
return (
|
|
1837
|
-
const D =
|
|
1838
|
-
return n(), A("div",
|
|
1839
|
-
Q((n(), A("div",
|
|
1840
|
-
Q(
|
|
1867
|
+
return (x, w) => {
|
|
1868
|
+
const D = h("el-input"), U = h("el-tree");
|
|
1869
|
+
return n(), A("div", ha, [
|
|
1870
|
+
Q((n(), A("div", pa, [
|
|
1871
|
+
Q(S("div", Ea, [
|
|
1841
1872
|
$(D, {
|
|
1842
|
-
modelValue:
|
|
1843
|
-
"onUpdate:modelValue": w[0] || (w[0] = (E) =>
|
|
1873
|
+
modelValue: i.value,
|
|
1874
|
+
"onUpdate:modelValue": w[0] || (w[0] = (E) => i.value = E),
|
|
1844
1875
|
class: "base_tree_main_input",
|
|
1845
1876
|
placeholder: "输入关键字过滤"
|
|
1846
1877
|
}, null, 8, ["modelValue"]),
|
|
@@ -1857,25 +1888,25 @@ const fa = { class: "bsgoal-base-tree" }, va = { class: "base_tree" }, ha = { cl
|
|
|
1857
1888
|
onNodeClick: p
|
|
1858
1889
|
}, null, 8, ["load", "props"])
|
|
1859
1890
|
], 512), [
|
|
1860
|
-
[
|
|
1891
|
+
[le, d.value]
|
|
1861
1892
|
]),
|
|
1862
1893
|
Q($(ye, { vertical: "" }, null, 512), [
|
|
1863
|
-
[
|
|
1894
|
+
[le, d.value]
|
|
1864
1895
|
]),
|
|
1865
|
-
$(
|
|
1866
|
-
modelValue:
|
|
1867
|
-
"onUpdate:modelValue": w[1] || (w[1] = (E) =>
|
|
1896
|
+
$(va, {
|
|
1897
|
+
modelValue: d.value,
|
|
1898
|
+
"onUpdate:modelValue": w[1] || (w[1] = (E) => d.value = E)
|
|
1868
1899
|
}, null, 8, ["modelValue"])
|
|
1869
1900
|
])), [
|
|
1870
|
-
[u(
|
|
1901
|
+
[u(r), e.gasket]
|
|
1871
1902
|
])
|
|
1872
1903
|
]);
|
|
1873
1904
|
};
|
|
1874
1905
|
}
|
|
1875
1906
|
});
|
|
1876
|
-
const
|
|
1907
|
+
const Ta = { class: "bsgoal-base-dialog" }, Aa = { class: "base_dialog" }, Va = { class: "base_dialog_header" }, Ca = { class: "base_dialog_footer" }, Ma = {
|
|
1877
1908
|
name: "BsgoalBaseDialog"
|
|
1878
|
-
},
|
|
1909
|
+
}, xa = /* @__PURE__ */ Object.assign(Ma, {
|
|
1879
1910
|
props: {
|
|
1880
1911
|
/**
|
|
1881
1912
|
* 弹窗状态
|
|
@@ -1926,27 +1957,34 @@ const ba = { class: "bsgoal-base-dialog" }, ya = { class: "base_dialog" }, Ta =
|
|
|
1926
1957
|
type: [String, Number],
|
|
1927
1958
|
default: "medium",
|
|
1928
1959
|
validator: (e) => ["small", "medium", "lagre", "max", "dnymic"].includes(e)
|
|
1960
|
+
},
|
|
1961
|
+
/**
|
|
1962
|
+
* 是否显示 底部 内容
|
|
1963
|
+
*/
|
|
1964
|
+
footer: {
|
|
1965
|
+
type: [Boolean],
|
|
1966
|
+
default: !0
|
|
1929
1967
|
}
|
|
1930
1968
|
},
|
|
1931
1969
|
emits: ["update:modelValue", "on-confirm"],
|
|
1932
1970
|
setup(e, { emit: s }) {
|
|
1933
|
-
const l = e,
|
|
1934
|
-
|
|
1971
|
+
const l = e, r = O(l.modelValue.value), i = () => {
|
|
1972
|
+
r.value = !1;
|
|
1935
1973
|
}, a = () => {
|
|
1936
|
-
|
|
1974
|
+
r.value = !1, s("on-confirm");
|
|
1937
1975
|
};
|
|
1938
1976
|
ce(
|
|
1939
1977
|
() => l.modelValue,
|
|
1940
|
-
(
|
|
1941
|
-
|
|
1978
|
+
(d) => {
|
|
1979
|
+
r.value = d;
|
|
1942
1980
|
}
|
|
1943
|
-
), ce(
|
|
1944
|
-
s("update:modelValue",
|
|
1981
|
+
), ce(r, (d) => {
|
|
1982
|
+
s("update:modelValue", d);
|
|
1945
1983
|
});
|
|
1946
1984
|
const c = q(() => {
|
|
1947
|
-
const { width:
|
|
1948
|
-
if (
|
|
1949
|
-
return
|
|
1985
|
+
const { width: d, size: p } = l;
|
|
1986
|
+
if (d)
|
|
1987
|
+
return d;
|
|
1950
1988
|
switch (p) {
|
|
1951
1989
|
case "small":
|
|
1952
1990
|
return "480px";
|
|
@@ -1959,46 +1997,48 @@ const ba = { class: "bsgoal-base-dialog" }, ya = { class: "base_dialog" }, Ta =
|
|
|
1959
1997
|
case "dnymic":
|
|
1960
1998
|
return "80%";
|
|
1961
1999
|
default:
|
|
1962
|
-
return
|
|
2000
|
+
return d;
|
|
1963
2001
|
}
|
|
1964
2002
|
});
|
|
1965
|
-
return (
|
|
1966
|
-
const N =
|
|
1967
|
-
return n(), A("div",
|
|
1968
|
-
|
|
1969
|
-
$(
|
|
1970
|
-
modelValue:
|
|
1971
|
-
"onUpdate:modelValue": p[0] || (p[0] = (w) =>
|
|
2003
|
+
return (d, p) => {
|
|
2004
|
+
const N = h("el-button"), x = h("el-dialog");
|
|
2005
|
+
return n(), A("div", Ta, [
|
|
2006
|
+
S("div", Aa, [
|
|
2007
|
+
$(x, {
|
|
2008
|
+
modelValue: r.value,
|
|
2009
|
+
"onUpdate:modelValue": p[0] || (p[0] = (w) => r.value = w),
|
|
1972
2010
|
"custom-class": "bsgoal_base_dialog_main",
|
|
1973
2011
|
width: u(c)
|
|
1974
2012
|
}, {
|
|
1975
2013
|
header: V(() => [
|
|
1976
|
-
|
|
2014
|
+
S("div", Va, H(e.title), 1)
|
|
1977
2015
|
]),
|
|
1978
2016
|
footer: V(() => [
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
2017
|
+
e.footer ? ae(d.$slots, "footer", { key: 0 }, () => [
|
|
2018
|
+
S("span", Ca, [
|
|
2019
|
+
$(N, { onClick: i }, {
|
|
2020
|
+
default: V(() => [
|
|
2021
|
+
X(H(e.cancelTxt), 1)
|
|
2022
|
+
]),
|
|
2023
|
+
_: 1
|
|
2024
|
+
}),
|
|
2025
|
+
$(N, {
|
|
2026
|
+
type: "primary",
|
|
2027
|
+
onClick: a
|
|
2028
|
+
}, {
|
|
2029
|
+
default: V(() => [
|
|
2030
|
+
X(H(e.confirmTxt), 1)
|
|
2031
|
+
]),
|
|
2032
|
+
_: 1
|
|
2033
|
+
})
|
|
2034
|
+
])
|
|
2035
|
+
]) : M("", !0)
|
|
1996
2036
|
]),
|
|
1997
2037
|
default: V(() => [
|
|
1998
|
-
|
|
2038
|
+
S("div", {
|
|
1999
2039
|
class: _e(["base_dialog_content", { "base_dialog_content--form": e.type === "form" }])
|
|
2000
2040
|
}, [
|
|
2001
|
-
|
|
2041
|
+
ae(d.$slots, "default")
|
|
2002
2042
|
], 2)
|
|
2003
2043
|
]),
|
|
2004
2044
|
_: 3
|
|
@@ -2008,9 +2048,9 @@ const ba = { class: "bsgoal-base-dialog" }, ya = { class: "base_dialog" }, Ta =
|
|
|
2008
2048
|
};
|
|
2009
2049
|
}
|
|
2010
2050
|
});
|
|
2011
|
-
const
|
|
2051
|
+
const $a = { class: "bsgoal-base-tabs" }, Na = {
|
|
2012
2052
|
name: "BsgoalBaseTabs"
|
|
2013
|
-
},
|
|
2053
|
+
}, wa = /* @__PURE__ */ Object.assign(Na, {
|
|
2014
2054
|
props: {
|
|
2015
2055
|
/**
|
|
2016
2056
|
* 配置项
|
|
@@ -2045,12 +2085,12 @@ const Ma = { class: "bsgoal-base-tabs" }, xa = {
|
|
|
2045
2085
|
},
|
|
2046
2086
|
emits: ["update:modelValue"],
|
|
2047
2087
|
setup(e, { emit: s }) {
|
|
2048
|
-
const l = (
|
|
2049
|
-
s("update:modelValue",
|
|
2088
|
+
const l = (r = "") => {
|
|
2089
|
+
s("update:modelValue", r);
|
|
2050
2090
|
};
|
|
2051
|
-
return (
|
|
2052
|
-
const a =
|
|
2053
|
-
return n(), A("div",
|
|
2091
|
+
return (r, i) => {
|
|
2092
|
+
const a = h("el-tab-pane"), c = h("el-tabs");
|
|
2093
|
+
return n(), A("div", $a, [
|
|
2054
2094
|
$(c, {
|
|
2055
2095
|
stretch: "",
|
|
2056
2096
|
class: "bsgoal_base_tabs",
|
|
@@ -2059,14 +2099,14 @@ const Ma = { class: "bsgoal-base-tabs" }, xa = {
|
|
|
2059
2099
|
onTabChange: l
|
|
2060
2100
|
}, {
|
|
2061
2101
|
default: V(() => [
|
|
2062
|
-
(n(!0), A(z, null, W(e.configOptions, ({ label:
|
|
2102
|
+
(n(!0), A(z, null, W(e.configOptions, ({ label: d, value: p }, N) => (n(), T(a, {
|
|
2063
2103
|
key: N,
|
|
2064
|
-
label:
|
|
2104
|
+
label: d,
|
|
2065
2105
|
name: p
|
|
2066
2106
|
}, {
|
|
2067
2107
|
default: V(() => [
|
|
2068
|
-
|
|
2069
|
-
X(H(
|
|
2108
|
+
ae(r.$slots, p, {}, () => [
|
|
2109
|
+
X(H(d), 1)
|
|
2070
2110
|
])
|
|
2071
2111
|
]),
|
|
2072
2112
|
_: 2
|
|
@@ -2077,26 +2117,26 @@ const Ma = { class: "bsgoal-base-tabs" }, xa = {
|
|
|
2077
2117
|
]);
|
|
2078
2118
|
};
|
|
2079
2119
|
}
|
|
2080
|
-
}),
|
|
2120
|
+
}), Sa = t, ka = be, Ia = {
|
|
2081
2121
|
install(e, s = {}) {
|
|
2082
|
-
const { exclude: l = [] } = s,
|
|
2122
|
+
const { exclude: l = [] } = s, r = {
|
|
2083
2123
|
BsgoalBaseForm: Ge,
|
|
2084
2124
|
BsgoalBaseTable: xe,
|
|
2085
2125
|
BsgoalBaseLine: ye,
|
|
2086
|
-
BsgoalBaseSearchTable:
|
|
2087
|
-
BsgoalBaseTree:
|
|
2088
|
-
BsgoalBaseDialog:
|
|
2089
|
-
BsgoalBaseTabs:
|
|
2126
|
+
BsgoalBaseSearchTable: ma,
|
|
2127
|
+
BsgoalBaseTree: ya,
|
|
2128
|
+
BsgoalBaseDialog: xa,
|
|
2129
|
+
BsgoalBaseTabs: wa
|
|
2090
2130
|
};
|
|
2091
|
-
for (const [
|
|
2092
|
-
l.includes(
|
|
2131
|
+
for (const [i, a] of Object.entries(r))
|
|
2132
|
+
l.includes(i) || e.component(i, a);
|
|
2093
2133
|
},
|
|
2094
2134
|
enumType: t,
|
|
2095
2135
|
useFetch: be
|
|
2096
2136
|
};
|
|
2097
2137
|
export {
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2138
|
+
Sa as EnumType,
|
|
2139
|
+
Ia as default,
|
|
2140
|
+
ka as useFetchApi
|
|
2101
2141
|
};
|
|
2102
2142
|
//# sourceMappingURL=index.mjs.map
|