bkui-vue 0.0.1-beta.57 → 0.0.1-beta.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +20 -20
- package/dist/index.esm.js +584 -140
- package/dist/index.umd.js +20 -20
- package/dist/style.css +1 -1
- package/lib/breadcrumb/breadcrumb.css +8 -0
- package/lib/breadcrumb/breadcrumb.variable.css +8 -0
- package/lib/card/card.css +8 -0
- package/lib/card/card.variable.css +8 -0
- package/lib/components.d.ts +1 -0
- package/lib/components.js +1 -1
- package/lib/container/col.d.ts +51 -0
- package/lib/container/container.css +48 -0
- package/lib/container/container.d.ts +83 -0
- package/lib/container/container.less +20 -0
- package/lib/container/container.variable.css +142 -0
- package/lib/container/index.d.ts +223 -0
- package/lib/container/index.js +1 -0
- package/lib/container/row.d.ts +4 -0
- package/lib/dialog/dialog.d.ts +57 -30
- package/lib/dialog/index.d.ts +129 -64
- package/lib/dialog/index.js +1 -1
- package/lib/icon/close-line.d.ts +4 -0
- package/lib/icon/{funnel.js → close-line.js} +1 -1
- package/lib/icon/help-document-fill.js +1 -0
- package/lib/icon/index.d.ts +1 -0
- package/lib/icon/index.js +1 -1
- package/lib/input/index.js +1 -1
- package/lib/input/input.css +9 -0
- package/lib/input/input.less +1 -0
- package/lib/input/input.variable.css +9 -0
- package/lib/loading/loading.css +8 -0
- package/lib/loading/loading.variable.css +8 -0
- package/lib/menu/menu.css +8 -0
- package/lib/menu/menu.variable.css +8 -0
- package/lib/modal/index.d.ts +29 -57
- package/lib/modal/index.js +1 -1
- package/lib/modal/modal.d.ts +11 -22
- package/lib/modal/props.mixin.d.ts +5 -10
- package/lib/pagination/index.d.ts +7 -7
- package/lib/pagination/pagination.d.ts +2 -2
- package/lib/progress/progress.css +8 -0
- package/lib/progress/progress.variable.css +8 -0
- package/lib/sideslider/index.d.ts +24 -47
- package/lib/sideslider/sideslider.d.ts +11 -22
- package/lib/styles/index.d.ts +1 -0
- package/lib/styles/mixins/clearfix.css +8 -0
- package/lib/styles/mixins/clearfix.less +10 -0
- package/lib/styles/mixins/clearfix.variable.css +8 -0
- package/lib/styles/mixins/mixins.css +8 -0
- package/lib/styles/mixins/mixins.less +1 -0
- package/lib/styles/mixins/mixins.variable.css +8 -0
- package/lib/switcher/switcher.css +8 -0
- package/lib/switcher/switcher.variable.css +8 -0
- package/lib/table/index.d.ts +16 -1
- package/lib/table/index.js +1 -1
- package/lib/table/plugins/settings.css +110 -0
- package/lib/table/plugins/settings.less +130 -0
- package/lib/table/plugins/settings.variable.css +204 -0
- package/lib/table/props.d.ts +26 -0
- package/lib/table/render.d.ts +12 -2
- package/lib/table/table.css +129 -0
- package/lib/table/table.d.ts +7 -0
- package/lib/table/table.less +26 -0
- package/lib/table/table.variable.css +129 -0
- package/lib/table/use-common.d.ts +3 -0
- package/lib/tree/index.js +1 -1
- package/lib/virtual-render/index.js +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
@@ -81,6 +81,7 @@ var timeline = "";
|
|
81
81
|
var codeDiff = "";
|
82
82
|
var resizeLayout = "";
|
83
83
|
var tagInput = "";
|
84
|
+
var container = "";
|
84
85
|
const BKLAYERD_INDEX_EFAULT_VALUE = {
|
85
86
|
["bottom"]: 0,
|
86
87
|
["content"]: 1,
|
@@ -2375,141 +2376,160 @@ bkIcon.inheritAttrs = false;
|
|
2375
2376
|
bkIcon.displayName = "bkIcon";
|
2376
2377
|
JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M512 744.64L789.6 462.72 880 554.56 512 928 144 554.56 234.4 462.72 512 744.64z"}},{"type":"element","name":"path","attributes":{"d":"M144 187.68L234.4 96 512 377.76 789.6 96 880 187.68 512 561.28 144 187.68z"}}]}');
|
2377
2378
|
JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M279.36 512L561.28 789.6 469.44 880 96 512 469.44 144 561.28 234.4 279.36 512z"}},{"type":"element","name":"path","attributes":{"d":"M836.32 144L928 234.4 646.08 512 928 789.6 836.32 880 462.72 512 836.32 144z"}}]}');
|
2378
|
-
const data$
|
2379
|
+
const data$B = JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M697.6 281.6l48 48-176 176 176 176-48 48-224-224L697.6 281.6z"}},{"type":"element","name":"path","attributes":{"d":"M505.6 281.6l48 48-176 176 176 176-48 48-224-224L505.6 281.6z"}}]}');
|
2379
2380
|
const angleDoubleLeft = (props, context) => {
|
2380
2381
|
const p2 = __spreadValues(__spreadValues({}, props), context.attrs);
|
2381
2382
|
return createVNode(bkIcon, mergeProps(p2, {
|
2382
|
-
"data": data$
|
2383
|
+
"data": data$B,
|
2383
2384
|
"name": "angleDoubleLeft"
|
2384
2385
|
}), null);
|
2385
2386
|
};
|
2386
2387
|
angleDoubleLeft.displayName = "angleDoubleLeft";
|
2387
2388
|
angleDoubleLeft.inheritAttrs = false;
|
2388
2389
|
JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M744.64 512L462.72 789.6 554.56 880 928 512 554.56 144 462.72 234.4 744.64 512z"}},{"type":"element","name":"path","attributes":{"d":"M187.68 144L96 234.4 377.76 512 96 789.6 187.68 880 561.28 512 187.68 144z"}}]}');
|
2389
|
-
const data$
|
2390
|
+
const data$A = JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M358.4 729.6l-48-48 176-176-176-176 48-48 224 224L358.4 729.6z"}},{"type":"element","name":"path","attributes":{"d":"M550.4 729.6l-48-48 176-176-176-176 48-48 224 224L550.4 729.6z"}}]}');
|
2390
2391
|
const angleDoubleRight = (props, context) => {
|
2391
2392
|
const p2 = __spreadValues(__spreadValues({}, props), context.attrs);
|
2392
2393
|
return createVNode(bkIcon, mergeProps(p2, {
|
2393
|
-
"data": data$
|
2394
|
+
"data": data$A,
|
2394
2395
|
"name": "angleDoubleRight"
|
2395
2396
|
}), null);
|
2396
2397
|
};
|
2397
2398
|
angleDoubleRight.displayName = "angleDoubleRight";
|
2398
2399
|
angleDoubleRight.inheritAttrs = false;
|
2399
2400
|
JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M512 279.36L789.6 561.28 880 469.44 512 96 144 469.44 234.4 561.28 512 279.36z"}},{"type":"element","name":"path","attributes":{"d":"M144 836.32L234.4 928 512 646.08 789.6 928 880 836.32 512 462.72 144 836.32z"}}]}');
|
2400
|
-
const data$
|
2401
|
+
const data$z = JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M512 256L96 704 187.04 704 512 704 836.96 704 928 704 512 256z"}}]}');
|
2401
2402
|
const angleDownFill = (props, context) => {
|
2402
2403
|
const p2 = __spreadValues(__spreadValues({}, props), context.attrs);
|
2403
2404
|
return createVNode(bkIcon, mergeProps(p2, {
|
2404
|
-
"data": data$
|
2405
|
+
"data": data$z,
|
2405
2406
|
"name": "angleDownFill"
|
2406
2407
|
}), null);
|
2407
2408
|
};
|
2408
2409
|
angleDownFill.displayName = "angleDownFill";
|
2409
2410
|
angleDownFill.inheritAttrs = false;
|
2410
|
-
const data$
|
2411
|
+
const data$y = JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M512 762.56L98.72 349.28 189.28 258.72 512 581.44 834.72 258.72 925.28 349.28 512 762.56z"}}]}');
|
2411
2412
|
const angleDownLine = (props, context) => {
|
2412
2413
|
const p2 = __spreadValues(__spreadValues({}, props), context.attrs);
|
2413
2414
|
return createVNode(bkIcon, mergeProps(p2, {
|
2414
|
-
"data": data$
|
2415
|
+
"data": data$y,
|
2415
2416
|
"name": "angleDownLine"
|
2416
2417
|
}), null);
|
2417
2418
|
};
|
2418
2419
|
angleDownLine.displayName = "angleDownLine";
|
2419
2420
|
angleDownLine.inheritAttrs = false;
|
2420
|
-
const data$
|
2421
|
+
const data$x = JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M288 448L336 400 512 576 688 400 736 448 512 672z"}}]}');
|
2421
2422
|
const angleDown = (props, context) => {
|
2422
2423
|
const p2 = __spreadValues(__spreadValues({}, props), context.attrs);
|
2423
2424
|
return createVNode(bkIcon, mergeProps(p2, {
|
2424
|
-
"data": data$
|
2425
|
+
"data": data$x,
|
2425
2426
|
"name": "angleDown"
|
2426
2427
|
}), null);
|
2427
2428
|
};
|
2428
2429
|
angleDown.displayName = "angleDown";
|
2429
2430
|
angleDown.inheritAttrs = false;
|
2430
|
-
const data$
|
2431
|
+
const data$w = JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M376 504L600 280 648 328 472 504 648 680 600 728 376 504z"}}]}');
|
2431
2432
|
const angleLeft = (props, context) => {
|
2432
2433
|
const p2 = __spreadValues(__spreadValues({}, props), context.attrs);
|
2433
2434
|
return createVNode(bkIcon, mergeProps(p2, {
|
2434
|
-
"data": data$
|
2435
|
+
"data": data$w,
|
2435
2436
|
"name": "angleLeft"
|
2436
2437
|
}), null);
|
2437
2438
|
};
|
2438
2439
|
angleLeft.displayName = "angleLeft";
|
2439
2440
|
angleLeft.inheritAttrs = false;
|
2440
|
-
const data$
|
2441
|
+
const data$v = JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M424 728L376 680 552 504 376 328 424 280 648 504 424 728z"}}]}');
|
2441
2442
|
const angleRight = (props, context) => {
|
2442
2443
|
const p2 = __spreadValues(__spreadValues({}, props), context.attrs);
|
2443
2444
|
return createVNode(bkIcon, mergeProps(p2, {
|
2444
|
-
"data": data$
|
2445
|
+
"data": data$v,
|
2445
2446
|
"name": "angleRight"
|
2446
2447
|
}), null);
|
2447
2448
|
};
|
2448
2449
|
angleRight.displayName = "angleRight";
|
2449
2450
|
angleRight.inheritAttrs = false;
|
2450
|
-
const data$
|
2451
|
+
const data$u = JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M512 704L96 256 187.04 256 512 256 836.96 256 928 256 512 704z"}}]}');
|
2451
2452
|
const angleUpFill = (props, context) => {
|
2452
2453
|
const p2 = __spreadValues(__spreadValues({}, props), context.attrs);
|
2453
2454
|
return createVNode(bkIcon, mergeProps(p2, {
|
2454
|
-
"data": data$
|
2455
|
+
"data": data$u,
|
2455
2456
|
"name": "angleUpFill"
|
2456
2457
|
}), null);
|
2457
2458
|
};
|
2458
2459
|
angleUpFill.displayName = "angleUpFill";
|
2459
2460
|
angleUpFill.inheritAttrs = false;
|
2460
|
-
const data$
|
2461
|
+
const data$t = JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M512 368L736 592 688 640 512 464 336 640 288 592 512 368z"}}]}');
|
2461
2462
|
const angleUp = (props, context) => {
|
2462
2463
|
const p2 = __spreadValues(__spreadValues({}, props), context.attrs);
|
2463
2464
|
return createVNode(bkIcon, mergeProps(p2, {
|
2464
|
-
"data": data$
|
2465
|
+
"data": data$t,
|
2465
2466
|
"name": "angleUp"
|
2466
2467
|
}), null);
|
2467
2468
|
};
|
2468
2469
|
angleUp.displayName = "angleUp";
|
2469
2470
|
angleUp.inheritAttrs = false;
|
2470
|
-
const data$
|
2471
|
+
const data$s = JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","class":"bk-icon","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M416 480h320v64H416l96 96-48 48L288 512l176-176L512 384 416 480z"}}]}');
|
2471
2472
|
const arrowsLeft = (props, context) => {
|
2472
2473
|
const p2 = __spreadValues(__spreadValues({}, props), context.attrs);
|
2473
2474
|
return createVNode(bkIcon, mergeProps(p2, {
|
2474
|
-
"data": data$
|
2475
|
+
"data": data$s,
|
2475
2476
|
"name": "arrowsLeft"
|
2476
2477
|
}), null);
|
2477
2478
|
};
|
2478
2479
|
arrowsLeft.displayName = "arrowsLeft";
|
2479
2480
|
arrowsLeft.inheritAttrs = false;
|
2480
|
-
const data$
|
2481
|
+
const data$r = JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M608 480H288v64H608l-96 96 48 48L736 512l-176-176L512 384Z"}}]}');
|
2481
2482
|
const arrowsRight = (props, context) => {
|
2482
2483
|
const p2 = __spreadValues(__spreadValues({}, props), context.attrs);
|
2483
2484
|
return createVNode(bkIcon, mergeProps(p2, {
|
2484
|
-
"data": data$
|
2485
|
+
"data": data$r,
|
2485
2486
|
"name": "arrowsRight"
|
2486
2487
|
}), null);
|
2487
2488
|
};
|
2488
2489
|
arrowsRight.displayName = "arrowsRight";
|
2489
2490
|
arrowsRight.inheritAttrs = false;
|
2490
2491
|
JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M384 289.28c103.50933333333333 18.986666666666665 183.89333333333332 99.37066666666666 202.62399999999997 201.344l5.3759999999999994 37.376c1.664 83.62666666666667 32.59733333333333 159.7013333333333 82.94399999999999 218.70933333333335 32.72533333333333 37.84533333333333 81.024 62.29333333333333 135.08266666666665 63.53066666666667 2.9013333333333335 0.128 6.0586666666666655 0.21333333333333332 9.216 0.21333333333333332 49.834666666666664 0 95.488-17.962666666666664 130.81599999999997-47.78666666666667 47.40266666666666-42.367999999999995 77.312-104.10666666666665 77.312-172.79999999999998 0-13.952-1.2373333333333334-27.562666666666665-3.584-40.831999999999994-15.786666666666665-115.62666666666667-96.29866666666666-210.43200000000002-203.73333333333335-246.91199999999998-5.8453333333333335-59.98933333333333-33.49333333333333-112.21333333333332-75.47733333333332-148.224-37.33333333333333-34.432-87.03999999999999-55.42399999999999-141.61066666666665-55.42399999999999-15.445333333333332 0-30.506666666666664 1.664-45.01333333333333 4.864-50.986666666666665 13.141333333333332-95.01866666666666 42.83733333333333-126.208 83.072-5.333333333333333 6.143999999999999-8.362666666666666 13.568-8.362666666666666 21.674666666666667 0 9.685333333333332 4.309333333333333 18.389333333333333 11.136 24.27733333333333l3.8826666666666663 0.042666666666666665c-16.21333333333333-4.053333333333333-34.901333333333326-6.613333333333333-54.10133333333333-7.04-6.101333333333333-0.38399999999999995-12.927999999999999-0.6399999999999999-19.797333333333334-0.6399999999999999s-13.696 0.21333333333333332-20.43733333333333 0.6826666666666666l0.9386666666666665-10.922666666666666c2.1333333333333333-25.813333333333333 17.194666666666667-47.70133333333334 38.656-59.30666666666666 9.173333333333332-6.015999999999999 14.933333333333332-15.872 14.933333333333332-27.093333333333334 0-17.749333333333333-14.378666666666668-32.128-32.128-32.128-6.528 0-12.629333333333332 1.9626666666666666-17.706666666666663 5.333333333333333-21.290666666666667 13.653333333333332-38.18666666666667 32.81066666666666-48.81066666666666 55.42399999999999-15.274666666666665-6.442666666666666-32.85333333333333-10.709333333333333-51.413333333333334-10.709333333333333-8.661333333333333 0-17.109333333333332 0.9386666666666665-25.258666666666663 2.6879999999999997-14.037333333333333 3.1999999999999997-24.959999999999997 16.256-24.959999999999997 31.872 0 18.090666666666664 14.677333333333332 32.768 32.768 32.768 2.474666666666667 0 4.906666666666666-0.29866666666666664 7.253333333333334-0.8106666666666666 2.1333333333333333-0.29866666666666664 4.8213333333333335-0.512 7.552-0.512 18.048 0 34.176 8.405333333333333 44.629333333333335 21.546666666666667l0.08533333333333333 0.128c-122.24000000000001 28.16-197.12 139.51999999999998-240 236.79999999999998-33.28 74.88-80.63999999999999 215.67999999999998-24.319999999999997 316.79999999999995 29.610666666666663 61.056 88.96 103.55199999999999 158.72 108.75733333333332l704.64 0.042666666666666665c17.663999999999998 0 32-14.336 32-32s-14.336-32-32-32h-704c-46.848-4.906666666666666-85.80266666666667-34.474666666666664-103.97866666666665-75.34933333333333-44.50133333333333-80.17066666666666 3.498666666666667-208.81066666666666 26.538666666666664-260.65066666666667 65.91999999999999-147.2 156.79999999999998-217.59999999999997 275.84-206.71999999999997zM480 229.12c22.826666666666668-30.976 55.296-53.63199999999999 92.88533333333334-63.744 10.069333333333333-2.1759999999999997 20.266666666666666-3.2426666666666666 30.72-3.2426666666666666 37.888 0 72.448 14.250666666666667 98.60266666666666 37.67466666666667 31.786666666666665 28.8 51.754666666666665 70.39999999999999 51.754666666666665 116.69333333333333 0 1.2373333333333334 0 2.474666666666667-0.042666666666666665 3.7119999999999997l0 32.46933333333333 24.959999999999997 3.84c95.27466666666666 23.296 167.25333333333333 101.50399999999999 180.992 198.4 1.92 10.495999999999999 2.944 21.119999999999997 2.944 32 0 52.522666666666666-23.59466666666667 99.49866666666665-60.75733333333333 130.98666666666665-21.503999999999998 16.554666666666666-48.512 26.368-77.824 26.368-4.224 0-8.448-0.21333333333333332-12.586666666666666-0.5973333333333333 0.512 0.042666666666666665 0.512 0.042666666666666665 0.512 0.042666666666666665-35.583999999999996 0-67.54133333333333-15.530666666666665-89.472-40.19199999999999-39.38133333333333-48.768-63.40266666666666-111.18933333333332-64.08533333333332-179.15733333333333l-5.76-42.410666666666664c-22.954666666666668-111.744-100.30933333333333-201.38666666666666-202.58133333333333-241.152-1.1093333333333333-0.6399999999999999 0.21333333333333332-0.5546666666666666 1.5359999999999998-0.5546666666666666 10.239999999999998 0 19.413333333333334-4.522666666666666 25.599999999999998-11.690666666666667z"}}]}');
|
2491
|
-
const data$
|
2492
|
+
const data$q = JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M512 0c-17.919999999999998 0-32 14.08-32 32s14.08 32 32 32c247.04 0 448 200.95999999999998 448 448 0 17.919999999999998 14.08 32 32 32s32-14.08 32-32c0-282.24-229.76-512-512-512z"}}]}');
|
2492
2493
|
const circle = (props, context) => {
|
2493
2494
|
const p2 = __spreadValues(__spreadValues({}, props), context.attrs);
|
2494
2495
|
return createVNode(bkIcon, mergeProps(p2, {
|
2495
|
-
"data": data$
|
2496
|
+
"data": data$q,
|
2496
2497
|
"name": "circle"
|
2497
2498
|
}), null);
|
2498
2499
|
};
|
2499
2500
|
circle.displayName = "circle";
|
2500
2501
|
circle.inheritAttrs = false;
|
2501
|
-
const data$
|
2502
|
+
const data$p = JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M902.56 166.56L857.44 121.44 512 466.72 166.56 121.44 121.44 166.56 466.72 512 121.44 857.44 166.56 902.56 512 557.28 857.44 902.56 902.56 857.44 557.28 512 902.56 166.56z"}}]}');
|
2503
|
+
const closeLine = (props, context) => {
|
2504
|
+
const p2 = __spreadValues(__spreadValues({}, props), context.attrs);
|
2505
|
+
return createVNode(bkIcon, mergeProps(p2, {
|
2506
|
+
"data": data$p,
|
2507
|
+
"name": "closeLine"
|
2508
|
+
}), null);
|
2509
|
+
};
|
2510
|
+
closeLine.displayName = "closeLine";
|
2511
|
+
closeLine.inheritAttrs = false;
|
2512
|
+
const data$o = JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","class":"bk-icon","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;","overflow":"hidden","viewBox":"0 0 1024 1024"},"elements":[{"type":"element","name":"path","attributes":{"d":"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zM670.4 625.1l-45.3 45.3L512 557.3 398.9 670.4l-45.3-45.3L466.7 512 353.6 398.9l45.3-45.3L512 466.7l113.1-113.1 45.3 45.3L557.3 512 670.4 625.1z"}}]}');
|
2502
2513
|
const close$1 = (props, context) => {
|
2503
2514
|
const p2 = __spreadValues(__spreadValues({}, props), context.attrs);
|
2504
2515
|
return createVNode(bkIcon, mergeProps(p2, {
|
2505
|
-
"data": data$
|
2516
|
+
"data": data$o,
|
2506
2517
|
"name": "close"
|
2507
2518
|
}), null);
|
2508
2519
|
};
|
2509
2520
|
close$1.displayName = "close";
|
2510
2521
|
close$1.inheritAttrs = false;
|
2511
2522
|
JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M1011.1999999999999 489.59999999999997l-224-224c-12.799999999999999-12.799999999999999-32.64-12.799999999999999-45.44 0s-12.799999999999999 32.64 0 45.44l201.59999999999997 200.95999999999998-201.59999999999997 201.59999999999997c-12.799999999999999 12.799999999999999-12.799999999999999 32.64 0 45.44 6.3999999999999995 6.3999999999999995 14.719999999999999 9.6 22.4 9.6s16.64-3.1999999999999997 22.4-9.6l224-224c12.799999999999999-12.799999999999999 12.799999999999999-33.28 0.6399999999999999-45.44z"}},{"type":"element","name":"path","attributes":{"d":"M282.24 265.59999999999997c-12.799999999999999-12.799999999999999-32.64-12.799999999999999-45.44 0l-224 224c-12.799999999999999 12.799999999999999-12.799999999999999 32.64 0 45.44l224 224c6.3999999999999995 5.76 14.719999999999999 8.959999999999999 23.04 8.959999999999999s16.64-3.1999999999999997 22.4-9.6c12.799999999999999-12.799999999999999 12.799999999999999-32.64 0-45.44l-201.59999999999997-200.95999999999998 201.59999999999997-201.59999999999997c12.159999999999998-12.159999999999998 12.159999999999998-32.64 0-44.8z"}},{"type":"element","name":"path","attributes":{"d":"M616.3199999999999 129.27999999999997c-16.64-5.119999999999999-34.56 5.119999999999999-39.04 22.4l-192 704c-4.4799999999999995 17.28 5.119999999999999 34.56 22.4 39.04 2.5599999999999996 0.6399999999999999 5.76 1.2799999999999998 8.32 1.2799999999999998 14.08 0 26.88-9.6 30.72-23.68l192-704c4.4799999999999995-16.64-5.119999999999999-34.56-22.4-39.04z"}}]}');
|
2512
|
-
JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M608 512A96 96 0 0 1 512 608 96 96 0 0 1 416 512 96 96 0 0 1 608 512z"}},{"type":"element","name":"path","attributes":{"d":"M860.8 558.4c4.8-30.4 4.8-62.4 0-92.8l67.2-57.6c9.6-8 14.4-22.4 9.6-35.2-19.2-59.2-51.2-115.2-92.8-161.6-6.4-6.4-14.4-11.2-24-11.2-3.2 0-8 0-11.2 1.6l-83.2 30.4c-24-19.2-52.8-35.2-81.6-46.4l-16-86.4c-1.6-12.8-12.8-22.4-25.6-25.6-60.8-12.8-124.8-12.8-185.6 0-12.8 3.2-22.4 12.8-24 25.6l-16 86.4c-28.8 11.2-56 27.2-81.6 46.4l-83.2-30.4c-3.2-1.6-6.4-1.6-11.2-1.6-9.6 0-17.6 3.2-24 11.2-41.6 46.4-73.6 100.8-92.8 161.6-4.8 12.8 0 27.2 9.6 35.2l67.2 57.6C160 496 160 528 163.2 558.4L96 616c-9.6 8-14.4 22.4-9.6 35.2 19.2 59.2 51.2 115.2 92.8 161.6 6.4 6.4 14.4 11.2 24 11.2 3.2 0 8 0 11.2-1.6l83.2-30.4c24 19.2 52.8 35.2 81.6 46.4l16 86.4c1.6 12.8 12.8 22.4 25.6 25.6 60.8 12.8 124.8 12.8 185.6 0 12.8-3.2 22.4-12.8 25.6-25.6l16-86.4c28.8-11.2 56-27.2 81.6-46.4l83.2 30.4c3.2 1.6 6.4 1.6 11.2 1.6 9.6 0 17.6-3.2 24-11.2 41.6-46.4 73.6-100.8 92.8-161.6 3.2-12.8 0-27.2-11.2-35.2L860.8 558.4zM512 672c-88 0-160-72-160-160s72-160 160-160 160 72 160 160S600 672 512 672z"}}]}');
|
2523
|
+
const data$n = JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M608 512A96 96 0 0 1 512 608 96 96 0 0 1 416 512 96 96 0 0 1 608 512z"}},{"type":"element","name":"path","attributes":{"d":"M860.8 558.4c4.8-30.4 4.8-62.4 0-92.8l67.2-57.6c9.6-8 14.4-22.4 9.6-35.2-19.2-59.2-51.2-115.2-92.8-161.6-6.4-6.4-14.4-11.2-24-11.2-3.2 0-8 0-11.2 1.6l-83.2 30.4c-24-19.2-52.8-35.2-81.6-46.4l-16-86.4c-1.6-12.8-12.8-22.4-25.6-25.6-60.8-12.8-124.8-12.8-185.6 0-12.8 3.2-22.4 12.8-24 25.6l-16 86.4c-28.8 11.2-56 27.2-81.6 46.4l-83.2-30.4c-3.2-1.6-6.4-1.6-11.2-1.6-9.6 0-17.6 3.2-24 11.2-41.6 46.4-73.6 100.8-92.8 161.6-4.8 12.8 0 27.2 9.6 35.2l67.2 57.6C160 496 160 528 163.2 558.4L96 616c-9.6 8-14.4 22.4-9.6 35.2 19.2 59.2 51.2 115.2 92.8 161.6 6.4 6.4 14.4 11.2 24 11.2 3.2 0 8 0 11.2-1.6l83.2-30.4c24 19.2 52.8 35.2 81.6 46.4l16 86.4c1.6 12.8 12.8 22.4 25.6 25.6 60.8 12.8 124.8 12.8 185.6 0 12.8-3.2 22.4-12.8 25.6-25.6l16-86.4c28.8-11.2 56-27.2 81.6-46.4l83.2 30.4c3.2 1.6 6.4 1.6 11.2 1.6 9.6 0 17.6-3.2 24-11.2 41.6-46.4 73.6-100.8 92.8-161.6 3.2-12.8 0-27.2-11.2-35.2L860.8 558.4zM512 672c-88 0-160-72-160-160s72-160 160-160 160 72 160 160S600 672 512 672z"}}]}');
|
2524
|
+
const cogShape = (props, context) => {
|
2525
|
+
const p2 = __spreadValues(__spreadValues({}, props), context.attrs);
|
2526
|
+
return createVNode(bkIcon, mergeProps(p2, {
|
2527
|
+
"data": data$n,
|
2528
|
+
"name": "cogShape"
|
2529
|
+
}), null);
|
2530
|
+
};
|
2531
|
+
cogShape.displayName = "cogShape";
|
2532
|
+
cogShape.inheritAttrs = false;
|
2513
2533
|
const data$m = JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M496 216l-76.32 76.32 152.64 152.8H64v101.76H572.16l-152.48 152.8L496 776 775.52 496Zm362.4 0v560H960v-560Z"}}]}');
|
2514
2534
|
const collapseLeft = (props, context) => {
|
2515
2535
|
const p2 = __spreadValues(__spreadValues({}, props), context.attrs);
|
@@ -8283,7 +8303,7 @@ var Component$u = defineComponent({
|
|
8283
8303
|
setup(props, {
|
8284
8304
|
slots
|
8285
8305
|
}) {
|
8286
|
-
const
|
8306
|
+
const container2 = ref(null);
|
8287
8307
|
const el = ref(null);
|
8288
8308
|
const visible = ref(false);
|
8289
8309
|
const zIndex = ref(bkZIndexManager.getModalNextIndex());
|
@@ -8302,19 +8322,19 @@ var Component$u = defineComponent({
|
|
8302
8322
|
zIndex.value = bkZIndexManager.getModalNextIndex();
|
8303
8323
|
});
|
8304
8324
|
onMounted(() => {
|
8305
|
-
|
8325
|
+
container2.value = document;
|
8306
8326
|
el.value = document.documentElement;
|
8307
8327
|
if (props.target) {
|
8308
8328
|
el.value = document.querySelector(props.target);
|
8309
8329
|
if (!el.value) {
|
8310
8330
|
throw new Error("target does not exist");
|
8311
8331
|
}
|
8312
|
-
|
8332
|
+
container2.value = el.value;
|
8313
8333
|
}
|
8314
|
-
|
8334
|
+
container2.value.addEventListener("scroll", scrollHandler);
|
8315
8335
|
});
|
8316
8336
|
onBeforeUnmount(() => {
|
8317
|
-
|
8337
|
+
container2.value.removeEventListener("scroll", scrollHandler);
|
8318
8338
|
});
|
8319
8339
|
return () => createVNode(Transition, {
|
8320
8340
|
"name": "bk-fade"
|
@@ -8737,6 +8757,7 @@ var Component$p = defineComponent({
|
|
8737
8757
|
"class",
|
8738
8758
|
"style"
|
8739
8759
|
]);
|
8760
|
+
const inputRef = ref();
|
8740
8761
|
const inputCls = computed(() => classes({
|
8741
8762
|
[`${inputClsPrefix.value}--${props.size}`]: !!props.size,
|
8742
8763
|
"is-focused": isFocused.value,
|
@@ -8770,6 +8791,12 @@ var Component$p = defineComponent({
|
|
8770
8791
|
const clearCls = computed(() => classes({
|
8771
8792
|
"show-clear-only-hover": props.showClearOnlyHover
|
8772
8793
|
}, suffixCls));
|
8794
|
+
ctx.expose({
|
8795
|
+
focus() {
|
8796
|
+
inputRef.value.focus();
|
8797
|
+
},
|
8798
|
+
clear
|
8799
|
+
});
|
8773
8800
|
function clear() {
|
8774
8801
|
ctx.emit(EventEnum["update:modelValue"], "");
|
8775
8802
|
ctx.emit(EventEnum.change, "");
|
@@ -8785,18 +8812,15 @@ var Component$p = defineComponent({
|
|
8785
8812
|
}
|
8786
8813
|
function eventHandler(eventName) {
|
8787
8814
|
return (e) => {
|
8788
|
-
let originEventName = eventName;
|
8789
8815
|
if (e.code === "Enter" || e.key === "Enter" || e.keyCode === 13) {
|
8790
|
-
|
8791
|
-
if (e.type !== EventEnum.keyup)
|
8792
|
-
return;
|
8816
|
+
ctx.emit(EventEnum.enter, e.target.value, e);
|
8793
8817
|
}
|
8794
8818
|
if (isCNInput.value && [EventEnum.input, EventEnum.change].some((e2) => eventName === e2))
|
8795
8819
|
return;
|
8796
8820
|
if (eventName === EventEnum.input) {
|
8797
8821
|
ctx.emit(EventEnum["update:modelValue"], isNumberInput.value ? +e.target.value : e.target.value);
|
8798
8822
|
}
|
8799
|
-
ctx.emit(
|
8823
|
+
ctx.emit(eventName, e.target.value, e);
|
8800
8824
|
};
|
8801
8825
|
}
|
8802
8826
|
const [handleKeyup, handleKeydown, handleKeyPress, handlePaste, handleChange, handleInput] = [EventEnum.keyup, EventEnum.keydown, EventEnum.keypress, EventEnum.paste, EventEnum.change, EventEnum.input].map(eventHandler);
|
@@ -8861,9 +8885,12 @@ var Component$p = defineComponent({
|
|
8861
8885
|
"class": getCls("prefix-area")
|
8862
8886
|
}, [createVNode("span", {
|
8863
8887
|
"class": getCls("prefix-area--text")
|
8864
|
-
}, [props.prefix])]), isTextArea.value ? createVNode("textarea", mergeProps(
|
8888
|
+
}, [props.prefix])]), isTextArea.value ? createVNode("textarea", mergeProps({
|
8889
|
+
"ref": inputRef
|
8890
|
+
}, inputAttrs, bindProps.value, {
|
8865
8891
|
"rows": props.rows
|
8866
8892
|
}), null) : createVNode("input", mergeProps(inputAttrs, {
|
8893
|
+
"ref": inputRef,
|
8867
8894
|
"class": `${inputClsPrefix.value}--text`,
|
8868
8895
|
"type": pwdVisible.value && props.type === "password" ? "text" : props.type,
|
8869
8896
|
"step": props.step,
|
@@ -9276,8 +9303,8 @@ var Component$m = defineComponent({
|
|
9276
9303
|
const BkCollaspe = withInstall(Component$m);
|
9277
9304
|
const propsMixin$1 = {
|
9278
9305
|
isShow: PropTypes.bool.def(false),
|
9279
|
-
width: PropTypes.
|
9280
|
-
height: PropTypes.
|
9306
|
+
width: PropTypes.oneOfType([String, Number]),
|
9307
|
+
height: PropTypes.oneOfType([String, Number]),
|
9281
9308
|
customClass: PropTypes.string || PropTypes.array,
|
9282
9309
|
scrollable: PropTypes.bool.def(true),
|
9283
9310
|
showMask: PropTypes.bool.def(true),
|
@@ -9286,7 +9313,8 @@ const propsMixin$1 = {
|
|
9286
9313
|
maskClose: PropTypes.bool.def(true),
|
9287
9314
|
fullscreen: PropTypes.bool.def(false),
|
9288
9315
|
size: PropTypes.commonType(["normal", "small", "medium", "large"], "size").def("normal"),
|
9289
|
-
draggable: PropTypes.bool.def(true)
|
9316
|
+
draggable: PropTypes.bool.def(true),
|
9317
|
+
dialogType: PropTypes.commonType(["show", "operation", "confirm", "process"], "dialogType").def("operation")
|
9290
9318
|
};
|
9291
9319
|
var Component$l = defineComponent({
|
9292
9320
|
name: "Modal",
|
@@ -9336,23 +9364,30 @@ var Component$l = defineComponent({
|
|
9336
9364
|
bkPopIndexManager.hide(this.$el);
|
9337
9365
|
},
|
9338
9366
|
render() {
|
9339
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
9367
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
|
9340
9368
|
return createVNode("div", {
|
9341
9369
|
"class": ["bk-modal-wrapper", this.customClass],
|
9342
9370
|
"style": this.compStyle
|
9343
|
-
}, [this.isShow ? createVNode("div", {
|
9371
|
+
}, [this.isShow && this.dialogType === "show" ? createVNode("div", {
|
9344
9372
|
"class": "bk-modal-body"
|
9345
9373
|
}, [createVNode("div", {
|
9346
9374
|
"class": "bk-modal-header"
|
9347
9375
|
}, [(_c = (_b = (_a = this.$slots).header) == null ? void 0 : _b.call(_a)) != null ? _c : ""]), createVNode("div", {
|
9376
|
+
"class": "bk-modal-content",
|
9377
|
+
"style": "height: calc(100% - 74px);margin-bottom: 0px;"
|
9378
|
+
}, [(_f = (_e = (_d = this.$slots).default) == null ? void 0 : _e.call(_d)) != null ? _f : ""])]) : createVNode("div", {
|
9379
|
+
"class": "bk-modal-body"
|
9380
|
+
}, [createVNode("div", {
|
9381
|
+
"class": "bk-modal-header"
|
9382
|
+
}, [(_i = (_h = (_g = this.$slots).header) == null ? void 0 : _h.call(_g)) != null ? _i : ""]), createVNode("div", {
|
9348
9383
|
"class": "bk-modal-content"
|
9349
|
-
}, [(
|
9384
|
+
}, [(_l = (_k = (_j = this.$slots).default) == null ? void 0 : _k.call(_j)) != null ? _l : ""]), createVNode("div", {
|
9350
9385
|
"class": "bk-modal-footer"
|
9351
|
-
}, [(
|
9386
|
+
}, [(_o = (_n = (_m = this.$slots).footer) == null ? void 0 : _n.call(_m)) != null ? _o : ""])])]);
|
9352
9387
|
}
|
9353
9388
|
});
|
9354
9389
|
const BkModal = withInstallProps(Component$l, { propsMixin: propsMixin$1 }, true);
|
9355
|
-
function _isSlot$
|
9390
|
+
function _isSlot$5(s2) {
|
9356
9391
|
return typeof s2 === "function" || Object.prototype.toString.call(s2) === "[object Object]" && !isVNode(s2);
|
9357
9392
|
}
|
9358
9393
|
var Component$k = defineComponent({
|
@@ -9362,17 +9397,21 @@ var Component$k = defineComponent({
|
|
9362
9397
|
BkButton
|
9363
9398
|
},
|
9364
9399
|
props: __spreadProps(__spreadValues({}, propsMixin$1), {
|
9365
|
-
width: PropTypes.
|
9366
|
-
height: PropTypes.
|
9400
|
+
width: PropTypes.oneOfType([String, Number]).def(""),
|
9401
|
+
height: PropTypes.oneOfType([String, Number]).def(""),
|
9367
9402
|
confirmText: PropTypes.string.def("\u786E\u5B9A"),
|
9368
9403
|
cancelText: PropTypes.string.def("\u53D6\u6D88"),
|
9404
|
+
prevText: PropTypes.string.def("\u4E0A\u4E00\u6B65"),
|
9405
|
+
nextText: PropTypes.string.def("\u4E0B\u4E00\u6B65"),
|
9406
|
+
current: PropTypes.number.def(1),
|
9407
|
+
totalStep: PropTypes.number,
|
9369
9408
|
title: PropTypes.string.def("title"),
|
9370
9409
|
headerAlign: PropTypes.commonType(["left", "center", "right"], "headerAlign").def("left"),
|
9371
9410
|
footerAlign: PropTypes.commonType(["left", "center", "right"], "footerAlign").def("right"),
|
9372
9411
|
theme: PropTypes.commonType(["primary", "warning", "success", "danger"], "theme").def("primary"),
|
9373
9412
|
isLoading: PropTypes.bool.def(false)
|
9374
9413
|
}),
|
9375
|
-
emits: ["closed", "update:isShow", "confirm"],
|
9414
|
+
emits: ["closed", "update:isShow", "confirm", "prev", "next"],
|
9376
9415
|
setup(props, {
|
9377
9416
|
emit
|
9378
9417
|
}) {
|
@@ -9419,6 +9458,12 @@ var Component$k = defineComponent({
|
|
9419
9458
|
}
|
9420
9459
|
}
|
9421
9460
|
};
|
9461
|
+
const handlePrevStep = () => {
|
9462
|
+
emit("prev");
|
9463
|
+
};
|
9464
|
+
const handleNextStep = () => {
|
9465
|
+
emit("next");
|
9466
|
+
};
|
9422
9467
|
const moveHandler = (e) => {
|
9423
9468
|
if (props.fullscreen) {
|
9424
9469
|
return false;
|
@@ -9465,7 +9510,9 @@ var Component$k = defineComponent({
|
|
9465
9510
|
handleClose,
|
9466
9511
|
handleConfirm,
|
9467
9512
|
escCloseHandler,
|
9468
|
-
moveHandler
|
9513
|
+
moveHandler,
|
9514
|
+
handlePrevStep,
|
9515
|
+
handleNextStep
|
9469
9516
|
};
|
9470
9517
|
},
|
9471
9518
|
render() {
|
@@ -9490,29 +9537,56 @@ var Component$k = defineComponent({
|
|
9490
9537
|
return (_c = (_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a)) != null ? _c : "default";
|
9491
9538
|
},
|
9492
9539
|
footer: () => {
|
9493
|
-
var _a, _b, _c;
|
9540
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
9494
9541
|
return createVNode("div", {
|
9495
9542
|
"class": "bk-dialog-footer",
|
9496
9543
|
"style": `text-align: ${this.footerAlign}`
|
9497
|
-
}, [(_c = (_b = (_a = this.$slots).footer) == null ? void 0 : _b.call(_a)) != null ? _c : createVNode(Fragment, null, [createVNode(BkButton, {
|
9544
|
+
}, [this.dialogType === "process" ? (_c = (_b = (_a = this.$slots).footer) == null ? void 0 : _b.call(_a)) != null ? _c : createVNode(Fragment, null, [this.current === 1 ? "" : createVNode(BkButton, {
|
9545
|
+
"style": "float: left;margin-right: 8px",
|
9546
|
+
"onClick": this.handlePrevStep
|
9547
|
+
}, {
|
9548
|
+
default: () => [this.prevText]
|
9549
|
+
}), this.current === this.totalStep ? "" : createVNode(BkButton, {
|
9550
|
+
"style": "float: left",
|
9551
|
+
"onClick": this.handleNextStep
|
9552
|
+
}, {
|
9553
|
+
default: () => [this.nextText]
|
9554
|
+
}), this.current === this.totalStep ? createVNode(BkButton, {
|
9555
|
+
"onClick": this.handleConfirm,
|
9556
|
+
"theme": this.theme,
|
9557
|
+
"loading": this.isLoading
|
9558
|
+
}, {
|
9559
|
+
default: () => [this.confirmText]
|
9560
|
+
}) : "", createVNode(BkButton, {
|
9561
|
+
"style": "margin-left: 8px",
|
9562
|
+
"onClick": this.handleClose
|
9563
|
+
}, {
|
9564
|
+
default: () => [this.cancelText]
|
9565
|
+
})]) : "", this.dialogType === "operation" ? (_f = (_e = (_d = this.$slots).footer) == null ? void 0 : _e.call(_d)) != null ? _f : createVNode(Fragment, null, [createVNode(BkButton, {
|
9498
9566
|
"onClick": this.handleConfirm,
|
9499
9567
|
"theme": this.theme,
|
9500
9568
|
"loading": this.isLoading
|
9501
9569
|
}, {
|
9502
9570
|
default: () => [this.confirmText]
|
9503
9571
|
}), createVNode(BkButton, {
|
9504
|
-
"style": "margin-left: 8px
|
9572
|
+
"style": "margin-left: 8px",
|
9505
9573
|
"onClick": this.handleClose
|
9506
9574
|
}, {
|
9507
9575
|
default: () => [this.cancelText]
|
9508
|
-
})])
|
9576
|
+
})]) : "", this.dialogType === "confirm" ? (_i = (_h = (_g = this.$slots).footer) == null ? void 0 : _h.call(_g)) != null ? _i : createVNode(Fragment, null, [createVNode(BkButton, {
|
9577
|
+
"onClick": this.handleConfirm,
|
9578
|
+
"theme": this.theme,
|
9579
|
+
"loading": this.isLoading
|
9580
|
+
}, {
|
9581
|
+
default: () => [this.confirmText]
|
9582
|
+
})]) : ""]);
|
9509
9583
|
}
|
9510
9584
|
};
|
9511
9585
|
const className = `bk-dialog-wrapper ${this.scrollable ? "scroll-able" : ""}`;
|
9512
9586
|
return createVNode(BkModal, mergeProps(this.$props, {
|
9513
9587
|
"class": [className, this.fullscreen ? "bk-model-fullscreen" : this.size],
|
9514
9588
|
"style": this.data.moveStyle
|
9515
|
-
}), _isSlot$
|
9589
|
+
}), _isSlot$5(dialogSlot) ? dialogSlot : {
|
9516
9590
|
default: () => [dialogSlot]
|
9517
9591
|
});
|
9518
9592
|
}
|
@@ -9949,7 +10023,7 @@ const Line = (_2, {
|
|
9949
10023
|
"style": titleStyle
|
9950
10024
|
}, [showDefault()])])]), showDefault(false)]);
|
9951
10025
|
};
|
9952
|
-
function _isSlot$
|
10026
|
+
function _isSlot$4(s2) {
|
9953
10027
|
return typeof s2 === "function" || Object.prototype.toString.call(s2) === "[object Object]" && !isVNode(s2);
|
9954
10028
|
}
|
9955
10029
|
var Component$f = defineComponent({
|
@@ -10014,11 +10088,11 @@ var Component$f = defineComponent({
|
|
10014
10088
|
const $props = __spreadProps(__spreadValues({}, this.$props), {
|
10015
10089
|
percent: this.validPercent(this.percent)
|
10016
10090
|
});
|
10017
|
-
let progress2 = createVNode(Line, $props, _isSlot$
|
10091
|
+
let progress2 = createVNode(Line, $props, _isSlot$4(progressInfo) ? progressInfo : {
|
10018
10092
|
default: () => [progressInfo]
|
10019
10093
|
});
|
10020
10094
|
if (this.type === "circle" || this.type === "dashboard") {
|
10021
|
-
progress2 = createVNode(Circle, $props, _isSlot$
|
10095
|
+
progress2 = createVNode(Circle, $props, _isSlot$4(progressInfo) ? progressInfo : {
|
10022
10096
|
default: () => [progressInfo]
|
10023
10097
|
});
|
10024
10098
|
}
|
@@ -11669,7 +11743,7 @@ var Component$a = defineComponent({
|
|
11669
11743
|
}
|
11670
11744
|
});
|
11671
11745
|
const BkSelect = withInstallProps(Component$a, { Option: BkOption, Group: OptionGroup });
|
11672
|
-
function _isSlot$
|
11746
|
+
function _isSlot$3(s2) {
|
11673
11747
|
return typeof s2 === "function" || Object.prototype.toString.call(s2) === "[object Object]" && !isVNode(s2);
|
11674
11748
|
}
|
11675
11749
|
const {
|
@@ -11730,7 +11804,7 @@ var Component$9 = defineComponent({
|
|
11730
11804
|
return createVNode(BkModal, mergeProps(this.$props, {
|
11731
11805
|
"class": className,
|
11732
11806
|
"style": `${this.direction}: 0`
|
11733
|
-
}), _isSlot$
|
11807
|
+
}), _isSlot$3(dialogSlot) ? dialogSlot : {
|
11734
11808
|
default: () => [dialogSlot]
|
11735
11809
|
});
|
11736
11810
|
}
|
@@ -12011,7 +12085,7 @@ function getMatchedIndex(maxCount, maxHeight, groupItemCount, callback) {
|
|
12011
12085
|
let diffHeight = 0;
|
12012
12086
|
let lastHeight = 0;
|
12013
12087
|
for (; startIndex < maxCount; startIndex++) {
|
12014
|
-
lastHeight = callback(startIndex, [startIndex * groupItemCount, (startIndex + 1) * groupItemCount]);
|
12088
|
+
lastHeight = callback(startIndex, [startIndex * groupItemCount, (startIndex + 1) * groupItemCount, "virtual"]);
|
12015
12089
|
if (height + lastHeight > maxHeight) {
|
12016
12090
|
diffHeight = maxHeight - height;
|
12017
12091
|
break;
|
@@ -12213,6 +12287,13 @@ var Component$6 = defineComponent({
|
|
12213
12287
|
pagination: pagination2,
|
12214
12288
|
throttleDelay: props.throttleDelay
|
12215
12289
|
};
|
12290
|
+
const reset2 = () => {
|
12291
|
+
handleChangeListConfig();
|
12292
|
+
afterListDataReset();
|
12293
|
+
};
|
12294
|
+
ctx.expose({
|
12295
|
+
reset: reset2
|
12296
|
+
});
|
12216
12297
|
return () => {
|
12217
12298
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
12218
12299
|
return h$1(renderAs || "div", {
|
@@ -12289,24 +12370,26 @@ const resolveColumnWidth = (root, colgroups, autoWidth = 20) => {
|
|
12289
12370
|
}
|
12290
12371
|
};
|
12291
12372
|
colgroups.forEach((col, index) => {
|
12292
|
-
|
12293
|
-
|
12294
|
-
|
12295
|
-
|
12296
|
-
|
12297
|
-
|
12298
|
-
|
12299
|
-
|
12300
|
-
|
12301
|
-
|
12302
|
-
|
12303
|
-
|
12373
|
+
if (!col.isHidden) {
|
12374
|
+
const colWidth = String(col.width);
|
12375
|
+
let isAutoWidthCol = true;
|
12376
|
+
if (/^\d+\.?\d*(px)?$/.test(colWidth)) {
|
12377
|
+
const numWidth = Number(colWidth.replace("px", ""));
|
12378
|
+
resolveColNumberWidth(col, numWidth);
|
12379
|
+
isAutoWidthCol = false;
|
12380
|
+
}
|
12381
|
+
if (/^\d+\.?\d*%$/.test(colWidth)) {
|
12382
|
+
let perWidth = autoWidth;
|
12383
|
+
if (avgWidth > 0) {
|
12384
|
+
const percent = Number(colWidth.replace("%", ""));
|
12385
|
+
perWidth = avgWidth * percent / 100;
|
12386
|
+
}
|
12387
|
+
resolveColNumberWidth(col, perWidth);
|
12388
|
+
isAutoWidthCol = false;
|
12389
|
+
}
|
12390
|
+
if (isAutoWidthCol) {
|
12391
|
+
avgColIndexList.push(index);
|
12304
12392
|
}
|
12305
|
-
resolveColNumberWidth(col, perWidth);
|
12306
|
-
isAutoWidthCol = false;
|
12307
|
-
}
|
12308
|
-
if (isAutoWidthCol) {
|
12309
|
-
avgColIndexList.push(index);
|
12310
12393
|
}
|
12311
12394
|
});
|
12312
12395
|
if (avgColIndexList.length > 0) {
|
@@ -12505,9 +12588,16 @@ const tableProps = {
|
|
12505
12588
|
border: PropTypes.arrayOf(PropTypes.commonType(BORDER_OPRIONS, "border")).def(["row"]),
|
12506
12589
|
pagination: PropTypes.oneOfType([PropTypes.bool.def(false), PropTypes.object.def({})]).def(false),
|
12507
12590
|
remotePagination: PropTypes.bool.def(false),
|
12508
|
-
emptyText: PropTypes.string.def("\u6682\u65E0\u6570\u636E")
|
12591
|
+
emptyText: PropTypes.string.def("\u6682\u65E0\u6570\u636E"),
|
12592
|
+
settings: PropTypes.oneOfType([PropTypes.bool, PropTypes.shape({
|
12593
|
+
fields: PropTypes.shape([]).def([]),
|
12594
|
+
checked: PropTypes.shape([]).def([]),
|
12595
|
+
limit: PropTypes.number.def(null),
|
12596
|
+
size: PropTypes.size(["small", "default", "large"]).def("default"),
|
12597
|
+
sizeList: PropTypes.shape([]).def(null)
|
12598
|
+
})]).def(false)
|
12509
12599
|
};
|
12510
|
-
function _isSlot$
|
12600
|
+
function _isSlot$2(s2) {
|
12511
12601
|
return typeof s2 === "function" || Object.prototype.toString.call(s2) === "[object Object]" && !isVNode(s2);
|
12512
12602
|
}
|
12513
12603
|
var useLimit = () => {
|
@@ -12552,7 +12642,7 @@ var useLimit = () => {
|
|
12552
12642
|
"modelValue": localLimit.value,
|
12553
12643
|
"onChange": handleLimitChange,
|
12554
12644
|
"disabled": proxy.disabled
|
12555
|
-
}, _isSlot$
|
12645
|
+
}, _isSlot$2(_slot = proxy.limitList.map((num, index) => createVNode(BkOption, {
|
12556
12646
|
"value": num,
|
12557
12647
|
"label": num,
|
12558
12648
|
"key": `${index}_${num}`
|
@@ -12975,7 +13065,7 @@ var BodyEmpty = defineComponent({
|
|
12975
13065
|
});
|
12976
13066
|
}
|
12977
13067
|
});
|
12978
|
-
function _isSlot(s2) {
|
13068
|
+
function _isSlot$1(s2) {
|
12979
13069
|
return typeof s2 === "function" || Object.prototype.toString.call(s2) === "[object Object]" && !isVNode(s2);
|
12980
13070
|
}
|
12981
13071
|
var HeadFilter = defineComponent({
|
@@ -13062,7 +13152,7 @@ var HeadFilter = defineComponent({
|
|
13062
13152
|
"class": "content-list",
|
13063
13153
|
"modelValue": state.checked,
|
13064
13154
|
"onUpdate:modelValue": ($event) => state.checked = $event
|
13065
|
-
}, _isSlot(_slot = localData.value.map((item) => createVNode("div", {
|
13155
|
+
}, _isSlot$1(_slot = localData.value.map((item) => createVNode("div", {
|
13066
13156
|
"class": "list-item"
|
13067
13157
|
}, [createVNode(BkCheckbox, {
|
13068
13158
|
"label": item.value
|
@@ -13139,13 +13229,189 @@ class TablePlugins {
|
|
13139
13229
|
this.ctx = ctx;
|
13140
13230
|
}
|
13141
13231
|
}
|
13232
|
+
function _isSlot(s2) {
|
13233
|
+
return typeof s2 === "function" || Object.prototype.toString.call(s2) === "[object Object]" && !isVNode(s2);
|
13234
|
+
}
|
13235
|
+
var Settings = defineComponent({
|
13236
|
+
name: "Settings",
|
13237
|
+
props: {
|
13238
|
+
settings: PropTypes.oneOfType([PropTypes.bool, PropTypes.shape({
|
13239
|
+
fields: PropTypes.shape([]).def([]),
|
13240
|
+
checked: PropTypes.shape([]).def([]),
|
13241
|
+
limit: PropTypes.number.def(null),
|
13242
|
+
size: PropTypes.string.def(null)
|
13243
|
+
})]).def(false),
|
13244
|
+
columns: PropTypes.array.def([]),
|
13245
|
+
rowHeight: PropTypes.number.def(40)
|
13246
|
+
},
|
13247
|
+
emits: ["change"],
|
13248
|
+
setup(props, {
|
13249
|
+
emit
|
13250
|
+
}) {
|
13251
|
+
var _a, _b, _c;
|
13252
|
+
const defaultSizeList = [{
|
13253
|
+
value: "small",
|
13254
|
+
label: "\u5C0F",
|
13255
|
+
height: 32
|
13256
|
+
}, {
|
13257
|
+
value: "default",
|
13258
|
+
label: "\u4E2D",
|
13259
|
+
height: props.rowHeight
|
13260
|
+
}, {
|
13261
|
+
value: "large",
|
13262
|
+
label: "\u5927",
|
13263
|
+
height: 56
|
13264
|
+
}];
|
13265
|
+
const modifiers = [{
|
13266
|
+
name: "offset",
|
13267
|
+
options: {
|
13268
|
+
offset: [10, 10]
|
13269
|
+
}
|
13270
|
+
}];
|
13271
|
+
const isShow = ref(false);
|
13272
|
+
const settings = props.settings;
|
13273
|
+
const activeSize = ref((_a = settings.size) != null ? _a : "default");
|
13274
|
+
const activeHeight = ref(props.rowHeight);
|
13275
|
+
const checkedFields = ref((_b = settings.checked) != null ? _b : []);
|
13276
|
+
const className = resolveClassName("table-settings");
|
13277
|
+
const theme = `light ${className}`;
|
13278
|
+
const handleSaveClick = () => {
|
13279
|
+
emit("change", {
|
13280
|
+
checked: checkedFields.value,
|
13281
|
+
size: activeSize.value,
|
13282
|
+
height: activeHeight.value
|
13283
|
+
});
|
13284
|
+
isShow.value = false;
|
13285
|
+
};
|
13286
|
+
const handleCancelClick = () => {
|
13287
|
+
var _a2;
|
13288
|
+
activeSize.value = "default";
|
13289
|
+
activeHeight.value = props.rowHeight;
|
13290
|
+
checkedFields.value = (_a2 = settings.checked) != null ? _a2 : [];
|
13291
|
+
isShow.value = false;
|
13292
|
+
};
|
13293
|
+
const handleSettingClick = () => {
|
13294
|
+
isShow.value = true;
|
13295
|
+
};
|
13296
|
+
const handleCheckAllClick = () => {
|
13297
|
+
var _a2, _b2;
|
13298
|
+
checkedFields.value = ((_b2 = (_a2 = settings.fields) != null ? _a2 : props.columns) != null ? _b2 : []).map((item, index) => resolvePropVal(item, "field", [item, index]));
|
13299
|
+
};
|
13300
|
+
const isLimit = computed(() => {
|
13301
|
+
var _a2;
|
13302
|
+
return ((_a2 = settings.limit) != null ? _a2 : 0) > 0;
|
13303
|
+
});
|
13304
|
+
const sizeList = (_c = settings.sizeList) != null ? _c : defaultSizeList;
|
13305
|
+
const isFiledDisabled = computed(() => {
|
13306
|
+
var _a2;
|
13307
|
+
return isLimit.value && ((_a2 = settings.limit) != null ? _a2 : 0) <= checkedFields.value.length;
|
13308
|
+
});
|
13309
|
+
const isItemReadonly = (item, index) => isFiledDisabled.value && !checkedFields.value.includes(resolvePropVal(item, "field", [item, index]));
|
13310
|
+
const handleSizeItemClick = (item) => {
|
13311
|
+
activeSize.value = item.value;
|
13312
|
+
activeHeight.value = item.height;
|
13313
|
+
};
|
13314
|
+
const getItemClass = (item) => ({
|
13315
|
+
"line-size": true,
|
13316
|
+
"is-default": activeSize.value === "default",
|
13317
|
+
active: item.value === activeSize.value
|
13318
|
+
});
|
13319
|
+
const buttonStyle = {
|
13320
|
+
width: "85px",
|
13321
|
+
marginRight: "5px"
|
13322
|
+
};
|
13323
|
+
const renderSize = () => sizeList.map((item) => createVNode("span", {
|
13324
|
+
"class": getItemClass(item),
|
13325
|
+
"onClick": () => handleSizeItemClick(item)
|
13326
|
+
}, [item.label]));
|
13327
|
+
return () => createVNode(BkPopover, mergeProps({
|
13328
|
+
"trigger": "manual",
|
13329
|
+
"isShow": isShow.value,
|
13330
|
+
"placement": "bottom-end",
|
13331
|
+
"arrow": false
|
13332
|
+
}, {
|
13333
|
+
modifiers,
|
13334
|
+
theme
|
13335
|
+
}, {
|
13336
|
+
"boundary": document.body
|
13337
|
+
}), {
|
13338
|
+
default: () => createVNode(cogShape, {
|
13339
|
+
"style": "color: rgba(99,101,110, 0.6);",
|
13340
|
+
"onClick": handleSettingClick
|
13341
|
+
}, null),
|
13342
|
+
content: () => {
|
13343
|
+
var _a2, _b2;
|
13344
|
+
let _slot2;
|
13345
|
+
return createVNode("div", {
|
13346
|
+
"class": "setting-content"
|
13347
|
+
}, [createVNode("div", {
|
13348
|
+
"class": "setting-head"
|
13349
|
+
}, [createVNode("h2", null, [createTextVNode("\u8868\u683C\u8BBE\u7F6E")]), createVNode(closeLine, {
|
13350
|
+
"class": "icon-close-action",
|
13351
|
+
"onClick": handleCancelClick
|
13352
|
+
}, null)]), createVNode("div", {
|
13353
|
+
"class": "setting-body"
|
13354
|
+
}, [createVNode("div", {
|
13355
|
+
"class": "setting-body-title"
|
13356
|
+
}, [createVNode("div", null, [createVNode("span", null, [createTextVNode("\u5B57\u6BB5\u663E\u793A\u8BBE\u7F6E")]), isLimit.value ? createVNode("span", {
|
13357
|
+
"class": "limit"
|
13358
|
+
}, [createTextVNode("\uFF08\u6700\u591A"), settings.limit, createTextVNode("\u9879\uFF09")]) : ""]), isLimit.value ? "" : createVNode("span", {
|
13359
|
+
"class": "check-all",
|
13360
|
+
"onClick": handleCheckAllClick
|
13361
|
+
}, [createTextVNode("\u5168\u9009")])]), createVNode(BkCheckboxGroup, {
|
13362
|
+
"class": "setting-body-fields",
|
13363
|
+
"modelValue": checkedFields.value,
|
13364
|
+
"onUpdate:modelValue": ($event) => checkedFields.value = $event
|
13365
|
+
}, _isSlot(_slot2 = ((_b2 = (_a2 = settings.fields) != null ? _a2 : props.columns) != null ? _b2 : []).map((item, index) => {
|
13366
|
+
let _slot;
|
13367
|
+
return createVNode("div", {
|
13368
|
+
"class": "field-item"
|
13369
|
+
}, [createVNode(BkCheckbox, {
|
13370
|
+
"label": resolvePropVal(item, "field", [item, index]),
|
13371
|
+
"disabled": isItemReadonly(item, index)
|
13372
|
+
}, _isSlot(_slot = resolvePropVal(item, "label", [item, index])) ? _slot : {
|
13373
|
+
default: () => [_slot]
|
13374
|
+
})]);
|
13375
|
+
})) ? _slot2 : {
|
13376
|
+
default: () => [_slot2]
|
13377
|
+
}), createVNode("div", {
|
13378
|
+
"class": "setting-body-line-height"
|
13379
|
+
}, [createTextVNode("\u8868\u683C\u884C\u9AD8\uFF1A"), renderSize()])]), createVNode("div", {
|
13380
|
+
"class": "setting-footer"
|
13381
|
+
}, [createVNode(BkButton, {
|
13382
|
+
"theme": "primary",
|
13383
|
+
"style": buttonStyle,
|
13384
|
+
"onClick": handleSaveClick
|
13385
|
+
}, {
|
13386
|
+
default: () => [createTextVNode("\u786E\u5B9A")]
|
13387
|
+
}), createVNode(BkButton, {
|
13388
|
+
"style": buttonStyle,
|
13389
|
+
"onClick": handleCancelClick
|
13390
|
+
}, {
|
13391
|
+
default: () => [createTextVNode("\u53D6\u6D88")]
|
13392
|
+
})])]);
|
13393
|
+
}
|
13394
|
+
});
|
13395
|
+
}
|
13396
|
+
});
|
13142
13397
|
let EVENTS;
|
13143
13398
|
(function(EVENTS2) {
|
13144
13399
|
EVENTS2["ON_SORT_BY_CLICK"] = "onSortByClick";
|
13145
13400
|
EVENTS2["ON_FILTER_CLICK"] = "onFilterClick";
|
13401
|
+
EVENTS2["ON_SETTING_CHANGE"] = "onSettingChange";
|
13146
13402
|
})(EVENTS || (EVENTS = {}));
|
13147
13403
|
class TableRender {
|
13148
13404
|
constructor(props, ctx, reactiveProp, colgroups) {
|
13405
|
+
__publicField(this, "getRowHeight", (row, rowIndex) => {
|
13406
|
+
const {
|
13407
|
+
size,
|
13408
|
+
height
|
13409
|
+
} = this.setting;
|
13410
|
+
if (height !== null && height !== void 0) {
|
13411
|
+
return resolvePropVal(this.setting, "height", ["tbody", row, rowIndex, size]);
|
13412
|
+
}
|
13413
|
+
return resolvePropVal(this.props, "rowHeight", ["tbody", row, rowIndex]);
|
13414
|
+
});
|
13149
13415
|
__publicField(this, "getColumnClass", (colIndex) => `${this.uuid}-column-${colIndex}`);
|
13150
13416
|
this.props = props;
|
13151
13417
|
this.context = ctx;
|
@@ -13165,10 +13431,31 @@ class TableRender {
|
|
13165
13431
|
if (!isShow) {
|
13166
13432
|
return null;
|
13167
13433
|
}
|
13168
|
-
|
13434
|
+
const handleSettingsChanged = (arg) => {
|
13435
|
+
const {
|
13436
|
+
checked = [],
|
13437
|
+
size,
|
13438
|
+
height
|
13439
|
+
} = arg;
|
13440
|
+
this.reactiveProp.setting.size = size;
|
13441
|
+
this.reactiveProp.setting.height = height;
|
13442
|
+
if (checked.length) {
|
13443
|
+
this.colgroups.forEach((col) => {
|
13444
|
+
col.isHidden = !(checked != null ? checked : []).includes(resolvePropVal(col, "field", [col]));
|
13445
|
+
});
|
13446
|
+
}
|
13447
|
+
this.emitEvent(EVENTS.ON_SETTING_CHANGE, [arg]);
|
13448
|
+
};
|
13449
|
+
return [this.props.settings ? createVNode(Settings, {
|
13450
|
+
"class": "table-head-settings",
|
13451
|
+
"settings": this.props.settings,
|
13452
|
+
"columns": this.props.columns,
|
13453
|
+
"rowHeight": this.props.rowHeight,
|
13454
|
+
"onChange": handleSettingsChanged
|
13455
|
+
}, null) : "", createVNode("table", {
|
13169
13456
|
"cellpadding": 0,
|
13170
13457
|
"cellspacing": 0
|
13171
|
-
}, [this.renderColGroup(), this.renderHeader()]);
|
13458
|
+
}, [this.renderColGroup(), this.renderHeader()])];
|
13172
13459
|
}
|
13173
13460
|
renderTableBodySchema(rows) {
|
13174
13461
|
return createVNode("table", {
|
@@ -13290,7 +13577,7 @@ class TableRender {
|
|
13290
13577
|
};
|
13291
13578
|
return createVNode("thead", {
|
13292
13579
|
"style": rowStyle
|
13293
|
-
}, [createVNode("tr", null, [this.
|
13580
|
+
}, [createVNode("tr", null, [this.filterColgroups.map((column, index) => createVNode("th", {
|
13294
13581
|
"colspan": 1,
|
13295
13582
|
"rowspan": 1,
|
13296
13583
|
"class": classes({
|
@@ -13305,13 +13592,13 @@ class TableRender {
|
|
13305
13592
|
var _a, _b, _c;
|
13306
13593
|
return createVNode("tbody", null, [rows.length ? rows.map((row, rowIndex) => {
|
13307
13594
|
const rowStyle = {
|
13308
|
-
"--row-height": `${
|
13595
|
+
"--row-height": `${this.getRowHeight(row, rowIndex)}px`
|
13309
13596
|
};
|
13310
13597
|
return createVNode("tr", {
|
13311
13598
|
"style": rowStyle,
|
13312
13599
|
"onClick": (e) => this.handleRowClick(e, row, rowIndex, rows),
|
13313
13600
|
"onDblclick": (e) => this.handleRowDblClick(e, row, rowIndex, rows)
|
13314
|
-
}, [this.
|
13601
|
+
}, [this.filterColgroups.map((column, index) => createVNode("td", {
|
13315
13602
|
"class": this.getColumnClass(index),
|
13316
13603
|
"colspan": 1,
|
13317
13604
|
"rowspan": 1
|
@@ -13344,7 +13631,7 @@ class TableRender {
|
|
13344
13631
|
return this.props.columnPick !== "disabled" && this.propActiveCols.some((col) => col.index === colIndex && col.active);
|
13345
13632
|
}
|
13346
13633
|
renderColGroup() {
|
13347
|
-
return createVNode("colgroup", null, [(this.
|
13634
|
+
return createVNode("colgroup", null, [(this.filterColgroups || []).map((column, index) => {
|
13348
13635
|
const colCls = classes({
|
13349
13636
|
active: this.isColActive(index)
|
13350
13637
|
});
|
@@ -13355,6 +13642,12 @@ class TableRender {
|
|
13355
13642
|
}, null);
|
13356
13643
|
})]);
|
13357
13644
|
}
|
13645
|
+
get filterColgroups() {
|
13646
|
+
return this.colgroups.filter((col) => !col.isHidden);
|
13647
|
+
}
|
13648
|
+
get setting() {
|
13649
|
+
return this.reactiveProp.setting;
|
13650
|
+
}
|
13358
13651
|
}
|
13359
13652
|
const useClass = (props, root) => {
|
13360
13653
|
const autoHeight = ref(200);
|
@@ -13364,6 +13657,10 @@ const useClass = (props, root) => {
|
|
13364
13657
|
const headClass = classes({
|
13365
13658
|
[resolveClassName("table-head")]: true
|
13366
13659
|
});
|
13660
|
+
const config = resolveHeadConfig(props);
|
13661
|
+
const headStyle = {
|
13662
|
+
"--row-height": `${resolvePropVal(config, "height", ["thead"])}px`
|
13663
|
+
};
|
13367
13664
|
const contentClass = classes({
|
13368
13665
|
[resolveClassName("table-body")]: true
|
13369
13666
|
});
|
@@ -13414,7 +13711,7 @@ const useClass = (props, root) => {
|
|
13414
13711
|
autoHeight.value = height;
|
13415
13712
|
}
|
13416
13713
|
};
|
13417
|
-
return { tableClass, headClass, contentClass, footerClass, wrapperStyle, contentStyle, resetTableHeight };
|
13714
|
+
return { tableClass, headClass, contentClass, footerClass, wrapperStyle, contentStyle, headStyle, resetTableHeight };
|
13418
13715
|
};
|
13419
13716
|
var Component$4 = defineComponent({
|
13420
13717
|
name: "Table",
|
@@ -13428,6 +13725,7 @@ var Component$4 = defineComponent({
|
|
13428
13725
|
let columnFilterFn = null;
|
13429
13726
|
let observerIns = null;
|
13430
13727
|
const root = ref();
|
13728
|
+
const refVirtualRender = ref();
|
13431
13729
|
const {
|
13432
13730
|
activeColumns
|
13433
13731
|
} = useActiveColumns(props);
|
@@ -13444,11 +13742,16 @@ var Component$4 = defineComponent({
|
|
13444
13742
|
footerClass,
|
13445
13743
|
wrapperStyle,
|
13446
13744
|
contentStyle,
|
13745
|
+
headStyle,
|
13447
13746
|
resetTableHeight
|
13448
13747
|
} = useClass(props);
|
13449
13748
|
const reactiveProp = reactive({
|
13450
13749
|
scrollTranslateY: 0,
|
13451
|
-
activeColumns
|
13750
|
+
activeColumns,
|
13751
|
+
setting: {
|
13752
|
+
size: null,
|
13753
|
+
height: null
|
13754
|
+
}
|
13452
13755
|
});
|
13453
13756
|
const tableRender = new TableRender(props, ctx, reactiveProp, colgroups);
|
13454
13757
|
watchEffect(() => {
|
@@ -13466,6 +13769,13 @@ var Component$4 = defineComponent({
|
|
13466
13769
|
} = args;
|
13467
13770
|
columnFilterFn = filterFn;
|
13468
13771
|
resolvePageData(columnFilterFn, columnSortFn);
|
13772
|
+
}).on(EVENTS.ON_SETTING_CHANGE, (args) => {
|
13773
|
+
var _a, _b;
|
13774
|
+
const {
|
13775
|
+
checked = []
|
13776
|
+
} = args;
|
13777
|
+
checked.length && resolveColumnWidth(root.value, colgroups, 20);
|
13778
|
+
(_b = (_a = refVirtualRender.value) == null ? void 0 : _a.reset) == null ? void 0 : _b.call(_a);
|
13469
13779
|
});
|
13470
13780
|
const handleScrollChanged = (args) => {
|
13471
13781
|
const pagination2 = args[1];
|
@@ -13490,24 +13800,30 @@ var Component$4 = defineComponent({
|
|
13490
13800
|
"class": tableClass.value,
|
13491
13801
|
"style": wrapperStyle.value,
|
13492
13802
|
"ref": root
|
13493
|
-
}, [
|
13494
|
-
"
|
13495
|
-
|
13496
|
-
|
13497
|
-
|
13498
|
-
|
13499
|
-
|
13500
|
-
|
13501
|
-
|
13502
|
-
|
13503
|
-
|
13504
|
-
|
13505
|
-
|
13506
|
-
"
|
13507
|
-
},
|
13508
|
-
|
13509
|
-
|
13510
|
-
|
13803
|
+
}, [
|
13804
|
+
createVNode("div", {
|
13805
|
+
"class": headClass,
|
13806
|
+
"style": headStyle
|
13807
|
+
}, [tableRender.renderTableHeadSchema()]),
|
13808
|
+
createVNode(BkVirtualRender, {
|
13809
|
+
"ref": refVirtualRender,
|
13810
|
+
"lineHeight": tableRender.getRowHeight,
|
13811
|
+
"class": contentClass,
|
13812
|
+
"style": contentStyle.value,
|
13813
|
+
"list": pageData,
|
13814
|
+
"onContentScroll": handleScrollChanged,
|
13815
|
+
"throttleDelay": 0,
|
13816
|
+
"enabled": props.virtualEnabled
|
13817
|
+
}, {
|
13818
|
+
default: (scope) => tableRender.renderTableBodySchema(scope.data || props.data),
|
13819
|
+
afterContent: () => createVNode("div", {
|
13820
|
+
"class": resolveClassName("table-fixed")
|
13821
|
+
}, null)
|
13822
|
+
}),
|
13823
|
+
createVNode("div", {
|
13824
|
+
"class": footerClass.value
|
13825
|
+
}, [props.pagination && props.data.length && tableRender.renderTableFooter(localPagination.value)])
|
13826
|
+
]);
|
13511
13827
|
}
|
13512
13828
|
});
|
13513
13829
|
const BkTable = withInstall(Component$4);
|
@@ -14977,15 +15293,15 @@ const Message$1 = (constructor, options) => {
|
|
14977
15293
|
offsetY: verticalOffset,
|
14978
15294
|
id
|
14979
15295
|
});
|
14980
|
-
const
|
15296
|
+
const container2 = document.createElement("div");
|
14981
15297
|
const vm = createVNode(constructor, opts);
|
14982
15298
|
vm.props.onDestory = (id2) => {
|
14983
15299
|
close(id2, position, spacing, userOnClose);
|
14984
|
-
render(null,
|
15300
|
+
render(null, container2);
|
14985
15301
|
};
|
14986
|
-
render(vm,
|
15302
|
+
render(vm, container2);
|
14987
15303
|
instances[position].push(vm);
|
14988
|
-
document.body.appendChild(
|
15304
|
+
document.body.appendChild(container2.firstElementChild);
|
14989
15305
|
};
|
14990
15306
|
function close(id, position, spacing, userOnClose) {
|
14991
15307
|
userOnClose == null ? void 0 : userOnClose();
|
@@ -20344,19 +20660,18 @@ var Component = defineComponent({
|
|
20344
20660
|
cache = true
|
20345
20661
|
} = props.async || {};
|
20346
20662
|
if (typeof callback === "function") {
|
20347
|
-
if (item.cached) {
|
20348
|
-
|
20663
|
+
if (!item.cached) {
|
20664
|
+
Object.assign(item, {
|
20665
|
+
loading: true
|
20666
|
+
});
|
20667
|
+
callback(item, (resp) => setNodeRemoteLoad(resp, item)).then((resp) => setNodeRemoteLoad(resp, item)).catch((err) => console.error("load remote data error:", err)).finally(() => {
|
20668
|
+
assignTreeNode(getNodePath(item), props.data, props.children, __spreadValues({
|
20669
|
+
loading: false
|
20670
|
+
}, cache ? {
|
20671
|
+
cached: true
|
20672
|
+
} : {}));
|
20673
|
+
});
|
20349
20674
|
}
|
20350
|
-
Object.assign(item, {
|
20351
|
-
loading: true
|
20352
|
-
});
|
20353
|
-
callback(item, (resp) => setNodeRemoteLoad(resp, item)).then((resp) => setNodeRemoteLoad(resp, item)).catch((err) => console.error("load remote data error:", err)).finally(() => {
|
20354
|
-
assignTreeNode(getNodePath(item), props.data, props.children, __spreadValues({
|
20355
|
-
loading: false
|
20356
|
-
}, cache ? {
|
20357
|
-
cached: true
|
20358
|
-
} : {}));
|
20359
|
-
});
|
20360
20675
|
} else {
|
20361
20676
|
console.error("async need to set prop: asyncLoad with function wich will return promise object");
|
20362
20677
|
}
|
@@ -20453,20 +20768,23 @@ var Component = defineComponent({
|
|
20453
20768
|
},
|
20454
20769
|
render() {
|
20455
20770
|
const props = this.$props;
|
20456
|
-
const renderTreeNode = (item) =>
|
20457
|
-
|
20458
|
-
|
20459
|
-
|
20460
|
-
"
|
20461
|
-
|
20462
|
-
|
20463
|
-
|
20464
|
-
"
|
20465
|
-
|
20466
|
-
|
20467
|
-
|
20468
|
-
|
20469
|
-
|
20771
|
+
const renderTreeNode = (item) => {
|
20772
|
+
var _a, _b, _c, _d, _e;
|
20773
|
+
return createVNode("div", {
|
20774
|
+
"class": getNodeRowClass(item, this.flatData.schema)
|
20775
|
+
}, [createVNode("div", {
|
20776
|
+
"class": getNodeItemClass(item, this.flatData.schema, props),
|
20777
|
+
"style": getNodeItemStyle(item, props, this.flatData),
|
20778
|
+
"onClick": () => this.handleNodeContentClick(item)
|
20779
|
+
}, [createVNode("span", {
|
20780
|
+
"class": resolveClassName("node-action"),
|
20781
|
+
"onClick": (e) => this.handleNodeActionClick(e, item)
|
20782
|
+
}, [this.getActionIcon(item)]), createVNode("span", {
|
20783
|
+
"class": resolveClassName("node-content")
|
20784
|
+
}, [[this.getNodePrefixIcon(item), this.getLoadingIcon(item)], createVNode("span", {
|
20785
|
+
"class": resolveClassName("node-text")
|
20786
|
+
}, [(_e = (_b = (_a = this.$slots).node) == null ? void 0 : _b.call(_a, item)) != null ? _e : [getLabel(item, props), (_d = (_c = this.$slots).nodeAppend) == null ? void 0 : _d.call(_c, item)]])]), this.getVirtualLines(item)])]);
|
20787
|
+
};
|
20470
20788
|
return createVNode(BkVirtualRender, {
|
20471
20789
|
"class": resolveClassName("tree"),
|
20472
20790
|
"style": getTreeStyle(null, props),
|
@@ -20847,6 +21165,129 @@ var FormItem = defineComponent({
|
|
20847
21165
|
}
|
20848
21166
|
});
|
20849
21167
|
const BkForm = withInstallProps(Form, { FormItem, ComposeFormItem });
|
21168
|
+
const colProps = {
|
21169
|
+
span: PropTypes.number.def(1),
|
21170
|
+
offset: PropTypes.number.def(0),
|
21171
|
+
pull: PropTypes.number.def(0),
|
21172
|
+
push: PropTypes.number.def(0)
|
21173
|
+
};
|
21174
|
+
var Col = defineComponent({
|
21175
|
+
name: "Row",
|
21176
|
+
props: colProps,
|
21177
|
+
emits: [],
|
21178
|
+
setup(props, ctx) {
|
21179
|
+
const {
|
21180
|
+
col,
|
21181
|
+
gutter,
|
21182
|
+
flex
|
21183
|
+
} = inject("containerProps");
|
21184
|
+
const {
|
21185
|
+
span,
|
21186
|
+
offset: offset2,
|
21187
|
+
pull,
|
21188
|
+
push
|
21189
|
+
} = props;
|
21190
|
+
const realSpan = computed(() => span || col);
|
21191
|
+
provide("containerProps", {
|
21192
|
+
col: realSpan.value,
|
21193
|
+
gutter,
|
21194
|
+
flex
|
21195
|
+
});
|
21196
|
+
const formatPercentage = function(val) {
|
21197
|
+
return `${Number((val * 100).toFixed(3))}%`;
|
21198
|
+
};
|
21199
|
+
const style = computed(() => ({
|
21200
|
+
width: formatPercentage(realSpan.value / col),
|
21201
|
+
"padding-right": `${gutter / 2}px`,
|
21202
|
+
"padding-left": `${gutter / 2}px`,
|
21203
|
+
"margin-left": offset2 ? formatPercentage(offset2 / col) : null,
|
21204
|
+
right: pull ? formatPercentage(pull / col) : null,
|
21205
|
+
left: push ? formatPercentage(push / col) : null
|
21206
|
+
}));
|
21207
|
+
return () => {
|
21208
|
+
var _a, _b;
|
21209
|
+
return createVNode("div", {
|
21210
|
+
"class": "bk-grid-col",
|
21211
|
+
"style": style.value
|
21212
|
+
}, [(_b = (_a = ctx.slots).default) == null ? void 0 : _b.call(_a)]);
|
21213
|
+
};
|
21214
|
+
}
|
21215
|
+
});
|
21216
|
+
const containerProps = {
|
21217
|
+
col: PropTypes.number.def(24),
|
21218
|
+
gutter: PropTypes.number.def(20),
|
21219
|
+
margin: PropTypes.number.def(20),
|
21220
|
+
flex: PropTypes.bool.def(false),
|
21221
|
+
extCls: PropTypes.string
|
21222
|
+
};
|
21223
|
+
var Container = defineComponent({
|
21224
|
+
name: "Container",
|
21225
|
+
props: containerProps,
|
21226
|
+
emits: [],
|
21227
|
+
setup(props, ctx) {
|
21228
|
+
const {
|
21229
|
+
col,
|
21230
|
+
gutter,
|
21231
|
+
flex,
|
21232
|
+
extCls
|
21233
|
+
} = props;
|
21234
|
+
provide("containerProps", {
|
21235
|
+
col,
|
21236
|
+
gutter,
|
21237
|
+
flex
|
21238
|
+
});
|
21239
|
+
const classes2 = computed(() => extCls ? `bk-grid-container ${extCls}` : "bk-grid-container");
|
21240
|
+
const style = computed(() => {
|
21241
|
+
const {
|
21242
|
+
margin
|
21243
|
+
} = props;
|
21244
|
+
return {
|
21245
|
+
"padding-right": `${margin}px`,
|
21246
|
+
"padding-left": `${margin}px`
|
21247
|
+
};
|
21248
|
+
});
|
21249
|
+
return () => {
|
21250
|
+
var _a, _b;
|
21251
|
+
return createVNode("div", {
|
21252
|
+
"class": classes2.value,
|
21253
|
+
"style": style.value
|
21254
|
+
}, [(_b = (_a = ctx.slots).default) == null ? void 0 : _b.call(_a)]);
|
21255
|
+
};
|
21256
|
+
}
|
21257
|
+
});
|
21258
|
+
var Row = defineComponent({
|
21259
|
+
name: "Row",
|
21260
|
+
emits: [],
|
21261
|
+
setup(_props, ctx) {
|
21262
|
+
const {
|
21263
|
+
col,
|
21264
|
+
gutter,
|
21265
|
+
flex
|
21266
|
+
} = inject("containerProps");
|
21267
|
+
provide("containerProps", {
|
21268
|
+
col,
|
21269
|
+
gutter,
|
21270
|
+
flex
|
21271
|
+
});
|
21272
|
+
const style = computed(() => {
|
21273
|
+
const o2 = flex ? {
|
21274
|
+
display: ["-webkit-box", "-ms-flexbox", "flex"]
|
21275
|
+
} : {};
|
21276
|
+
return __spreadProps(__spreadValues({}, o2), {
|
21277
|
+
"margin-right": `-${gutter / 2}px`,
|
21278
|
+
"margin-left": `-${gutter / 2}px`
|
21279
|
+
});
|
21280
|
+
});
|
21281
|
+
return () => {
|
21282
|
+
var _a, _b;
|
21283
|
+
return createVNode("div", {
|
21284
|
+
"class": "bk-grid-row",
|
21285
|
+
"style": style.value
|
21286
|
+
}, [(_b = (_a = ctx.slots).default) == null ? void 0 : _b.call(_a)]);
|
21287
|
+
};
|
21288
|
+
}
|
21289
|
+
});
|
21290
|
+
const BkContainer = withInstallProps(Container, { Row, Col });
|
20850
21291
|
var Dropdown = defineComponent({
|
20851
21292
|
name: "BkDropdown",
|
20852
21293
|
props: {
|
@@ -21025,6 +21466,9 @@ var components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProp
|
|
21025
21466
|
Form: BkForm,
|
21026
21467
|
FormItem,
|
21027
21468
|
Pagination: BkPagination,
|
21469
|
+
Container: BkContainer,
|
21470
|
+
Row,
|
21471
|
+
Col,
|
21028
21472
|
Dropdown: BkDropdown,
|
21029
21473
|
DropdownMenu,
|
21030
21474
|
DropdownItem
|
@@ -21045,4 +21489,4 @@ var preset = {
|
|
21045
21489
|
install: createInstall(),
|
21046
21490
|
version: "0.0.1"
|
21047
21491
|
};
|
21048
|
-
export { BkAlert as Alert, BkAnimateNumber as AnimateNumber, BkBacktop as Backtop, BkBadge as Badge, BkOption, OptionGroup as BkOptionGroup, BkBreadcrumb as Breadcrumb, BreadcrumbItem, BkButton as Button, ButtonGroup, BkCard as Card, BkCheckbox as Checkbox, BkCheckboxGroup as CheckboxGroup, BkCollaspe as Collapse, BkDatePicker as DatePicker, BkDialog as Dialog, BkDivider as Divider, BkDropdown as Dropdown, DropdownItem, DropdownMenu, BkException as Exception, BkFixedNavbar as FixedNavbar, BkForm as Form, FormItem, BkInput as Input, BkLink as Link, BkLoading as Loading, BkMenu as Menu, Message, BkModal as Modal, Navigation, Notify, BkPagination as Pagination, BkPopover as Popover, BkProgress as Progress, BkRadio as Radio, RadioButton, RadioGroup, BkRate as Rate, BkSelect as Select, BkSideslider as Sideslider, BkSteps as Steps, BkSwiper as Swiper, BkSwitcher as Switcher, BkTab as Tab, TabPanel, BkTable as Table, BkTag as Tag, TagInput, Transfer, BkTree as Tree, BkVirtualRender as VirtualRender, tooltips as bkTooltips, ClickOutside as clickoutside, preset as default, mousewheel };
|
21492
|
+
export { BkAlert as Alert, BkAnimateNumber as AnimateNumber, BkBacktop as Backtop, BkBadge as Badge, BkOption, OptionGroup as BkOptionGroup, BkBreadcrumb as Breadcrumb, BreadcrumbItem, BkButton as Button, ButtonGroup, BkCard as Card, BkCheckbox as Checkbox, BkCheckboxGroup as CheckboxGroup, Col, BkCollaspe as Collapse, BkContainer as Container, BkDatePicker as DatePicker, BkDialog as Dialog, BkDivider as Divider, BkDropdown as Dropdown, DropdownItem, DropdownMenu, BkException as Exception, BkFixedNavbar as FixedNavbar, BkForm as Form, FormItem, BkInput as Input, BkLink as Link, BkLoading as Loading, BkMenu as Menu, Message, BkModal as Modal, Navigation, Notify, BkPagination as Pagination, BkPopover as Popover, BkProgress as Progress, BkRadio as Radio, RadioButton, RadioGroup, BkRate as Rate, Row, BkSelect as Select, BkSideslider as Sideslider, BkSteps as Steps, BkSwiper as Swiper, BkSwitcher as Switcher, BkTab as Tab, TabPanel, BkTable as Table, BkTag as Tag, TagInput, Transfer, BkTree as Tree, BkVirtualRender as VirtualRender, tooltips as bkTooltips, ClickOutside as clickoutside, preset as default, mousewheel };
|