bkui-vue 1.0.3-beta.15 → 1.0.3-beta.17
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 +23 -23
- package/dist/index.esm.js +3019 -2998
- package/dist/index.umd.js +23 -23
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/dropdown/dropdown.css +3 -1
- package/lib/dropdown/dropdown.variable.css +3 -1
- package/lib/info-box/index.js +18 -446
- package/lib/modal/index.d.ts +6 -6
- package/lib/modal/modal.d.ts +2 -2
- package/lib/plugin-popover/index.js +7 -8
- package/lib/popover/content.d.ts +1 -1
- package/lib/popover/index.js +7 -8
- package/lib/popover/popover.css +3 -1
- package/lib/popover/popover.less +4 -1
- package/lib/popover/popover.variable.css +3 -1
- package/lib/sideslider/index.d.ts +6 -6
- package/lib/sideslider/sideslider.d.ts +2 -2
- package/lib/table/index.js +237 -172
- package/lib/table/plugins/use-observer-resize.d.ts +5 -0
- package/lib/table/table.css +3 -1
- package/lib/table/table.variable.css +3 -1
- package/lib/virtual-render/index.d.ts +9 -9
- package/lib/virtual-render/virtual-render.d.ts +3 -3
- package/package.json +1 -1
package/lib/table/index.js
CHANGED
@@ -8,10 +8,10 @@ import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_virtual_render_927587a8__ fro
|
|
8
8
|
import "../virtual-render/virtual-render.less";
|
9
9
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_isElement_e6b2a6ce__ from "lodash/isElement";
|
10
10
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_throttle_a7b7506a__ from "lodash/throttle";
|
11
|
-
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_loading_dcf0e69a__ from "../loading";
|
12
|
-
import "../loading/loading.less";
|
13
11
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_debounce_3540babe__ from "lodash/debounce";
|
14
12
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_get_9427f899__ from "lodash/get";
|
13
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_loading_dcf0e69a__ from "../loading";
|
14
|
+
import "../loading/loading.less";
|
15
15
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_checkbox_13b1cb4a__ from "../checkbox";
|
16
16
|
import "../checkbox/checkbox.less";
|
17
17
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__ from "../icon";
|
@@ -1471,176 +1471,6 @@ function _toConsumableArray(arr) {
|
|
1471
1471
|
updateFixClass: updateFixClass
|
1472
1472
|
};
|
1473
1473
|
});
|
1474
|
-
;// CONCATENATED MODULE: external "../loading"
|
1475
|
-
var loading_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1476
|
-
var loading_y = x => () => x
|
1477
|
-
const loading_namespaceObject = loading_x({ ["BkLoadingMode"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_loading_dcf0e69a__.BkLoadingMode, ["BkLoadingSize"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_loading_dcf0e69a__.BkLoadingSize, ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_loading_dcf0e69a__["default"] });
|
1478
|
-
;// CONCATENATED MODULE: external "../loading/loading.less"
|
1479
|
-
var loading_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1480
|
-
var loading_less_y = x => () => x
|
1481
|
-
const loading_less_namespaceObject = loading_less_x({ });
|
1482
|
-
;// CONCATENATED MODULE: ../../packages/table/src/plugins/use-scroll-loading.tsx
|
1483
|
-
|
1484
|
-
|
1485
|
-
/*
|
1486
|
-
* Tencent is pleased to support the open source community by making
|
1487
|
-
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
1488
|
-
*
|
1489
|
-
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
1490
|
-
*
|
1491
|
-
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
1492
|
-
*
|
1493
|
-
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
1494
|
-
*
|
1495
|
-
* ---------------------------------------------------
|
1496
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
1497
|
-
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
1498
|
-
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
1499
|
-
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
1500
|
-
*
|
1501
|
-
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
1502
|
-
* the Software.
|
1503
|
-
*
|
1504
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
1505
|
-
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
1506
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
1507
|
-
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
1508
|
-
* IN THE SOFTWARE.
|
1509
|
-
*/
|
1510
|
-
|
1511
|
-
|
1512
|
-
|
1513
|
-
|
1514
|
-
/* harmony default export */ const use_scroll_loading = (function (props, ctx) {
|
1515
|
-
var refScrollLoading = (0,external_vue_namespaceObject.toRef)(props, 'scrollLoading');
|
1516
|
-
var getLoadingOption = function getLoadingOption() {
|
1517
|
-
if (typeof refScrollLoading.value === 'boolean') {
|
1518
|
-
return {
|
1519
|
-
loading: !!refScrollLoading.value,
|
1520
|
-
inline: true,
|
1521
|
-
title: '',
|
1522
|
-
size: loading_namespaceObject.BkLoadingSize.Normal,
|
1523
|
-
mode: loading_namespaceObject.BkLoadingMode.Default,
|
1524
|
-
indicator: null
|
1525
|
-
};
|
1526
|
-
}
|
1527
|
-
return refScrollLoading.value;
|
1528
|
-
};
|
1529
|
-
var isRender = (0,external_vue_namespaceObject.computed)(function () {
|
1530
|
-
return refScrollLoading.value !== null && (typeof refScrollLoading.value === 'boolean' && refScrollLoading.value || typeof_typeof(refScrollLoading.value) === 'object');
|
1531
|
-
});
|
1532
|
-
var renderScrollLoading = function renderScrollLoading() {
|
1533
|
-
if (isRender.value) {
|
1534
|
-
var _ctx$slots$fixedBotto, _ctx$slots$fixedBotto2, _ctx$slots;
|
1535
|
-
var _getLoadingOption = getLoadingOption(),
|
1536
|
-
loading = _getLoadingOption.loading,
|
1537
|
-
size = _getLoadingOption.size,
|
1538
|
-
mode = _getLoadingOption.mode,
|
1539
|
-
title = _getLoadingOption.title,
|
1540
|
-
inline = _getLoadingOption.inline,
|
1541
|
-
indicator = _getLoadingOption.indicator;
|
1542
|
-
return (_ctx$slots$fixedBotto = (_ctx$slots$fixedBotto2 = (_ctx$slots = ctx.slots).fixedBottom) === null || _ctx$slots$fixedBotto2 === void 0 ? void 0 : _ctx$slots$fixedBotto2.call(_ctx$slots)) !== null && _ctx$slots$fixedBotto !== void 0 ? _ctx$slots$fixedBotto : (0,external_vue_namespaceObject.createVNode)(loading_namespaceObject["default"], {
|
1543
|
-
loading: loading,
|
1544
|
-
size: size,
|
1545
|
-
mode: mode,
|
1546
|
-
title: title,
|
1547
|
-
inline: inline,
|
1548
|
-
indicator: indicator
|
1549
|
-
}, null);
|
1550
|
-
}
|
1551
|
-
};
|
1552
|
-
return {
|
1553
|
-
renderScrollLoading: renderScrollLoading
|
1554
|
-
};
|
1555
|
-
});
|
1556
|
-
;// CONCATENATED MODULE: ../../node_modules/uuid/dist/esm-browser/native.js
|
1557
|
-
const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
1558
|
-
/* harmony default export */ const esm_browser_native = ({
|
1559
|
-
randomUUID
|
1560
|
-
});
|
1561
|
-
;// CONCATENATED MODULE: ../../node_modules/uuid/dist/esm-browser/rng.js
|
1562
|
-
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
1563
|
-
// require the crypto API and do not support built-in fallback to lower quality random number
|
1564
|
-
// generators (like Math.random()).
|
1565
|
-
let getRandomValues;
|
1566
|
-
const rnds8 = new Uint8Array(16);
|
1567
|
-
function rng() {
|
1568
|
-
// lazy load so that environments that need to polyfill have a chance to do so
|
1569
|
-
if (!getRandomValues) {
|
1570
|
-
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
|
1571
|
-
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
|
1572
|
-
|
1573
|
-
if (!getRandomValues) {
|
1574
|
-
throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
|
1575
|
-
}
|
1576
|
-
}
|
1577
|
-
|
1578
|
-
return getRandomValues(rnds8);
|
1579
|
-
}
|
1580
|
-
;// CONCATENATED MODULE: ../../node_modules/uuid/dist/esm-browser/stringify.js
|
1581
|
-
|
1582
|
-
/**
|
1583
|
-
* Convert array of 16 byte values to UUID string format of the form:
|
1584
|
-
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
1585
|
-
*/
|
1586
|
-
|
1587
|
-
const byteToHex = [];
|
1588
|
-
|
1589
|
-
for (let i = 0; i < 256; ++i) {
|
1590
|
-
byteToHex.push((i + 0x100).toString(16).slice(1));
|
1591
|
-
}
|
1592
|
-
|
1593
|
-
function unsafeStringify(arr, offset = 0) {
|
1594
|
-
// Note: Be careful editing this code! It's been tuned for performance
|
1595
|
-
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
|
1596
|
-
return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
|
1597
|
-
}
|
1598
|
-
|
1599
|
-
function stringify(arr, offset = 0) {
|
1600
|
-
const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one
|
1601
|
-
// of the following:
|
1602
|
-
// - One or more input array values don't map to a hex octet (leading to
|
1603
|
-
// "undefined" in the uuid)
|
1604
|
-
// - Invalid input values for the RFC `version` or `variant` fields
|
1605
|
-
|
1606
|
-
if (!validate(uuid)) {
|
1607
|
-
throw TypeError('Stringified UUID is invalid');
|
1608
|
-
}
|
1609
|
-
|
1610
|
-
return uuid;
|
1611
|
-
}
|
1612
|
-
|
1613
|
-
/* harmony default export */ const esm_browser_stringify = ((/* unused pure expression or super */ null && (stringify)));
|
1614
|
-
;// CONCATENATED MODULE: ../../node_modules/uuid/dist/esm-browser/v4.js
|
1615
|
-
|
1616
|
-
|
1617
|
-
|
1618
|
-
|
1619
|
-
function v4(options, buf, offset) {
|
1620
|
-
if (esm_browser_native.randomUUID && !buf && !options) {
|
1621
|
-
return esm_browser_native.randomUUID();
|
1622
|
-
}
|
1623
|
-
|
1624
|
-
options = options || {};
|
1625
|
-
const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
|
1626
|
-
|
1627
|
-
rnds[6] = rnds[6] & 0x0f | 0x40;
|
1628
|
-
rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
|
1629
|
-
|
1630
|
-
if (buf) {
|
1631
|
-
offset = offset || 0;
|
1632
|
-
|
1633
|
-
for (let i = 0; i < 16; ++i) {
|
1634
|
-
buf[offset + i] = rnds[i];
|
1635
|
-
}
|
1636
|
-
|
1637
|
-
return buf;
|
1638
|
-
}
|
1639
|
-
|
1640
|
-
return unsafeStringify(rnds);
|
1641
|
-
}
|
1642
|
-
|
1643
|
-
/* harmony default export */ const esm_browser_v4 = (v4);
|
1644
1474
|
;// CONCATENATED MODULE: external "lodash/debounce"
|
1645
1475
|
var debounce_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1646
1476
|
var debounce_y = x => () => x
|
@@ -2579,6 +2409,94 @@ var index = (function () {
|
|
2579
2409
|
|
2580
2410
|
/* harmony default export */ const ResizeObserver_es = (index);
|
2581
2411
|
|
2412
|
+
;// CONCATENATED MODULE: ../../node_modules/uuid/dist/esm-browser/native.js
|
2413
|
+
const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
2414
|
+
/* harmony default export */ const esm_browser_native = ({
|
2415
|
+
randomUUID
|
2416
|
+
});
|
2417
|
+
;// CONCATENATED MODULE: ../../node_modules/uuid/dist/esm-browser/rng.js
|
2418
|
+
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
2419
|
+
// require the crypto API and do not support built-in fallback to lower quality random number
|
2420
|
+
// generators (like Math.random()).
|
2421
|
+
let getRandomValues;
|
2422
|
+
const rnds8 = new Uint8Array(16);
|
2423
|
+
function rng() {
|
2424
|
+
// lazy load so that environments that need to polyfill have a chance to do so
|
2425
|
+
if (!getRandomValues) {
|
2426
|
+
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
|
2427
|
+
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
|
2428
|
+
|
2429
|
+
if (!getRandomValues) {
|
2430
|
+
throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
|
2431
|
+
}
|
2432
|
+
}
|
2433
|
+
|
2434
|
+
return getRandomValues(rnds8);
|
2435
|
+
}
|
2436
|
+
;// CONCATENATED MODULE: ../../node_modules/uuid/dist/esm-browser/stringify.js
|
2437
|
+
|
2438
|
+
/**
|
2439
|
+
* Convert array of 16 byte values to UUID string format of the form:
|
2440
|
+
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
2441
|
+
*/
|
2442
|
+
|
2443
|
+
const byteToHex = [];
|
2444
|
+
|
2445
|
+
for (let i = 0; i < 256; ++i) {
|
2446
|
+
byteToHex.push((i + 0x100).toString(16).slice(1));
|
2447
|
+
}
|
2448
|
+
|
2449
|
+
function unsafeStringify(arr, offset = 0) {
|
2450
|
+
// Note: Be careful editing this code! It's been tuned for performance
|
2451
|
+
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
|
2452
|
+
return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
|
2453
|
+
}
|
2454
|
+
|
2455
|
+
function stringify(arr, offset = 0) {
|
2456
|
+
const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one
|
2457
|
+
// of the following:
|
2458
|
+
// - One or more input array values don't map to a hex octet (leading to
|
2459
|
+
// "undefined" in the uuid)
|
2460
|
+
// - Invalid input values for the RFC `version` or `variant` fields
|
2461
|
+
|
2462
|
+
if (!validate(uuid)) {
|
2463
|
+
throw TypeError('Stringified UUID is invalid');
|
2464
|
+
}
|
2465
|
+
|
2466
|
+
return uuid;
|
2467
|
+
}
|
2468
|
+
|
2469
|
+
/* harmony default export */ const esm_browser_stringify = ((/* unused pure expression or super */ null && (stringify)));
|
2470
|
+
;// CONCATENATED MODULE: ../../node_modules/uuid/dist/esm-browser/v4.js
|
2471
|
+
|
2472
|
+
|
2473
|
+
|
2474
|
+
|
2475
|
+
function v4(options, buf, offset) {
|
2476
|
+
if (esm_browser_native.randomUUID && !buf && !options) {
|
2477
|
+
return esm_browser_native.randomUUID();
|
2478
|
+
}
|
2479
|
+
|
2480
|
+
options = options || {};
|
2481
|
+
const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
|
2482
|
+
|
2483
|
+
rnds[6] = rnds[6] & 0x0f | 0x40;
|
2484
|
+
rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
|
2485
|
+
|
2486
|
+
if (buf) {
|
2487
|
+
offset = offset || 0;
|
2488
|
+
|
2489
|
+
for (let i = 0; i < 16; ++i) {
|
2490
|
+
buf[offset + i] = rnds[i];
|
2491
|
+
}
|
2492
|
+
|
2493
|
+
return buf;
|
2494
|
+
}
|
2495
|
+
|
2496
|
+
return unsafeStringify(rnds);
|
2497
|
+
}
|
2498
|
+
|
2499
|
+
/* harmony default export */ const esm_browser_v4 = (v4);
|
2582
2500
|
;// CONCATENATED MODULE: ../../packages/table/src/utils.tsx
|
2583
2501
|
|
2584
2502
|
|
@@ -3076,6 +2994,147 @@ var getRawData = function getRawData(data) {
|
|
3076
2994
|
}
|
3077
2995
|
return data;
|
3078
2996
|
};
|
2997
|
+
;// CONCATENATED MODULE: ../../packages/table/src/plugins/use-observer-resize.tsx
|
2998
|
+
|
2999
|
+
/*
|
3000
|
+
* Tencent is pleased to support the open source community by making
|
3001
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
3002
|
+
*
|
3003
|
+
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
3004
|
+
*
|
3005
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
3006
|
+
*
|
3007
|
+
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
3008
|
+
*
|
3009
|
+
* ---------------------------------------------------
|
3010
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
3011
|
+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
3012
|
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
3013
|
+
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
3014
|
+
*
|
3015
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
3016
|
+
* the Software.
|
3017
|
+
*
|
3018
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
3019
|
+
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
3020
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
3021
|
+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
3022
|
+
* IN THE SOFTWARE.
|
3023
|
+
*/
|
3024
|
+
|
3025
|
+
|
3026
|
+
|
3027
|
+
/* harmony default export */ const use_observer_resize = (function (target, fn) {
|
3028
|
+
var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
3029
|
+
var immediate = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
|
3030
|
+
var instance = null;
|
3031
|
+
var dispose = function dispose() {
|
3032
|
+
if (instance) {
|
3033
|
+
instance.disconnect();
|
3034
|
+
instance = null;
|
3035
|
+
}
|
3036
|
+
};
|
3037
|
+
(0,external_vue_namespaceObject.watch)(target, function () {
|
3038
|
+
if (!(0,shared_namespaceObject.isElement)(target.value)) {
|
3039
|
+
return;
|
3040
|
+
}
|
3041
|
+
dispose();
|
3042
|
+
instance = observerResize(target.value, function () {
|
3043
|
+
fn === null || fn === void 0 || fn.apply.apply(fn, _toConsumableArray(args));
|
3044
|
+
}, 60, true, 'debounce');
|
3045
|
+
if (immediate) {
|
3046
|
+
instance.start();
|
3047
|
+
}
|
3048
|
+
}, {
|
3049
|
+
flush: 'post',
|
3050
|
+
immediate: true
|
3051
|
+
});
|
3052
|
+
return {
|
3053
|
+
instance: instance
|
3054
|
+
};
|
3055
|
+
});
|
3056
|
+
;// CONCATENATED MODULE: external "../loading"
|
3057
|
+
var loading_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
3058
|
+
var loading_y = x => () => x
|
3059
|
+
const loading_namespaceObject = loading_x({ ["BkLoadingMode"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_loading_dcf0e69a__.BkLoadingMode, ["BkLoadingSize"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_loading_dcf0e69a__.BkLoadingSize, ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_loading_dcf0e69a__["default"] });
|
3060
|
+
;// CONCATENATED MODULE: external "../loading/loading.less"
|
3061
|
+
var loading_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
3062
|
+
var loading_less_y = x => () => x
|
3063
|
+
const loading_less_namespaceObject = loading_less_x({ });
|
3064
|
+
;// CONCATENATED MODULE: ../../packages/table/src/plugins/use-scroll-loading.tsx
|
3065
|
+
|
3066
|
+
|
3067
|
+
/*
|
3068
|
+
* Tencent is pleased to support the open source community by making
|
3069
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
3070
|
+
*
|
3071
|
+
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
3072
|
+
*
|
3073
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
3074
|
+
*
|
3075
|
+
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
3076
|
+
*
|
3077
|
+
* ---------------------------------------------------
|
3078
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
3079
|
+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
3080
|
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
3081
|
+
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
3082
|
+
*
|
3083
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
3084
|
+
* the Software.
|
3085
|
+
*
|
3086
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
3087
|
+
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
3088
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
3089
|
+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
3090
|
+
* IN THE SOFTWARE.
|
3091
|
+
*/
|
3092
|
+
|
3093
|
+
|
3094
|
+
|
3095
|
+
|
3096
|
+
/* harmony default export */ const use_scroll_loading = (function (props, ctx) {
|
3097
|
+
var refScrollLoading = (0,external_vue_namespaceObject.toRef)(props, 'scrollLoading');
|
3098
|
+
var getLoadingOption = function getLoadingOption() {
|
3099
|
+
if (typeof refScrollLoading.value === 'boolean') {
|
3100
|
+
return {
|
3101
|
+
loading: !!refScrollLoading.value,
|
3102
|
+
inline: true,
|
3103
|
+
title: '',
|
3104
|
+
size: loading_namespaceObject.BkLoadingSize.Normal,
|
3105
|
+
mode: loading_namespaceObject.BkLoadingMode.Default,
|
3106
|
+
indicator: null
|
3107
|
+
};
|
3108
|
+
}
|
3109
|
+
return refScrollLoading.value;
|
3110
|
+
};
|
3111
|
+
var isRender = (0,external_vue_namespaceObject.computed)(function () {
|
3112
|
+
return refScrollLoading.value !== null && (typeof refScrollLoading.value === 'boolean' && refScrollLoading.value || typeof_typeof(refScrollLoading.value) === 'object');
|
3113
|
+
});
|
3114
|
+
var renderScrollLoading = function renderScrollLoading() {
|
3115
|
+
if (isRender.value) {
|
3116
|
+
var _ctx$slots$fixedBotto, _ctx$slots$fixedBotto2, _ctx$slots;
|
3117
|
+
var _getLoadingOption = getLoadingOption(),
|
3118
|
+
loading = _getLoadingOption.loading,
|
3119
|
+
size = _getLoadingOption.size,
|
3120
|
+
mode = _getLoadingOption.mode,
|
3121
|
+
title = _getLoadingOption.title,
|
3122
|
+
inline = _getLoadingOption.inline,
|
3123
|
+
indicator = _getLoadingOption.indicator;
|
3124
|
+
return (_ctx$slots$fixedBotto = (_ctx$slots$fixedBotto2 = (_ctx$slots = ctx.slots).fixedBottom) === null || _ctx$slots$fixedBotto2 === void 0 ? void 0 : _ctx$slots$fixedBotto2.call(_ctx$slots)) !== null && _ctx$slots$fixedBotto !== void 0 ? _ctx$slots$fixedBotto : (0,external_vue_namespaceObject.createVNode)(loading_namespaceObject["default"], {
|
3125
|
+
loading: loading,
|
3126
|
+
size: size,
|
3127
|
+
mode: mode,
|
3128
|
+
title: title,
|
3129
|
+
inline: inline,
|
3130
|
+
indicator: indicator
|
3131
|
+
}, null);
|
3132
|
+
}
|
3133
|
+
};
|
3134
|
+
return {
|
3135
|
+
renderScrollLoading: renderScrollLoading
|
3136
|
+
};
|
3137
|
+
});
|
3079
3138
|
;// CONCATENATED MODULE: ../../packages/table/src/plugins/use-pagination.tsx
|
3080
3139
|
|
3081
3140
|
|
@@ -6621,6 +6680,7 @@ function table_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
6621
6680
|
|
6622
6681
|
|
6623
6682
|
|
6683
|
+
|
6624
6684
|
/* harmony default export */ const table = ((0,external_vue_namespaceObject.defineComponent)({
|
6625
6685
|
// eslint-disable-next-line vue/no-reserved-component-names
|
6626
6686
|
name: 'Table',
|
@@ -6677,6 +6737,11 @@ function table_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
6677
6737
|
hasScrollY: hasScrollYRef.value
|
6678
6738
|
};
|
6679
6739
|
});
|
6740
|
+
use_observer_resize(root, function () {
|
6741
|
+
(0,external_vue_namespaceObject.nextTick)(function () {
|
6742
|
+
resolveFixedColumns(tableOffsetRight.value);
|
6743
|
+
});
|
6744
|
+
});
|
6680
6745
|
var _useRender = use_render(props, ctx, tableSchema, styleRef, head, root, resetTableHeight),
|
6681
6746
|
renderTableBodySchema = _useRender.renderTableBodySchema,
|
6682
6747
|
renderTableFooter = _useRender.renderTableFooter,
|
package/lib/table/table.css
CHANGED
@@ -736,7 +736,6 @@
|
|
736
736
|
}
|
737
737
|
.bk-popover.bk-pop2-content {
|
738
738
|
position: absolute;
|
739
|
-
display: none;
|
740
739
|
padding: 12px;
|
741
740
|
font-size: 12px;
|
742
741
|
color: #fff;
|
@@ -744,6 +743,9 @@
|
|
744
743
|
border-radius: 4px;
|
745
744
|
box-sizing: border-box;
|
746
745
|
}
|
746
|
+
.bk-popover.bk-pop2-content.hidden {
|
747
|
+
display: none;
|
748
|
+
}
|
747
749
|
.bk-popover.bk-pop2-content .bk-pop2-arrow {
|
748
750
|
position: absolute;
|
749
751
|
z-index: -1;
|
@@ -865,7 +865,6 @@
|
|
865
865
|
}
|
866
866
|
.bk-popover.bk-pop2-content {
|
867
867
|
position: absolute;
|
868
|
-
display: none;
|
869
868
|
padding: 12px;
|
870
869
|
font-size: 12px;
|
871
870
|
color: #fff;
|
@@ -873,6 +872,9 @@
|
|
873
872
|
border-radius: 4px;
|
874
873
|
box-sizing: border-box;
|
875
874
|
}
|
875
|
+
.bk-popover.bk-pop2-content.hidden {
|
876
|
+
display: none;
|
877
|
+
}
|
876
878
|
.bk-popover.bk-pop2-content .bk-pop2-arrow {
|
877
879
|
position: absolute;
|
878
880
|
z-index: -1;
|
@@ -275,6 +275,9 @@ declare const BkVirtualRender: {
|
|
275
275
|
width: string | number;
|
276
276
|
height: string | number;
|
277
277
|
maxHeight: number;
|
278
|
+
contentClassName: string | {
|
279
|
+
[key: string]: any;
|
280
|
+
};
|
278
281
|
enabled: boolean;
|
279
282
|
list: unknown[];
|
280
283
|
minHeight: number;
|
@@ -284,9 +287,6 @@ declare const BkVirtualRender: {
|
|
284
287
|
};
|
285
288
|
lineHeight: any;
|
286
289
|
scrollEvent: boolean;
|
287
|
-
contentClassName: string | {
|
288
|
-
[key: string]: any;
|
289
|
-
};
|
290
290
|
contentStyle: {
|
291
291
|
[key: string]: any;
|
292
292
|
};
|
@@ -456,6 +456,9 @@ declare const BkVirtualRender: {
|
|
456
456
|
width: string | number;
|
457
457
|
height: string | number;
|
458
458
|
maxHeight: number;
|
459
|
+
contentClassName: string | {
|
460
|
+
[key: string]: any;
|
461
|
+
};
|
459
462
|
enabled: boolean;
|
460
463
|
list: unknown[];
|
461
464
|
minHeight: number;
|
@@ -465,9 +468,6 @@ declare const BkVirtualRender: {
|
|
465
468
|
};
|
466
469
|
lineHeight: any;
|
467
470
|
scrollEvent: boolean;
|
468
|
-
contentClassName: string | {
|
469
|
-
[key: string]: any;
|
470
|
-
};
|
471
471
|
contentStyle: {
|
472
472
|
[key: string]: any;
|
473
473
|
};
|
@@ -629,6 +629,9 @@ declare const BkVirtualRender: {
|
|
629
629
|
width: string | number;
|
630
630
|
height: string | number;
|
631
631
|
maxHeight: number;
|
632
|
+
contentClassName: string | {
|
633
|
+
[key: string]: any;
|
634
|
+
};
|
632
635
|
enabled: boolean;
|
633
636
|
list: unknown[];
|
634
637
|
minHeight: number;
|
@@ -638,9 +641,6 @@ declare const BkVirtualRender: {
|
|
638
641
|
};
|
639
642
|
lineHeight: any;
|
640
643
|
scrollEvent: boolean;
|
641
|
-
contentClassName: string | {
|
642
|
-
[key: string]: any;
|
643
|
-
};
|
644
644
|
contentStyle: {
|
645
645
|
[key: string]: any;
|
646
646
|
};
|
@@ -278,6 +278,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
278
278
|
width: string | number;
|
279
279
|
height: string | number;
|
280
280
|
maxHeight: number;
|
281
|
+
contentClassName: string | {
|
282
|
+
[key: string]: any;
|
283
|
+
};
|
281
284
|
enabled: boolean;
|
282
285
|
list: unknown[];
|
283
286
|
minHeight: number;
|
@@ -287,9 +290,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
287
290
|
};
|
288
291
|
lineHeight: any;
|
289
292
|
scrollEvent: boolean;
|
290
|
-
contentClassName: string | {
|
291
|
-
[key: string]: any;
|
292
|
-
};
|
293
293
|
contentStyle: {
|
294
294
|
[key: string]: any;
|
295
295
|
};
|