@bsgoal/common 1.5.5 → 1.5.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +99 -84
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/bsgoal-base-form/demo.vue +14 -4
- package/src/components/bsgoal-base-form/index.vue +11 -4
- package/src/components/bsgoal-base-tooltip/index.vue +10 -3
package/dist/index.mjs
CHANGED
|
@@ -36,9 +36,9 @@ const t = {
|
|
|
36
36
|
let ve = null;
|
|
37
37
|
const he = (e) => {
|
|
38
38
|
const s = [], l = [], i = (a = []) => {
|
|
39
|
-
const c = a.map((
|
|
40
|
-
a.forEach((
|
|
41
|
-
const { labelEl: N } =
|
|
39
|
+
const c = a.map((p) => p.width), _ = Math.max(...c);
|
|
40
|
+
a.forEach((p) => {
|
|
41
|
+
const { labelEl: N } = p;
|
|
42
42
|
N.style.width = `${_}px`;
|
|
43
43
|
});
|
|
44
44
|
}, r = () => {
|
|
@@ -46,10 +46,10 @@ const he = (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((_,
|
|
49
|
+
a.forEach((_, p) => {
|
|
50
50
|
_.style.width = "initial", _.style.whiteSpace = "nowrap";
|
|
51
51
|
const { x: N = 0, width: M = 0 } = _.getBoundingClientRect(), w = { x: N, width: M, labelEl: _ };
|
|
52
|
-
|
|
52
|
+
p === 0 && (c = N), N === c ? s.push(w) : l.push(w);
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
55
|
}
|
|
@@ -116,14 +116,21 @@ const Fe = { class: "bsgoal-base-tooltip" }, Ue = {
|
|
|
116
116
|
max: {
|
|
117
117
|
type: [Number, String],
|
|
118
118
|
default: "10em"
|
|
119
|
+
},
|
|
120
|
+
/**
|
|
121
|
+
* 空字段 默认值
|
|
122
|
+
*/
|
|
123
|
+
none: {
|
|
124
|
+
type: [String],
|
|
125
|
+
default: "无"
|
|
119
126
|
}
|
|
120
127
|
},
|
|
121
128
|
setup(e) {
|
|
122
129
|
const s = e, l = q(() => {
|
|
123
|
-
const { content: r = "", limit: a = 0 } = s;
|
|
124
|
-
let
|
|
125
|
-
const
|
|
126
|
-
return a &&
|
|
130
|
+
const { content: r = "", limit: a = 0, none: c = "" } = s;
|
|
131
|
+
let _ = r;
|
|
132
|
+
const p = r.length;
|
|
133
|
+
return a && p > a && (_ = `${r.substring(0, a)}...`), _ || c;
|
|
127
134
|
}), i = q(() => {
|
|
128
135
|
const { content: r = "", limit: a = 0 } = s;
|
|
129
136
|
return r.length < a || !a;
|
|
@@ -202,30 +209,37 @@ const ze = { class: "bsgoal-base-form" }, Pe = { class: "base_form" }, je = { ke
|
|
|
202
209
|
* 全局只读
|
|
203
210
|
*/
|
|
204
211
|
readonlys: {
|
|
205
|
-
type: Boolean,
|
|
212
|
+
type: [Boolean],
|
|
206
213
|
default: !1
|
|
214
|
+
},
|
|
215
|
+
/**
|
|
216
|
+
* 空字段 默认值
|
|
217
|
+
*/
|
|
218
|
+
none: {
|
|
219
|
+
type: [String],
|
|
220
|
+
default: "无"
|
|
207
221
|
}
|
|
208
222
|
},
|
|
209
223
|
emits: ["on-form", "on-clear", "on-change", "on-fold"],
|
|
210
224
|
setup(e, { expose: s, emit: l }) {
|
|
211
225
|
const i = e, r = B(null), a = Ee.align, c = B({});
|
|
212
226
|
pe(() => {
|
|
213
|
-
const { configOptions:
|
|
227
|
+
const { configOptions: E, values: b } = i, C = u(E), h = u(b);
|
|
214
228
|
C.forEach((y) => {
|
|
215
229
|
const { value: O = "", prop: S = "", type: R = "" } = y;
|
|
216
230
|
[t.INPUT, t.INPUT_TEXT_AREA].includes(R), c.value[S] = h[S] || O;
|
|
217
231
|
});
|
|
218
232
|
});
|
|
219
233
|
const _ = q(() => {
|
|
220
|
-
const { configOptions:
|
|
221
|
-
return u(
|
|
234
|
+
const { configOptions: E } = i;
|
|
235
|
+
return u(E).map((h) => {
|
|
222
236
|
let { rules: y = !1, label: O = "" } = h;
|
|
223
237
|
const S = { required: !0, message: `${O}不能为空`, trigger: "blur" };
|
|
224
238
|
return y && (typeof y == "boolean" ? y = [S] : Array.isArray(y) ? y = [S, ...y] : y = [S, y]), h.rules = y, h;
|
|
225
239
|
});
|
|
226
|
-
}),
|
|
240
|
+
}), p = (E = "", b = "", C = "") => {
|
|
227
241
|
if (!C)
|
|
228
|
-
switch (
|
|
242
|
+
switch (E) {
|
|
229
243
|
case t.INPUT:
|
|
230
244
|
case t.INPUT_TEXT_AREA:
|
|
231
245
|
return `请输入${b}`;
|
|
@@ -246,9 +260,9 @@ const ze = { class: "bsgoal-base-form" }, Pe = { class: "base_form" }, je = { ke
|
|
|
246
260
|
return ["开始月份", "结束月份"];
|
|
247
261
|
}
|
|
248
262
|
return C;
|
|
249
|
-
}, N = (
|
|
263
|
+
}, N = (E = "", b = "") => {
|
|
250
264
|
if (!b)
|
|
251
|
-
switch (
|
|
265
|
+
switch (E) {
|
|
252
266
|
case t.WEEK:
|
|
253
267
|
return "ww";
|
|
254
268
|
case t.DATE:
|
|
@@ -269,20 +283,20 @@ const ze = { class: "bsgoal-base-form" }, Pe = { class: "base_form" }, je = { ke
|
|
|
269
283
|
}
|
|
270
284
|
return b;
|
|
271
285
|
}, M = () => {
|
|
272
|
-
const
|
|
286
|
+
const E = u(c), { configOptions: b } = i, C = u(b);
|
|
273
287
|
for (const h of C) {
|
|
274
288
|
const { type: y = "", range: O = [], prop: S = "" } = h;
|
|
275
289
|
if (y.endsWith("range") && O && O.length === 2) {
|
|
276
|
-
const { 0: R = "", 1: F = "" } =
|
|
277
|
-
|
|
290
|
+
const { 0: R = "", 1: F = "" } = E[S], { 0: L = "", 1: I = "" } = O;
|
|
291
|
+
E[L] = R, E[I] = F;
|
|
278
292
|
}
|
|
279
293
|
}
|
|
280
|
-
return l("on-form",
|
|
294
|
+
return l("on-form", E), E;
|
|
281
295
|
}, w = () => {
|
|
282
296
|
r.value.resetFields(), l("on-clear", c.value);
|
|
283
|
-
}, D = (
|
|
297
|
+
}, D = (E, b) => {
|
|
284
298
|
const C = {
|
|
285
|
-
type:
|
|
299
|
+
type: E,
|
|
286
300
|
prop: b,
|
|
287
301
|
value: c.value[b] || ""
|
|
288
302
|
};
|
|
@@ -291,14 +305,14 @@ const ze = { class: "bsgoal-base-form" }, Pe = { class: "base_form" }, je = { ke
|
|
|
291
305
|
return s({
|
|
292
306
|
triggerOperationClear: w,
|
|
293
307
|
triggerOperationForm: M,
|
|
294
|
-
validateForm: (
|
|
308
|
+
validateForm: (E = () => {
|
|
295
309
|
}) => {
|
|
296
310
|
r.value.validate((b = !1, C = {}) => {
|
|
297
311
|
if (b) {
|
|
298
312
|
const h = M();
|
|
299
|
-
|
|
313
|
+
E(h);
|
|
300
314
|
} else {
|
|
301
|
-
|
|
315
|
+
E(!1);
|
|
302
316
|
const h = Object.keys(C)[0], {
|
|
303
317
|
[h]: {
|
|
304
318
|
0: { message: y = "" }
|
|
@@ -308,7 +322,7 @@ const ze = { class: "bsgoal-base-form" }, Pe = { class: "base_form" }, je = { ke
|
|
|
308
322
|
}
|
|
309
323
|
});
|
|
310
324
|
}
|
|
311
|
-
}), (
|
|
325
|
+
}), (E, b) => {
|
|
312
326
|
const C = v("el-input"), h = v("el-input-number"), y = v("el-radio"), O = v("el-radio-group"), S = v("el-option"), R = v("el-select"), F = v("el-slider"), L = v("el-switch"), I = v("el-date-picker"), P = v("el-time-picker"), Z = v("el-checkbox"), ee = v("el-checkbox-group"), K = v("el-form-item"), me = v("el-col"), ge = v("el-row"), fe = v("el-form");
|
|
313
327
|
return n(), A("div", ze, [
|
|
314
328
|
k("div", Pe, [
|
|
@@ -351,14 +365,15 @@ const ze = { class: "bsgoal-base-form" }, Pe = { class: "base_form" }, je = { ke
|
|
|
351
365
|
Y ? (n(), A("div", je, [
|
|
352
366
|
$(Le, {
|
|
353
367
|
content: c.value[f],
|
|
354
|
-
limit: le
|
|
355
|
-
|
|
368
|
+
limit: le,
|
|
369
|
+
none: e.none
|
|
370
|
+
}, null, 8, ["content", "limit", "none"])
|
|
356
371
|
])) : (n(), A(z, { key: 0 }, [
|
|
357
372
|
o === u(t).INPUT ? (n(), T(C, {
|
|
358
373
|
key: 0,
|
|
359
374
|
modelValue: c.value[f],
|
|
360
375
|
"onUpdate:modelValue": (m) => c.value[f] = m,
|
|
361
|
-
placeholder:
|
|
376
|
+
placeholder: p(o, j, d),
|
|
362
377
|
clearable: re,
|
|
363
378
|
onChange: (m) => D(o, f)
|
|
364
379
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : x("", !0),
|
|
@@ -369,13 +384,13 @@ const ze = { class: "bsgoal-base-form" }, Pe = { class: "base_form" }, je = { ke
|
|
|
369
384
|
type: "textarea",
|
|
370
385
|
rows: ie,
|
|
371
386
|
clearable: re,
|
|
372
|
-
placeholder:
|
|
387
|
+
placeholder: p(o, j, d),
|
|
373
388
|
onChange: (m) => D(o, f)
|
|
374
389
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : x("", !0),
|
|
375
390
|
o === u(t).INPUT_NUMBER ? (n(), T(h, {
|
|
376
391
|
key: 2,
|
|
377
|
-
modelValue:
|
|
378
|
-
"onUpdate:modelValue": b[0] || (b[0] = (m) =>
|
|
392
|
+
modelValue: E.num,
|
|
393
|
+
"onUpdate:modelValue": b[0] || (b[0] = (m) => E.num = m),
|
|
379
394
|
min: de,
|
|
380
395
|
max: ue,
|
|
381
396
|
onChange: D
|
|
@@ -403,7 +418,7 @@ const ze = { class: "bsgoal-base-form" }, Pe = { class: "base_form" }, je = { ke
|
|
|
403
418
|
key: 4,
|
|
404
419
|
modelValue: c.value[f],
|
|
405
420
|
"onUpdate:modelValue": (m) => c.value[f] = m,
|
|
406
|
-
placeholder:
|
|
421
|
+
placeholder: p(o, j, d),
|
|
407
422
|
onChange: (m) => D(o, f)
|
|
408
423
|
}, {
|
|
409
424
|
default: V(() => [
|
|
@@ -440,7 +455,7 @@ const ze = { class: "bsgoal-base-form" }, Pe = { class: "base_form" }, je = { ke
|
|
|
440
455
|
format: N(o, G),
|
|
441
456
|
"value-format": N(o, G),
|
|
442
457
|
type: o,
|
|
443
|
-
placeholder:
|
|
458
|
+
placeholder: p(o, j, d),
|
|
444
459
|
onChange: (m) => D(o, f)
|
|
445
460
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : x("", !0),
|
|
446
461
|
[
|
|
@@ -453,8 +468,8 @@ const ze = { class: "bsgoal-base-form" }, Pe = { class: "base_form" }, je = { ke
|
|
|
453
468
|
"onUpdate:modelValue": (m) => c.value[f] = m,
|
|
454
469
|
type: o,
|
|
455
470
|
"value-format": N(o, G),
|
|
456
|
-
"start-placeholder":
|
|
457
|
-
"end-placeholder":
|
|
471
|
+
"start-placeholder": p(o, j, d)[0],
|
|
472
|
+
"end-placeholder": p(o, j, d)[1],
|
|
458
473
|
onChange: (m) => D(o, f)
|
|
459
474
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : x("", !0),
|
|
460
475
|
[u(t).TIME].includes(o) ? (n(), T(P, {
|
|
@@ -463,7 +478,7 @@ const ze = { class: "bsgoal-base-form" }, Pe = { class: "base_form" }, je = { ke
|
|
|
463
478
|
"onUpdate:modelValue": (m) => c.value[f] = m,
|
|
464
479
|
"arrow-control": "",
|
|
465
480
|
"value-format": N(o, G),
|
|
466
|
-
placeholder:
|
|
481
|
+
placeholder: p(o, j, d),
|
|
467
482
|
onChange: (m) => D(o, f)
|
|
468
483
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : x("", !0),
|
|
469
484
|
[u(t).TIME_RANGE].includes(o) ? (n(), T(P, {
|
|
@@ -472,8 +487,8 @@ const ze = { class: "bsgoal-base-form" }, Pe = { class: "base_form" }, je = { ke
|
|
|
472
487
|
"onUpdate:modelValue": (m) => c.value[f] = m,
|
|
473
488
|
"is-range": "",
|
|
474
489
|
"value-format": N(o, G),
|
|
475
|
-
"start-placeholder":
|
|
476
|
-
"end-placeholder":
|
|
490
|
+
"start-placeholder": p(o, j, d)[0],
|
|
491
|
+
"end-placeholder": p(o, j, d)[1],
|
|
477
492
|
onChange: (m) => D(o, f)
|
|
478
493
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : x("", !0),
|
|
479
494
|
[u(t).CHECKBOX].includes(o) ? (n(), T(ee, {
|
|
@@ -700,10 +715,10 @@ const Ke = { class: "bsgoal-base-table-pagination" }, Je = { class: "base_table_
|
|
|
700
715
|
s("on-current-change", a);
|
|
701
716
|
}, r = B(1);
|
|
702
717
|
return (a, c) => {
|
|
703
|
-
const _ = v("el-pagination"),
|
|
718
|
+
const _ = v("el-pagination"), p = v("el-config-provider");
|
|
704
719
|
return n(), A("div", Ke, [
|
|
705
720
|
k("div", Je, [
|
|
706
|
-
$(
|
|
721
|
+
$(p, { locale: u(Ze) }, {
|
|
707
722
|
default: V(() => [
|
|
708
723
|
$(_, {
|
|
709
724
|
background: "",
|
|
@@ -881,15 +896,15 @@ const it = { class: "bsgoal-base-table" }, dt = { class: "base_table" }, _t = {
|
|
|
881
896
|
const h = a ? a.value : !1, y = u(l.expression);
|
|
882
897
|
rt(r, { arg: h, expression: y });
|
|
883
898
|
});
|
|
884
|
-
const c = B(1), _ = B(10),
|
|
899
|
+
const c = B(1), _ = B(10), p = B(0), N = B({}), M = B(l.loading), w = B(l.data), D = B({}), U = () => {
|
|
885
900
|
const { fetch: h, call: y, mapProps: O } = l, S = N.value, R = c.value, F = _.value, L = Ve({}, S), I = u(O);
|
|
886
901
|
L[I.currentPage] = R, L[I.pageSize] = F, be(h(L), y, M, D);
|
|
887
902
|
};
|
|
888
903
|
ce(D, (h) => {
|
|
889
904
|
const { mapProps: y } = l, O = u(y);
|
|
890
|
-
w.value = h[O.rows],
|
|
905
|
+
w.value = h[O.rows], p.value = h[O.total];
|
|
891
906
|
});
|
|
892
|
-
const
|
|
907
|
+
const E = (h = {}) => {
|
|
893
908
|
N.value = h, c.value = 1, U();
|
|
894
909
|
}, b = (h = 1) => {
|
|
895
910
|
c.value = h;
|
|
@@ -899,7 +914,7 @@ const it = { class: "bsgoal-base-table" }, dt = { class: "base_table" }, _t = {
|
|
|
899
914
|
return ce([c, _], () => {
|
|
900
915
|
U();
|
|
901
916
|
}), s({
|
|
902
|
-
refreshList:
|
|
917
|
+
refreshList: E
|
|
903
918
|
}), (h, y) => {
|
|
904
919
|
const O = v("el-table-column"), S = v("el-table"), R = De("loading");
|
|
905
920
|
return n(), A("div", it, [
|
|
@@ -958,7 +973,7 @@ const it = { class: "bsgoal-base-table" }, dt = { class: "base_table" }, _t = {
|
|
|
958
973
|
])
|
|
959
974
|
], 512),
|
|
960
975
|
$(tt, {
|
|
961
|
-
total:
|
|
976
|
+
total: p.value,
|
|
962
977
|
onOnCurrentChange: b,
|
|
963
978
|
onOnSizeChange: C
|
|
964
979
|
}, null, 8, ["total"])
|
|
@@ -1139,7 +1154,7 @@ const Kt = { class: "bsgoal-base-search-operation" }, Jt = {
|
|
|
1139
1154
|
$(c, {
|
|
1140
1155
|
type: "primary",
|
|
1141
1156
|
icon: u(Zt),
|
|
1142
|
-
onClick: a[0] || (a[0] = (
|
|
1157
|
+
onClick: a[0] || (a[0] = (p) => r.$emit("on-search"))
|
|
1143
1158
|
}, {
|
|
1144
1159
|
default: V(() => [
|
|
1145
1160
|
X("搜索")
|
|
@@ -1148,7 +1163,7 @@ const Kt = { class: "bsgoal-base-search-operation" }, Jt = {
|
|
|
1148
1163
|
}, 8, ["icon"]),
|
|
1149
1164
|
$(c, {
|
|
1150
1165
|
icon: u(Yt),
|
|
1151
|
-
onClick: a[1] || (a[1] = (
|
|
1166
|
+
onClick: a[1] || (a[1] = (p) => r.$emit("on-clear"))
|
|
1152
1167
|
}, {
|
|
1153
1168
|
default: V(() => [
|
|
1154
1169
|
X("清空")
|
|
@@ -1317,7 +1332,7 @@ const la = { class: "bsgoal-base-search" }, na = { class: "base_search" }, oa =
|
|
|
1317
1332
|
return ["开始月份", "结束月份"];
|
|
1318
1333
|
}
|
|
1319
1334
|
return h;
|
|
1320
|
-
},
|
|
1335
|
+
}, p = (b = "", C = "") => {
|
|
1321
1336
|
if (!C)
|
|
1322
1337
|
switch (b) {
|
|
1323
1338
|
case t.WEEK:
|
|
@@ -1362,7 +1377,7 @@ const la = { class: "bsgoal-base-search" }, na = { class: "base_search" }, oa =
|
|
|
1362
1377
|
i.value.resetFields(), s("on-clear", a.value);
|
|
1363
1378
|
}, w = Me("transferFoldStatus"), D = B(!1), U = (b = !1) => {
|
|
1364
1379
|
D.value = b, w && (w.value = b), s("on-fold", D);
|
|
1365
|
-
},
|
|
1380
|
+
}, E = (b, C) => {
|
|
1366
1381
|
N();
|
|
1367
1382
|
const h = {
|
|
1368
1383
|
type: b,
|
|
@@ -1416,7 +1431,7 @@ const la = { class: "bsgoal-base-search" }, na = { class: "base_search" }, oa =
|
|
|
1416
1431
|
"onUpdate:modelValue": (g) => a.value[o] = g,
|
|
1417
1432
|
placeholder: _(d, f, Y),
|
|
1418
1433
|
clearable: ie,
|
|
1419
|
-
onChange: (g) =>
|
|
1434
|
+
onChange: (g) => E(d, o)
|
|
1420
1435
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable", "onChange"])) : x("", !0),
|
|
1421
1436
|
d === u(t).INPUT_TEXT_AREA ? (n(), T(h, {
|
|
1422
1437
|
key: 1,
|
|
@@ -1426,7 +1441,7 @@ const la = { class: "bsgoal-base-search" }, na = { class: "base_search" }, oa =
|
|
|
1426
1441
|
rows: de,
|
|
1427
1442
|
clearable: ie,
|
|
1428
1443
|
placeholder: _(d, f, Y),
|
|
1429
|
-
onChange: (g) =>
|
|
1444
|
+
onChange: (g) => E(d, o)
|
|
1430
1445
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "rows", "clearable", "placeholder", "onChange"])) : x("", !0),
|
|
1431
1446
|
d === u(t).INPUT_NUMBER ? (n(), T(y, {
|
|
1432
1447
|
key: 2,
|
|
@@ -1434,13 +1449,13 @@ const la = { class: "bsgoal-base-search" }, na = { class: "base_search" }, oa =
|
|
|
1434
1449
|
"onUpdate:modelValue": C[0] || (C[0] = (g) => b.num = g),
|
|
1435
1450
|
min: ue,
|
|
1436
1451
|
max: J,
|
|
1437
|
-
onChange:
|
|
1452
|
+
onChange: E
|
|
1438
1453
|
}, null, 8, ["modelValue", "min", "max"])) : x("", !0),
|
|
1439
1454
|
d === u(t).RADIO ? (n(), T(S, {
|
|
1440
1455
|
key: 3,
|
|
1441
1456
|
modelValue: a.value[o],
|
|
1442
1457
|
"onUpdate:modelValue": (g) => a.value[o] = g,
|
|
1443
|
-
onChange: (g) =>
|
|
1458
|
+
onChange: (g) => E(d, o)
|
|
1444
1459
|
}, {
|
|
1445
1460
|
default: V(() => [
|
|
1446
1461
|
(n(!0), A(z, null, W(G, (g, m) => (n(), T(O, {
|
|
@@ -1460,7 +1475,7 @@ const la = { class: "bsgoal-base-search" }, na = { class: "base_search" }, oa =
|
|
|
1460
1475
|
modelValue: a.value[o],
|
|
1461
1476
|
"onUpdate:modelValue": (g) => a.value[o] = g,
|
|
1462
1477
|
placeholder: _(d, f, Y),
|
|
1463
|
-
onChange: (g) =>
|
|
1478
|
+
onChange: (g) => E(d, o)
|
|
1464
1479
|
}, {
|
|
1465
1480
|
default: V(() => [
|
|
1466
1481
|
(n(!0), A(z, null, W(G, (g, m) => (n(), T(R, {
|
|
@@ -1477,7 +1492,7 @@ const la = { class: "bsgoal-base-search" }, na = { class: "base_search" }, oa =
|
|
|
1477
1492
|
"onUpdate:modelValue": (g) => a.value[o] = g,
|
|
1478
1493
|
min: ue,
|
|
1479
1494
|
max: J,
|
|
1480
|
-
onChange: (g) =>
|
|
1495
|
+
onChange: (g) => E(d, o)
|
|
1481
1496
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "onChange"])) : x("", !0),
|
|
1482
1497
|
d === u(t).SWITCH ? (n(), T(I, {
|
|
1483
1498
|
key: 6,
|
|
@@ -1485,7 +1500,7 @@ const la = { class: "bsgoal-base-search" }, na = { class: "base_search" }, oa =
|
|
|
1485
1500
|
"onUpdate:modelValue": (g) => a.value[o] = g,
|
|
1486
1501
|
"active-value": G[0] || !0,
|
|
1487
1502
|
"inactive-value": G[1] || !1,
|
|
1488
|
-
onChange: (g) =>
|
|
1503
|
+
onChange: (g) => E(d, o)
|
|
1489
1504
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : x("", !0),
|
|
1490
1505
|
[u(t).DATE, u(t).MONTH, u(t).YEAR, u(t).DATE_TIME].includes(
|
|
1491
1506
|
d
|
|
@@ -1493,11 +1508,11 @@ const la = { class: "bsgoal-base-search" }, na = { class: "base_search" }, oa =
|
|
|
1493
1508
|
key: 7,
|
|
1494
1509
|
modelValue: a.value[o],
|
|
1495
1510
|
"onUpdate:modelValue": (g) => a.value[o] = g,
|
|
1496
|
-
format:
|
|
1497
|
-
"value-format":
|
|
1511
|
+
format: p(d, te),
|
|
1512
|
+
"value-format": p(d, te),
|
|
1498
1513
|
type: d,
|
|
1499
1514
|
placeholder: _(d, f, Y),
|
|
1500
|
-
onChange: (g) =>
|
|
1515
|
+
onChange: (g) => E(d, o)
|
|
1501
1516
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "format", "value-format", "type", "placeholder", "onChange"])) : x("", !0),
|
|
1502
1517
|
[
|
|
1503
1518
|
u(t).DATE_RANGE,
|
|
@@ -1508,35 +1523,35 @@ const la = { class: "bsgoal-base-search" }, na = { class: "base_search" }, oa =
|
|
|
1508
1523
|
modelValue: a.value[o],
|
|
1509
1524
|
"onUpdate:modelValue": (g) => a.value[o] = g,
|
|
1510
1525
|
type: d,
|
|
1511
|
-
"value-format":
|
|
1526
|
+
"value-format": p(d, te),
|
|
1512
1527
|
"start-placeholder": _(d, f, Y)[0],
|
|
1513
1528
|
"end-placeholder": _(d, f, Y)[1],
|
|
1514
|
-
onChange: (g) =>
|
|
1529
|
+
onChange: (g) => E(d, o)
|
|
1515
1530
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : x("", !0),
|
|
1516
1531
|
[u(t).TIME].includes(d) ? (n(), T(Z, {
|
|
1517
1532
|
key: 9,
|
|
1518
1533
|
modelValue: a.value[o],
|
|
1519
1534
|
"onUpdate:modelValue": (g) => a.value[o] = g,
|
|
1520
1535
|
"arrow-control": "",
|
|
1521
|
-
"value-format":
|
|
1536
|
+
"value-format": p(d, te),
|
|
1522
1537
|
placeholder: _(d, f, Y),
|
|
1523
|
-
onChange: (g) =>
|
|
1538
|
+
onChange: (g) => E(d, o)
|
|
1524
1539
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "placeholder", "onChange"])) : x("", !0),
|
|
1525
1540
|
[u(t).TIME_RANGE].includes(d) ? (n(), T(Z, {
|
|
1526
1541
|
key: 10,
|
|
1527
1542
|
modelValue: a.value[o],
|
|
1528
1543
|
"onUpdate:modelValue": (g) => a.value[o] = g,
|
|
1529
1544
|
"is-range": "",
|
|
1530
|
-
"value-format":
|
|
1545
|
+
"value-format": p(d, te),
|
|
1531
1546
|
"start-placeholder": _(d, f, Y)[0],
|
|
1532
1547
|
"end-placeholder": _(d, f, Y)[1],
|
|
1533
|
-
onChange: (g) =>
|
|
1548
|
+
onChange: (g) => E(d, o)
|
|
1534
1549
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "value-format", "start-placeholder", "end-placeholder", "onChange"])) : x("", !0),
|
|
1535
1550
|
[u(t).CHECKBOX].includes(d) ? (n(), T(K, {
|
|
1536
1551
|
key: 11,
|
|
1537
1552
|
modelValue: a.value[o],
|
|
1538
1553
|
"onUpdate:modelValue": (g) => a.value[o] = g,
|
|
1539
|
-
onChange: (g) =>
|
|
1554
|
+
onChange: (g) => E(d, o)
|
|
1540
1555
|
}, {
|
|
1541
1556
|
default: V(() => [
|
|
1542
1557
|
(n(!0), A(z, null, W(G, (g, m) => (n(), T(ee, {
|
|
@@ -1557,7 +1572,7 @@ const la = { class: "bsgoal-base-search" }, na = { class: "base_search" }, oa =
|
|
|
1557
1572
|
"onUpdate:modelValue": (g) => a.value[o] = g,
|
|
1558
1573
|
"data-options": G,
|
|
1559
1574
|
placeholder: _(d, f, Y),
|
|
1560
|
-
onOnChange: (g) =>
|
|
1575
|
+
onOnChange: (g) => E(d, o)
|
|
1561
1576
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "data-options", "placeholder", "onOnChange"])) : x("", !0),
|
|
1562
1577
|
[].includes(d) ? (n(), A(z, { key: 13 }, [], 64)) : x("", !0),
|
|
1563
1578
|
[u(t).OPERATION].includes(d) ? (n(), T(qt, {
|
|
@@ -1681,8 +1696,8 @@ const ca = { class: "bsgoal-base-search-table" }, ra = { class: "base_search_tab
|
|
|
1681
1696
|
})), a = q(() => i.filter((M) => {
|
|
1682
1697
|
const { item: w = !1 } = M;
|
|
1683
1698
|
return !w;
|
|
1684
|
-
})), c = Se(), _ = B(Object.keys(c)),
|
|
1685
|
-
|
|
1699
|
+
})), c = Se(), _ = B(Object.keys(c)), p = B(null), N = (M) => {
|
|
1700
|
+
p.value.refreshList(M);
|
|
1686
1701
|
};
|
|
1687
1702
|
return (M, w) => (n(), A("div", ca, [
|
|
1688
1703
|
k("div", ra, [
|
|
@@ -1693,7 +1708,7 @@ const ca = { class: "bsgoal-base-search-table" }, ra = { class: "base_search_tab
|
|
|
1693
1708
|
}, null, 8, ["config-options"]),
|
|
1694
1709
|
$(xe, {
|
|
1695
1710
|
ref_key: "BSGOAL_BASE_TABLE_REF",
|
|
1696
|
-
ref:
|
|
1711
|
+
ref: p,
|
|
1697
1712
|
operationWidth: e.operationWidth,
|
|
1698
1713
|
"config-options": u(a),
|
|
1699
1714
|
data: e.tableData,
|
|
@@ -1807,7 +1822,7 @@ const fa = { class: "bsgoal-base-tree" }, va = { class: "base_tree" }, ha = { cl
|
|
|
1807
1822
|
ce(r, (M) => {
|
|
1808
1823
|
a.value.filter(M);
|
|
1809
1824
|
});
|
|
1810
|
-
const c = (M, w) => M ? w.label.includes(M) : !0, _ = B(!0),
|
|
1825
|
+
const c = (M, w) => M ? w.label.includes(M) : !0, _ = B(!0), p = (M, w, D, U) => {
|
|
1811
1826
|
s("on-click", M, w, D, U);
|
|
1812
1827
|
}, N = async (M, w, D) => {
|
|
1813
1828
|
if (M.level === 0) {
|
|
@@ -1825,7 +1840,7 @@ const fa = { class: "bsgoal-base-tree" }, va = { class: "base_tree" }, ha = { cl
|
|
|
1825
1840
|
Q(k("div", ha, [
|
|
1826
1841
|
$(D, {
|
|
1827
1842
|
modelValue: r.value,
|
|
1828
|
-
"onUpdate:modelValue": w[0] || (w[0] = (
|
|
1843
|
+
"onUpdate:modelValue": w[0] || (w[0] = (E) => r.value = E),
|
|
1829
1844
|
class: "base_tree_main_input",
|
|
1830
1845
|
placeholder: "输入关键字过滤"
|
|
1831
1846
|
}, null, 8, ["modelValue"]),
|
|
@@ -1835,11 +1850,11 @@ const fa = { class: "bsgoal-base-tree" }, va = { class: "base_tree" }, ha = { cl
|
|
|
1835
1850
|
lazy: "",
|
|
1836
1851
|
"highlight-current": "",
|
|
1837
1852
|
"empty-text": "暂无数据",
|
|
1838
|
-
load: (
|
|
1853
|
+
load: (E, b) => N(E, b, l),
|
|
1839
1854
|
"expand-on-click-node": !1,
|
|
1840
1855
|
props: e.treeProps,
|
|
1841
1856
|
"filter-node-method": c,
|
|
1842
|
-
onNodeClick:
|
|
1857
|
+
onNodeClick: p
|
|
1843
1858
|
}, null, 8, ["load", "props"])
|
|
1844
1859
|
], 512), [
|
|
1845
1860
|
[ae, _.value]
|
|
@@ -1849,7 +1864,7 @@ const fa = { class: "bsgoal-base-tree" }, va = { class: "base_tree" }, ha = { cl
|
|
|
1849
1864
|
]),
|
|
1850
1865
|
$(ga, {
|
|
1851
1866
|
modelValue: _.value,
|
|
1852
|
-
"onUpdate:modelValue": w[1] || (w[1] = (
|
|
1867
|
+
"onUpdate:modelValue": w[1] || (w[1] = (E) => _.value = E)
|
|
1853
1868
|
}, null, 8, ["modelValue"])
|
|
1854
1869
|
])), [
|
|
1855
1870
|
[u(i), e.gasket]
|
|
@@ -1929,10 +1944,10 @@ const ba = { class: "bsgoal-base-dialog" }, ya = { class: "base_dialog" }, Ta =
|
|
|
1929
1944
|
s("update:modelValue", _);
|
|
1930
1945
|
});
|
|
1931
1946
|
const c = q(() => {
|
|
1932
|
-
const { width: _, size:
|
|
1947
|
+
const { width: _, size: p } = l;
|
|
1933
1948
|
if (_)
|
|
1934
1949
|
return _;
|
|
1935
|
-
switch (
|
|
1950
|
+
switch (p) {
|
|
1936
1951
|
case "small":
|
|
1937
1952
|
return "480px";
|
|
1938
1953
|
case "medium":
|
|
@@ -1947,13 +1962,13 @@ const ba = { class: "bsgoal-base-dialog" }, ya = { class: "base_dialog" }, Ta =
|
|
|
1947
1962
|
return _;
|
|
1948
1963
|
}
|
|
1949
1964
|
});
|
|
1950
|
-
return (_,
|
|
1965
|
+
return (_, p) => {
|
|
1951
1966
|
const N = v("el-button"), M = v("el-dialog");
|
|
1952
1967
|
return n(), A("div", ba, [
|
|
1953
1968
|
k("div", ya, [
|
|
1954
1969
|
$(M, {
|
|
1955
1970
|
modelValue: i.value,
|
|
1956
|
-
"onUpdate:modelValue":
|
|
1971
|
+
"onUpdate:modelValue": p[0] || (p[0] = (w) => i.value = w),
|
|
1957
1972
|
"custom-class": "bsgoal_base_dialog_main",
|
|
1958
1973
|
width: u(c)
|
|
1959
1974
|
}, {
|
|
@@ -2044,13 +2059,13 @@ const Ma = { class: "bsgoal-base-tabs" }, xa = {
|
|
|
2044
2059
|
onTabChange: l
|
|
2045
2060
|
}, {
|
|
2046
2061
|
default: V(() => [
|
|
2047
|
-
(n(!0), A(z, null, W(e.configOptions, ({ label: _, value:
|
|
2062
|
+
(n(!0), A(z, null, W(e.configOptions, ({ label: _, value: p }, N) => (n(), T(a, {
|
|
2048
2063
|
key: N,
|
|
2049
2064
|
label: _,
|
|
2050
|
-
name:
|
|
2065
|
+
name: p
|
|
2051
2066
|
}, {
|
|
2052
2067
|
default: V(() => [
|
|
2053
|
-
ne(i.$slots,
|
|
2068
|
+
ne(i.$slots, p, {}, () => [
|
|
2054
2069
|
X(H(_), 1)
|
|
2055
2070
|
])
|
|
2056
2071
|
]),
|