@bsgoal/common 1.5.2 → 1.5.4
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 +328 -304
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/bsgoal-base-dialog/demo.vue +2 -2
- package/src/components/bsgoal-base-dialog/index.vue +36 -22
- package/src/components/bsgoal-base-tooltip/demo.vue +40 -0
- package/src/components/bsgoal-base-tooltip/index.vue +89 -0
- package/src/router/index.js +6 -1
package/dist/index.mjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
var xe = Object.defineProperty;
|
|
2
2
|
var ye = Object.getOwnPropertySymbols;
|
|
3
3
|
var $e = Object.prototype.hasOwnProperty, Ne = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var Ae = (
|
|
4
|
+
var Ae = (e, c, l) => c in e ? xe(e, c, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[c] = l, Te = (e, c) => {
|
|
5
5
|
for (var l in c || (c = {}))
|
|
6
|
-
$e.call(c, l) && Ae(
|
|
6
|
+
$e.call(c, l) && Ae(e, l, c[l]);
|
|
7
7
|
if (ye)
|
|
8
8
|
for (var l of ye(c))
|
|
9
|
-
Ne.call(c, l) && Ae(
|
|
10
|
-
return
|
|
9
|
+
Ne.call(c, l) && Ae(e, l, c[l]);
|
|
10
|
+
return e;
|
|
11
11
|
};
|
|
12
|
-
import { ref as
|
|
12
|
+
import { ref as D, watchEffect as he, unref as s, computed as le, resolveComponent as v, openBlock as u, createElementBlock as A, createElementVNode as O, withDirectives as X, createBlock as y, withCtx as V, createVNode as w, Fragment as L, renderList as W, createCommentVNode as M, createTextVNode as Q, toDisplayString as G, nextTick as Ve, inject as Ce, watch as ue, resolveDirective as we, renderSlot as se, normalizeClass as de, vShow as te, isProxy as De, toRaw as Be, provide as Oe, useSlots as ke, createSlots as Ie } from "vue";
|
|
13
13
|
import { ElMessage as Se } from "element-plus";
|
|
14
|
-
const
|
|
14
|
+
const t = {
|
|
15
15
|
INPUT: "text",
|
|
16
16
|
INPUT_NUMBER: "number",
|
|
17
17
|
INPUT_TEXT_AREA: "textarea",
|
|
@@ -33,8 +33,8 @@ const e = {
|
|
|
33
33
|
OPERATION: "operation",
|
|
34
34
|
CASCADER: "cascader"
|
|
35
35
|
};
|
|
36
|
-
let
|
|
37
|
-
const
|
|
36
|
+
let fe = null;
|
|
37
|
+
const ve = (e) => {
|
|
38
38
|
const c = [], l = [], i = (n = []) => {
|
|
39
39
|
const r = n.map((p) => p.width), m = Math.max(...r);
|
|
40
40
|
n.forEach((p) => {
|
|
@@ -42,19 +42,19 @@ const fe = (t) => {
|
|
|
42
42
|
x.style.width = `${m}px`;
|
|
43
43
|
});
|
|
44
44
|
}, _ = () => {
|
|
45
|
-
if (
|
|
46
|
-
const n =
|
|
45
|
+
if (e) {
|
|
46
|
+
const n = e.querySelectorAll(".el-form-item__label");
|
|
47
47
|
if (n && n.length) {
|
|
48
48
|
let r = 0;
|
|
49
49
|
n.forEach((m, p) => {
|
|
50
50
|
m.style.width = "initial", m.style.whiteSpace = "nowrap";
|
|
51
|
-
const { x = 0, width:
|
|
51
|
+
const { x = 0, width: C = 0 } = m.getBoundingClientRect(), $ = { x, width: C, labelEl: m };
|
|
52
52
|
p === 0 && (r = x), x === r ? c.push($) : l.push($);
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
|
-
|
|
57
|
+
fe && clearTimeout(fe), fe = setTimeout(() => {
|
|
58
58
|
_(), i(c), i(l);
|
|
59
59
|
}, 50);
|
|
60
60
|
}, pe = {
|
|
@@ -62,25 +62,25 @@ const fe = (t) => {
|
|
|
62
62
|
* 表单自动左对齐
|
|
63
63
|
*/
|
|
64
64
|
align: {
|
|
65
|
-
created(
|
|
65
|
+
created(e) {
|
|
66
66
|
window.addEventListener("resize", () => {
|
|
67
|
-
|
|
67
|
+
ve(e);
|
|
68
68
|
});
|
|
69
69
|
},
|
|
70
|
-
mounted(
|
|
71
|
-
|
|
70
|
+
mounted(e) {
|
|
71
|
+
ve(e);
|
|
72
72
|
},
|
|
73
|
-
unmounted(
|
|
74
|
-
window.removeEventListener("resize",
|
|
73
|
+
unmounted(e) {
|
|
74
|
+
window.removeEventListener("resize", ve(e));
|
|
75
75
|
}
|
|
76
76
|
},
|
|
77
77
|
/**
|
|
78
78
|
* 表格自动高度
|
|
79
79
|
*/
|
|
80
|
-
height: (
|
|
81
|
-
if (
|
|
82
|
-
const { y: i = 0 } =
|
|
83
|
-
|
|
80
|
+
height: (e, { value: c = 65, arg: l = "" }) => {
|
|
81
|
+
if (e) {
|
|
82
|
+
const { y: i = 0 } = e.getBoundingClientRect();
|
|
83
|
+
e.style.height = `calc(100vh - ${i + c}px)`;
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
};
|
|
@@ -127,13 +127,13 @@ const Re = { class: "bsgoal-base-form" }, Fe = { class: "base_form" }, Ue = { ke
|
|
|
127
127
|
}
|
|
128
128
|
},
|
|
129
129
|
emits: ["on-form", "on-clear", "on-change", "on-fold"],
|
|
130
|
-
setup(
|
|
131
|
-
const i =
|
|
130
|
+
setup(e, { expose: c, emit: l }) {
|
|
131
|
+
const i = e, _ = D(null), n = pe.align, r = D({});
|
|
132
132
|
he(() => {
|
|
133
133
|
const { configOptions: h, values: E } = i, T = s(h), f = s(E);
|
|
134
134
|
T.forEach((b) => {
|
|
135
135
|
const { value: B = "", prop: k = "", type: S = "" } = b;
|
|
136
|
-
[
|
|
136
|
+
[t.INPUT, t.INPUT_TEXT_AREA].includes(S), r.value[k] = f[k] || B;
|
|
137
137
|
});
|
|
138
138
|
});
|
|
139
139
|
const m = le(() => {
|
|
@@ -146,49 +146,49 @@ const Re = { class: "bsgoal-base-form" }, Fe = { class: "base_form" }, Ue = { ke
|
|
|
146
146
|
}), p = (h = "", E = "", T = "") => {
|
|
147
147
|
if (!T)
|
|
148
148
|
switch (h) {
|
|
149
|
-
case
|
|
150
|
-
case
|
|
149
|
+
case t.INPUT:
|
|
150
|
+
case t.INPUT_TEXT_AREA:
|
|
151
151
|
return `请输入${E}`;
|
|
152
|
-
case
|
|
153
|
-
case
|
|
154
|
-
case
|
|
155
|
-
case
|
|
156
|
-
case
|
|
157
|
-
case
|
|
158
|
-
case
|
|
152
|
+
case t.SELECT:
|
|
153
|
+
case t.DATE:
|
|
154
|
+
case t.WEEK:
|
|
155
|
+
case t.MONTH:
|
|
156
|
+
case t.YEAR:
|
|
157
|
+
case t.DATE_TIME:
|
|
158
|
+
case t.TIME:
|
|
159
159
|
return `请选择${E}`;
|
|
160
|
-
case
|
|
161
|
-
case
|
|
160
|
+
case t.DATE_RANGE:
|
|
161
|
+
case t.DATE_TIME_RANGE:
|
|
162
162
|
return ["开始日期", "结束日期"];
|
|
163
|
-
case
|
|
163
|
+
case t.TIME_RANGE:
|
|
164
164
|
return ["开始时间", "结束时间"];
|
|
165
|
-
case
|
|
165
|
+
case t.MONTH_RANGE:
|
|
166
166
|
return ["开始月份", "结束月份"];
|
|
167
167
|
}
|
|
168
168
|
return T;
|
|
169
169
|
}, x = (h = "", E = "") => {
|
|
170
170
|
if (!E)
|
|
171
171
|
switch (h) {
|
|
172
|
-
case
|
|
172
|
+
case t.WEEK:
|
|
173
173
|
return "ww";
|
|
174
|
-
case
|
|
175
|
-
case
|
|
174
|
+
case t.DATE:
|
|
175
|
+
case t.DATE_RANGE:
|
|
176
176
|
return "YYYY-MM-DD";
|
|
177
|
-
case
|
|
177
|
+
case t.MONTH:
|
|
178
178
|
return "MM";
|
|
179
|
-
case
|
|
179
|
+
case t.YEAR:
|
|
180
180
|
return "YYYY";
|
|
181
|
-
case
|
|
181
|
+
case t.MONTH_RANGE:
|
|
182
182
|
return "YYYY-MM";
|
|
183
|
-
case
|
|
184
|
-
case
|
|
183
|
+
case t.TIME:
|
|
184
|
+
case t.TIME_RANGE:
|
|
185
185
|
return "HH:mm:ss";
|
|
186
|
-
case
|
|
187
|
-
case
|
|
186
|
+
case t.DATE_TIME:
|
|
187
|
+
case t.DATE_TIME_RANGE:
|
|
188
188
|
return "YYYY-MM-DD HH:mm:ss";
|
|
189
189
|
}
|
|
190
190
|
return E;
|
|
191
|
-
},
|
|
191
|
+
}, C = () => {
|
|
192
192
|
const h = s(r), { configOptions: E } = i, T = s(E);
|
|
193
193
|
for (const f of T) {
|
|
194
194
|
const { type: b = "", range: B = [], prop: k = "" } = f;
|
|
@@ -210,12 +210,12 @@ const Re = { class: "bsgoal-base-form" }, Fe = { class: "base_form" }, Ue = { ke
|
|
|
210
210
|
};
|
|
211
211
|
return c({
|
|
212
212
|
triggerOperationClear: $,
|
|
213
|
-
triggerOperationForm:
|
|
213
|
+
triggerOperationForm: C,
|
|
214
214
|
validateForm: (h = () => {
|
|
215
215
|
}) => {
|
|
216
216
|
_.value.validate((E = !1, T = {}) => {
|
|
217
217
|
if (E) {
|
|
218
|
-
const f =
|
|
218
|
+
const f = C();
|
|
219
219
|
h(f);
|
|
220
220
|
} else {
|
|
221
221
|
h(!1), console.log("field", T);
|
|
@@ -229,18 +229,18 @@ const Re = { class: "bsgoal-base-form" }, Fe = { class: "base_form" }, Ue = { ke
|
|
|
229
229
|
});
|
|
230
230
|
}
|
|
231
231
|
}), (h, E) => {
|
|
232
|
-
const T = v("el-input"), f = v("el-input-number"), b = v("el-radio"), B = v("el-radio-group"), k = v("el-option"), S = v("el-select"), R = v("el-slider"), U = v("el-switch"), I = v("el-date-picker"), z = v("el-time-picker"), Z = v("el-checkbox"), q = v("el-checkbox-group"), K = v("el-form-item"),
|
|
232
|
+
const T = v("el-input"), f = v("el-input-number"), b = v("el-radio"), B = v("el-radio-group"), k = v("el-option"), S = v("el-select"), R = v("el-slider"), U = v("el-switch"), I = v("el-date-picker"), z = v("el-time-picker"), Z = v("el-checkbox"), q = v("el-checkbox-group"), K = v("el-form-item"), _e = v("el-col"), me = v("el-row"), ge = v("el-form");
|
|
233
233
|
return u(), A("div", Re, [
|
|
234
234
|
O("div", Fe, [
|
|
235
|
-
X((u(), y(
|
|
235
|
+
X((u(), y(ge, {
|
|
236
236
|
ref_key: "EL_FORM_REF",
|
|
237
237
|
ref: _,
|
|
238
238
|
"label-suffix": ":",
|
|
239
239
|
model: r.value
|
|
240
240
|
}, {
|
|
241
|
-
default:
|
|
242
|
-
|
|
243
|
-
default:
|
|
241
|
+
default: V(() => [
|
|
242
|
+
w(me, null, {
|
|
243
|
+
default: V(() => [
|
|
244
244
|
(u(!0), A(L, null, W(s(m), ({
|
|
245
245
|
label: P = "",
|
|
246
246
|
prop: g = "",
|
|
@@ -254,21 +254,21 @@ const Re = { class: "bsgoal-base-form" }, Fe = { class: "base_form" }, Ue = { ke
|
|
|
254
254
|
range: J = [],
|
|
255
255
|
format: Y = "",
|
|
256
256
|
rules: ee = []
|
|
257
|
-
} = {}, ae) => (u(), y(
|
|
257
|
+
} = {}, ae) => (u(), y(_e, {
|
|
258
258
|
key: ae,
|
|
259
259
|
xs: 24,
|
|
260
260
|
sm: 24,
|
|
261
|
-
md:
|
|
261
|
+
md: e.medium
|
|
262
262
|
}, {
|
|
263
|
-
default:
|
|
264
|
-
|
|
263
|
+
default: V(() => [
|
|
264
|
+
w(K, {
|
|
265
265
|
label: P,
|
|
266
266
|
prop: g,
|
|
267
267
|
rules: ee
|
|
268
268
|
}, {
|
|
269
|
-
default:
|
|
269
|
+
default: V(() => [
|
|
270
270
|
j ? (u(), A("div", Ue, G(r.value[g]), 1)) : (u(), A(L, { key: 0 }, [
|
|
271
|
-
o === s(
|
|
271
|
+
o === s(t).INPUT ? (u(), y(T, {
|
|
272
272
|
key: 0,
|
|
273
273
|
modelValue: r.value[g],
|
|
274
274
|
"onUpdate:modelValue": (a) => r.value[g] = a,
|
|
@@ -276,7 +276,7 @@ const Re = { class: "bsgoal-base-form" }, Fe = { class: "base_form" }, Ue = { ke
|
|
|
276
276
|
clearable: ce,
|
|
277
277
|
onChange: (a) => N(o, g)
|
|
278
278
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : M("", !0),
|
|
279
|
-
o === s(
|
|
279
|
+
o === s(t).INPUT_TEXT_AREA ? (u(), y(T, {
|
|
280
280
|
key: 1,
|
|
281
281
|
modelValue: r.value[g],
|
|
282
282
|
"onUpdate:modelValue": (a) => r.value[g] = a,
|
|
@@ -286,7 +286,7 @@ const Re = { class: "bsgoal-base-form" }, Fe = { class: "base_form" }, Ue = { ke
|
|
|
286
286
|
placeholder: p(o, P, d),
|
|
287
287
|
onChange: (a) => N(o, g)
|
|
288
288
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : M("", !0),
|
|
289
|
-
o === s(
|
|
289
|
+
o === s(t).INPUT_NUMBER ? (u(), y(f, {
|
|
290
290
|
key: 2,
|
|
291
291
|
modelValue: h.num,
|
|
292
292
|
"onUpdate:modelValue": E[0] || (E[0] = (a) => h.num = a),
|
|
@@ -294,18 +294,18 @@ const Re = { class: "bsgoal-base-form" }, Fe = { class: "base_form" }, Ue = { ke
|
|
|
294
294
|
max: oe,
|
|
295
295
|
onChange: N
|
|
296
296
|
}, null, 8, ["modelValue", "min", "max"])) : M("", !0),
|
|
297
|
-
o === s(
|
|
297
|
+
o === s(t).RADIO ? (u(), y(B, {
|
|
298
298
|
key: 3,
|
|
299
299
|
modelValue: r.value[g],
|
|
300
300
|
"onUpdate:modelValue": (a) => r.value[g] = a,
|
|
301
301
|
onChange: (a) => N(o, g)
|
|
302
302
|
}, {
|
|
303
|
-
default:
|
|
303
|
+
default: V(() => [
|
|
304
304
|
(u(!0), A(L, null, W(J, (a, H) => (u(), y(b, {
|
|
305
305
|
key: H,
|
|
306
306
|
label: a.value
|
|
307
307
|
}, {
|
|
308
|
-
default:
|
|
308
|
+
default: V(() => [
|
|
309
309
|
Q(G(a.label), 1)
|
|
310
310
|
]),
|
|
311
311
|
_: 2
|
|
@@ -313,14 +313,14 @@ const Re = { class: "bsgoal-base-form" }, Fe = { class: "base_form" }, Ue = { ke
|
|
|
313
313
|
]),
|
|
314
314
|
_: 2
|
|
315
315
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : M("", !0),
|
|
316
|
-
o === s(
|
|
316
|
+
o === s(t).SELECT ? (u(), y(S, {
|
|
317
317
|
key: 4,
|
|
318
318
|
modelValue: r.value[g],
|
|
319
319
|
"onUpdate:modelValue": (a) => r.value[g] = a,
|
|
320
320
|
placeholder: p(o, P, d),
|
|
321
321
|
onChange: (a) => N(o, g)
|
|
322
322
|
}, {
|
|
323
|
-
default:
|
|
323
|
+
default: V(() => [
|
|
324
324
|
(u(!0), A(L, null, W(J, (a, H) => (u(), y(k, {
|
|
325
325
|
key: H,
|
|
326
326
|
label: a.label,
|
|
@@ -329,7 +329,7 @@ const Re = { class: "bsgoal-base-form" }, Fe = { class: "base_form" }, Ue = { ke
|
|
|
329
329
|
]),
|
|
330
330
|
_: 2
|
|
331
331
|
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : M("", !0),
|
|
332
|
-
o === s(
|
|
332
|
+
o === s(t).SLIDER ? (u(), y(R, {
|
|
333
333
|
key: 5,
|
|
334
334
|
modelValue: r.value[g],
|
|
335
335
|
"onUpdate:modelValue": (a) => r.value[g] = a,
|
|
@@ -337,7 +337,7 @@ const Re = { class: "bsgoal-base-form" }, Fe = { class: "base_form" }, Ue = { ke
|
|
|
337
337
|
max: oe,
|
|
338
338
|
onChange: (a) => N(o, g)
|
|
339
339
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : M("", !0),
|
|
340
|
-
o === s(
|
|
340
|
+
o === s(t).SWITCH ? (u(), y(U, {
|
|
341
341
|
key: 6,
|
|
342
342
|
modelValue: r.value[g],
|
|
343
343
|
"onUpdate:modelValue": (a) => r.value[g] = a,
|
|
@@ -345,7 +345,7 @@ const Re = { class: "bsgoal-base-form" }, Fe = { class: "base_form" }, Ue = { ke
|
|
|
345
345
|
"inactive-value": J[1] || !1,
|
|
346
346
|
onChange: (a) => N(o, g)
|
|
347
347
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : M("", !0),
|
|
348
|
-
[s(
|
|
348
|
+
[s(t).DATE, s(t).MONTH, s(t).YEAR, s(t).DATE_TIME].includes(
|
|
349
349
|
o
|
|
350
350
|
) ? (u(), y(I, {
|
|
351
351
|
key: 7,
|
|
@@ -358,9 +358,9 @@ const Re = { class: "bsgoal-base-form" }, Fe = { class: "base_form" }, Ue = { ke
|
|
|
358
358
|
onChange: (a) => N(o, g)
|
|
359
359
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : M("", !0),
|
|
360
360
|
[
|
|
361
|
-
s(
|
|
362
|
-
s(
|
|
363
|
-
s(
|
|
361
|
+
s(t).DATE_RANGE,
|
|
362
|
+
s(t).MONTH_RANGE,
|
|
363
|
+
s(t).DATE_TIME_RANGE
|
|
364
364
|
].includes(o) ? (u(), y(I, {
|
|
365
365
|
key: 8,
|
|
366
366
|
modelValue: r.value[g],
|
|
@@ -371,7 +371,7 @@ const Re = { class: "bsgoal-base-form" }, Fe = { class: "base_form" }, Ue = { ke
|
|
|
371
371
|
"end-placeholder": p(o, P, d)[1],
|
|
372
372
|
onChange: (a) => N(o, g)
|
|
373
373
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : M("", !0),
|
|
374
|
-
[s(
|
|
374
|
+
[s(t).TIME].includes(o) ? (u(), y(z, {
|
|
375
375
|
key: 9,
|
|
376
376
|
modelValue: r.value[g],
|
|
377
377
|
"onUpdate:modelValue": (a) => r.value[g] = a,
|
|
@@ -380,7 +380,7 @@ const Re = { class: "bsgoal-base-form" }, Fe = { class: "base_form" }, Ue = { ke
|
|
|
380
380
|
placeholder: p(o, P, d),
|
|
381
381
|
onChange: (a) => N(o, g)
|
|
382
382
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : M("", !0),
|
|
383
|
-
[s(
|
|
383
|
+
[s(t).TIME_RANGE].includes(o) ? (u(), y(z, {
|
|
384
384
|
key: 10,
|
|
385
385
|
modelValue: r.value[g],
|
|
386
386
|
"onUpdate:modelValue": (a) => r.value[g] = a,
|
|
@@ -390,18 +390,18 @@ const Re = { class: "bsgoal-base-form" }, Fe = { class: "base_form" }, Ue = { ke
|
|
|
390
390
|
"end-placeholder": p(o, P, d)[1],
|
|
391
391
|
onChange: (a) => N(o, g)
|
|
392
392
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : M("", !0),
|
|
393
|
-
[s(
|
|
393
|
+
[s(t).CHECKBOX].includes(o) ? (u(), y(q, {
|
|
394
394
|
key: 11,
|
|
395
395
|
modelValue: r.value[g],
|
|
396
396
|
"onUpdate:modelValue": (a) => r.value[g] = a,
|
|
397
397
|
onChange: (a) => N(o, g)
|
|
398
398
|
}, {
|
|
399
|
-
default:
|
|
399
|
+
default: V(() => [
|
|
400
400
|
(u(!0), A(L, null, W(J, (a, H) => (u(), y(Z, {
|
|
401
401
|
key: H,
|
|
402
402
|
label: a.value
|
|
403
403
|
}, {
|
|
404
|
-
default:
|
|
404
|
+
default: V(() => [
|
|
405
405
|
Q(G(a.label), 1)
|
|
406
406
|
]),
|
|
407
407
|
_: 2
|
|
@@ -439,9 +439,9 @@ const Pe = { class: "bsgoal-base-table-content" }, je = { class: "bas_tabl_conte
|
|
|
439
439
|
default: ""
|
|
440
440
|
}
|
|
441
441
|
},
|
|
442
|
-
setup(
|
|
442
|
+
setup(e) {
|
|
443
443
|
return (c, l) => (u(), A("div", Pe, [
|
|
444
|
-
O("div", je, G(
|
|
444
|
+
O("div", je, G(e.data), 1)
|
|
445
445
|
]));
|
|
446
446
|
}
|
|
447
447
|
});
|
|
@@ -607,30 +607,30 @@ const We = { class: "bsgoal-base-table-pagination" }, Xe = { class: "base_table_
|
|
|
607
607
|
}
|
|
608
608
|
},
|
|
609
609
|
emits: ["on-size-change", "on-current-change"],
|
|
610
|
-
setup(
|
|
610
|
+
setup(e, { emit: c }) {
|
|
611
611
|
const l = (n = 0) => {
|
|
612
612
|
c("on-size-change", n);
|
|
613
613
|
}, i = (n = 1) => {
|
|
614
614
|
c("on-current-change", n);
|
|
615
|
-
}, _ =
|
|
615
|
+
}, _ = D(1);
|
|
616
616
|
return (n, r) => {
|
|
617
617
|
const m = v("el-pagination"), p = v("el-config-provider");
|
|
618
618
|
return u(), A("div", We, [
|
|
619
619
|
O("div", Xe, [
|
|
620
|
-
|
|
621
|
-
default:
|
|
622
|
-
|
|
620
|
+
w(p, { locale: s(He) }, {
|
|
621
|
+
default: V(() => [
|
|
622
|
+
w(m, {
|
|
623
623
|
background: "",
|
|
624
624
|
layout: "total, sizes, prev, pager, next, jumper",
|
|
625
625
|
"current-page": _.value,
|
|
626
626
|
"onUpdate:currentPage": r[0] || (r[0] = (x) => _.value = x),
|
|
627
|
-
"page-sizes":
|
|
628
|
-
"page-size":
|
|
629
|
-
total:
|
|
627
|
+
"page-sizes": e.pageSizes,
|
|
628
|
+
"page-size": e.pageSize,
|
|
629
|
+
total: e.total,
|
|
630
630
|
onSizeChange: l,
|
|
631
631
|
onCurrentChange: i
|
|
632
632
|
}, {
|
|
633
|
-
next:
|
|
633
|
+
next: V(() => [
|
|
634
634
|
Qe
|
|
635
635
|
]),
|
|
636
636
|
_: 1
|
|
@@ -643,8 +643,8 @@ const We = { class: "bsgoal-base-table-pagination" }, Xe = { class: "base_table_
|
|
|
643
643
|
};
|
|
644
644
|
}
|
|
645
645
|
});
|
|
646
|
-
const Je = (
|
|
647
|
-
const l =
|
|
646
|
+
const Je = (e, c) => {
|
|
647
|
+
const l = e.__vccOpts || e;
|
|
648
648
|
for (const [i, _] of c)
|
|
649
649
|
l[i] = _;
|
|
650
650
|
return l;
|
|
@@ -661,21 +661,21 @@ const Je = (t, c) => {
|
|
|
661
661
|
], -1), at = [
|
|
662
662
|
tt
|
|
663
663
|
];
|
|
664
|
-
function lt(
|
|
664
|
+
function lt(e, c, l, i, _, n) {
|
|
665
665
|
return u(), A("div", et, at);
|
|
666
666
|
}
|
|
667
|
-
const nt = /* @__PURE__ */ Je(qe, [["render", lt]]), ot = (
|
|
668
|
-
const i = s(
|
|
667
|
+
const nt = /* @__PURE__ */ Je(qe, [["render", lt]]), ot = (e = null, { expression: c = 75, arg: l = {} } = {}) => {
|
|
668
|
+
const i = s(e);
|
|
669
669
|
if (i) {
|
|
670
670
|
const _ = i.querySelector(".el-table");
|
|
671
|
-
_ &&
|
|
671
|
+
_ && Ve(() => {
|
|
672
672
|
const { y: n = 0 } = _.getBoundingClientRect();
|
|
673
673
|
_.style.height = `calc(100vh - ${n + c}px)`;
|
|
674
674
|
});
|
|
675
675
|
}
|
|
676
|
-
}, Ee = (
|
|
677
|
-
const _ =
|
|
678
|
-
return l.value = !0,
|
|
676
|
+
}, Ee = (e = Promise.resolve(), c = null, l = D(!1), i = D(null)) => {
|
|
677
|
+
const _ = D("");
|
|
678
|
+
return l.value = !0, e.then((n = {}) => {
|
|
679
679
|
const { data: r = {}, message: m = "" } = n;
|
|
680
680
|
i.value = r, _.value = m, c && c(!0, r), l.value = !1;
|
|
681
681
|
}).catch((n = {}) => {
|
|
@@ -781,8 +781,8 @@ const ut = { class: "bsgoal-base-table" }, st = { class: "base_table" }, ct = {
|
|
|
781
781
|
default: 75
|
|
782
782
|
}
|
|
783
783
|
},
|
|
784
|
-
setup(
|
|
785
|
-
const l =
|
|
784
|
+
setup(e, { expose: c }) {
|
|
785
|
+
const l = e, i = le(() => {
|
|
786
786
|
const { configOptions: f = [], operation: b = !1, operationWidth: B = 0 } = l, k = s(f), S = [];
|
|
787
787
|
return b && S.push({
|
|
788
788
|
label: "操作",
|
|
@@ -790,14 +790,14 @@ const ut = { class: "bsgoal-base-table" }, st = { class: "base_table" }, ct = {
|
|
|
790
790
|
prop: "operation",
|
|
791
791
|
width: B
|
|
792
792
|
}), [...k, ...S];
|
|
793
|
-
}), _ =
|
|
793
|
+
}), _ = D(null), n = Ce("transferFoldStatus");
|
|
794
794
|
he(() => {
|
|
795
795
|
const f = n ? n.value : !1, b = s(l.expression);
|
|
796
796
|
ot(_, { arg: f, expression: b });
|
|
797
797
|
});
|
|
798
|
-
const r =
|
|
798
|
+
const r = D(1), m = D(10), p = D(0), x = D({}), C = D(l.loading), $ = D(l.data), N = D({}), F = () => {
|
|
799
799
|
const { fetch: f, call: b, mapProps: B } = l, k = x.value, S = r.value, R = m.value, U = Te({}, k), I = s(B);
|
|
800
|
-
U[I.currentPage] = S, U[I.pageSize] = R, Ee(f(U), b,
|
|
800
|
+
U[I.currentPage] = S, U[I.pageSize] = R, Ee(f(U), b, C, N);
|
|
801
801
|
};
|
|
802
802
|
ue(N, (f) => {
|
|
803
803
|
const { mapProps: b } = l, B = s(b);
|
|
@@ -815,7 +815,7 @@ const ut = { class: "bsgoal-base-table" }, st = { class: "base_table" }, ct = {
|
|
|
815
815
|
}), c({
|
|
816
816
|
refreshList: h
|
|
817
817
|
}), (f, b) => {
|
|
818
|
-
const B = v("el-table-column"), k = v("el-table"), S =
|
|
818
|
+
const B = v("el-table-column"), k = v("el-table"), S = we("loading");
|
|
819
819
|
return u(), A("div", ut, [
|
|
820
820
|
O("div", st, [
|
|
821
821
|
f.$slots.menu ? (u(), A("div", ct, [
|
|
@@ -838,11 +838,11 @@ const ut = { class: "bsgoal-base-table" }, st = { class: "base_table" }, ct = {
|
|
|
838
838
|
fontSize: "14px"
|
|
839
839
|
}
|
|
840
840
|
}, {
|
|
841
|
-
empty:
|
|
842
|
-
|
|
841
|
+
empty: V(() => [
|
|
842
|
+
w(nt)
|
|
843
843
|
]),
|
|
844
|
-
default:
|
|
845
|
-
|
|
844
|
+
default: V(() => [
|
|
845
|
+
e.selection ? (u(), y(B, {
|
|
846
846
|
key: 0,
|
|
847
847
|
fixed: "left",
|
|
848
848
|
type: "selection",
|
|
@@ -856,9 +856,9 @@ const ut = { class: "bsgoal-base-table" }, st = { class: "base_table" }, ct = {
|
|
|
856
856
|
fixed: Z,
|
|
857
857
|
"min-width": `${U.length * 14 + 24}px`
|
|
858
858
|
}, {
|
|
859
|
-
default:
|
|
859
|
+
default: V(({ row: K }) => [
|
|
860
860
|
se(f.$slots, R, { row: K }, () => [
|
|
861
|
-
|
|
861
|
+
w(Ge, {
|
|
862
862
|
data: K[R]
|
|
863
863
|
}, null, 8, ["data"])
|
|
864
864
|
])
|
|
@@ -868,10 +868,10 @@ const ut = { class: "bsgoal-base-table" }, st = { class: "base_table" }, ct = {
|
|
|
868
868
|
]),
|
|
869
869
|
_: 3
|
|
870
870
|
}, 8, ["data", "header-cell-style"])), [
|
|
871
|
-
[S,
|
|
871
|
+
[S, C.value]
|
|
872
872
|
])
|
|
873
873
|
], 512),
|
|
874
|
-
|
|
874
|
+
w(Ke, {
|
|
875
875
|
total: p.value,
|
|
876
876
|
onOnCurrentChange: E,
|
|
877
877
|
onOnSizeChange: T
|
|
@@ -893,19 +893,19 @@ const it = {
|
|
|
893
893
|
default: !1
|
|
894
894
|
}
|
|
895
895
|
},
|
|
896
|
-
setup(
|
|
896
|
+
setup(e) {
|
|
897
897
|
return (c, l) => (u(), A("div", {
|
|
898
|
-
class:
|
|
898
|
+
class: de(["bsgoal-base-line", { "bsgoal-base-line__vertical": e.vertical }])
|
|
899
899
|
}, [
|
|
900
900
|
O("div", {
|
|
901
|
-
class:
|
|
901
|
+
class: de(["base_line", { base_line__vertical: e.vertical }])
|
|
902
902
|
}, null, 2)
|
|
903
903
|
], 2));
|
|
904
904
|
}
|
|
905
905
|
});
|
|
906
906
|
/*! Element Plus Icons Vue v2.1.0 */
|
|
907
|
-
var ne = (
|
|
908
|
-
let l =
|
|
907
|
+
var ne = (e, c) => {
|
|
908
|
+
let l = e.__vccOpts || e;
|
|
909
909
|
for (let [i, _] of c)
|
|
910
910
|
l[i] = _;
|
|
911
911
|
return l;
|
|
@@ -926,7 +926,7 @@ var ne = (t, c) => {
|
|
|
926
926
|
), gt = [
|
|
927
927
|
mt
|
|
928
928
|
];
|
|
929
|
-
function ft(
|
|
929
|
+
function ft(e, c, l, i, _, n) {
|
|
930
930
|
return u(), A("svg", _t, gt);
|
|
931
931
|
}
|
|
932
932
|
var vt = /* @__PURE__ */ ne(dt, [["render", ft], ["__file", "arrow-down.vue"]]), ht = {
|
|
@@ -946,15 +946,15 @@ var vt = /* @__PURE__ */ ne(dt, [["render", ft], ["__file", "arrow-down.vue"]]),
|
|
|
946
946
|
), bt = [
|
|
947
947
|
Et
|
|
948
948
|
];
|
|
949
|
-
function yt(
|
|
949
|
+
function yt(e, c, l, i, _, n) {
|
|
950
950
|
return u(), A("svg", pt, bt);
|
|
951
951
|
}
|
|
952
952
|
var At = /* @__PURE__ */ ne(ht, [["render", yt], ["__file", "arrow-left.vue"]]), Tt = {
|
|
953
953
|
name: "ArrowRight"
|
|
954
|
-
},
|
|
954
|
+
}, Vt = {
|
|
955
955
|
xmlns: "http://www.w3.org/2000/svg",
|
|
956
956
|
viewBox: "0 0 1024 1024"
|
|
957
|
-
},
|
|
957
|
+
}, Ct = /* @__PURE__ */ O(
|
|
958
958
|
"path",
|
|
959
959
|
{
|
|
960
960
|
fill: "currentColor",
|
|
@@ -964,17 +964,17 @@ var At = /* @__PURE__ */ ne(ht, [["render", yt], ["__file", "arrow-left.vue"]]),
|
|
|
964
964
|
-1
|
|
965
965
|
/* HOISTED */
|
|
966
966
|
), Mt = [
|
|
967
|
-
|
|
967
|
+
Ct
|
|
968
968
|
];
|
|
969
|
-
function xt(
|
|
970
|
-
return u(), A("svg",
|
|
969
|
+
function xt(e, c, l, i, _, n) {
|
|
970
|
+
return u(), A("svg", Vt, Mt);
|
|
971
971
|
}
|
|
972
972
|
var $t = /* @__PURE__ */ ne(Tt, [["render", xt], ["__file", "arrow-right.vue"]]), Nt = {
|
|
973
973
|
name: "ArrowUp"
|
|
974
|
-
},
|
|
974
|
+
}, wt = {
|
|
975
975
|
xmlns: "http://www.w3.org/2000/svg",
|
|
976
976
|
viewBox: "0 0 1024 1024"
|
|
977
|
-
},
|
|
977
|
+
}, Dt = /* @__PURE__ */ O(
|
|
978
978
|
"path",
|
|
979
979
|
{
|
|
980
980
|
fill: "currentColor",
|
|
@@ -984,10 +984,10 @@ var $t = /* @__PURE__ */ ne(Tt, [["render", xt], ["__file", "arrow-right.vue"]])
|
|
|
984
984
|
-1
|
|
985
985
|
/* HOISTED */
|
|
986
986
|
), Bt = [
|
|
987
|
-
|
|
987
|
+
Dt
|
|
988
988
|
];
|
|
989
|
-
function Ot(
|
|
990
|
-
return u(), A("svg",
|
|
989
|
+
function Ot(e, c, l, i, _, n) {
|
|
990
|
+
return u(), A("svg", wt, Bt);
|
|
991
991
|
}
|
|
992
992
|
var kt = /* @__PURE__ */ ne(Nt, [["render", Ot], ["__file", "arrow-up.vue"]]), It = {
|
|
993
993
|
name: "Delete"
|
|
@@ -1006,7 +1006,7 @@ var kt = /* @__PURE__ */ ne(Nt, [["render", Ot], ["__file", "arrow-up.vue"]]), I
|
|
|
1006
1006
|
), Ft = [
|
|
1007
1007
|
Rt
|
|
1008
1008
|
];
|
|
1009
|
-
function Ut(
|
|
1009
|
+
function Ut(e, c, l, i, _, n) {
|
|
1010
1010
|
return u(), A("svg", St, Ft);
|
|
1011
1011
|
}
|
|
1012
1012
|
var Lt = /* @__PURE__ */ ne(It, [["render", Ut], ["__file", "delete.vue"]]), zt = {
|
|
@@ -1026,7 +1026,7 @@ var Lt = /* @__PURE__ */ ne(It, [["render", Ut], ["__file", "delete.vue"]]), zt
|
|
|
1026
1026
|
), Yt = [
|
|
1027
1027
|
jt
|
|
1028
1028
|
];
|
|
1029
|
-
function Gt(
|
|
1029
|
+
function Gt(e, c, l, i, _, n) {
|
|
1030
1030
|
return u(), A("svg", Pt, Yt);
|
|
1031
1031
|
}
|
|
1032
1032
|
var Ht = /* @__PURE__ */ ne(zt, [["render", Gt], ["__file", "search.vue"]]);
|
|
@@ -1043,45 +1043,45 @@ const Wt = { class: "bsgoal-base-search-operation" }, Xt = {
|
|
|
1043
1043
|
}
|
|
1044
1044
|
},
|
|
1045
1045
|
emits: ["on-fold"],
|
|
1046
|
-
setup(
|
|
1047
|
-
const l =
|
|
1046
|
+
setup(e, { emit: c }) {
|
|
1047
|
+
const l = D(!1), i = () => {
|
|
1048
1048
|
l.value = !s(l), c("on-fold", l.value);
|
|
1049
1049
|
};
|
|
1050
1050
|
return (_, n) => {
|
|
1051
1051
|
const r = v("el-button"), m = v("el-icon");
|
|
1052
1052
|
return u(), A("div", Wt, [
|
|
1053
|
-
|
|
1053
|
+
w(r, {
|
|
1054
1054
|
type: "primary",
|
|
1055
1055
|
icon: s(Ht),
|
|
1056
1056
|
onClick: n[0] || (n[0] = (p) => _.$emit("on-search"))
|
|
1057
1057
|
}, {
|
|
1058
|
-
default:
|
|
1058
|
+
default: V(() => [
|
|
1059
1059
|
Q("搜索")
|
|
1060
1060
|
]),
|
|
1061
1061
|
_: 1
|
|
1062
1062
|
}, 8, ["icon"]),
|
|
1063
|
-
|
|
1063
|
+
w(r, {
|
|
1064
1064
|
icon: s(Lt),
|
|
1065
1065
|
onClick: n[1] || (n[1] = (p) => _.$emit("on-clear"))
|
|
1066
1066
|
}, {
|
|
1067
|
-
default:
|
|
1067
|
+
default: V(() => [
|
|
1068
1068
|
Q("清空")
|
|
1069
1069
|
]),
|
|
1070
1070
|
_: 1
|
|
1071
1071
|
}, 8, ["icon"]),
|
|
1072
|
-
|
|
1072
|
+
e.fold ? (u(), A("div", {
|
|
1073
1073
|
key: 0,
|
|
1074
1074
|
class: "operation_fold",
|
|
1075
1075
|
style: { color: "var(--el-color-primary)" },
|
|
1076
1076
|
onClick: i
|
|
1077
1077
|
}, [
|
|
1078
1078
|
Q(G(l.value ? "收起" : "展开"), 1),
|
|
1079
|
-
|
|
1080
|
-
default:
|
|
1081
|
-
X(
|
|
1079
|
+
w(m, { color: "#409EFC" }, {
|
|
1080
|
+
default: V(() => [
|
|
1081
|
+
X(w(s(kt), null, null, 512), [
|
|
1082
1082
|
[te, l.value]
|
|
1083
1083
|
]),
|
|
1084
|
-
X(
|
|
1084
|
+
X(w(s(vt), null, null, 512), [
|
|
1085
1085
|
[te, !l.value]
|
|
1086
1086
|
])
|
|
1087
1087
|
]),
|
|
@@ -1126,8 +1126,8 @@ const Zt = { class: "bsgoal-base-cascader" }, Kt = {
|
|
|
1126
1126
|
}
|
|
1127
1127
|
},
|
|
1128
1128
|
emits: ["update:model-value", "on-change"],
|
|
1129
|
-
setup(
|
|
1130
|
-
const l =
|
|
1129
|
+
setup(e, { emit: c }) {
|
|
1130
|
+
const l = D({
|
|
1131
1131
|
checkStrictly: !0,
|
|
1132
1132
|
multiple: !1
|
|
1133
1133
|
}), i = (_) => {
|
|
@@ -1136,14 +1136,14 @@ const Zt = { class: "bsgoal-base-cascader" }, Kt = {
|
|
|
1136
1136
|
return (_, n) => {
|
|
1137
1137
|
const r = v("el-cascader");
|
|
1138
1138
|
return u(), A("div", Zt, [
|
|
1139
|
-
|
|
1139
|
+
w(r, {
|
|
1140
1140
|
clearable: "",
|
|
1141
1141
|
class: "base_cascader",
|
|
1142
1142
|
"show-all-levels": !1,
|
|
1143
|
-
"model-value":
|
|
1144
|
-
options:
|
|
1143
|
+
"model-value": e.modelValue,
|
|
1144
|
+
options: e.dataOptions,
|
|
1145
1145
|
props: l.value,
|
|
1146
|
-
placeholder:
|
|
1146
|
+
placeholder: e.placeholder,
|
|
1147
1147
|
onChange: i
|
|
1148
1148
|
}, null, 8, ["model-value", "options", "props", "placeholder"])
|
|
1149
1149
|
]);
|
|
@@ -1193,63 +1193,63 @@ const qt = { class: "bsgoal-base-search" }, ea = { class: "base_search" }, ta =
|
|
|
1193
1193
|
}
|
|
1194
1194
|
},
|
|
1195
1195
|
emits: ["on-search", "on-clear", "on-change", "on-fold"],
|
|
1196
|
-
setup(
|
|
1197
|
-
const l =
|
|
1196
|
+
setup(e, { emit: c }) {
|
|
1197
|
+
const l = e, i = D(null), _ = pe.align, n = D({});
|
|
1198
1198
|
he(() => {
|
|
1199
1199
|
const { configOptions: E } = l;
|
|
1200
1200
|
s(E).forEach((f) => {
|
|
1201
1201
|
const { value: b, prop: B = "", type: k = "" } = f;
|
|
1202
|
-
[
|
|
1202
|
+
[t.INPUT, t.INPUT_TEXT_AREA].includes(k), n.value[B] = [0, !1].includes(b) ? b : "";
|
|
1203
1203
|
});
|
|
1204
1204
|
});
|
|
1205
1205
|
const r = le(() => {
|
|
1206
1206
|
const { configOptions: E } = l, T = s(E), f = {
|
|
1207
|
-
type:
|
|
1207
|
+
type: t.OPERATION
|
|
1208
1208
|
};
|
|
1209
1209
|
return [...T, f];
|
|
1210
1210
|
}), m = (E = "", T = "", f = "") => {
|
|
1211
1211
|
if (!f)
|
|
1212
1212
|
switch (E) {
|
|
1213
|
-
case
|
|
1214
|
-
case
|
|
1213
|
+
case t.INPUT:
|
|
1214
|
+
case t.INPUT_TEXT_AREA:
|
|
1215
1215
|
return `请输入${T}`;
|
|
1216
|
-
case
|
|
1217
|
-
case
|
|
1218
|
-
case
|
|
1219
|
-
case
|
|
1220
|
-
case
|
|
1221
|
-
case
|
|
1222
|
-
case
|
|
1223
|
-
case
|
|
1216
|
+
case t.SELECT:
|
|
1217
|
+
case t.DATE:
|
|
1218
|
+
case t.WEEK:
|
|
1219
|
+
case t.MONTH:
|
|
1220
|
+
case t.YEAR:
|
|
1221
|
+
case t.DATE_TIME:
|
|
1222
|
+
case t.TIME:
|
|
1223
|
+
case t.CASCADER:
|
|
1224
1224
|
return `请选择${T}`;
|
|
1225
|
-
case
|
|
1226
|
-
case
|
|
1225
|
+
case t.DATE_RANGE:
|
|
1226
|
+
case t.DATE_TIME_RANGE:
|
|
1227
1227
|
return ["开始日期", "结束日期"];
|
|
1228
|
-
case
|
|
1228
|
+
case t.TIME_RANGE:
|
|
1229
1229
|
return ["开始时间", "结束时间"];
|
|
1230
|
-
case
|
|
1230
|
+
case t.MONTH_RANGE:
|
|
1231
1231
|
return ["开始月份", "结束月份"];
|
|
1232
1232
|
}
|
|
1233
1233
|
return f;
|
|
1234
1234
|
}, p = (E = "", T = "") => {
|
|
1235
1235
|
if (!T)
|
|
1236
1236
|
switch (E) {
|
|
1237
|
-
case
|
|
1237
|
+
case t.WEEK:
|
|
1238
1238
|
return "ww";
|
|
1239
|
-
case
|
|
1240
|
-
case
|
|
1239
|
+
case t.DATE:
|
|
1240
|
+
case t.DATE_RANGE:
|
|
1241
1241
|
return "YYYY-MM-DD";
|
|
1242
|
-
case
|
|
1242
|
+
case t.MONTH:
|
|
1243
1243
|
return "MM";
|
|
1244
|
-
case
|
|
1244
|
+
case t.YEAR:
|
|
1245
1245
|
return "YYYY";
|
|
1246
|
-
case
|
|
1246
|
+
case t.MONTH_RANGE:
|
|
1247
1247
|
return "YYYY-MM";
|
|
1248
|
-
case
|
|
1249
|
-
case
|
|
1248
|
+
case t.TIME:
|
|
1249
|
+
case t.TIME_RANGE:
|
|
1250
1250
|
return "HH:mm:ss";
|
|
1251
|
-
case
|
|
1252
|
-
case
|
|
1251
|
+
case t.DATE_TIME:
|
|
1252
|
+
case t.DATE_TIME_RANGE:
|
|
1253
1253
|
return "YYYY-MM-DD HH:mm:ss";
|
|
1254
1254
|
}
|
|
1255
1255
|
return T;
|
|
@@ -1257,11 +1257,11 @@ const qt = { class: "bsgoal-base-search" }, ea = { class: "base_search" }, ta =
|
|
|
1257
1257
|
const { configOptions: E } = l, T = s(n), f = s(E), b = {};
|
|
1258
1258
|
for (const B of f) {
|
|
1259
1259
|
const { type: k = "", range: S = [], prop: R = "", single: U = !1 } = B, I = T[R];
|
|
1260
|
-
if ([
|
|
1260
|
+
if ([t.CASCADER].includes(k) && Array.isArray(I) && U) {
|
|
1261
1261
|
const z = I.length;
|
|
1262
1262
|
z ? b[R] = I[z - 1] : b[R] = I;
|
|
1263
1263
|
} else
|
|
1264
|
-
|
|
1264
|
+
De(I) ? b[R] = Be(I) : b[R] = I;
|
|
1265
1265
|
if (k.endsWith("range") && S && S.length === 2) {
|
|
1266
1266
|
const { 0: z = "", 1: Z = "" } = I, { 0: q = "", 1: K = "" } = S;
|
|
1267
1267
|
b[q] = z, b[K] = Z;
|
|
@@ -1269,12 +1269,12 @@ const qt = { class: "bsgoal-base-search" }, ea = { class: "base_search" }, ta =
|
|
|
1269
1269
|
}
|
|
1270
1270
|
c("on-search", b), c("update:modelValue", b);
|
|
1271
1271
|
};
|
|
1272
|
-
|
|
1272
|
+
Ve(() => {
|
|
1273
1273
|
x();
|
|
1274
1274
|
});
|
|
1275
|
-
const
|
|
1275
|
+
const C = () => {
|
|
1276
1276
|
i.value.resetFields(), c("on-clear", n.value);
|
|
1277
|
-
}, $ =
|
|
1277
|
+
}, $ = Ce("transferFoldStatus"), N = D(!1), F = (E = !1) => {
|
|
1278
1278
|
N.value = E, $ && ($.value = E), c("on-fold", N);
|
|
1279
1279
|
}, h = (E, T) => {
|
|
1280
1280
|
x();
|
|
@@ -1286,7 +1286,7 @@ const qt = { class: "bsgoal-base-search" }, ea = { class: "base_search" }, ta =
|
|
|
1286
1286
|
c("on-change", f);
|
|
1287
1287
|
};
|
|
1288
1288
|
return (E, T) => {
|
|
1289
|
-
const f = v("el-input"), b = v("el-input-number"), B = v("el-radio"), k = v("el-radio-group"), S = v("el-option"), R = v("el-select"), U = v("el-slider"), I = v("el-switch"), z = v("el-date-picker"), Z = v("el-time-picker"), q = v("el-checkbox"), K = v("el-checkbox-group"),
|
|
1289
|
+
const f = v("el-input"), b = v("el-input-number"), B = v("el-radio"), k = v("el-radio-group"), S = v("el-option"), R = v("el-select"), U = v("el-slider"), I = v("el-switch"), z = v("el-date-picker"), Z = v("el-time-picker"), q = v("el-checkbox"), K = v("el-checkbox-group"), _e = v("el-form-item"), me = v("el-col"), ge = v("el-row"), P = v("el-form");
|
|
1290
1290
|
return u(), A("div", qt, [
|
|
1291
1291
|
O("div", ea, [
|
|
1292
1292
|
X((u(), y(P, {
|
|
@@ -1296,9 +1296,9 @@ const qt = { class: "bsgoal-base-search" }, ea = { class: "base_search" }, ta =
|
|
|
1296
1296
|
"show-message": !1,
|
|
1297
1297
|
model: n.value
|
|
1298
1298
|
}, {
|
|
1299
|
-
default:
|
|
1300
|
-
|
|
1301
|
-
default:
|
|
1299
|
+
default: V(() => [
|
|
1300
|
+
w(ge, null, {
|
|
1301
|
+
default: V(() => [
|
|
1302
1302
|
(u(!0), A(L, null, W(s(r), ({
|
|
1303
1303
|
label: g = "",
|
|
1304
1304
|
prop: o = "",
|
|
@@ -1311,20 +1311,20 @@ const qt = { class: "bsgoal-base-search" }, ea = { class: "base_search" }, ta =
|
|
|
1311
1311
|
max: J = 10,
|
|
1312
1312
|
range: Y = [],
|
|
1313
1313
|
format: ee = ""
|
|
1314
|
-
} = {}, ae) => X((u(), y(
|
|
1314
|
+
} = {}, ae) => X((u(), y(me, {
|
|
1315
1315
|
key: ae,
|
|
1316
1316
|
xs: 24,
|
|
1317
1317
|
sm: 12,
|
|
1318
|
-
md:
|
|
1318
|
+
md: e.medium
|
|
1319
1319
|
}, {
|
|
1320
|
-
default:
|
|
1321
|
-
|
|
1320
|
+
default: V(() => [
|
|
1321
|
+
w(_e, {
|
|
1322
1322
|
label: g,
|
|
1323
1323
|
prop: o
|
|
1324
1324
|
}, {
|
|
1325
|
-
default:
|
|
1325
|
+
default: V(() => [
|
|
1326
1326
|
ce ? (u(), A("div", ta, G(n.value[o]), 1)) : (u(), A(L, { key: 0 }, [
|
|
1327
|
-
d === s(
|
|
1327
|
+
d === s(t).INPUT ? (u(), y(f, {
|
|
1328
1328
|
key: 0,
|
|
1329
1329
|
modelValue: n.value[o],
|
|
1330
1330
|
"onUpdate:modelValue": (a) => n.value[o] = a,
|
|
@@ -1332,7 +1332,7 @@ const qt = { class: "bsgoal-base-search" }, ea = { class: "base_search" }, ta =
|
|
|
1332
1332
|
clearable: re,
|
|
1333
1333
|
onChange: (a) => h(d, o)
|
|
1334
1334
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : M("", !0),
|
|
1335
|
-
d === s(
|
|
1335
|
+
d === s(t).INPUT_TEXT_AREA ? (u(), y(f, {
|
|
1336
1336
|
key: 1,
|
|
1337
1337
|
modelValue: n.value[o],
|
|
1338
1338
|
"onUpdate:modelValue": (a) => n.value[o] = a,
|
|
@@ -1342,7 +1342,7 @@ const qt = { class: "bsgoal-base-search" }, ea = { class: "base_search" }, ta =
|
|
|
1342
1342
|
placeholder: m(d, g, j),
|
|
1343
1343
|
onChange: (a) => h(d, o)
|
|
1344
1344
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : M("", !0),
|
|
1345
|
-
d === s(
|
|
1345
|
+
d === s(t).INPUT_NUMBER ? (u(), y(b, {
|
|
1346
1346
|
key: 2,
|
|
1347
1347
|
modelValue: E.num,
|
|
1348
1348
|
"onUpdate:modelValue": T[0] || (T[0] = (a) => E.num = a),
|
|
@@ -1350,18 +1350,18 @@ const qt = { class: "bsgoal-base-search" }, ea = { class: "base_search" }, ta =
|
|
|
1350
1350
|
max: J,
|
|
1351
1351
|
onChange: h
|
|
1352
1352
|
}, null, 8, ["modelValue", "min", "max"])) : M("", !0),
|
|
1353
|
-
d === s(
|
|
1353
|
+
d === s(t).RADIO ? (u(), y(k, {
|
|
1354
1354
|
key: 3,
|
|
1355
1355
|
modelValue: n.value[o],
|
|
1356
1356
|
"onUpdate:modelValue": (a) => n.value[o] = a,
|
|
1357
1357
|
onChange: (a) => h(d, o)
|
|
1358
1358
|
}, {
|
|
1359
|
-
default:
|
|
1359
|
+
default: V(() => [
|
|
1360
1360
|
(u(!0), A(L, null, W(Y, (a, H) => (u(), y(B, {
|
|
1361
1361
|
key: H,
|
|
1362
1362
|
label: a.value
|
|
1363
1363
|
}, {
|
|
1364
|
-
default:
|
|
1364
|
+
default: V(() => [
|
|
1365
1365
|
Q(G(a.label), 1)
|
|
1366
1366
|
]),
|
|
1367
1367
|
_: 2
|
|
@@ -1369,14 +1369,14 @@ const qt = { class: "bsgoal-base-search" }, ea = { class: "base_search" }, ta =
|
|
|
1369
1369
|
]),
|
|
1370
1370
|
_: 2
|
|
1371
1371
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : M("", !0),
|
|
1372
|
-
d === s(
|
|
1372
|
+
d === s(t).SELECT ? (u(), y(R, {
|
|
1373
1373
|
key: 4,
|
|
1374
1374
|
modelValue: n.value[o],
|
|
1375
1375
|
"onUpdate:modelValue": (a) => n.value[o] = a,
|
|
1376
1376
|
placeholder: m(d, g, j),
|
|
1377
1377
|
onChange: (a) => h(d, o)
|
|
1378
1378
|
}, {
|
|
1379
|
-
default:
|
|
1379
|
+
default: V(() => [
|
|
1380
1380
|
(u(!0), A(L, null, W(Y, (a, H) => (u(), y(S, {
|
|
1381
1381
|
key: H,
|
|
1382
1382
|
label: a.label,
|
|
@@ -1385,7 +1385,7 @@ const qt = { class: "bsgoal-base-search" }, ea = { class: "base_search" }, ta =
|
|
|
1385
1385
|
]),
|
|
1386
1386
|
_: 2
|
|
1387
1387
|
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : M("", !0),
|
|
1388
|
-
d === s(
|
|
1388
|
+
d === s(t).SLIDER ? (u(), y(U, {
|
|
1389
1389
|
key: 5,
|
|
1390
1390
|
modelValue: n.value[o],
|
|
1391
1391
|
"onUpdate:modelValue": (a) => n.value[o] = a,
|
|
@@ -1393,7 +1393,7 @@ const qt = { class: "bsgoal-base-search" }, ea = { class: "base_search" }, ta =
|
|
|
1393
1393
|
max: J,
|
|
1394
1394
|
onChange: (a) => h(d, o)
|
|
1395
1395
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : M("", !0),
|
|
1396
|
-
d === s(
|
|
1396
|
+
d === s(t).SWITCH ? (u(), y(I, {
|
|
1397
1397
|
key: 6,
|
|
1398
1398
|
modelValue: n.value[o],
|
|
1399
1399
|
"onUpdate:modelValue": (a) => n.value[o] = a,
|
|
@@ -1401,7 +1401,7 @@ const qt = { class: "bsgoal-base-search" }, ea = { class: "base_search" }, ta =
|
|
|
1401
1401
|
"inactive-value": Y[1] || !1,
|
|
1402
1402
|
onChange: (a) => h(d, o)
|
|
1403
1403
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : M("", !0),
|
|
1404
|
-
[s(
|
|
1404
|
+
[s(t).DATE, s(t).MONTH, s(t).YEAR, s(t).DATE_TIME].includes(
|
|
1405
1405
|
d
|
|
1406
1406
|
) ? (u(), y(z, {
|
|
1407
1407
|
key: 7,
|
|
@@ -1414,9 +1414,9 @@ const qt = { class: "bsgoal-base-search" }, ea = { class: "base_search" }, ta =
|
|
|
1414
1414
|
onChange: (a) => h(d, o)
|
|
1415
1415
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : M("", !0),
|
|
1416
1416
|
[
|
|
1417
|
-
s(
|
|
1418
|
-
s(
|
|
1419
|
-
s(
|
|
1417
|
+
s(t).DATE_RANGE,
|
|
1418
|
+
s(t).MONTH_RANGE,
|
|
1419
|
+
s(t).DATE_TIME_RANGE
|
|
1420
1420
|
].includes(d) ? (u(), y(z, {
|
|
1421
1421
|
key: 8,
|
|
1422
1422
|
modelValue: n.value[o],
|
|
@@ -1427,7 +1427,7 @@ const qt = { class: "bsgoal-base-search" }, ea = { class: "base_search" }, ta =
|
|
|
1427
1427
|
"end-placeholder": m(d, g, j)[1],
|
|
1428
1428
|
onChange: (a) => h(d, o)
|
|
1429
1429
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : M("", !0),
|
|
1430
|
-
[s(
|
|
1430
|
+
[s(t).TIME].includes(d) ? (u(), y(Z, {
|
|
1431
1431
|
key: 9,
|
|
1432
1432
|
modelValue: n.value[o],
|
|
1433
1433
|
"onUpdate:modelValue": (a) => n.value[o] = a,
|
|
@@ -1436,7 +1436,7 @@ const qt = { class: "bsgoal-base-search" }, ea = { class: "base_search" }, ta =
|
|
|
1436
1436
|
placeholder: m(d, g, j),
|
|
1437
1437
|
onChange: (a) => h(d, o)
|
|
1438
1438
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : M("", !0),
|
|
1439
|
-
[s(
|
|
1439
|
+
[s(t).TIME_RANGE].includes(d) ? (u(), y(Z, {
|
|
1440
1440
|
key: 10,
|
|
1441
1441
|
modelValue: n.value[o],
|
|
1442
1442
|
"onUpdate:modelValue": (a) => n.value[o] = a,
|
|
@@ -1446,18 +1446,18 @@ const qt = { class: "bsgoal-base-search" }, ea = { class: "base_search" }, ta =
|
|
|
1446
1446
|
"end-placeholder": m(d, g, j)[1],
|
|
1447
1447
|
onChange: (a) => h(d, o)
|
|
1448
1448
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : M("", !0),
|
|
1449
|
-
[s(
|
|
1449
|
+
[s(t).CHECKBOX].includes(d) ? (u(), y(K, {
|
|
1450
1450
|
key: 11,
|
|
1451
1451
|
modelValue: n.value[o],
|
|
1452
1452
|
"onUpdate:modelValue": (a) => n.value[o] = a,
|
|
1453
1453
|
onChange: (a) => h(d, o)
|
|
1454
1454
|
}, {
|
|
1455
|
-
default:
|
|
1455
|
+
default: V(() => [
|
|
1456
1456
|
(u(!0), A(L, null, W(Y, (a, H) => (u(), y(q, {
|
|
1457
1457
|
key: H,
|
|
1458
1458
|
label: a.value
|
|
1459
1459
|
}, {
|
|
1460
|
-
default:
|
|
1460
|
+
default: V(() => [
|
|
1461
1461
|
Q(G(a.label), 1)
|
|
1462
1462
|
]),
|
|
1463
1463
|
_: 2
|
|
@@ -1465,7 +1465,7 @@ const qt = { class: "bsgoal-base-search" }, ea = { class: "base_search" }, ta =
|
|
|
1465
1465
|
]),
|
|
1466
1466
|
_: 2
|
|
1467
1467
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : M("", !0),
|
|
1468
|
-
[s(
|
|
1468
|
+
[s(t).CASCADER].includes(d) ? (u(), y(Jt, {
|
|
1469
1469
|
key: 12,
|
|
1470
1470
|
modelValue: n.value[o],
|
|
1471
1471
|
"onUpdate:modelValue": (a) => n.value[o] = a,
|
|
@@ -1474,11 +1474,11 @@ const qt = { class: "bsgoal-base-search" }, ea = { class: "base_search" }, ta =
|
|
|
1474
1474
|
onOnChange: (a) => h(d, o)
|
|
1475
1475
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "data-options", "placeholder", "onOnChange"])) : M("", !0),
|
|
1476
1476
|
[].includes(d) ? (u(), A(L, { key: 13 }, [], 64)) : M("", !0),
|
|
1477
|
-
[s(
|
|
1477
|
+
[s(t).OPERATION].includes(d) ? (u(), y(Qt, {
|
|
1478
1478
|
key: 14,
|
|
1479
1479
|
fold: ae >= 7,
|
|
1480
1480
|
onOnSearch: x,
|
|
1481
|
-
onOnClear:
|
|
1481
|
+
onOnClear: C,
|
|
1482
1482
|
onOnFold: F
|
|
1483
1483
|
}, null, 8, ["fold"])) : M("", !0)
|
|
1484
1484
|
], 64))
|
|
@@ -1488,7 +1488,7 @@ const qt = { class: "bsgoal-base-search" }, ea = { class: "base_search" }, ta =
|
|
|
1488
1488
|
]),
|
|
1489
1489
|
_: 2
|
|
1490
1490
|
}, 1032, ["md"])), [
|
|
1491
|
-
[te, ae < 7 || d === s(
|
|
1491
|
+
[te, ae < 7 || d === s(t).OPERATION || ae >= 7 && N.value]
|
|
1492
1492
|
])), 128))
|
|
1493
1493
|
]),
|
|
1494
1494
|
_: 1
|
|
@@ -1499,7 +1499,7 @@ const qt = { class: "bsgoal-base-search" }, ea = { class: "base_search" }, ta =
|
|
|
1499
1499
|
[s(_)]
|
|
1500
1500
|
])
|
|
1501
1501
|
]),
|
|
1502
|
-
|
|
1502
|
+
w(be)
|
|
1503
1503
|
]);
|
|
1504
1504
|
};
|
|
1505
1505
|
}
|
|
@@ -1586,41 +1586,41 @@ const na = { class: "bsgoal-base-search-table" }, oa = { class: "base_search_tab
|
|
|
1586
1586
|
default: 75
|
|
1587
1587
|
}
|
|
1588
1588
|
},
|
|
1589
|
-
setup(
|
|
1590
|
-
const c =
|
|
1589
|
+
setup(e) {
|
|
1590
|
+
const c = e, l = D(!1);
|
|
1591
1591
|
Oe("transferFoldStatus", l);
|
|
1592
|
-
const i = s(c.configOptions), _ = le(() => i.filter((
|
|
1593
|
-
const { type: $ = "" } =
|
|
1592
|
+
const i = s(c.configOptions), _ = le(() => i.filter((C) => {
|
|
1593
|
+
const { type: $ = "" } = C;
|
|
1594
1594
|
return !!$;
|
|
1595
|
-
})), n = le(() => i.filter((
|
|
1596
|
-
const { item: $ = !1 } =
|
|
1595
|
+
})), n = le(() => i.filter((C) => {
|
|
1596
|
+
const { item: $ = !1 } = C;
|
|
1597
1597
|
return !$;
|
|
1598
|
-
})), r = ke(), m =
|
|
1599
|
-
p.value.refreshList(
|
|
1598
|
+
})), r = ke(), m = D(Object.keys(r)), p = D(null), x = (C) => {
|
|
1599
|
+
p.value.refreshList(C);
|
|
1600
1600
|
};
|
|
1601
|
-
return (
|
|
1601
|
+
return (C, $) => (u(), A("div", na, [
|
|
1602
1602
|
O("div", oa, [
|
|
1603
|
-
|
|
1603
|
+
w(la, {
|
|
1604
1604
|
"config-options": s(_),
|
|
1605
1605
|
onOnSearch: x,
|
|
1606
1606
|
onOnClear: x
|
|
1607
1607
|
}, null, 8, ["config-options"]),
|
|
1608
|
-
|
|
1608
|
+
w(Me, {
|
|
1609
1609
|
ref_key: "BSGOAL_BASE_TABLE_REF",
|
|
1610
1610
|
ref: p,
|
|
1611
|
-
operationWidth:
|
|
1611
|
+
operationWidth: e.operationWidth,
|
|
1612
1612
|
"config-options": s(n),
|
|
1613
|
-
data:
|
|
1614
|
-
selection:
|
|
1615
|
-
operation:
|
|
1616
|
-
expression:
|
|
1617
|
-
fetch:
|
|
1618
|
-
call:
|
|
1613
|
+
data: e.tableData,
|
|
1614
|
+
selection: e.selection,
|
|
1615
|
+
operation: e.operation,
|
|
1616
|
+
expression: e.expression,
|
|
1617
|
+
fetch: e.fetch,
|
|
1618
|
+
call: e.call
|
|
1619
1619
|
}, Ie({ _: 2 }, [
|
|
1620
1620
|
W(m.value, (N) => ({
|
|
1621
1621
|
name: N,
|
|
1622
|
-
fn:
|
|
1623
|
-
se(
|
|
1622
|
+
fn: V(({ row: F = {} }) => [
|
|
1623
|
+
se(C.$slots, N, { row: F })
|
|
1624
1624
|
])
|
|
1625
1625
|
}))
|
|
1626
1626
|
]), 1032, ["operationWidth", "config-options", "data", "selection", "operation", "expression", "fetch", "call"])
|
|
@@ -1633,8 +1633,8 @@ const ca = { class: "bsgoal-base-tree-fold" }, ra = {
|
|
|
1633
1633
|
}, ia = /* @__PURE__ */ Object.assign(ra, {
|
|
1634
1634
|
props: ["modelValue"],
|
|
1635
1635
|
emits: ["update:modelValue"],
|
|
1636
|
-
setup(
|
|
1637
|
-
let l =
|
|
1636
|
+
setup(e, { emit: c }) {
|
|
1637
|
+
let l = D(!0);
|
|
1638
1638
|
const i = () => {
|
|
1639
1639
|
l.value = !l.value, c("update:modelValue", l.value);
|
|
1640
1640
|
};
|
|
@@ -1642,15 +1642,15 @@ const ca = { class: "bsgoal-base-tree-fold" }, ra = {
|
|
|
1642
1642
|
const r = v("el-icon");
|
|
1643
1643
|
return u(), A("div", ca, [
|
|
1644
1644
|
O("div", {
|
|
1645
|
-
class:
|
|
1645
|
+
class: de(["base_tree_fold", { "base_tree_fold--hide": !s(l) }]),
|
|
1646
1646
|
onClick: i
|
|
1647
1647
|
}, [
|
|
1648
|
-
|
|
1649
|
-
default:
|
|
1650
|
-
X(
|
|
1648
|
+
w(r, { color: "#fff" }, {
|
|
1649
|
+
default: V(() => [
|
|
1650
|
+
X(w(s(At), null, null, 512), [
|
|
1651
1651
|
[te, s(l)]
|
|
1652
1652
|
]),
|
|
1653
|
-
X(
|
|
1653
|
+
X(w(s($t), null, null, 512), [
|
|
1654
1654
|
[te, !s(l)]
|
|
1655
1655
|
])
|
|
1656
1656
|
]),
|
|
@@ -1716,34 +1716,34 @@ const da = { class: "bsgoal-base-tree" }, _a = { class: "base_tree" }, ma = { cl
|
|
|
1716
1716
|
}
|
|
1717
1717
|
},
|
|
1718
1718
|
emits: ["on-click"],
|
|
1719
|
-
setup(
|
|
1720
|
-
const l =
|
|
1721
|
-
ue(_, (
|
|
1722
|
-
n.value.filter(
|
|
1719
|
+
setup(e, { emit: c }) {
|
|
1720
|
+
const l = e, i = pe.height, _ = D(""), n = D(null);
|
|
1721
|
+
ue(_, (C) => {
|
|
1722
|
+
n.value.filter(C);
|
|
1723
1723
|
});
|
|
1724
|
-
const r = (
|
|
1725
|
-
c("on-click",
|
|
1726
|
-
}, x = async (
|
|
1727
|
-
if (
|
|
1728
|
-
const F = await N.initNode(
|
|
1724
|
+
const r = (C, $) => C ? $.label.includes(C) : !0, m = D(!0), p = (C, $, N, F) => {
|
|
1725
|
+
c("on-click", C, $, N, F);
|
|
1726
|
+
}, x = async (C, $, N) => {
|
|
1727
|
+
if (C.level === 0) {
|
|
1728
|
+
const F = await N.initNode(C);
|
|
1729
1729
|
return $(F || []);
|
|
1730
1730
|
} else {
|
|
1731
|
-
const F = await N.lazyLoad(
|
|
1731
|
+
const F = await N.lazyLoad(C);
|
|
1732
1732
|
$(F || []);
|
|
1733
1733
|
}
|
|
1734
1734
|
};
|
|
1735
|
-
return (
|
|
1735
|
+
return (C, $) => {
|
|
1736
1736
|
const N = v("el-input"), F = v("el-tree");
|
|
1737
1737
|
return u(), A("div", da, [
|
|
1738
1738
|
X((u(), A("div", _a, [
|
|
1739
1739
|
X(O("div", ma, [
|
|
1740
|
-
|
|
1740
|
+
w(N, {
|
|
1741
1741
|
modelValue: _.value,
|
|
1742
1742
|
"onUpdate:modelValue": $[0] || ($[0] = (h) => _.value = h),
|
|
1743
1743
|
class: "base_tree_main_input",
|
|
1744
1744
|
placeholder: "输入关键字过滤"
|
|
1745
1745
|
}, null, 8, ["modelValue"]),
|
|
1746
|
-
|
|
1746
|
+
w(F, {
|
|
1747
1747
|
ref_key: "EL_TREE_REF",
|
|
1748
1748
|
ref: n,
|
|
1749
1749
|
lazy: "",
|
|
@@ -1751,30 +1751,30 @@ const da = { class: "bsgoal-base-tree" }, _a = { class: "base_tree" }, ma = { cl
|
|
|
1751
1751
|
"empty-text": "暂无数据",
|
|
1752
1752
|
load: (h, E) => x(h, E, l),
|
|
1753
1753
|
"expand-on-click-node": !1,
|
|
1754
|
-
props:
|
|
1754
|
+
props: e.treeProps,
|
|
1755
1755
|
"filter-node-method": r,
|
|
1756
1756
|
onNodeClick: p
|
|
1757
1757
|
}, null, 8, ["load", "props"])
|
|
1758
1758
|
], 512), [
|
|
1759
1759
|
[te, m.value]
|
|
1760
1760
|
]),
|
|
1761
|
-
X(
|
|
1761
|
+
X(w(be, { vertical: "" }, null, 512), [
|
|
1762
1762
|
[te, m.value]
|
|
1763
1763
|
]),
|
|
1764
|
-
|
|
1764
|
+
w(ia, {
|
|
1765
1765
|
modelValue: m.value,
|
|
1766
1766
|
"onUpdate:modelValue": $[1] || ($[1] = (h) => m.value = h)
|
|
1767
1767
|
}, null, 8, ["modelValue"])
|
|
1768
1768
|
])), [
|
|
1769
|
-
[s(i),
|
|
1769
|
+
[s(i), e.gasket]
|
|
1770
1770
|
])
|
|
1771
1771
|
]);
|
|
1772
1772
|
};
|
|
1773
1773
|
}
|
|
1774
1774
|
});
|
|
1775
|
-
const va = { class: "bsgoal-base-dialog" }, ha = { class: "base_dialog" }, pa = { class: "base_dialog_header" }, Ea = { class: "
|
|
1775
|
+
const va = { class: "bsgoal-base-dialog" }, ha = { class: "base_dialog" }, pa = { class: "base_dialog_header" }, Ea = { class: "base_dialog_footer" }, ba = {
|
|
1776
1776
|
name: "BsgoalBaseDialog"
|
|
1777
|
-
},
|
|
1777
|
+
}, ya = /* @__PURE__ */ Object.assign(ba, {
|
|
1778
1778
|
props: {
|
|
1779
1779
|
/**
|
|
1780
1780
|
* 弹窗状态
|
|
@@ -1816,12 +1816,20 @@ const va = { class: "bsgoal-base-dialog" }, ha = { class: "base_dialog" }, pa =
|
|
|
1816
1816
|
type: {
|
|
1817
1817
|
type: [String],
|
|
1818
1818
|
default: "default",
|
|
1819
|
-
validator: (
|
|
1819
|
+
validator: (e) => ["default", "form", "blank"].includes(e)
|
|
1820
|
+
},
|
|
1821
|
+
/**
|
|
1822
|
+
* 弹窗大小
|
|
1823
|
+
*/
|
|
1824
|
+
size: {
|
|
1825
|
+
type: [String, Number],
|
|
1826
|
+
default: "medium",
|
|
1827
|
+
validator: (e) => ["small", "medium", "lagre", "max", "dnymic"].includes(e)
|
|
1820
1828
|
}
|
|
1821
1829
|
},
|
|
1822
1830
|
emits: ["update:modelValue", "on-confirm"],
|
|
1823
|
-
setup(
|
|
1824
|
-
const l =
|
|
1831
|
+
setup(e, { emit: c }) {
|
|
1832
|
+
const l = e, i = D(l.modelValue.value), _ = () => {
|
|
1825
1833
|
i.value = !1;
|
|
1826
1834
|
}, n = () => {
|
|
1827
1835
|
i.value = !1, c("on-confirm");
|
|
@@ -1835,57 +1843,73 @@ const va = { class: "bsgoal-base-dialog" }, ha = { class: "base_dialog" }, pa =
|
|
|
1835
1843
|
c("update:modelValue", m);
|
|
1836
1844
|
});
|
|
1837
1845
|
const r = le(() => {
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1846
|
+
const { width: m, size: p } = l;
|
|
1847
|
+
if (m)
|
|
1848
|
+
return m;
|
|
1849
|
+
switch (p) {
|
|
1850
|
+
case "small":
|
|
1851
|
+
return "480px";
|
|
1852
|
+
case "medium":
|
|
1853
|
+
return "720px";
|
|
1854
|
+
case "lagre":
|
|
1855
|
+
return "960px";
|
|
1856
|
+
case "max":
|
|
1857
|
+
return "1232px";
|
|
1858
|
+
case "dnymic":
|
|
1859
|
+
return "80%";
|
|
1860
|
+
default:
|
|
1861
|
+
return m;
|
|
1862
|
+
}
|
|
1841
1863
|
});
|
|
1842
1864
|
return (m, p) => {
|
|
1843
|
-
const x = v("el-button"),
|
|
1865
|
+
const x = v("el-button"), C = v("el-dialog");
|
|
1844
1866
|
return u(), A("div", va, [
|
|
1845
1867
|
O("div", ha, [
|
|
1846
|
-
|
|
1868
|
+
w(C, {
|
|
1847
1869
|
modelValue: i.value,
|
|
1848
1870
|
"onUpdate:modelValue": p[0] || (p[0] = ($) => i.value = $),
|
|
1849
|
-
"custom-class":
|
|
1850
|
-
width:
|
|
1871
|
+
"custom-class": "bsgoal_base_dialog_main",
|
|
1872
|
+
width: s(r)
|
|
1851
1873
|
}, {
|
|
1852
|
-
header:
|
|
1853
|
-
O("div", pa, G(
|
|
1874
|
+
header: V(() => [
|
|
1875
|
+
O("div", pa, G(e.title), 1)
|
|
1854
1876
|
]),
|
|
1855
|
-
footer:
|
|
1856
|
-
O("span",
|
|
1857
|
-
|
|
1858
|
-
default:
|
|
1859
|
-
Q(G(
|
|
1877
|
+
footer: V(() => [
|
|
1878
|
+
O("span", Ea, [
|
|
1879
|
+
w(x, { onClick: _ }, {
|
|
1880
|
+
default: V(() => [
|
|
1881
|
+
Q(G(e.cancelTxt), 1)
|
|
1860
1882
|
]),
|
|
1861
1883
|
_: 1
|
|
1862
1884
|
}),
|
|
1863
|
-
|
|
1885
|
+
w(x, {
|
|
1864
1886
|
type: "primary",
|
|
1865
1887
|
onClick: n
|
|
1866
1888
|
}, {
|
|
1867
|
-
default:
|
|
1868
|
-
Q(G(
|
|
1889
|
+
default: V(() => [
|
|
1890
|
+
Q(G(e.confirmTxt), 1)
|
|
1869
1891
|
]),
|
|
1870
1892
|
_: 1
|
|
1871
1893
|
})
|
|
1872
1894
|
])
|
|
1873
1895
|
]),
|
|
1874
|
-
default:
|
|
1875
|
-
O("div",
|
|
1896
|
+
default: V(() => [
|
|
1897
|
+
O("div", {
|
|
1898
|
+
class: de(["base_dialog_content", { "base_dialog_content--form": e.type === "form" }])
|
|
1899
|
+
}, [
|
|
1876
1900
|
se(m.$slots, "default")
|
|
1877
|
-
])
|
|
1901
|
+
], 2)
|
|
1878
1902
|
]),
|
|
1879
1903
|
_: 3
|
|
1880
|
-
}, 8, ["modelValue", "
|
|
1904
|
+
}, 8, ["modelValue", "width"])
|
|
1881
1905
|
])
|
|
1882
1906
|
]);
|
|
1883
1907
|
};
|
|
1884
1908
|
}
|
|
1885
1909
|
});
|
|
1886
|
-
const
|
|
1910
|
+
const Aa = { class: "bsgoal-base-tabs" }, Ta = {
|
|
1887
1911
|
name: "BsgoalBaseTabs"
|
|
1888
|
-
}, Va = /* @__PURE__ */ Object.assign(
|
|
1912
|
+
}, Va = /* @__PURE__ */ Object.assign(Ta, {
|
|
1889
1913
|
props: {
|
|
1890
1914
|
/**
|
|
1891
1915
|
* 配置项
|
|
@@ -1908,7 +1932,7 @@ const Ta = { class: "bsgoal-base-tabs" }, Ca = {
|
|
|
1908
1932
|
type: {
|
|
1909
1933
|
type: [String],
|
|
1910
1934
|
default: "",
|
|
1911
|
-
validator: (
|
|
1935
|
+
validator: (e) => ["card", "border-card"].includes(e)
|
|
1912
1936
|
},
|
|
1913
1937
|
/**
|
|
1914
1938
|
* 组件绑定的值
|
|
@@ -1919,27 +1943,27 @@ const Ta = { class: "bsgoal-base-tabs" }, Ca = {
|
|
|
1919
1943
|
}
|
|
1920
1944
|
},
|
|
1921
1945
|
emits: ["update:modelValue"],
|
|
1922
|
-
setup(
|
|
1946
|
+
setup(e, { emit: c }) {
|
|
1923
1947
|
const l = (i = "") => {
|
|
1924
1948
|
c("update:modelValue", i);
|
|
1925
1949
|
};
|
|
1926
1950
|
return (i, _) => {
|
|
1927
1951
|
const n = v("el-tab-pane"), r = v("el-tabs");
|
|
1928
|
-
return u(), A("div",
|
|
1929
|
-
|
|
1952
|
+
return u(), A("div", Aa, [
|
|
1953
|
+
w(r, {
|
|
1930
1954
|
stretch: "",
|
|
1931
1955
|
class: "bsgoal_base_tabs",
|
|
1932
|
-
type:
|
|
1933
|
-
"model-value":
|
|
1956
|
+
type: e.type,
|
|
1957
|
+
"model-value": e.modelValue,
|
|
1934
1958
|
onTabChange: l
|
|
1935
1959
|
}, {
|
|
1936
|
-
default:
|
|
1937
|
-
(u(!0), A(L, null, W(
|
|
1960
|
+
default: V(() => [
|
|
1961
|
+
(u(!0), A(L, null, W(e.configOptions, ({ label: m, value: p }, x) => (u(), y(n, {
|
|
1938
1962
|
key: x,
|
|
1939
1963
|
label: m,
|
|
1940
1964
|
name: p
|
|
1941
1965
|
}, {
|
|
1942
|
-
default:
|
|
1966
|
+
default: V(() => [
|
|
1943
1967
|
se(i.$slots, p, {}, () => [
|
|
1944
1968
|
Q(G(m), 1)
|
|
1945
1969
|
])
|
|
@@ -1952,26 +1976,26 @@ const Ta = { class: "bsgoal-base-tabs" }, Ca = {
|
|
|
1952
1976
|
]);
|
|
1953
1977
|
};
|
|
1954
1978
|
}
|
|
1955
|
-
}),
|
|
1956
|
-
install(
|
|
1979
|
+
}), $a = t, Na = Ee, wa = {
|
|
1980
|
+
install(e, c = {}) {
|
|
1957
1981
|
const { exclude: l = [] } = c, i = {
|
|
1958
1982
|
BsgoalBaseForm: ze,
|
|
1959
1983
|
BsgoalBaseTable: Me,
|
|
1960
1984
|
BsgoalBaseLine: be,
|
|
1961
1985
|
BsgoalBaseSearchTable: sa,
|
|
1962
1986
|
BsgoalBaseTree: fa,
|
|
1963
|
-
BsgoalBaseDialog:
|
|
1987
|
+
BsgoalBaseDialog: ya,
|
|
1964
1988
|
BsgoalBaseTabs: Va
|
|
1965
1989
|
};
|
|
1966
1990
|
for (const [_, n] of Object.entries(i))
|
|
1967
|
-
l.includes(_) ||
|
|
1991
|
+
l.includes(_) || e.component(_, n);
|
|
1968
1992
|
},
|
|
1969
|
-
enumType:
|
|
1993
|
+
enumType: t,
|
|
1970
1994
|
useFetch: Ee
|
|
1971
1995
|
};
|
|
1972
1996
|
export {
|
|
1973
|
-
|
|
1997
|
+
$a as EnumType,
|
|
1974
1998
|
wa as default,
|
|
1975
|
-
|
|
1999
|
+
Na as useFetchApi
|
|
1976
2000
|
};
|
|
1977
2001
|
//# sourceMappingURL=index.mjs.map
|