@juzhenfe/page-model 3.13.3 → 3.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/table/components/table-column/components/filter-zone/index.vue.d.ts +72 -0
- package/dist/components/table/components/table-column/index.vue.d.ts +281 -0
- package/dist/components/table/constructor.d.ts +16 -0
- package/dist/components/table/type.d.ts +12 -0
- package/dist/components/table/utils/save-column-filter.d.ts +2 -0
- package/dist/components/table-toolsbox/index.vue.d.ts +25 -1
- package/dist/index.es.js +296 -212
- package/dist/index.min.css +1 -1
- package/dist/index.umd.js +3 -3
- package/dist/types/common.d.ts +19 -17
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -181,7 +181,7 @@ const randomStr = (len = 16) => {
|
|
|
181
181
|
return RANDOM_RANGE[Math.floor(Math.random() * RANDOM_RANGE_LENGTH)];
|
|
182
182
|
}).join("");
|
|
183
183
|
};
|
|
184
|
-
const _hoisted_1$
|
|
184
|
+
const _hoisted_1$z = { class: "scenes-tab" };
|
|
185
185
|
const __default__$o = {
|
|
186
186
|
name: "ScenesTab"
|
|
187
187
|
};
|
|
@@ -195,7 +195,7 @@ const _sfc_main$_ = defineComponent({
|
|
|
195
195
|
getValue: getValue2
|
|
196
196
|
});
|
|
197
197
|
return (_ctx, _cache) => {
|
|
198
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
198
|
+
return openBlock(), createElementBlock("div", _hoisted_1$z);
|
|
199
199
|
};
|
|
200
200
|
}
|
|
201
201
|
});
|
|
@@ -2309,140 +2309,140 @@ var _export_sfc$1 = (sfc, props) => {
|
|
|
2309
2309
|
const _sfc_main$X = defineComponent({
|
|
2310
2310
|
name: "ArrowDownBold"
|
|
2311
2311
|
});
|
|
2312
|
-
const _hoisted_1$
|
|
2312
|
+
const _hoisted_1$y = {
|
|
2313
2313
|
class: "icon",
|
|
2314
2314
|
width: "200",
|
|
2315
2315
|
height: "200",
|
|
2316
2316
|
viewBox: "0 0 1024 1024",
|
|
2317
2317
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2318
2318
|
};
|
|
2319
|
-
const _hoisted_2$
|
|
2319
|
+
const _hoisted_2$r = /* @__PURE__ */ createElementVNode("path", {
|
|
2320
2320
|
fill: "currentColor",
|
|
2321
2321
|
d: "M104.704 338.752a64 64 0 0190.496 0l316.8 316.8 316.8-316.8a64 64 0 0190.496 90.496L557.248 791.296a64 64 0 01-90.496 0L104.704 429.248a64 64 0 010-90.496z"
|
|
2322
2322
|
}, null, -1);
|
|
2323
2323
|
const _hoisted_3$o = [
|
|
2324
|
-
_hoisted_2$
|
|
2324
|
+
_hoisted_2$r
|
|
2325
2325
|
];
|
|
2326
2326
|
function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2327
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2327
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$y, _hoisted_3$o);
|
|
2328
2328
|
}
|
|
2329
2329
|
var arrowDownBold = /* @__PURE__ */ _export_sfc$1(_sfc_main$X, [["render", _sfc_render$j]]);
|
|
2330
2330
|
const _sfc_main$W = defineComponent({
|
|
2331
2331
|
name: "ArrowDown"
|
|
2332
2332
|
});
|
|
2333
|
-
const _hoisted_1$
|
|
2333
|
+
const _hoisted_1$x = {
|
|
2334
2334
|
class: "icon",
|
|
2335
2335
|
width: "200",
|
|
2336
2336
|
height: "200",
|
|
2337
2337
|
viewBox: "0 0 1024 1024",
|
|
2338
2338
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2339
2339
|
};
|
|
2340
|
-
const _hoisted_2$
|
|
2340
|
+
const _hoisted_2$q = /* @__PURE__ */ createElementVNode("path", {
|
|
2341
2341
|
fill: "currentColor",
|
|
2342
2342
|
d: "M831.872 340.864L512 652.672 192.128 340.864a30.592 30.592 0 00-42.752 0 29.12 29.12 0 000 41.6L489.664 714.24a32 32 0 0044.672 0l340.288-331.712a29.12 29.12 0 000-41.728 30.592 30.592 0 00-42.752 0z"
|
|
2343
2343
|
}, null, -1);
|
|
2344
2344
|
const _hoisted_3$n = [
|
|
2345
|
-
_hoisted_2$
|
|
2345
|
+
_hoisted_2$q
|
|
2346
2346
|
];
|
|
2347
2347
|
function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2348
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2348
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$x, _hoisted_3$n);
|
|
2349
2349
|
}
|
|
2350
2350
|
var arrowDown = /* @__PURE__ */ _export_sfc$1(_sfc_main$W, [["render", _sfc_render$i]]);
|
|
2351
2351
|
const _sfc_main$V = defineComponent({
|
|
2352
2352
|
name: "CaretBottom"
|
|
2353
2353
|
});
|
|
2354
|
-
const _hoisted_1$
|
|
2354
|
+
const _hoisted_1$w = {
|
|
2355
2355
|
class: "icon",
|
|
2356
2356
|
width: "200",
|
|
2357
2357
|
height: "200",
|
|
2358
2358
|
viewBox: "0 0 1024 1024",
|
|
2359
2359
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2360
2360
|
};
|
|
2361
|
-
const _hoisted_2$
|
|
2361
|
+
const _hoisted_2$p = /* @__PURE__ */ createElementVNode("path", {
|
|
2362
2362
|
fill: "currentColor",
|
|
2363
2363
|
d: "M192 384l320 384 320-384z"
|
|
2364
2364
|
}, null, -1);
|
|
2365
2365
|
const _hoisted_3$m = [
|
|
2366
|
-
_hoisted_2$
|
|
2366
|
+
_hoisted_2$p
|
|
2367
2367
|
];
|
|
2368
2368
|
function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2369
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2369
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$w, _hoisted_3$m);
|
|
2370
2370
|
}
|
|
2371
2371
|
var caretBottom = /* @__PURE__ */ _export_sfc$1(_sfc_main$V, [["render", _sfc_render$h]]);
|
|
2372
2372
|
const _sfc_main$U = defineComponent({
|
|
2373
2373
|
name: "CaretRight"
|
|
2374
2374
|
});
|
|
2375
|
-
const _hoisted_1$
|
|
2375
|
+
const _hoisted_1$v = {
|
|
2376
2376
|
class: "icon",
|
|
2377
2377
|
width: "200",
|
|
2378
2378
|
height: "200",
|
|
2379
2379
|
viewBox: "0 0 1024 1024",
|
|
2380
2380
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2381
2381
|
};
|
|
2382
|
-
const _hoisted_2$
|
|
2382
|
+
const _hoisted_2$o = /* @__PURE__ */ createElementVNode("path", {
|
|
2383
2383
|
fill: "currentColor",
|
|
2384
2384
|
d: "M384 192v640l384-320.064z"
|
|
2385
2385
|
}, null, -1);
|
|
2386
2386
|
const _hoisted_3$l = [
|
|
2387
|
-
_hoisted_2$
|
|
2387
|
+
_hoisted_2$o
|
|
2388
2388
|
];
|
|
2389
2389
|
function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2390
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2390
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$v, _hoisted_3$l);
|
|
2391
2391
|
}
|
|
2392
2392
|
var caretRight = /* @__PURE__ */ _export_sfc$1(_sfc_main$U, [["render", _sfc_render$g]]);
|
|
2393
2393
|
const _sfc_main$T = defineComponent({
|
|
2394
2394
|
name: "CaretTop"
|
|
2395
2395
|
});
|
|
2396
|
-
const _hoisted_1$
|
|
2396
|
+
const _hoisted_1$u = {
|
|
2397
2397
|
class: "icon",
|
|
2398
2398
|
width: "200",
|
|
2399
2399
|
height: "200",
|
|
2400
2400
|
viewBox: "0 0 1024 1024",
|
|
2401
2401
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2402
2402
|
};
|
|
2403
|
-
const _hoisted_2$
|
|
2403
|
+
const _hoisted_2$n = /* @__PURE__ */ createElementVNode("path", {
|
|
2404
2404
|
fill: "currentColor",
|
|
2405
2405
|
d: "M512 320L192 704h639.936z"
|
|
2406
2406
|
}, null, -1);
|
|
2407
2407
|
const _hoisted_3$k = [
|
|
2408
|
-
_hoisted_2$
|
|
2408
|
+
_hoisted_2$n
|
|
2409
2409
|
];
|
|
2410
2410
|
function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2411
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2411
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$u, _hoisted_3$k);
|
|
2412
2412
|
}
|
|
2413
2413
|
var caretTop = /* @__PURE__ */ _export_sfc$1(_sfc_main$T, [["render", _sfc_render$f]]);
|
|
2414
2414
|
const _sfc_main$S = defineComponent({
|
|
2415
2415
|
name: "CirclePlusFilled"
|
|
2416
2416
|
});
|
|
2417
|
-
const _hoisted_1$
|
|
2417
|
+
const _hoisted_1$t = {
|
|
2418
2418
|
class: "icon",
|
|
2419
2419
|
width: "200",
|
|
2420
2420
|
height: "200",
|
|
2421
2421
|
viewBox: "0 0 1024 1024",
|
|
2422
2422
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2423
2423
|
};
|
|
2424
|
-
const _hoisted_2$
|
|
2424
|
+
const _hoisted_2$m = /* @__PURE__ */ createElementVNode("path", {
|
|
2425
2425
|
fill: "currentColor",
|
|
2426
2426
|
d: "M512 64a448 448 0 110 896 448 448 0 010-896zm-38.4 409.6H326.4a38.4 38.4 0 100 76.8h147.2v147.2a38.4 38.4 0 0076.8 0V550.4h147.2a38.4 38.4 0 000-76.8H550.4V326.4a38.4 38.4 0 10-76.8 0v147.2z"
|
|
2427
2427
|
}, null, -1);
|
|
2428
2428
|
const _hoisted_3$j = [
|
|
2429
|
-
_hoisted_2$
|
|
2429
|
+
_hoisted_2$m
|
|
2430
2430
|
];
|
|
2431
2431
|
function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2432
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2432
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$t, _hoisted_3$j);
|
|
2433
2433
|
}
|
|
2434
2434
|
var circlePlusFilled = /* @__PURE__ */ _export_sfc$1(_sfc_main$S, [["render", _sfc_render$e]]);
|
|
2435
2435
|
const _sfc_main$R = defineComponent({
|
|
2436
2436
|
name: "CirclePlus"
|
|
2437
2437
|
});
|
|
2438
|
-
const _hoisted_1$
|
|
2438
|
+
const _hoisted_1$s = {
|
|
2439
2439
|
class: "icon",
|
|
2440
2440
|
width: "200",
|
|
2441
2441
|
height: "200",
|
|
2442
2442
|
viewBox: "0 0 1024 1024",
|
|
2443
2443
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2444
2444
|
};
|
|
2445
|
-
const _hoisted_2$
|
|
2445
|
+
const _hoisted_2$l = /* @__PURE__ */ createElementVNode("path", {
|
|
2446
2446
|
fill: "currentColor",
|
|
2447
2447
|
d: "M352 480h320a32 32 0 110 64H352a32 32 0 010-64z"
|
|
2448
2448
|
}, null, -1);
|
|
@@ -2455,46 +2455,46 @@ const _hoisted_4$7 = /* @__PURE__ */ createElementVNode("path", {
|
|
|
2455
2455
|
d: "M512 896a384 384 0 100-768 384 384 0 000 768zm0 64a448 448 0 110-896 448 448 0 010 896z"
|
|
2456
2456
|
}, null, -1);
|
|
2457
2457
|
const _hoisted_5$4 = [
|
|
2458
|
-
_hoisted_2$
|
|
2458
|
+
_hoisted_2$l,
|
|
2459
2459
|
_hoisted_3$i,
|
|
2460
2460
|
_hoisted_4$7
|
|
2461
2461
|
];
|
|
2462
2462
|
function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2463
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2463
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$s, _hoisted_5$4);
|
|
2464
2464
|
}
|
|
2465
2465
|
var circlePlus = /* @__PURE__ */ _export_sfc$1(_sfc_main$R, [["render", _sfc_render$d]]);
|
|
2466
2466
|
const _sfc_main$Q = defineComponent({
|
|
2467
2467
|
name: "Download"
|
|
2468
2468
|
});
|
|
2469
|
-
const _hoisted_1$
|
|
2469
|
+
const _hoisted_1$r = {
|
|
2470
2470
|
class: "icon",
|
|
2471
2471
|
width: "200",
|
|
2472
2472
|
height: "200",
|
|
2473
2473
|
viewBox: "0 0 1024 1024",
|
|
2474
2474
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2475
2475
|
};
|
|
2476
|
-
const _hoisted_2$
|
|
2476
|
+
const _hoisted_2$k = /* @__PURE__ */ createElementVNode("path", {
|
|
2477
2477
|
fill: "currentColor",
|
|
2478
2478
|
d: "M160 832h704a32 32 0 110 64H160a32 32 0 110-64zm384-253.696l236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64v450.304z"
|
|
2479
2479
|
}, null, -1);
|
|
2480
2480
|
const _hoisted_3$h = [
|
|
2481
|
-
_hoisted_2$
|
|
2481
|
+
_hoisted_2$k
|
|
2482
2482
|
];
|
|
2483
2483
|
function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2484
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2484
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$r, _hoisted_3$h);
|
|
2485
2485
|
}
|
|
2486
2486
|
var download = /* @__PURE__ */ _export_sfc$1(_sfc_main$Q, [["render", _sfc_render$c]]);
|
|
2487
2487
|
const _sfc_main$P = defineComponent({
|
|
2488
2488
|
name: "Edit"
|
|
2489
2489
|
});
|
|
2490
|
-
const _hoisted_1$
|
|
2490
|
+
const _hoisted_1$q = {
|
|
2491
2491
|
class: "icon",
|
|
2492
2492
|
width: "200",
|
|
2493
2493
|
height: "200",
|
|
2494
2494
|
viewBox: "0 0 1024 1024",
|
|
2495
2495
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2496
2496
|
};
|
|
2497
|
-
const _hoisted_2$
|
|
2497
|
+
const _hoisted_2$j = /* @__PURE__ */ createElementVNode("path", {
|
|
2498
2498
|
fill: "currentColor",
|
|
2499
2499
|
d: "M832 512a32 32 0 1164 0v352a32 32 0 01-32 32H160a32 32 0 01-32-32V160a32 32 0 0132-32h352a32 32 0 010 64H192v640h640V512z"
|
|
2500
2500
|
}, null, -1);
|
|
@@ -2503,192 +2503,192 @@ const _hoisted_3$g = /* @__PURE__ */ createElementVNode("path", {
|
|
|
2503
2503
|
d: "M469.952 554.24l52.8-7.552L847.104 222.4a32 32 0 10-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 010 135.808l-331.84 331.84a32 32 0 01-18.112 9.088L436.8 623.68a32 32 0 01-36.224-36.224l15.104-105.6a32 32 0 019.024-18.112l331.904-331.84a96 96 0 01135.744 0z"
|
|
2504
2504
|
}, null, -1);
|
|
2505
2505
|
const _hoisted_4$6 = [
|
|
2506
|
-
_hoisted_2$
|
|
2506
|
+
_hoisted_2$j,
|
|
2507
2507
|
_hoisted_3$g
|
|
2508
2508
|
];
|
|
2509
2509
|
function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2510
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2510
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$q, _hoisted_4$6);
|
|
2511
2511
|
}
|
|
2512
2512
|
var edit = /* @__PURE__ */ _export_sfc$1(_sfc_main$P, [["render", _sfc_render$b]]);
|
|
2513
2513
|
const _sfc_main$O = defineComponent({
|
|
2514
2514
|
name: "Filter"
|
|
2515
2515
|
});
|
|
2516
|
-
const _hoisted_1$
|
|
2516
|
+
const _hoisted_1$p = {
|
|
2517
2517
|
class: "icon",
|
|
2518
2518
|
width: "200",
|
|
2519
2519
|
height: "200",
|
|
2520
2520
|
viewBox: "0 0 1024 1024",
|
|
2521
2521
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2522
2522
|
};
|
|
2523
|
-
const _hoisted_2$
|
|
2523
|
+
const _hoisted_2$i = /* @__PURE__ */ createElementVNode("path", {
|
|
2524
2524
|
fill: "currentColor",
|
|
2525
2525
|
d: "M384 523.392V928a32 32 0 0046.336 28.608l192-96A32 32 0 00640 832V523.392l280.768-343.104a32 32 0 10-49.536-40.576l-288 352A32 32 0 00576 512v300.224l-128 64V512a32 32 0 00-7.232-20.288L195.52 192H704a32 32 0 100-64H128a32 32 0 00-24.768 52.288L384 523.392z"
|
|
2526
2526
|
}, null, -1);
|
|
2527
2527
|
const _hoisted_3$f = [
|
|
2528
|
-
_hoisted_2$
|
|
2528
|
+
_hoisted_2$i
|
|
2529
2529
|
];
|
|
2530
2530
|
function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2531
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2531
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$p, _hoisted_3$f);
|
|
2532
2532
|
}
|
|
2533
2533
|
var filter = /* @__PURE__ */ _export_sfc$1(_sfc_main$O, [["render", _sfc_render$a]]);
|
|
2534
2534
|
const _sfc_main$N = defineComponent({
|
|
2535
2535
|
name: "FullScreen"
|
|
2536
2536
|
});
|
|
2537
|
-
const _hoisted_1$
|
|
2537
|
+
const _hoisted_1$o = {
|
|
2538
2538
|
class: "icon",
|
|
2539
2539
|
width: "200",
|
|
2540
2540
|
height: "200",
|
|
2541
2541
|
viewBox: "0 0 1024 1024",
|
|
2542
2542
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2543
2543
|
};
|
|
2544
|
-
const _hoisted_2$
|
|
2544
|
+
const _hoisted_2$h = /* @__PURE__ */ createElementVNode("path", {
|
|
2545
2545
|
fill: "currentColor",
|
|
2546
2546
|
d: "M160 96.064l192 .192a32 32 0 010 64l-192-.192V352a32 32 0 01-64 0V96h64v.064zm0 831.872V928H96V672a32 32 0 1164 0v191.936l192-.192a32 32 0 110 64l-192 .192zM864 96.064V96h64v256a32 32 0 11-64 0V160.064l-192 .192a32 32 0 110-64l192-.192zm0 831.872l-192-.192a32 32 0 010-64l192 .192V672a32 32 0 1164 0v256h-64v-.064z"
|
|
2547
2547
|
}, null, -1);
|
|
2548
2548
|
const _hoisted_3$e = [
|
|
2549
|
-
_hoisted_2$
|
|
2549
|
+
_hoisted_2$h
|
|
2550
2550
|
];
|
|
2551
2551
|
function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2552
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2552
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$o, _hoisted_3$e);
|
|
2553
2553
|
}
|
|
2554
2554
|
var fullScreen = /* @__PURE__ */ _export_sfc$1(_sfc_main$N, [["render", _sfc_render$9]]);
|
|
2555
2555
|
const _sfc_main$M = defineComponent({
|
|
2556
2556
|
name: "Grid"
|
|
2557
2557
|
});
|
|
2558
|
-
const _hoisted_1$
|
|
2558
|
+
const _hoisted_1$n = {
|
|
2559
2559
|
class: "icon",
|
|
2560
2560
|
width: "200",
|
|
2561
2561
|
height: "200",
|
|
2562
2562
|
viewBox: "0 0 1024 1024",
|
|
2563
2563
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2564
2564
|
};
|
|
2565
|
-
const _hoisted_2$
|
|
2565
|
+
const _hoisted_2$g = /* @__PURE__ */ createElementVNode("path", {
|
|
2566
2566
|
fill: "currentColor",
|
|
2567
2567
|
d: "M640 384v256H384V384h256zm64 0h192v256H704V384zm-64 512H384V704h256v192zm64 0V704h192v192H704zm-64-768v192H384V128h256zm64 0h192v192H704V128zM320 384v256H128V384h192zm0 512H128V704h192v192zm0-768v192H128V128h192z"
|
|
2568
2568
|
}, null, -1);
|
|
2569
2569
|
const _hoisted_3$d = [
|
|
2570
|
-
_hoisted_2$
|
|
2570
|
+
_hoisted_2$g
|
|
2571
2571
|
];
|
|
2572
2572
|
function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2573
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2573
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$n, _hoisted_3$d);
|
|
2574
2574
|
}
|
|
2575
2575
|
var grid = /* @__PURE__ */ _export_sfc$1(_sfc_main$M, [["render", _sfc_render$8]]);
|
|
2576
2576
|
const _sfc_main$L = defineComponent({
|
|
2577
2577
|
name: "Loading"
|
|
2578
2578
|
});
|
|
2579
|
-
const _hoisted_1$
|
|
2579
|
+
const _hoisted_1$m = {
|
|
2580
2580
|
class: "icon",
|
|
2581
2581
|
width: "200",
|
|
2582
2582
|
height: "200",
|
|
2583
2583
|
viewBox: "0 0 1024 1024",
|
|
2584
2584
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2585
2585
|
};
|
|
2586
|
-
const _hoisted_2$
|
|
2586
|
+
const _hoisted_2$f = /* @__PURE__ */ createElementVNode("path", {
|
|
2587
2587
|
fill: "currentColor",
|
|
2588
2588
|
d: "M512 64a32 32 0 0132 32v192a32 32 0 01-64 0V96a32 32 0 0132-32zm0 640a32 32 0 0132 32v192a32 32 0 11-64 0V736a32 32 0 0132-32zm448-192a32 32 0 01-32 32H736a32 32 0 110-64h192a32 32 0 0132 32zm-640 0a32 32 0 01-32 32H96a32 32 0 010-64h192a32 32 0 0132 32zM195.2 195.2a32 32 0 0145.248 0L376.32 331.008a32 32 0 01-45.248 45.248L195.2 240.448a32 32 0 010-45.248zm452.544 452.544a32 32 0 0145.248 0L828.8 783.552a32 32 0 01-45.248 45.248L647.744 692.992a32 32 0 010-45.248zM828.8 195.264a32 32 0 010 45.184L692.992 376.32a32 32 0 01-45.248-45.248l135.808-135.808a32 32 0 0145.248 0zm-452.544 452.48a32 32 0 010 45.248L240.448 828.8a32 32 0 01-45.248-45.248l135.808-135.808a32 32 0 0145.248 0z"
|
|
2589
2589
|
}, null, -1);
|
|
2590
2590
|
const _hoisted_3$c = [
|
|
2591
|
-
_hoisted_2$
|
|
2591
|
+
_hoisted_2$f
|
|
2592
2592
|
];
|
|
2593
2593
|
function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2594
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2594
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$m, _hoisted_3$c);
|
|
2595
2595
|
}
|
|
2596
2596
|
var loading = /* @__PURE__ */ _export_sfc$1(_sfc_main$L, [["render", _sfc_render$7]]);
|
|
2597
2597
|
const _sfc_main$K = defineComponent({
|
|
2598
2598
|
name: "Menu"
|
|
2599
2599
|
});
|
|
2600
|
-
const _hoisted_1$
|
|
2600
|
+
const _hoisted_1$l = {
|
|
2601
2601
|
class: "icon",
|
|
2602
2602
|
width: "200",
|
|
2603
2603
|
height: "200",
|
|
2604
2604
|
viewBox: "0 0 1024 1024",
|
|
2605
2605
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2606
2606
|
};
|
|
2607
|
-
const _hoisted_2$
|
|
2607
|
+
const _hoisted_2$e = /* @__PURE__ */ createElementVNode("path", {
|
|
2608
2608
|
fill: "currentColor",
|
|
2609
2609
|
d: "M160 448a32 32 0 01-32-32V160.064a32 32 0 0132-32h256a32 32 0 0132 32V416a32 32 0 01-32 32H160zm448 0a32 32 0 01-32-32V160.064a32 32 0 0132-32h255.936a32 32 0 0132 32V416a32 32 0 01-32 32H608zM160 896a32 32 0 01-32-32V608a32 32 0 0132-32h256a32 32 0 0132 32v256a32 32 0 01-32 32H160zm448 0a32 32 0 01-32-32V608a32 32 0 0132-32h255.936a32 32 0 0132 32v256a32 32 0 01-32 32H608z"
|
|
2610
2610
|
}, null, -1);
|
|
2611
2611
|
const _hoisted_3$b = [
|
|
2612
|
-
_hoisted_2$
|
|
2612
|
+
_hoisted_2$e
|
|
2613
2613
|
];
|
|
2614
2614
|
function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2615
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2615
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$l, _hoisted_3$b);
|
|
2616
2616
|
}
|
|
2617
2617
|
var menu = /* @__PURE__ */ _export_sfc$1(_sfc_main$K, [["render", _sfc_render$6]]);
|
|
2618
2618
|
const _sfc_main$J = defineComponent({
|
|
2619
2619
|
name: "QuestionFilled"
|
|
2620
2620
|
});
|
|
2621
|
-
const _hoisted_1$
|
|
2621
|
+
const _hoisted_1$k = {
|
|
2622
2622
|
class: "icon",
|
|
2623
2623
|
width: "200",
|
|
2624
2624
|
height: "200",
|
|
2625
2625
|
viewBox: "0 0 1024 1024",
|
|
2626
2626
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2627
2627
|
};
|
|
2628
|
-
const _hoisted_2$
|
|
2628
|
+
const _hoisted_2$d = /* @__PURE__ */ createElementVNode("path", {
|
|
2629
2629
|
fill: "currentColor",
|
|
2630
2630
|
d: "M512 64a448 448 0 110 896 448 448 0 010-896zm23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 00-38.72 14.784 49.408 49.408 0 00-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 00523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0016.192-38.72 51.968 51.968 0 00-15.488-38.016 55.936 55.936 0 00-39.424-14.784z"
|
|
2631
2631
|
}, null, -1);
|
|
2632
2632
|
const _hoisted_3$a = [
|
|
2633
|
-
_hoisted_2$
|
|
2633
|
+
_hoisted_2$d
|
|
2634
2634
|
];
|
|
2635
2635
|
function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2636
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2636
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$k, _hoisted_3$a);
|
|
2637
2637
|
}
|
|
2638
2638
|
var questionFilled = /* @__PURE__ */ _export_sfc$1(_sfc_main$J, [["render", _sfc_render$5]]);
|
|
2639
2639
|
const _sfc_main$I = defineComponent({
|
|
2640
2640
|
name: "RefreshLeft"
|
|
2641
2641
|
});
|
|
2642
|
-
const _hoisted_1$
|
|
2642
|
+
const _hoisted_1$j = {
|
|
2643
2643
|
class: "icon",
|
|
2644
2644
|
width: "200",
|
|
2645
2645
|
height: "200",
|
|
2646
2646
|
viewBox: "0 0 1024 1024",
|
|
2647
2647
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2648
2648
|
};
|
|
2649
|
-
const _hoisted_2$
|
|
2649
|
+
const _hoisted_2$c = /* @__PURE__ */ createElementVNode("path", {
|
|
2650
2650
|
fill: "currentColor",
|
|
2651
2651
|
d: "M289.088 296.704h92.992a32 32 0 010 64H232.96a32 32 0 01-32-32V179.712a32 32 0 0164 0v50.56a384 384 0 01643.84 282.88 384 384 0 01-383.936 384 384 384 0 01-384-384h64a320 320 0 10640 0 320 320 0 00-555.712-216.448z"
|
|
2652
2652
|
}, null, -1);
|
|
2653
2653
|
const _hoisted_3$9 = [
|
|
2654
|
-
_hoisted_2$
|
|
2654
|
+
_hoisted_2$c
|
|
2655
2655
|
];
|
|
2656
2656
|
function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2657
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2657
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$j, _hoisted_3$9);
|
|
2658
2658
|
}
|
|
2659
2659
|
var refreshLeft = /* @__PURE__ */ _export_sfc$1(_sfc_main$I, [["render", _sfc_render$4]]);
|
|
2660
2660
|
const _sfc_main$H = defineComponent({
|
|
2661
2661
|
name: "RemoveFilled"
|
|
2662
2662
|
});
|
|
2663
|
-
const _hoisted_1$
|
|
2663
|
+
const _hoisted_1$i = {
|
|
2664
2664
|
class: "icon",
|
|
2665
2665
|
width: "200",
|
|
2666
2666
|
height: "200",
|
|
2667
2667
|
viewBox: "0 0 1024 1024",
|
|
2668
2668
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2669
2669
|
};
|
|
2670
|
-
const _hoisted_2$
|
|
2670
|
+
const _hoisted_2$b = /* @__PURE__ */ createElementVNode("path", {
|
|
2671
2671
|
fill: "currentColor",
|
|
2672
2672
|
d: "M512 64a448 448 0 110 896 448 448 0 010-896zM288 512a38.4 38.4 0 0038.4 38.4h371.2a38.4 38.4 0 000-76.8H326.4A38.4 38.4 0 00288 512z"
|
|
2673
2673
|
}, null, -1);
|
|
2674
2674
|
const _hoisted_3$8 = [
|
|
2675
|
-
_hoisted_2$
|
|
2675
|
+
_hoisted_2$b
|
|
2676
2676
|
];
|
|
2677
2677
|
function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2678
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2678
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$i, _hoisted_3$8);
|
|
2679
2679
|
}
|
|
2680
2680
|
var removeFilled = /* @__PURE__ */ _export_sfc$1(_sfc_main$H, [["render", _sfc_render$3]]);
|
|
2681
2681
|
const _sfc_main$G = defineComponent({
|
|
2682
2682
|
name: "Remove"
|
|
2683
2683
|
});
|
|
2684
|
-
const _hoisted_1$
|
|
2684
|
+
const _hoisted_1$h = {
|
|
2685
2685
|
class: "icon",
|
|
2686
2686
|
width: "200",
|
|
2687
2687
|
height: "200",
|
|
2688
2688
|
viewBox: "0 0 1024 1024",
|
|
2689
2689
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2690
2690
|
};
|
|
2691
|
-
const _hoisted_2$
|
|
2691
|
+
const _hoisted_2$a = /* @__PURE__ */ createElementVNode("path", {
|
|
2692
2692
|
fill: "currentColor",
|
|
2693
2693
|
d: "M352 480h320a32 32 0 110 64H352a32 32 0 010-64z"
|
|
2694
2694
|
}, null, -1);
|
|
@@ -2697,53 +2697,53 @@ const _hoisted_3$7 = /* @__PURE__ */ createElementVNode("path", {
|
|
|
2697
2697
|
d: "M512 896a384 384 0 100-768 384 384 0 000 768zm0 64a448 448 0 110-896 448 448 0 010 896z"
|
|
2698
2698
|
}, null, -1);
|
|
2699
2699
|
const _hoisted_4$5 = [
|
|
2700
|
-
_hoisted_2$
|
|
2700
|
+
_hoisted_2$a,
|
|
2701
2701
|
_hoisted_3$7
|
|
2702
2702
|
];
|
|
2703
2703
|
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2704
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2704
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$h, _hoisted_4$5);
|
|
2705
2705
|
}
|
|
2706
2706
|
var remove = /* @__PURE__ */ _export_sfc$1(_sfc_main$G, [["render", _sfc_render$2]]);
|
|
2707
2707
|
const _sfc_main$F = defineComponent({
|
|
2708
2708
|
name: "Select"
|
|
2709
2709
|
});
|
|
2710
|
-
const _hoisted_1$
|
|
2710
|
+
const _hoisted_1$g = {
|
|
2711
2711
|
class: "icon",
|
|
2712
2712
|
width: "200",
|
|
2713
2713
|
height: "200",
|
|
2714
2714
|
viewBox: "0 0 1024 1024",
|
|
2715
2715
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2716
2716
|
};
|
|
2717
|
-
const _hoisted_2$
|
|
2717
|
+
const _hoisted_2$9 = /* @__PURE__ */ createElementVNode("path", {
|
|
2718
2718
|
fill: "currentColor",
|
|
2719
2719
|
d: "M77.248 415.04a64 64 0 0190.496 0l226.304 226.304L846.528 188.8a64 64 0 1190.56 90.496l-543.04 543.04-316.8-316.8a64 64 0 010-90.496z"
|
|
2720
2720
|
}, null, -1);
|
|
2721
2721
|
const _hoisted_3$6 = [
|
|
2722
|
-
_hoisted_2$
|
|
2722
|
+
_hoisted_2$9
|
|
2723
2723
|
];
|
|
2724
2724
|
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2725
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2725
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$g, _hoisted_3$6);
|
|
2726
2726
|
}
|
|
2727
2727
|
var select = /* @__PURE__ */ _export_sfc$1(_sfc_main$F, [["render", _sfc_render$1]]);
|
|
2728
2728
|
const _sfc_main$E = defineComponent({
|
|
2729
2729
|
name: "Tools"
|
|
2730
2730
|
});
|
|
2731
|
-
const _hoisted_1$
|
|
2731
|
+
const _hoisted_1$f = {
|
|
2732
2732
|
class: "icon",
|
|
2733
2733
|
width: "200",
|
|
2734
2734
|
height: "200",
|
|
2735
2735
|
viewBox: "0 0 1024 1024",
|
|
2736
2736
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2737
2737
|
};
|
|
2738
|
-
const _hoisted_2$
|
|
2738
|
+
const _hoisted_2$8 = /* @__PURE__ */ createElementVNode("path", {
|
|
2739
2739
|
fill: "currentColor",
|
|
2740
2740
|
d: "M764.416 254.72a351.68 351.68 0 0186.336 149.184H960v192.064H850.752a351.68 351.68 0 01-86.336 149.312l54.72 94.72-166.272 96-54.592-94.72a352.64 352.64 0 01-172.48 0L371.136 936l-166.272-96 54.72-94.72a351.68 351.68 0 01-86.336-149.312H64v-192h109.248a351.68 351.68 0 0186.336-149.312L204.8 160l166.208-96h.192l54.656 94.592a352.64 352.64 0 01172.48 0L652.8 64h.128L819.2 160l-54.72 94.72zM704 499.968a192 192 0 10-384 0 192 192 0 00384 0z"
|
|
2741
2741
|
}, null, -1);
|
|
2742
2742
|
const _hoisted_3$5 = [
|
|
2743
|
-
_hoisted_2$
|
|
2743
|
+
_hoisted_2$8
|
|
2744
2744
|
];
|
|
2745
2745
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2746
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2746
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$f, _hoisted_3$5);
|
|
2747
2747
|
}
|
|
2748
2748
|
var tools = /* @__PURE__ */ _export_sfc$1(_sfc_main$E, [["render", _sfc_render]]);
|
|
2749
2749
|
const formManagerProvideKey = Symbol("form-manager");
|
|
@@ -2972,6 +2972,15 @@ const _sfc_main$C = defineComponent({
|
|
|
2972
2972
|
};
|
|
2973
2973
|
}
|
|
2974
2974
|
});
|
|
2975
|
+
var index_vue_vue_type_style_index_0_scoped_true_lang$8 = "";
|
|
2976
|
+
var _export_sfc = (sfc, props) => {
|
|
2977
|
+
const target = sfc.__vccOpts || sfc;
|
|
2978
|
+
for (const [key, val] of props) {
|
|
2979
|
+
target[key] = val;
|
|
2980
|
+
}
|
|
2981
|
+
return target;
|
|
2982
|
+
};
|
|
2983
|
+
const _hoisted_1$e = { class: "selectable-operate" };
|
|
2975
2984
|
const __default__$k = {
|
|
2976
2985
|
name: "SelectableOpearte",
|
|
2977
2986
|
inheritAttrs: false
|
|
@@ -2990,14 +2999,17 @@ const _sfc_main$B = defineComponent({
|
|
|
2990
2999
|
return ((_a = props.tableManager) == null ? void 0 : _a.selection) || [];
|
|
2991
3000
|
});
|
|
2992
3001
|
return (_ctx, _cache) => {
|
|
2993
|
-
return openBlock(),
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
3002
|
+
return openBlock(), createElementBlock("div", _hoisted_1$e, [
|
|
3003
|
+
createVNode(_sfc_main$C, mergeProps({
|
|
3004
|
+
els: props.els,
|
|
3005
|
+
"execute-data": [executeData.value],
|
|
3006
|
+
context: props.manager
|
|
3007
|
+
}, _ctx.$attrs), null, 16, ["els", "execute-data", "context"])
|
|
3008
|
+
]);
|
|
2998
3009
|
};
|
|
2999
3010
|
}
|
|
3000
3011
|
});
|
|
3012
|
+
var SelectableOperate = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-4e4544c2"]]);
|
|
3001
3013
|
class SearchFormManager extends IManager {
|
|
3002
3014
|
constructor(form) {
|
|
3003
3015
|
super();
|
|
@@ -4376,6 +4388,81 @@ const _sfc_main$x = defineComponent({
|
|
|
4376
4388
|
};
|
|
4377
4389
|
}
|
|
4378
4390
|
});
|
|
4391
|
+
class ConfigSaver {
|
|
4392
|
+
constructor(scope) {
|
|
4393
|
+
__publicField(this, "scope");
|
|
4394
|
+
this.scope = scope;
|
|
4395
|
+
}
|
|
4396
|
+
getContents() {
|
|
4397
|
+
let value = localStorage.getItem(this.scope);
|
|
4398
|
+
try {
|
|
4399
|
+
return value ? JSON.parse(value) : null;
|
|
4400
|
+
} catch (error) {
|
|
4401
|
+
return null;
|
|
4402
|
+
}
|
|
4403
|
+
}
|
|
4404
|
+
setContents(val) {
|
|
4405
|
+
let saveVal = val;
|
|
4406
|
+
if (typeof val !== "string") {
|
|
4407
|
+
saveVal = JSON.stringify(val);
|
|
4408
|
+
}
|
|
4409
|
+
localStorage.setItem(this.scope, saveVal);
|
|
4410
|
+
}
|
|
4411
|
+
getCharCode(str) {
|
|
4412
|
+
return str ? str.split("").reduce((memo, word) => {
|
|
4413
|
+
return memo += word.charCodeAt(0);
|
|
4414
|
+
}, 0) : 0;
|
|
4415
|
+
}
|
|
4416
|
+
genScopeItemKey(els) {
|
|
4417
|
+
const code = els.map((a, index2) => {
|
|
4418
|
+
var _a, _b;
|
|
4419
|
+
const label = (_a = a.label) != null ? _a : "";
|
|
4420
|
+
const prop = (_b = a.prop) != null ? _b : "";
|
|
4421
|
+
return this.getCharCode(label) + this.getCharCode(prop) + index2;
|
|
4422
|
+
}).reduce((memo, num) => {
|
|
4423
|
+
return memo += num;
|
|
4424
|
+
}, 0);
|
|
4425
|
+
return `key-${code}`;
|
|
4426
|
+
}
|
|
4427
|
+
saveContentItem(els, val) {
|
|
4428
|
+
let result = this.getContents();
|
|
4429
|
+
const key = this.genScopeItemKey(els);
|
|
4430
|
+
if (!result) {
|
|
4431
|
+
result = {};
|
|
4432
|
+
}
|
|
4433
|
+
result[key] = val;
|
|
4434
|
+
this.setContents(result);
|
|
4435
|
+
return key;
|
|
4436
|
+
}
|
|
4437
|
+
getContentItem(els, withKey = false) {
|
|
4438
|
+
let result = this.getContents();
|
|
4439
|
+
if (!result) {
|
|
4440
|
+
if (withKey) {
|
|
4441
|
+
return {
|
|
4442
|
+
scope: null,
|
|
4443
|
+
content: null
|
|
4444
|
+
};
|
|
4445
|
+
} else {
|
|
4446
|
+
return null;
|
|
4447
|
+
}
|
|
4448
|
+
} else {
|
|
4449
|
+
const scope = this.genScopeItemKey(els);
|
|
4450
|
+
const content = result[scope];
|
|
4451
|
+
if (withKey) {
|
|
4452
|
+
return {
|
|
4453
|
+
scope,
|
|
4454
|
+
content
|
|
4455
|
+
};
|
|
4456
|
+
} else {
|
|
4457
|
+
return content;
|
|
4458
|
+
}
|
|
4459
|
+
}
|
|
4460
|
+
}
|
|
4461
|
+
}
|
|
4462
|
+
const SAVE_NAME$4 = "table-column-filters";
|
|
4463
|
+
const configSaver$2 = new ConfigSaver(SAVE_NAME$4);
|
|
4464
|
+
const saveColumnFilters = configSaver$2.saveContentItem.bind(configSaver$2);
|
|
4465
|
+
const getColumnFilters = configSaver$2.getContentItem.bind(configSaver$2);
|
|
4379
4466
|
const DEFAULT_PAGINATION_CONFIG = {
|
|
4380
4467
|
show: true,
|
|
4381
4468
|
pageSizes: [10, 15, 20, 30, 40, 50, 70, 100, 150, 200, 500, 1e3, 2e3, 5e3],
|
|
@@ -4413,6 +4500,7 @@ class TableManager extends IManager {
|
|
|
4413
4500
|
__publicField(this, "currentPageSelection", []);
|
|
4414
4501
|
__publicField(this, "sortOrders", ["ascending", "descending", null]);
|
|
4415
4502
|
__publicField(this, "sortParams", {});
|
|
4503
|
+
__publicField(this, "isInitColumnParams", false);
|
|
4416
4504
|
__publicField(this, "randomRowKey", null);
|
|
4417
4505
|
__publicField(this, "columnParamsList", []);
|
|
4418
4506
|
__publicField(this, "totalEls", []);
|
|
@@ -4429,6 +4517,17 @@ class TableManager extends IManager {
|
|
|
4429
4517
|
this.propsConfig = config;
|
|
4430
4518
|
this.init();
|
|
4431
4519
|
}
|
|
4520
|
+
initColumnParams() {
|
|
4521
|
+
if (!this.table.saveFilter) {
|
|
4522
|
+
return false;
|
|
4523
|
+
}
|
|
4524
|
+
if (this.isInitColumnParams) {
|
|
4525
|
+
return false;
|
|
4526
|
+
}
|
|
4527
|
+
const params = getColumnFilters(this.table.els);
|
|
4528
|
+
this.columnParamsList = params;
|
|
4529
|
+
this.isInitColumnParams = true;
|
|
4530
|
+
}
|
|
4432
4531
|
get table() {
|
|
4433
4532
|
var _a;
|
|
4434
4533
|
return ((_a = this.config) == null ? void 0 : _a.table) || this.propsConfig || {
|
|
@@ -4470,6 +4569,9 @@ class TableManager extends IManager {
|
|
|
4470
4569
|
return memo;
|
|
4471
4570
|
}, {});
|
|
4472
4571
|
}
|
|
4572
|
+
get isColumnSearch() {
|
|
4573
|
+
return this.table.els.some((a) => a.filterable && a.filters);
|
|
4574
|
+
}
|
|
4473
4575
|
getColumnParams() {
|
|
4474
4576
|
if (typeof this.table.columnParamsProcessFn === "function") {
|
|
4475
4577
|
const processResult = this.table.columnParamsProcessFn.call(this, this.columnParamsList);
|
|
@@ -4480,7 +4582,9 @@ class TableManager extends IManager {
|
|
|
4480
4582
|
return {};
|
|
4481
4583
|
}
|
|
4482
4584
|
} else {
|
|
4483
|
-
|
|
4585
|
+
if (this.isColumnSearch) {
|
|
4586
|
+
console.warn("\u8BF7\u5728\u8868\u683C\u914D\u7F6E\u4E2D\u914D\u7F6EcolumnParamsProcessFn\u51FD\u6570");
|
|
4587
|
+
}
|
|
4484
4588
|
return {};
|
|
4485
4589
|
}
|
|
4486
4590
|
}
|
|
@@ -4495,6 +4599,7 @@ class TableManager extends IManager {
|
|
|
4495
4599
|
this.updatePagination();
|
|
4496
4600
|
this.updateProps();
|
|
4497
4601
|
this.updateEvents();
|
|
4602
|
+
this.initColumnParams();
|
|
4498
4603
|
}
|
|
4499
4604
|
updateTotalEls() {
|
|
4500
4605
|
const els = this.table.els;
|
|
@@ -5055,6 +5160,9 @@ class TableManager extends IManager {
|
|
|
5055
5160
|
updateCurrentRenderTableEls(els) {
|
|
5056
5161
|
this.currentRenderTableEls = els;
|
|
5057
5162
|
}
|
|
5163
|
+
get hiddeenFieldCount() {
|
|
5164
|
+
return this.table.els.length - this.currentRenderTableEls.length;
|
|
5165
|
+
}
|
|
5058
5166
|
updateInnerFilters(filters) {
|
|
5059
5167
|
this.innerFilters = filters;
|
|
5060
5168
|
}
|
|
@@ -5131,13 +5239,6 @@ const _sfc_main$w = defineComponent({
|
|
|
5131
5239
|
}
|
|
5132
5240
|
});
|
|
5133
5241
|
var index_vue_vue_type_style_index_0_scoped_true_lang$7 = "";
|
|
5134
|
-
var _export_sfc = (sfc, props) => {
|
|
5135
|
-
const target = sfc.__vccOpts || sfc;
|
|
5136
|
-
for (const [key, val] of props) {
|
|
5137
|
-
target[key] = val;
|
|
5138
|
-
}
|
|
5139
|
-
return target;
|
|
5140
|
-
};
|
|
5141
5242
|
const __default__$i = {
|
|
5142
5243
|
name: "SimplePopover"
|
|
5143
5244
|
};
|
|
@@ -5387,12 +5488,13 @@ const _sfc_main$u = defineComponent({
|
|
|
5387
5488
|
};
|
|
5388
5489
|
const show = (column) => {
|
|
5389
5490
|
var _a;
|
|
5491
|
+
const filters = column.filters;
|
|
5390
5492
|
currentColumn.value = {
|
|
5391
|
-
filterMultiple:
|
|
5493
|
+
filterMultiple: filters.filterMultiple,
|
|
5392
5494
|
prop: column.prop,
|
|
5393
|
-
filterType:
|
|
5394
|
-
filterLabel:
|
|
5395
|
-
filterOptions:
|
|
5495
|
+
filterType: filters.filterType || FilterItemTypeEnum$1.\u6587\u5B57,
|
|
5496
|
+
filterLabel: filters.filterLabel,
|
|
5497
|
+
filterOptions: filters.filterOptions ? jsonClone(filters.filterOptions) : []
|
|
5396
5498
|
};
|
|
5397
5499
|
hasCompare.value = [
|
|
5398
5500
|
FilterItemTypeEnum$1["\u6587\u5B57"],
|
|
@@ -5736,10 +5838,10 @@ const _sfc_main$u = defineComponent({
|
|
|
5736
5838
|
};
|
|
5737
5839
|
}
|
|
5738
5840
|
});
|
|
5739
|
-
var FilterZone$1 = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-
|
|
5841
|
+
var FilterZone$1 = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-1bc1589a"]]);
|
|
5740
5842
|
var index_vue_vue_type_style_index_0_lang$7 = "";
|
|
5741
|
-
const _hoisted_1$b = ["data-key"];
|
|
5742
|
-
const _hoisted_2$
|
|
5843
|
+
const _hoisted_1$b = ["data-key", "title"];
|
|
5844
|
+
const _hoisted_2$7 = {
|
|
5743
5845
|
key: 0,
|
|
5744
5846
|
style: { "color": "red" }
|
|
5745
5847
|
};
|
|
@@ -5886,11 +5988,14 @@ const _sfc_main$t = defineComponent({
|
|
|
5886
5988
|
createElementVNode("div", {
|
|
5887
5989
|
class: normalizeClass([
|
|
5888
5990
|
"el-table__header-cell",
|
|
5889
|
-
{
|
|
5991
|
+
{
|
|
5992
|
+
dragable: tableManager.value.table.dragable
|
|
5993
|
+
}
|
|
5890
5994
|
]),
|
|
5891
|
-
"data-key": column._key
|
|
5995
|
+
"data-key": column._key,
|
|
5996
|
+
title: $header.column.label
|
|
5892
5997
|
}, [
|
|
5893
|
-
column.required ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
5998
|
+
column.required ? (openBlock(), createElementBlock("span", _hoisted_2$7, "*")) : createCommentVNode("", true),
|
|
5894
5999
|
column.helpText || column.icon ? (openBlock(), createBlock(_component_el_icon, {
|
|
5895
6000
|
key: 1,
|
|
5896
6001
|
title: column.helpText
|
|
@@ -5907,6 +6012,10 @@ const _sfc_main$t = defineComponent({
|
|
|
5907
6012
|
"el-table__header-filter",
|
|
5908
6013
|
{ active: tableManager.value.columnParamsKey[column.prop] }
|
|
5909
6014
|
]),
|
|
6015
|
+
title: "\u8BBE\u7F6E\u7B5B\u9009",
|
|
6016
|
+
style: normalizeStyle({
|
|
6017
|
+
background: tableManager.value.table.props.headerRowStyle.backgroundColor
|
|
6018
|
+
}),
|
|
5910
6019
|
onClick: withModifiers(($event) => showSimplePopover($event.currentTarget, column), ["stop"])
|
|
5911
6020
|
}, [
|
|
5912
6021
|
createVNode(_component_el_icon, null, {
|
|
@@ -5915,7 +6024,7 @@ const _sfc_main$t = defineComponent({
|
|
|
5915
6024
|
]),
|
|
5916
6025
|
_: 1
|
|
5917
6026
|
})
|
|
5918
|
-
],
|
|
6027
|
+
], 14, _hoisted_3$4)) : createCommentVNode("", true)
|
|
5919
6028
|
], 10, _hoisted_1$b)
|
|
5920
6029
|
]),
|
|
5921
6030
|
default: withCtx(({ row, $index, column: columnEl }) => [
|
|
@@ -7341,77 +7450,6 @@ const _sfc_main$r = defineComponent({
|
|
|
7341
7450
|
};
|
|
7342
7451
|
}
|
|
7343
7452
|
});
|
|
7344
|
-
class ConfigSaver {
|
|
7345
|
-
constructor(scope) {
|
|
7346
|
-
__publicField(this, "scope");
|
|
7347
|
-
this.scope = scope;
|
|
7348
|
-
}
|
|
7349
|
-
getContents() {
|
|
7350
|
-
let value = localStorage.getItem(this.scope);
|
|
7351
|
-
try {
|
|
7352
|
-
return value ? JSON.parse(value) : null;
|
|
7353
|
-
} catch (error) {
|
|
7354
|
-
return null;
|
|
7355
|
-
}
|
|
7356
|
-
}
|
|
7357
|
-
setContents(val) {
|
|
7358
|
-
let saveVal = val;
|
|
7359
|
-
if (typeof val !== "string") {
|
|
7360
|
-
saveVal = JSON.stringify(val);
|
|
7361
|
-
}
|
|
7362
|
-
localStorage.setItem(this.scope, saveVal);
|
|
7363
|
-
}
|
|
7364
|
-
getCharCode(str) {
|
|
7365
|
-
return str ? str.split("").reduce((memo, word) => {
|
|
7366
|
-
return memo += word.charCodeAt(0);
|
|
7367
|
-
}, 0) : 0;
|
|
7368
|
-
}
|
|
7369
|
-
genScopeItemKey(els) {
|
|
7370
|
-
const code = els.map((a, index2) => {
|
|
7371
|
-
var _a, _b;
|
|
7372
|
-
const label = (_a = a.label) != null ? _a : "";
|
|
7373
|
-
const prop = (_b = a.prop) != null ? _b : "";
|
|
7374
|
-
return this.getCharCode(label) + this.getCharCode(prop) + index2;
|
|
7375
|
-
}).reduce((memo, num) => {
|
|
7376
|
-
return memo += num;
|
|
7377
|
-
}, 0);
|
|
7378
|
-
return `key-${code}`;
|
|
7379
|
-
}
|
|
7380
|
-
saveContentItem(els, val) {
|
|
7381
|
-
let result = this.getContents();
|
|
7382
|
-
const key = this.genScopeItemKey(els);
|
|
7383
|
-
if (!result) {
|
|
7384
|
-
result = {};
|
|
7385
|
-
}
|
|
7386
|
-
result[key] = val;
|
|
7387
|
-
this.setContents(result);
|
|
7388
|
-
return key;
|
|
7389
|
-
}
|
|
7390
|
-
getContentItem(els, withKey = false) {
|
|
7391
|
-
let result = this.getContents();
|
|
7392
|
-
if (!result) {
|
|
7393
|
-
if (withKey) {
|
|
7394
|
-
return {
|
|
7395
|
-
scope: null,
|
|
7396
|
-
content: null
|
|
7397
|
-
};
|
|
7398
|
-
} else {
|
|
7399
|
-
return null;
|
|
7400
|
-
}
|
|
7401
|
-
} else {
|
|
7402
|
-
const scope = this.genScopeItemKey(els);
|
|
7403
|
-
const content = result[scope];
|
|
7404
|
-
if (withKey) {
|
|
7405
|
-
return {
|
|
7406
|
-
scope,
|
|
7407
|
-
content
|
|
7408
|
-
};
|
|
7409
|
-
} else {
|
|
7410
|
-
return content;
|
|
7411
|
-
}
|
|
7412
|
-
}
|
|
7413
|
-
}
|
|
7414
|
-
}
|
|
7415
7453
|
const SAVE_NAME$3 = "page-model-config";
|
|
7416
7454
|
const configSaver$1 = new ConfigSaver(SAVE_NAME$3);
|
|
7417
7455
|
const saveUserConfig = configSaver$1.saveContentItem.bind(configSaver$1);
|
|
@@ -7607,7 +7645,7 @@ var index_vue_vue_type_style_index_0_lang$6 = "";
|
|
|
7607
7645
|
var index_vue_vue_type_style_index_1_scoped_true_lang$1 = "";
|
|
7608
7646
|
const _withScopeId$2 = (n) => (pushScopeId("data-v-7bf8eedc"), n = n(), popScopeId(), n);
|
|
7609
7647
|
const _hoisted_1$a = { title: "\u5168\u9009/\u53D6\u6D88" };
|
|
7610
|
-
const _hoisted_2$
|
|
7648
|
+
const _hoisted_2$6 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("i", {
|
|
7611
7649
|
class: "pm-icon icon-drag-dot",
|
|
7612
7650
|
title: "\u62D6\u52A8\u8C03\u6574\u663E\u793A\u987A\u5E8F"
|
|
7613
7651
|
}, null, -1));
|
|
@@ -7761,7 +7799,7 @@ const _sfc_main$p = defineComponent({
|
|
|
7761
7799
|
"onUpdate:modelValue": ($event) => element.userConfigShow = $event,
|
|
7762
7800
|
class: normalizeClass(unref(createBEMName)("checkbox"))
|
|
7763
7801
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "class"]),
|
|
7764
|
-
_hoisted_2$
|
|
7802
|
+
_hoisted_2$6,
|
|
7765
7803
|
createElementVNode("span", {
|
|
7766
7804
|
title: element.label,
|
|
7767
7805
|
class: normalizeClass(unref(createBEMName)("item-label"))
|
|
@@ -7834,7 +7872,7 @@ var ColumnTools$1 = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "dat
|
|
|
7834
7872
|
var index_vue_vue_type_style_index_0_scoped_true_lang$5 = "";
|
|
7835
7873
|
const _withScopeId$1 = (n) => (pushScopeId("data-v-15dbe923"), n = n(), popScopeId(), n);
|
|
7836
7874
|
const _hoisted_1$9 = { key: 0 };
|
|
7837
|
-
const _hoisted_2$
|
|
7875
|
+
const _hoisted_2$5 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", { class: "export-wrod" }, "\u4ECE\u7B2C", -1));
|
|
7838
7876
|
const _hoisted_3$2 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", { class: "export-wrod" }, "\u9875\u5F00\u59CB\u5BFC\u51FA\uFF0C\u6BCF\u9875", -1));
|
|
7839
7877
|
const _hoisted_4$2 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", { class: "export-wrod" }, "\u6761\u6570\u636E", -1));
|
|
7840
7878
|
const _hoisted_5$1 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", null, null, -1));
|
|
@@ -8079,7 +8117,7 @@ const _sfc_main$o = defineComponent({
|
|
|
8079
8117
|
_: 1
|
|
8080
8118
|
}, 8, ["modelValue"]),
|
|
8081
8119
|
formData.fromApi ? (openBlock(), createElementBlock("div", _hoisted_1$9, [
|
|
8082
|
-
_hoisted_2$
|
|
8120
|
+
_hoisted_2$5,
|
|
8083
8121
|
createVNode(_component_el_input_number, {
|
|
8084
8122
|
modelValue: formData.pageIndex,
|
|
8085
8123
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => formData.pageIndex = $event),
|
|
@@ -8635,7 +8673,6 @@ const _sfc_main$k = defineComponent({
|
|
|
8635
8673
|
} catch (error) {
|
|
8636
8674
|
}
|
|
8637
8675
|
setTableEls();
|
|
8638
|
-
ElMessage.success("\u4FDD\u5B58\u6210\u529F!");
|
|
8639
8676
|
};
|
|
8640
8677
|
const clearSelection = () => {
|
|
8641
8678
|
tableManager.clearSelection();
|
|
@@ -8720,6 +8757,9 @@ const _sfc_main$k = defineComponent({
|
|
|
8720
8757
|
};
|
|
8721
8758
|
const handleColumnScreen = () => {
|
|
8722
8759
|
emit("column-screen");
|
|
8760
|
+
if (tableManager.table.saveFilter) {
|
|
8761
|
+
saveColumnFilters(tableManager.table.els, tableManager.columnParamsList);
|
|
8762
|
+
}
|
|
8723
8763
|
};
|
|
8724
8764
|
onUnmounted(() => {
|
|
8725
8765
|
tableManager.onUnmounted();
|
|
@@ -9116,7 +9156,7 @@ class FormManager extends IManager {
|
|
|
9116
9156
|
}
|
|
9117
9157
|
var index_vue_vue_type_style_index_0_scoped_true_lang$3 = "";
|
|
9118
9158
|
const _hoisted_1$7 = ["onClick"];
|
|
9119
|
-
const _hoisted_2$
|
|
9159
|
+
const _hoisted_2$4 = { class: "section-item__title-text" };
|
|
9120
9160
|
const __default__$a = {
|
|
9121
9161
|
name: "SectionTitleEl"
|
|
9122
9162
|
};
|
|
@@ -9207,7 +9247,7 @@ const _sfc_main$j = defineComponent({
|
|
|
9207
9247
|
class: "section-item__title",
|
|
9208
9248
|
onClick: ($event) => toggleSectionHidden(index2)
|
|
9209
9249
|
}, [
|
|
9210
|
-
createElementVNode("span", _hoisted_2$
|
|
9250
|
+
createElementVNode("span", _hoisted_2$4, toDisplayString(section.text), 1),
|
|
9211
9251
|
isUseCollapseList.value[index2] ? (openBlock(), createBlock(_component_el_icon, {
|
|
9212
9252
|
key: 0,
|
|
9213
9253
|
size: 16
|
|
@@ -9508,7 +9548,7 @@ const defineForm = (form) => {
|
|
|
9508
9548
|
var setting_vue_vue_type_style_index_0_lang$1 = "";
|
|
9509
9549
|
var setting_vue_vue_type_style_index_1_lang$1 = "";
|
|
9510
9550
|
const _hoisted_1$6 = { key: 0 };
|
|
9511
|
-
const _hoisted_2$
|
|
9551
|
+
const _hoisted_2$3 = {
|
|
9512
9552
|
key: 1,
|
|
9513
9553
|
style: { "color": "#999" }
|
|
9514
9554
|
};
|
|
@@ -9715,7 +9755,7 @@ const _sfc_main$e = defineComponent({
|
|
|
9715
9755
|
createElementVNode("div", {
|
|
9716
9756
|
class: normalizeClass(unref(createBEMName)("cell"))
|
|
9717
9757
|
}, [
|
|
9718
|
-
element.sectionName ? (openBlock(), createElementBlock("span", _hoisted_1$6, toDisplayString(element.sectionName), 1)) : (openBlock(), createElementBlock("span", _hoisted_2$
|
|
9758
|
+
element.sectionName ? (openBlock(), createElementBlock("span", _hoisted_1$6, toDisplayString(element.sectionName), 1)) : (openBlock(), createElementBlock("span", _hoisted_2$3, "\u672A\u914D\u7F6E"))
|
|
9719
9759
|
], 2),
|
|
9720
9760
|
createElementVNode("div", {
|
|
9721
9761
|
class: normalizeClass(unref(createBEMName)("cell"))
|
|
@@ -11192,7 +11232,7 @@ const _sfc_main$6 = defineComponent({
|
|
|
11192
11232
|
});
|
|
11193
11233
|
var index_vue_vue_type_style_index_0_scoped_true_lang$1 = "";
|
|
11194
11234
|
const _hoisted_1$3 = { class: "table-toolbox" };
|
|
11195
|
-
const _hoisted_2$
|
|
11235
|
+
const _hoisted_2$2 = ["onClick"];
|
|
11196
11236
|
const __default__$4 = {
|
|
11197
11237
|
name: "TableToolsbox"
|
|
11198
11238
|
};
|
|
@@ -11200,7 +11240,9 @@ const _sfc_main$5 = defineComponent({
|
|
|
11200
11240
|
...__default__$4,
|
|
11201
11241
|
props: {
|
|
11202
11242
|
toolbox: {},
|
|
11203
|
-
extendsToolbox: {}
|
|
11243
|
+
extendsToolbox: {},
|
|
11244
|
+
mode: { default: "icon" },
|
|
11245
|
+
tableManager: {}
|
|
11204
11246
|
},
|
|
11205
11247
|
emits: ["custom-event"],
|
|
11206
11248
|
setup(__props, { emit: __emit }) {
|
|
@@ -11209,22 +11251,34 @@ const _sfc_main$5 = defineComponent({
|
|
|
11209
11251
|
const innerTools = {
|
|
11210
11252
|
export: {
|
|
11211
11253
|
icon: download,
|
|
11212
|
-
text: "\u5BFC\u51FA\
|
|
11213
|
-
event: "export"
|
|
11254
|
+
text: "\u5BFC\u51FA\u6570\u636E",
|
|
11255
|
+
event: "export",
|
|
11256
|
+
desc: ""
|
|
11214
11257
|
},
|
|
11215
11258
|
fullscreen: {
|
|
11216
11259
|
icon: fullScreen,
|
|
11217
11260
|
text: "\u5207\u6362\u5168\u5C4F",
|
|
11218
|
-
event: "fullscreen"
|
|
11261
|
+
event: "fullscreen",
|
|
11262
|
+
desc: ""
|
|
11219
11263
|
},
|
|
11220
11264
|
"colunm-tool": {
|
|
11221
|
-
icon:
|
|
11222
|
-
text: "\
|
|
11223
|
-
event: "show-column-tool"
|
|
11265
|
+
icon: menu,
|
|
11266
|
+
text: "\u5B57\u6BB5\u7BA1\u7406",
|
|
11267
|
+
event: "show-column-tool",
|
|
11268
|
+
desc: ""
|
|
11224
11269
|
}
|
|
11225
11270
|
};
|
|
11226
11271
|
const showToolbox = computed(() => {
|
|
11227
|
-
const _innerTools = props.toolbox ? props.toolbox.map((toolKey) => innerTools[toolKey])
|
|
11272
|
+
const _innerTools = props.toolbox ? props.toolbox.map((toolKey) => innerTools[toolKey]).map((item) => {
|
|
11273
|
+
let desc = "";
|
|
11274
|
+
if (item.event === "show-column-tool" && props.tableManager) {
|
|
11275
|
+
desc = props.tableManager.hiddeenFieldCount ? `(${props.tableManager.hiddeenFieldCount} \u9690\u85CF)` : "";
|
|
11276
|
+
}
|
|
11277
|
+
return {
|
|
11278
|
+
...item,
|
|
11279
|
+
desc
|
|
11280
|
+
};
|
|
11281
|
+
}) : [];
|
|
11228
11282
|
const extendsTools = (props.extendsToolbox || []).filter(
|
|
11229
11283
|
(item) => typeof item.icon === "object"
|
|
11230
11284
|
);
|
|
@@ -11237,8 +11291,9 @@ const _sfc_main$5 = defineComponent({
|
|
|
11237
11291
|
return (_ctx, _cache) => {
|
|
11238
11292
|
const _component_el_icon = resolveComponent("el-icon");
|
|
11239
11293
|
const _component_el_tooltip = resolveComponent("el-tooltip");
|
|
11294
|
+
const _component_el_button = resolveComponent("el-button");
|
|
11240
11295
|
return openBlock(), createElementBlock("div", _hoisted_1$3, [
|
|
11241
|
-
(openBlock(true), createElementBlock(Fragment,
|
|
11296
|
+
_ctx.mode === "icon" ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(showToolbox.value, (tool, index2) => {
|
|
11242
11297
|
return openBlock(), createElementBlock("div", {
|
|
11243
11298
|
class: "tool-item",
|
|
11244
11299
|
key: index2,
|
|
@@ -11259,13 +11314,30 @@ const _sfc_main$5 = defineComponent({
|
|
|
11259
11314
|
]),
|
|
11260
11315
|
_: 2
|
|
11261
11316
|
}, 1032, ["content"])
|
|
11262
|
-
], 8, _hoisted_2$
|
|
11317
|
+
], 8, _hoisted_2$2);
|
|
11318
|
+
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(showToolbox.value, (tool, index2) => {
|
|
11319
|
+
return openBlock(), createBlock(_component_el_button, {
|
|
11320
|
+
key: index2,
|
|
11321
|
+
text: "",
|
|
11322
|
+
onClick: ($event) => handleClickTool(index2, $event)
|
|
11323
|
+
}, {
|
|
11324
|
+
default: withCtx(() => [
|
|
11325
|
+
tool.icon ? (openBlock(), createBlock(_component_el_icon, { key: 0 }, {
|
|
11326
|
+
default: withCtx(() => [
|
|
11327
|
+
(openBlock(), createBlock(resolveDynamicComponent({ ...tool.icon })))
|
|
11328
|
+
]),
|
|
11329
|
+
_: 2
|
|
11330
|
+
}, 1024)) : createCommentVNode("", true),
|
|
11331
|
+
createElementVNode("span", null, toDisplayString(tool.text) + toDisplayString(tool.desc), 1)
|
|
11332
|
+
]),
|
|
11333
|
+
_: 2
|
|
11334
|
+
}, 1032, ["onClick"]);
|
|
11263
11335
|
}), 128))
|
|
11264
11336
|
]);
|
|
11265
11337
|
};
|
|
11266
11338
|
}
|
|
11267
11339
|
});
|
|
11268
|
-
var TableToolsbox = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
11340
|
+
var TableToolsbox = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-1dde1e4b"]]);
|
|
11269
11341
|
function patchConfig(config, patches) {
|
|
11270
11342
|
return patches.reduce((memoConfig, patchFn) => {
|
|
11271
11343
|
return patchFn.call(this, memoConfig);
|
|
@@ -11422,6 +11494,7 @@ function useAuthButtons(props, injectValue) {
|
|
|
11422
11494
|
}
|
|
11423
11495
|
var index_vue_vue_type_style_index_0_lang$1 = "";
|
|
11424
11496
|
const _hoisted_1$2 = { key: 0 };
|
|
11497
|
+
const _hoisted_2$1 = { style: { "white-space": "nowrap" } };
|
|
11425
11498
|
const __default__$3 = {
|
|
11426
11499
|
name: "PageModel"
|
|
11427
11500
|
};
|
|
@@ -11504,6 +11577,10 @@ const _sfc_main$4 = defineComponent({
|
|
|
11504
11577
|
const table = manager.config.table;
|
|
11505
11578
|
return ((_a = table == null ? void 0 : table.toolbox) == null ? void 0 : _a.length) || ((_b = table == null ? void 0 : table.extendsToolbox) == null ? void 0 : _b.length);
|
|
11506
11579
|
});
|
|
11580
|
+
const toolboxShowAsButton = computed(() => {
|
|
11581
|
+
const table = manager.config.table;
|
|
11582
|
+
return (table == null ? void 0 : table.toolboxShowMode) === "button";
|
|
11583
|
+
});
|
|
11507
11584
|
const showSelectableButtonsArea = computed(() => {
|
|
11508
11585
|
const tableConfig = manager.config.table;
|
|
11509
11586
|
return hasSelectableActions.value && (tableConfig.selectable || tableConfig.selectableButtonLiveAlone) || hasFilterTools.value || hasTableToolbox.value;
|
|
@@ -11859,14 +11936,24 @@ const _sfc_main$4 = defineComponent({
|
|
|
11859
11936
|
}, [
|
|
11860
11937
|
createVNode(_component_el_scrollbar, null, {
|
|
11861
11938
|
default: withCtx(() => [
|
|
11862
|
-
|
|
11863
|
-
|
|
11864
|
-
|
|
11865
|
-
|
|
11866
|
-
|
|
11867
|
-
|
|
11868
|
-
|
|
11869
|
-
|
|
11939
|
+
createElementVNode("div", _hoisted_2$1, [
|
|
11940
|
+
hasSelectableActions.value ? (openBlock(), createBlock(SelectableOperate, {
|
|
11941
|
+
key: 0,
|
|
11942
|
+
els: manager.config.table.selectableButtons,
|
|
11943
|
+
tableManager: manager.tableManager,
|
|
11944
|
+
manager,
|
|
11945
|
+
onCustom: handleCustomEvent,
|
|
11946
|
+
onAdd: handleAddEvent
|
|
11947
|
+
}, null, 8, ["els", "tableManager", "manager"])) : createCommentVNode("", true),
|
|
11948
|
+
hasTableToolbox.value && toolboxShowAsButton.value ? (openBlock(), createBlock(TableToolsbox, {
|
|
11949
|
+
key: 1,
|
|
11950
|
+
mode: "button",
|
|
11951
|
+
tableManager: manager.tableManager,
|
|
11952
|
+
toolbox: manager.config.table.toolbox,
|
|
11953
|
+
extendsToolbox: manager.config.table.extendsToolbox,
|
|
11954
|
+
onCustomEvent: handleToolboxCustomEvent
|
|
11955
|
+
}, null, 8, ["tableManager", "toolbox", "extendsToolbox"])) : createCommentVNode("", true)
|
|
11956
|
+
])
|
|
11870
11957
|
]),
|
|
11871
11958
|
_: 1
|
|
11872
11959
|
})
|
|
@@ -11882,14 +11969,11 @@ const _sfc_main$4 = defineComponent({
|
|
|
11882
11969
|
manager,
|
|
11883
11970
|
onScreen: handleInnerScreen
|
|
11884
11971
|
}, null, 8, ["manager"])) : createCommentVNode("", true),
|
|
11885
|
-
hasTableToolbox.value ? (openBlock(), createBlock(TableToolsbox, {
|
|
11972
|
+
hasTableToolbox.value && !toolboxShowAsButton.value ? (openBlock(), createBlock(TableToolsbox, {
|
|
11886
11973
|
key: 1,
|
|
11887
11974
|
toolbox: manager.config.table.toolbox,
|
|
11888
11975
|
extendsToolbox: manager.config.table.extendsToolbox,
|
|
11889
|
-
onCustomEvent: handleToolboxCustomEvent
|
|
11890
|
-
onExport: showExport,
|
|
11891
|
-
onFullscreen: handleToggleTableFullscreen,
|
|
11892
|
-
onShowColumnTool: handleShowColumnTool
|
|
11976
|
+
onCustomEvent: handleToolboxCustomEvent
|
|
11893
11977
|
}, null, 8, ["toolbox", "extendsToolbox"])) : createCommentVNode("", true)
|
|
11894
11978
|
], 2)
|
|
11895
11979
|
], 2)) : createCommentVNode("", true),
|
|
@@ -12827,7 +12911,7 @@ const defineEditableTable = function(config) {
|
|
|
12827
12911
|
};
|
|
12828
12912
|
var iconfont = "";
|
|
12829
12913
|
const name = "@juzhenfe/page-model";
|
|
12830
|
-
const version = "3.
|
|
12914
|
+
const version = "3.14.0";
|
|
12831
12915
|
const types = "dist/main.d.ts";
|
|
12832
12916
|
const main = "dist/index.umd.js";
|
|
12833
12917
|
const keywords = [
|