@juzhenfe/page-model 3.13.4 → 3.14.1
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/constructor.d.ts +12 -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 +298 -207
- package/dist/index.min.css +1 -1
- package/dist/index.umd.js +3 -3
- 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 || {
|
|
@@ -4500,6 +4599,7 @@ class TableManager extends IManager {
|
|
|
4500
4599
|
this.updatePagination();
|
|
4501
4600
|
this.updateProps();
|
|
4502
4601
|
this.updateEvents();
|
|
4602
|
+
this.initColumnParams();
|
|
4503
4603
|
}
|
|
4504
4604
|
updateTotalEls() {
|
|
4505
4605
|
const els = this.table.els;
|
|
@@ -5060,6 +5160,9 @@ class TableManager extends IManager {
|
|
|
5060
5160
|
updateCurrentRenderTableEls(els) {
|
|
5061
5161
|
this.currentRenderTableEls = els;
|
|
5062
5162
|
}
|
|
5163
|
+
get hiddeenFieldCount() {
|
|
5164
|
+
return this.table.els.length - this.currentRenderTableEls.length;
|
|
5165
|
+
}
|
|
5063
5166
|
updateInnerFilters(filters) {
|
|
5064
5167
|
this.innerFilters = filters;
|
|
5065
5168
|
}
|
|
@@ -5136,13 +5239,6 @@ const _sfc_main$w = defineComponent({
|
|
|
5136
5239
|
}
|
|
5137
5240
|
});
|
|
5138
5241
|
var index_vue_vue_type_style_index_0_scoped_true_lang$7 = "";
|
|
5139
|
-
var _export_sfc = (sfc, props) => {
|
|
5140
|
-
const target = sfc.__vccOpts || sfc;
|
|
5141
|
-
for (const [key, val] of props) {
|
|
5142
|
-
target[key] = val;
|
|
5143
|
-
}
|
|
5144
|
-
return target;
|
|
5145
|
-
};
|
|
5146
5242
|
const __default__$i = {
|
|
5147
5243
|
name: "SimplePopover"
|
|
5148
5244
|
};
|
|
@@ -5744,8 +5840,8 @@ const _sfc_main$u = defineComponent({
|
|
|
5744
5840
|
});
|
|
5745
5841
|
var FilterZone$1 = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-1bc1589a"]]);
|
|
5746
5842
|
var index_vue_vue_type_style_index_0_lang$7 = "";
|
|
5747
|
-
const _hoisted_1$b = ["data-key"];
|
|
5748
|
-
const _hoisted_2$
|
|
5843
|
+
const _hoisted_1$b = ["data-key", "title"];
|
|
5844
|
+
const _hoisted_2$7 = {
|
|
5749
5845
|
key: 0,
|
|
5750
5846
|
style: { "color": "red" }
|
|
5751
5847
|
};
|
|
@@ -5892,11 +5988,14 @@ const _sfc_main$t = defineComponent({
|
|
|
5892
5988
|
createElementVNode("div", {
|
|
5893
5989
|
class: normalizeClass([
|
|
5894
5990
|
"el-table__header-cell",
|
|
5895
|
-
{
|
|
5991
|
+
{
|
|
5992
|
+
dragable: tableManager.value.table.dragable
|
|
5993
|
+
}
|
|
5896
5994
|
]),
|
|
5897
|
-
"data-key": column._key
|
|
5995
|
+
"data-key": column._key,
|
|
5996
|
+
title: $header.column.label
|
|
5898
5997
|
}, [
|
|
5899
|
-
column.required ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
5998
|
+
column.required ? (openBlock(), createElementBlock("span", _hoisted_2$7, "*")) : createCommentVNode("", true),
|
|
5900
5999
|
column.helpText || column.icon ? (openBlock(), createBlock(_component_el_icon, {
|
|
5901
6000
|
key: 1,
|
|
5902
6001
|
title: column.helpText
|
|
@@ -5913,6 +6012,10 @@ const _sfc_main$t = defineComponent({
|
|
|
5913
6012
|
"el-table__header-filter",
|
|
5914
6013
|
{ active: tableManager.value.columnParamsKey[column.prop] }
|
|
5915
6014
|
]),
|
|
6015
|
+
title: "\u8BBE\u7F6E\u7B5B\u9009",
|
|
6016
|
+
style: normalizeStyle({
|
|
6017
|
+
background: tableManager.value.table.props.headerRowStyle.backgroundColor
|
|
6018
|
+
}),
|
|
5916
6019
|
onClick: withModifiers(($event) => showSimplePopover($event.currentTarget, column), ["stop"])
|
|
5917
6020
|
}, [
|
|
5918
6021
|
createVNode(_component_el_icon, null, {
|
|
@@ -5921,7 +6024,7 @@ const _sfc_main$t = defineComponent({
|
|
|
5921
6024
|
]),
|
|
5922
6025
|
_: 1
|
|
5923
6026
|
})
|
|
5924
|
-
],
|
|
6027
|
+
], 14, _hoisted_3$4)) : createCommentVNode("", true)
|
|
5925
6028
|
], 10, _hoisted_1$b)
|
|
5926
6029
|
]),
|
|
5927
6030
|
default: withCtx(({ row, $index, column: columnEl }) => [
|
|
@@ -7347,77 +7450,6 @@ const _sfc_main$r = defineComponent({
|
|
|
7347
7450
|
};
|
|
7348
7451
|
}
|
|
7349
7452
|
});
|
|
7350
|
-
class ConfigSaver {
|
|
7351
|
-
constructor(scope) {
|
|
7352
|
-
__publicField(this, "scope");
|
|
7353
|
-
this.scope = scope;
|
|
7354
|
-
}
|
|
7355
|
-
getContents() {
|
|
7356
|
-
let value = localStorage.getItem(this.scope);
|
|
7357
|
-
try {
|
|
7358
|
-
return value ? JSON.parse(value) : null;
|
|
7359
|
-
} catch (error) {
|
|
7360
|
-
return null;
|
|
7361
|
-
}
|
|
7362
|
-
}
|
|
7363
|
-
setContents(val) {
|
|
7364
|
-
let saveVal = val;
|
|
7365
|
-
if (typeof val !== "string") {
|
|
7366
|
-
saveVal = JSON.stringify(val);
|
|
7367
|
-
}
|
|
7368
|
-
localStorage.setItem(this.scope, saveVal);
|
|
7369
|
-
}
|
|
7370
|
-
getCharCode(str) {
|
|
7371
|
-
return str ? str.split("").reduce((memo, word) => {
|
|
7372
|
-
return memo += word.charCodeAt(0);
|
|
7373
|
-
}, 0) : 0;
|
|
7374
|
-
}
|
|
7375
|
-
genScopeItemKey(els) {
|
|
7376
|
-
const code = els.map((a, index2) => {
|
|
7377
|
-
var _a, _b;
|
|
7378
|
-
const label = (_a = a.label) != null ? _a : "";
|
|
7379
|
-
const prop = (_b = a.prop) != null ? _b : "";
|
|
7380
|
-
return this.getCharCode(label) + this.getCharCode(prop) + index2;
|
|
7381
|
-
}).reduce((memo, num) => {
|
|
7382
|
-
return memo += num;
|
|
7383
|
-
}, 0);
|
|
7384
|
-
return `key-${code}`;
|
|
7385
|
-
}
|
|
7386
|
-
saveContentItem(els, val) {
|
|
7387
|
-
let result = this.getContents();
|
|
7388
|
-
const key = this.genScopeItemKey(els);
|
|
7389
|
-
if (!result) {
|
|
7390
|
-
result = {};
|
|
7391
|
-
}
|
|
7392
|
-
result[key] = val;
|
|
7393
|
-
this.setContents(result);
|
|
7394
|
-
return key;
|
|
7395
|
-
}
|
|
7396
|
-
getContentItem(els, withKey = false) {
|
|
7397
|
-
let result = this.getContents();
|
|
7398
|
-
if (!result) {
|
|
7399
|
-
if (withKey) {
|
|
7400
|
-
return {
|
|
7401
|
-
scope: null,
|
|
7402
|
-
content: null
|
|
7403
|
-
};
|
|
7404
|
-
} else {
|
|
7405
|
-
return null;
|
|
7406
|
-
}
|
|
7407
|
-
} else {
|
|
7408
|
-
const scope = this.genScopeItemKey(els);
|
|
7409
|
-
const content = result[scope];
|
|
7410
|
-
if (withKey) {
|
|
7411
|
-
return {
|
|
7412
|
-
scope,
|
|
7413
|
-
content
|
|
7414
|
-
};
|
|
7415
|
-
} else {
|
|
7416
|
-
return content;
|
|
7417
|
-
}
|
|
7418
|
-
}
|
|
7419
|
-
}
|
|
7420
|
-
}
|
|
7421
7453
|
const SAVE_NAME$3 = "page-model-config";
|
|
7422
7454
|
const configSaver$1 = new ConfigSaver(SAVE_NAME$3);
|
|
7423
7455
|
const saveUserConfig = configSaver$1.saveContentItem.bind(configSaver$1);
|
|
@@ -7613,7 +7645,7 @@ var index_vue_vue_type_style_index_0_lang$6 = "";
|
|
|
7613
7645
|
var index_vue_vue_type_style_index_1_scoped_true_lang$1 = "";
|
|
7614
7646
|
const _withScopeId$2 = (n) => (pushScopeId("data-v-7bf8eedc"), n = n(), popScopeId(), n);
|
|
7615
7647
|
const _hoisted_1$a = { title: "\u5168\u9009/\u53D6\u6D88" };
|
|
7616
|
-
const _hoisted_2$
|
|
7648
|
+
const _hoisted_2$6 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("i", {
|
|
7617
7649
|
class: "pm-icon icon-drag-dot",
|
|
7618
7650
|
title: "\u62D6\u52A8\u8C03\u6574\u663E\u793A\u987A\u5E8F"
|
|
7619
7651
|
}, null, -1));
|
|
@@ -7767,7 +7799,7 @@ const _sfc_main$p = defineComponent({
|
|
|
7767
7799
|
"onUpdate:modelValue": ($event) => element.userConfigShow = $event,
|
|
7768
7800
|
class: normalizeClass(unref(createBEMName)("checkbox"))
|
|
7769
7801
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "class"]),
|
|
7770
|
-
_hoisted_2$
|
|
7802
|
+
_hoisted_2$6,
|
|
7771
7803
|
createElementVNode("span", {
|
|
7772
7804
|
title: element.label,
|
|
7773
7805
|
class: normalizeClass(unref(createBEMName)("item-label"))
|
|
@@ -7840,7 +7872,7 @@ var ColumnTools$1 = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "dat
|
|
|
7840
7872
|
var index_vue_vue_type_style_index_0_scoped_true_lang$5 = "";
|
|
7841
7873
|
const _withScopeId$1 = (n) => (pushScopeId("data-v-15dbe923"), n = n(), popScopeId(), n);
|
|
7842
7874
|
const _hoisted_1$9 = { key: 0 };
|
|
7843
|
-
const _hoisted_2$
|
|
7875
|
+
const _hoisted_2$5 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", { class: "export-wrod" }, "\u4ECE\u7B2C", -1));
|
|
7844
7876
|
const _hoisted_3$2 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", { class: "export-wrod" }, "\u9875\u5F00\u59CB\u5BFC\u51FA\uFF0C\u6BCF\u9875", -1));
|
|
7845
7877
|
const _hoisted_4$2 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", { class: "export-wrod" }, "\u6761\u6570\u636E", -1));
|
|
7846
7878
|
const _hoisted_5$1 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", null, null, -1));
|
|
@@ -8085,7 +8117,7 @@ const _sfc_main$o = defineComponent({
|
|
|
8085
8117
|
_: 1
|
|
8086
8118
|
}, 8, ["modelValue"]),
|
|
8087
8119
|
formData.fromApi ? (openBlock(), createElementBlock("div", _hoisted_1$9, [
|
|
8088
|
-
_hoisted_2$
|
|
8120
|
+
_hoisted_2$5,
|
|
8089
8121
|
createVNode(_component_el_input_number, {
|
|
8090
8122
|
modelValue: formData.pageIndex,
|
|
8091
8123
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => formData.pageIndex = $event),
|
|
@@ -8641,7 +8673,6 @@ const _sfc_main$k = defineComponent({
|
|
|
8641
8673
|
} catch (error) {
|
|
8642
8674
|
}
|
|
8643
8675
|
setTableEls();
|
|
8644
|
-
ElMessage.success("\u4FDD\u5B58\u6210\u529F!");
|
|
8645
8676
|
};
|
|
8646
8677
|
const clearSelection = () => {
|
|
8647
8678
|
tableManager.clearSelection();
|
|
@@ -8715,7 +8746,20 @@ const _sfc_main$k = defineComponent({
|
|
|
8715
8746
|
if (newWidth === oldWidth) {
|
|
8716
8747
|
return false;
|
|
8717
8748
|
}
|
|
8718
|
-
const
|
|
8749
|
+
const originTableEls = table.value.els;
|
|
8750
|
+
const userConfig = getUserConfig(originTableEls) || {};
|
|
8751
|
+
const filteredUserEls2 = tableManager.saveContent.map((item) => {
|
|
8752
|
+
const fItem = originTableEls[item.index];
|
|
8753
|
+
fItem.userConfigShow = !!item.show;
|
|
8754
|
+
fItem.showSummary = item.sum;
|
|
8755
|
+
fItem.userLabel = item.ul;
|
|
8756
|
+
fItem.width = item.w || void 0;
|
|
8757
|
+
fItem.minWidth = item.mw || void 0;
|
|
8758
|
+
fItem.fixed = item.fix || void 0;
|
|
8759
|
+
fItem.showRowNumbers = userConfig.showRowNumbers;
|
|
8760
|
+
return fItem;
|
|
8761
|
+
});
|
|
8762
|
+
const newList = jsonClone(filteredUserEls2);
|
|
8719
8763
|
const _column = newList.find(
|
|
8720
8764
|
(item) => item.label === column.label && item.prop === column.property
|
|
8721
8765
|
);
|
|
@@ -8726,6 +8770,9 @@ const _sfc_main$k = defineComponent({
|
|
|
8726
8770
|
};
|
|
8727
8771
|
const handleColumnScreen = () => {
|
|
8728
8772
|
emit("column-screen");
|
|
8773
|
+
if (tableManager.table.saveFilter) {
|
|
8774
|
+
saveColumnFilters(tableManager.table.els, tableManager.columnParamsList);
|
|
8775
|
+
}
|
|
8729
8776
|
};
|
|
8730
8777
|
onUnmounted(() => {
|
|
8731
8778
|
tableManager.onUnmounted();
|
|
@@ -9122,7 +9169,7 @@ class FormManager extends IManager {
|
|
|
9122
9169
|
}
|
|
9123
9170
|
var index_vue_vue_type_style_index_0_scoped_true_lang$3 = "";
|
|
9124
9171
|
const _hoisted_1$7 = ["onClick"];
|
|
9125
|
-
const _hoisted_2$
|
|
9172
|
+
const _hoisted_2$4 = { class: "section-item__title-text" };
|
|
9126
9173
|
const __default__$a = {
|
|
9127
9174
|
name: "SectionTitleEl"
|
|
9128
9175
|
};
|
|
@@ -9213,7 +9260,7 @@ const _sfc_main$j = defineComponent({
|
|
|
9213
9260
|
class: "section-item__title",
|
|
9214
9261
|
onClick: ($event) => toggleSectionHidden(index2)
|
|
9215
9262
|
}, [
|
|
9216
|
-
createElementVNode("span", _hoisted_2$
|
|
9263
|
+
createElementVNode("span", _hoisted_2$4, toDisplayString(section.text), 1),
|
|
9217
9264
|
isUseCollapseList.value[index2] ? (openBlock(), createBlock(_component_el_icon, {
|
|
9218
9265
|
key: 0,
|
|
9219
9266
|
size: 16
|
|
@@ -9514,7 +9561,7 @@ const defineForm = (form) => {
|
|
|
9514
9561
|
var setting_vue_vue_type_style_index_0_lang$1 = "";
|
|
9515
9562
|
var setting_vue_vue_type_style_index_1_lang$1 = "";
|
|
9516
9563
|
const _hoisted_1$6 = { key: 0 };
|
|
9517
|
-
const _hoisted_2$
|
|
9564
|
+
const _hoisted_2$3 = {
|
|
9518
9565
|
key: 1,
|
|
9519
9566
|
style: { "color": "#999" }
|
|
9520
9567
|
};
|
|
@@ -9721,7 +9768,7 @@ const _sfc_main$e = defineComponent({
|
|
|
9721
9768
|
createElementVNode("div", {
|
|
9722
9769
|
class: normalizeClass(unref(createBEMName)("cell"))
|
|
9723
9770
|
}, [
|
|
9724
|
-
element.sectionName ? (openBlock(), createElementBlock("span", _hoisted_1$6, toDisplayString(element.sectionName), 1)) : (openBlock(), createElementBlock("span", _hoisted_2$
|
|
9771
|
+
element.sectionName ? (openBlock(), createElementBlock("span", _hoisted_1$6, toDisplayString(element.sectionName), 1)) : (openBlock(), createElementBlock("span", _hoisted_2$3, "\u672A\u914D\u7F6E"))
|
|
9725
9772
|
], 2),
|
|
9726
9773
|
createElementVNode("div", {
|
|
9727
9774
|
class: normalizeClass(unref(createBEMName)("cell"))
|
|
@@ -11198,7 +11245,7 @@ const _sfc_main$6 = defineComponent({
|
|
|
11198
11245
|
});
|
|
11199
11246
|
var index_vue_vue_type_style_index_0_scoped_true_lang$1 = "";
|
|
11200
11247
|
const _hoisted_1$3 = { class: "table-toolbox" };
|
|
11201
|
-
const _hoisted_2$
|
|
11248
|
+
const _hoisted_2$2 = ["onClick"];
|
|
11202
11249
|
const __default__$4 = {
|
|
11203
11250
|
name: "TableToolsbox"
|
|
11204
11251
|
};
|
|
@@ -11206,7 +11253,9 @@ const _sfc_main$5 = defineComponent({
|
|
|
11206
11253
|
...__default__$4,
|
|
11207
11254
|
props: {
|
|
11208
11255
|
toolbox: {},
|
|
11209
|
-
extendsToolbox: {}
|
|
11256
|
+
extendsToolbox: {},
|
|
11257
|
+
mode: { default: "icon" },
|
|
11258
|
+
tableManager: {}
|
|
11210
11259
|
},
|
|
11211
11260
|
emits: ["custom-event"],
|
|
11212
11261
|
setup(__props, { emit: __emit }) {
|
|
@@ -11215,22 +11264,34 @@ const _sfc_main$5 = defineComponent({
|
|
|
11215
11264
|
const innerTools = {
|
|
11216
11265
|
export: {
|
|
11217
11266
|
icon: download,
|
|
11218
|
-
text: "\u5BFC\u51FA\
|
|
11219
|
-
event: "export"
|
|
11267
|
+
text: "\u5BFC\u51FA\u6570\u636E",
|
|
11268
|
+
event: "export",
|
|
11269
|
+
desc: ""
|
|
11220
11270
|
},
|
|
11221
11271
|
fullscreen: {
|
|
11222
11272
|
icon: fullScreen,
|
|
11223
11273
|
text: "\u5207\u6362\u5168\u5C4F",
|
|
11224
|
-
event: "fullscreen"
|
|
11274
|
+
event: "fullscreen",
|
|
11275
|
+
desc: ""
|
|
11225
11276
|
},
|
|
11226
11277
|
"colunm-tool": {
|
|
11227
|
-
icon:
|
|
11228
|
-
text: "\
|
|
11229
|
-
event: "show-column-tool"
|
|
11278
|
+
icon: menu,
|
|
11279
|
+
text: "\u5B57\u6BB5\u7BA1\u7406",
|
|
11280
|
+
event: "show-column-tool",
|
|
11281
|
+
desc: ""
|
|
11230
11282
|
}
|
|
11231
11283
|
};
|
|
11232
11284
|
const showToolbox = computed(() => {
|
|
11233
|
-
const _innerTools = props.toolbox ? props.toolbox.map((toolKey) => innerTools[toolKey])
|
|
11285
|
+
const _innerTools = props.toolbox ? props.toolbox.map((toolKey) => innerTools[toolKey]).map((item) => {
|
|
11286
|
+
let desc = "";
|
|
11287
|
+
if (item.event === "show-column-tool" && props.tableManager) {
|
|
11288
|
+
desc = props.tableManager.hiddeenFieldCount ? `(${props.tableManager.hiddeenFieldCount} \u9690\u85CF)` : "";
|
|
11289
|
+
}
|
|
11290
|
+
return {
|
|
11291
|
+
...item,
|
|
11292
|
+
desc
|
|
11293
|
+
};
|
|
11294
|
+
}) : [];
|
|
11234
11295
|
const extendsTools = (props.extendsToolbox || []).filter(
|
|
11235
11296
|
(item) => typeof item.icon === "object"
|
|
11236
11297
|
);
|
|
@@ -11243,8 +11304,9 @@ const _sfc_main$5 = defineComponent({
|
|
|
11243
11304
|
return (_ctx, _cache) => {
|
|
11244
11305
|
const _component_el_icon = resolveComponent("el-icon");
|
|
11245
11306
|
const _component_el_tooltip = resolveComponent("el-tooltip");
|
|
11307
|
+
const _component_el_button = resolveComponent("el-button");
|
|
11246
11308
|
return openBlock(), createElementBlock("div", _hoisted_1$3, [
|
|
11247
|
-
(openBlock(true), createElementBlock(Fragment,
|
|
11309
|
+
_ctx.mode === "icon" ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(showToolbox.value, (tool, index2) => {
|
|
11248
11310
|
return openBlock(), createElementBlock("div", {
|
|
11249
11311
|
class: "tool-item",
|
|
11250
11312
|
key: index2,
|
|
@@ -11265,13 +11327,30 @@ const _sfc_main$5 = defineComponent({
|
|
|
11265
11327
|
]),
|
|
11266
11328
|
_: 2
|
|
11267
11329
|
}, 1032, ["content"])
|
|
11268
|
-
], 8, _hoisted_2$
|
|
11330
|
+
], 8, _hoisted_2$2);
|
|
11331
|
+
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(showToolbox.value, (tool, index2) => {
|
|
11332
|
+
return openBlock(), createBlock(_component_el_button, {
|
|
11333
|
+
key: index2,
|
|
11334
|
+
text: "",
|
|
11335
|
+
onClick: ($event) => handleClickTool(index2, $event)
|
|
11336
|
+
}, {
|
|
11337
|
+
default: withCtx(() => [
|
|
11338
|
+
tool.icon ? (openBlock(), createBlock(_component_el_icon, { key: 0 }, {
|
|
11339
|
+
default: withCtx(() => [
|
|
11340
|
+
(openBlock(), createBlock(resolveDynamicComponent({ ...tool.icon })))
|
|
11341
|
+
]),
|
|
11342
|
+
_: 2
|
|
11343
|
+
}, 1024)) : createCommentVNode("", true),
|
|
11344
|
+
createElementVNode("span", null, toDisplayString(tool.text) + toDisplayString(tool.desc), 1)
|
|
11345
|
+
]),
|
|
11346
|
+
_: 2
|
|
11347
|
+
}, 1032, ["onClick"]);
|
|
11269
11348
|
}), 128))
|
|
11270
11349
|
]);
|
|
11271
11350
|
};
|
|
11272
11351
|
}
|
|
11273
11352
|
});
|
|
11274
|
-
var TableToolsbox = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
11353
|
+
var TableToolsbox = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-1dde1e4b"]]);
|
|
11275
11354
|
function patchConfig(config, patches) {
|
|
11276
11355
|
return patches.reduce((memoConfig, patchFn) => {
|
|
11277
11356
|
return patchFn.call(this, memoConfig);
|
|
@@ -11428,6 +11507,7 @@ function useAuthButtons(props, injectValue) {
|
|
|
11428
11507
|
}
|
|
11429
11508
|
var index_vue_vue_type_style_index_0_lang$1 = "";
|
|
11430
11509
|
const _hoisted_1$2 = { key: 0 };
|
|
11510
|
+
const _hoisted_2$1 = { style: { "white-space": "nowrap" } };
|
|
11431
11511
|
const __default__$3 = {
|
|
11432
11512
|
name: "PageModel"
|
|
11433
11513
|
};
|
|
@@ -11510,6 +11590,10 @@ const _sfc_main$4 = defineComponent({
|
|
|
11510
11590
|
const table = manager.config.table;
|
|
11511
11591
|
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);
|
|
11512
11592
|
});
|
|
11593
|
+
const toolboxShowAsButton = computed(() => {
|
|
11594
|
+
const table = manager.config.table;
|
|
11595
|
+
return (table == null ? void 0 : table.toolboxShowMode) === "button";
|
|
11596
|
+
});
|
|
11513
11597
|
const showSelectableButtonsArea = computed(() => {
|
|
11514
11598
|
const tableConfig = manager.config.table;
|
|
11515
11599
|
return hasSelectableActions.value && (tableConfig.selectable || tableConfig.selectableButtonLiveAlone) || hasFilterTools.value || hasTableToolbox.value;
|
|
@@ -11865,14 +11949,24 @@ const _sfc_main$4 = defineComponent({
|
|
|
11865
11949
|
}, [
|
|
11866
11950
|
createVNode(_component_el_scrollbar, null, {
|
|
11867
11951
|
default: withCtx(() => [
|
|
11868
|
-
|
|
11869
|
-
|
|
11870
|
-
|
|
11871
|
-
|
|
11872
|
-
|
|
11873
|
-
|
|
11874
|
-
|
|
11875
|
-
|
|
11952
|
+
createElementVNode("div", _hoisted_2$1, [
|
|
11953
|
+
hasSelectableActions.value ? (openBlock(), createBlock(SelectableOperate, {
|
|
11954
|
+
key: 0,
|
|
11955
|
+
els: manager.config.table.selectableButtons,
|
|
11956
|
+
tableManager: manager.tableManager,
|
|
11957
|
+
manager,
|
|
11958
|
+
onCustom: handleCustomEvent,
|
|
11959
|
+
onAdd: handleAddEvent
|
|
11960
|
+
}, null, 8, ["els", "tableManager", "manager"])) : createCommentVNode("", true),
|
|
11961
|
+
hasTableToolbox.value && toolboxShowAsButton.value ? (openBlock(), createBlock(TableToolsbox, {
|
|
11962
|
+
key: 1,
|
|
11963
|
+
mode: "button",
|
|
11964
|
+
tableManager: manager.tableManager,
|
|
11965
|
+
toolbox: manager.config.table.toolbox,
|
|
11966
|
+
extendsToolbox: manager.config.table.extendsToolbox,
|
|
11967
|
+
onCustomEvent: handleToolboxCustomEvent
|
|
11968
|
+
}, null, 8, ["tableManager", "toolbox", "extendsToolbox"])) : createCommentVNode("", true)
|
|
11969
|
+
])
|
|
11876
11970
|
]),
|
|
11877
11971
|
_: 1
|
|
11878
11972
|
})
|
|
@@ -11888,14 +11982,11 @@ const _sfc_main$4 = defineComponent({
|
|
|
11888
11982
|
manager,
|
|
11889
11983
|
onScreen: handleInnerScreen
|
|
11890
11984
|
}, null, 8, ["manager"])) : createCommentVNode("", true),
|
|
11891
|
-
hasTableToolbox.value ? (openBlock(), createBlock(TableToolsbox, {
|
|
11985
|
+
hasTableToolbox.value && !toolboxShowAsButton.value ? (openBlock(), createBlock(TableToolsbox, {
|
|
11892
11986
|
key: 1,
|
|
11893
11987
|
toolbox: manager.config.table.toolbox,
|
|
11894
11988
|
extendsToolbox: manager.config.table.extendsToolbox,
|
|
11895
|
-
onCustomEvent: handleToolboxCustomEvent
|
|
11896
|
-
onExport: showExport,
|
|
11897
|
-
onFullscreen: handleToggleTableFullscreen,
|
|
11898
|
-
onShowColumnTool: handleShowColumnTool
|
|
11989
|
+
onCustomEvent: handleToolboxCustomEvent
|
|
11899
11990
|
}, null, 8, ["toolbox", "extendsToolbox"])) : createCommentVNode("", true)
|
|
11900
11991
|
], 2)
|
|
11901
11992
|
], 2)) : createCommentVNode("", true),
|
|
@@ -12833,7 +12924,7 @@ const defineEditableTable = function(config) {
|
|
|
12833
12924
|
};
|
|
12834
12925
|
var iconfont = "";
|
|
12835
12926
|
const name = "@juzhenfe/page-model";
|
|
12836
|
-
const version = "3.
|
|
12927
|
+
const version = "3.14.1";
|
|
12837
12928
|
const types = "dist/main.d.ts";
|
|
12838
12929
|
const main = "dist/index.umd.js";
|
|
12839
12930
|
const keywords = [
|