bkui-vue 1.0.3-beta.4 → 1.0.3-beta.8
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 +35 -35
- package/dist/index.esm.js +6280 -6256
- package/dist/index.umd.js +34 -34
- package/lib/components.js +504 -63
- package/lib/dist.index.js +61 -5
- package/lib/hooks.js +48 -8
- package/lib/index.js +72 -8
- package/lib/plugin-popover/index.js +10 -5
- package/lib/popover/index.js +10 -5
- package/lib/preset.js +58 -18
- package/lib/table/index.d.ts +15 -0
- package/lib/table/index.js +280 -221
- package/lib/table/plugins/head-sort.d.ts +7 -0
- package/lib/table/props.d.ts +9 -0
- package/lib/table/table.d.ts +7 -0
- package/lib/table/use-attributes.d.ts +1 -1
- package/lib/table/utils.d.ts +5 -4
- package/lib/table-column/index.js +10 -0
- package/package.json +1 -1
package/lib/dist.index.js
CHANGED
@@ -1,3 +1,58 @@
|
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE__styles_9b7bdad5__ from "./styles";
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE__preset_b854ea38__ from "./preset";
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE__components_96ad247a__ from "./components";
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE__directives_37095733__ from "./directives";
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE__config_provider_e8e4cbd4__ from "./config-provider";
|
6
|
+
/******/ // The require scope
|
7
|
+
/******/ var __webpack_require__ = {};
|
8
|
+
/******/
|
9
|
+
/************************************************************************/
|
10
|
+
/******/ /* webpack/runtime/define property getters */
|
11
|
+
/******/ (() => {
|
12
|
+
/******/ // define getter functions for harmony exports
|
13
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
14
|
+
/******/ for(var key in definition) {
|
15
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
16
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
17
|
+
/******/ }
|
18
|
+
/******/ }
|
19
|
+
/******/ };
|
20
|
+
/******/ })();
|
21
|
+
/******/
|
22
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
23
|
+
/******/ (() => {
|
24
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
25
|
+
/******/ })();
|
26
|
+
/******/
|
27
|
+
/************************************************************************/
|
28
|
+
var __webpack_exports__ = {};
|
29
|
+
|
30
|
+
// EXPORTS
|
31
|
+
__webpack_require__.d(__webpack_exports__, {
|
32
|
+
"default": () => (/* reexport */ external_preset_namespaceObject["default"])
|
33
|
+
});
|
34
|
+
|
35
|
+
;// CONCATENATED MODULE: external "./styles"
|
36
|
+
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
37
|
+
var y = x => () => x
|
38
|
+
const external_styles_namespaceObject = x({ });
|
39
|
+
;// CONCATENATED MODULE: external "./preset"
|
40
|
+
var external_preset_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
41
|
+
var external_preset_y = x => () => x
|
42
|
+
const external_preset_namespaceObject = external_preset_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE__preset_b854ea38__["default"] });
|
43
|
+
;// CONCATENATED MODULE: external "./components"
|
44
|
+
var external_components_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
45
|
+
var external_components_y = x => () => x
|
46
|
+
const external_components_namespaceObject = external_components_x({ });
|
47
|
+
;// CONCATENATED MODULE: external "./directives"
|
48
|
+
var external_directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
49
|
+
var external_directives_y = x => () => x
|
50
|
+
const external_directives_namespaceObject = external_directives_x({ });
|
51
|
+
;// CONCATENATED MODULE: external "./config-provider"
|
52
|
+
var external_config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
53
|
+
var external_config_provider_y = x => () => x
|
54
|
+
const external_config_provider_namespaceObject = external_config_provider_x({ });
|
55
|
+
;// CONCATENATED MODULE: ../../packages/bkui-vue/dist.index.ts
|
1
56
|
/*
|
2
57
|
* Tencent is pleased to support the open source community by making
|
3
58
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -23,9 +78,10 @@
|
|
23
78
|
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
24
79
|
* IN THE SOFTWARE.
|
25
80
|
*/
|
26
|
-
import './styles';
|
27
81
|
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
var __webpack_exports__default = __webpack_exports__["default"];
|
87
|
+
export { __webpack_exports__default as default };
|
package/lib/hooks.js
CHANGED
@@ -1,3 +1,43 @@
|
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE__config_provider_e8e4cbd4__ from "./config-provider";
|
2
|
+
/******/ // The require scope
|
3
|
+
/******/ var __webpack_require__ = {};
|
4
|
+
/******/
|
5
|
+
/************************************************************************/
|
6
|
+
/******/ /* webpack/runtime/define property getters */
|
7
|
+
/******/ (() => {
|
8
|
+
/******/ // define getter functions for harmony exports
|
9
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
10
|
+
/******/ for(var key in definition) {
|
11
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
12
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
13
|
+
/******/ }
|
14
|
+
/******/ }
|
15
|
+
/******/ };
|
16
|
+
/******/ })();
|
17
|
+
/******/
|
18
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
19
|
+
/******/ (() => {
|
20
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
21
|
+
/******/ })();
|
22
|
+
/******/
|
23
|
+
/************************************************************************/
|
24
|
+
var __webpack_exports__ = {};
|
25
|
+
|
26
|
+
// EXPORTS
|
27
|
+
__webpack_require__.d(__webpack_exports__, {
|
28
|
+
defaultRootConfig: () => (/* reexport */ external_config_provider_namespaceObject.defaultRootConfig),
|
29
|
+
provideGlobalConfig: () => (/* reexport */ external_config_provider_namespaceObject.provideGlobalConfig),
|
30
|
+
rootProviderKey: () => (/* reexport */ external_config_provider_namespaceObject.rootProviderKey),
|
31
|
+
useGlobalConfig: () => (/* reexport */ external_config_provider_namespaceObject.useGlobalConfig),
|
32
|
+
useLocale: () => (/* reexport */ external_config_provider_namespaceObject.useLocale),
|
33
|
+
usePrefix: () => (/* reexport */ external_config_provider_namespaceObject.usePrefix)
|
34
|
+
});
|
35
|
+
|
36
|
+
;// CONCATENATED MODULE: external "./config-provider"
|
37
|
+
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
38
|
+
var y = x => () => x
|
39
|
+
const external_config_provider_namespaceObject = x({ ["defaultRootConfig"]: () => __WEBPACK_EXTERNAL_MODULE__config_provider_e8e4cbd4__.defaultRootConfig, ["provideGlobalConfig"]: () => __WEBPACK_EXTERNAL_MODULE__config_provider_e8e4cbd4__.provideGlobalConfig, ["rootProviderKey"]: () => __WEBPACK_EXTERNAL_MODULE__config_provider_e8e4cbd4__.rootProviderKey, ["useGlobalConfig"]: () => __WEBPACK_EXTERNAL_MODULE__config_provider_e8e4cbd4__.useGlobalConfig, ["useLocale"]: () => __WEBPACK_EXTERNAL_MODULE__config_provider_e8e4cbd4__.useLocale, ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE__config_provider_e8e4cbd4__.usePrefix });
|
40
|
+
;// CONCATENATED MODULE: ../../packages/bkui-vue/hooks.ts
|
1
41
|
/*
|
2
42
|
* Tencent is pleased to support the open source community by making
|
3
43
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -23,11 +63,11 @@
|
|
23
63
|
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
24
64
|
* IN THE SOFTWARE.
|
25
65
|
*/
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
66
|
+
|
67
|
+
var __webpack_exports__defaultRootConfig = __webpack_exports__.defaultRootConfig;
|
68
|
+
var __webpack_exports__provideGlobalConfig = __webpack_exports__.provideGlobalConfig;
|
69
|
+
var __webpack_exports__rootProviderKey = __webpack_exports__.rootProviderKey;
|
70
|
+
var __webpack_exports__useGlobalConfig = __webpack_exports__.useGlobalConfig;
|
71
|
+
var __webpack_exports__useLocale = __webpack_exports__.useLocale;
|
72
|
+
var __webpack_exports__usePrefix = __webpack_exports__.usePrefix;
|
73
|
+
export { __webpack_exports__defaultRootConfig as defaultRootConfig, __webpack_exports__provideGlobalConfig as provideGlobalConfig, __webpack_exports__rootProviderKey as rootProviderKey, __webpack_exports__useGlobalConfig as useGlobalConfig, __webpack_exports__useLocale as useLocale, __webpack_exports__usePrefix as usePrefix };
|
package/lib/index.js
CHANGED
@@ -1,3 +1,64 @@
|
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE__preset_b854ea38__ from "./preset";
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE__components_96ad247a__ from "./components";
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE__directives_37095733__ from "./directives";
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE__plugins_a82c42d7__ from "./plugins";
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE__config_provider_e8e4cbd4__ from "./config-provider";
|
6
|
+
import * as __WEBPACK_EXTERNAL_MODULE__hooks_627f7bfe__ from "./hooks";
|
7
|
+
/******/ // The require scope
|
8
|
+
/******/ var __webpack_require__ = {};
|
9
|
+
/******/
|
10
|
+
/************************************************************************/
|
11
|
+
/******/ /* webpack/runtime/define property getters */
|
12
|
+
/******/ (() => {
|
13
|
+
/******/ // define getter functions for harmony exports
|
14
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
15
|
+
/******/ for(var key in definition) {
|
16
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
17
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
18
|
+
/******/ }
|
19
|
+
/******/ }
|
20
|
+
/******/ };
|
21
|
+
/******/ })();
|
22
|
+
/******/
|
23
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
24
|
+
/******/ (() => {
|
25
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
26
|
+
/******/ })();
|
27
|
+
/******/
|
28
|
+
/************************************************************************/
|
29
|
+
var __webpack_exports__ = {};
|
30
|
+
|
31
|
+
// EXPORTS
|
32
|
+
__webpack_require__.d(__webpack_exports__, {
|
33
|
+
"default": () => (/* reexport */ external_preset_namespaceObject["default"]),
|
34
|
+
plugins: () => (/* reexport */ external_plugins_namespaceObject)
|
35
|
+
});
|
36
|
+
|
37
|
+
;// CONCATENATED MODULE: external "./preset"
|
38
|
+
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
39
|
+
var y = x => () => x
|
40
|
+
const external_preset_namespaceObject = x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE__preset_b854ea38__["default"] });
|
41
|
+
;// CONCATENATED MODULE: external "./components"
|
42
|
+
var external_components_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
43
|
+
var external_components_y = x => () => x
|
44
|
+
const external_components_namespaceObject = external_components_x({ });
|
45
|
+
;// CONCATENATED MODULE: external "./directives"
|
46
|
+
var external_directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
47
|
+
var external_directives_y = x => () => x
|
48
|
+
const external_directives_namespaceObject = external_directives_x({ });
|
49
|
+
;// CONCATENATED MODULE: external "./plugins"
|
50
|
+
var external_plugins_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
51
|
+
var external_plugins_y = x => () => x
|
52
|
+
const external_plugins_namespaceObject = __WEBPACK_EXTERNAL_MODULE__plugins_a82c42d7__;
|
53
|
+
;// CONCATENATED MODULE: external "./config-provider"
|
54
|
+
var external_config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
55
|
+
var external_config_provider_y = x => () => x
|
56
|
+
const external_config_provider_namespaceObject = external_config_provider_x({ });
|
57
|
+
;// CONCATENATED MODULE: external "./hooks"
|
58
|
+
var external_hooks_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
59
|
+
var external_hooks_y = x => () => x
|
60
|
+
const external_hooks_namespaceObject = external_hooks_x({ });
|
61
|
+
;// CONCATENATED MODULE: ../../packages/bkui-vue/index.ts
|
1
62
|
/*
|
2
63
|
* Tencent is pleased to support the open source community by making
|
3
64
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -23,11 +84,14 @@
|
|
23
84
|
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
24
85
|
* IN THE SOFTWARE.
|
25
86
|
*/
|
26
|
-
// import '
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
87
|
+
// import '@bkui-vue/styles';
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
var __webpack_exports__default = __webpack_exports__["default"];
|
96
|
+
var __webpack_exports__plugins = __webpack_exports__.plugins;
|
97
|
+
export { __webpack_exports__default as default, __webpack_exports__plugins as plugins };
|
@@ -3424,14 +3424,19 @@ var parentNodeReferId = null;
|
|
3424
3424
|
storeEvents = null;
|
3425
3425
|
}
|
3426
3426
|
};
|
3427
|
+
var getClosestFullscreenElement = function getClosestFullscreenElement(elment) {
|
3428
|
+
var _elment$closest;
|
3429
|
+
return (_elment$closest = elment === null || elment === void 0 ? void 0 : elment.closest('[data-fllsrn-id]')) !== null && _elment$closest !== void 0 ? _elment$closest : elment;
|
3430
|
+
};
|
3427
3431
|
var updateBoundary = function updateBoundary() {
|
3428
3432
|
var _resolvePopElements3 = resolvePopElements(),
|
3429
3433
|
elReference = _resolvePopElements3.elReference,
|
3430
3434
|
root = _resolvePopElements3.root;
|
3431
3435
|
if (isFullscreen.value) {
|
3436
|
+
var _fullScreenTarget$val;
|
3432
3437
|
var _ref6 = elReference || root || {},
|
3433
3438
|
parentNode = _ref6.parentNode;
|
3434
|
-
boundary.value = (fullScreenTarget === null || fullScreenTarget === void 0 ? void 0 : fullScreenTarget.value)
|
3439
|
+
boundary.value = (_fullScreenTarget$val = fullScreenTarget === null || fullScreenTarget === void 0 ? void 0 : fullScreenTarget.value) !== null && _fullScreenTarget$val !== void 0 ? _fullScreenTarget$val : getClosestFullscreenElement(parentNode);
|
3435
3440
|
return;
|
3436
3441
|
}
|
3437
3442
|
boundary.value = getPrefixId(root || elReference);
|
@@ -3439,13 +3444,13 @@ var parentNodeReferId = null;
|
|
3439
3444
|
var _usePopperId = use_popper_id(props, '#'),
|
3440
3445
|
getPrefixId = _usePopperId.getPrefixId;
|
3441
3446
|
var setFullscreenTag = function setFullscreenTag() {
|
3442
|
-
var _fullScreenTarget$
|
3443
|
-
fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$
|
3447
|
+
var _fullScreenTarget$val2;
|
3448
|
+
fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val2 = fullScreenTarget.value) === null || _fullScreenTarget$val2 === void 0 || _fullScreenTarget$val2.setAttribute('data-fllsrn-id', fullscreenReferId);
|
3444
3449
|
};
|
3445
3450
|
var clearFullscreenTag = function clearFullscreenTag() {
|
3446
|
-
var _fullScreenTarget$
|
3451
|
+
var _fullScreenTarget$val3, _fullScreenTarget$val4;
|
3447
3452
|
var query = "[data-fllsrn-id=".concat(fullscreenReferId, "]");
|
3448
|
-
((_fullScreenTarget$
|
3453
|
+
((_fullScreenTarget$val3 = fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val4 = fullScreenTarget.value) === null || _fullScreenTarget$val4 === void 0 ? void 0 : _fullScreenTarget$val4.querySelectorAll(query)) !== null && _fullScreenTarget$val3 !== void 0 ? _fullScreenTarget$val3 : []).forEach(function (element) {
|
3449
3454
|
element === null || element === void 0 || element.removeAttribute('data-fllsrn-id');
|
3450
3455
|
});
|
3451
3456
|
};
|
package/lib/popover/index.js
CHANGED
@@ -3427,14 +3427,19 @@ var parentNodeReferId = null;
|
|
3427
3427
|
storeEvents = null;
|
3428
3428
|
}
|
3429
3429
|
};
|
3430
|
+
var getClosestFullscreenElement = function getClosestFullscreenElement(elment) {
|
3431
|
+
var _elment$closest;
|
3432
|
+
return (_elment$closest = elment === null || elment === void 0 ? void 0 : elment.closest('[data-fllsrn-id]')) !== null && _elment$closest !== void 0 ? _elment$closest : elment;
|
3433
|
+
};
|
3430
3434
|
var updateBoundary = function updateBoundary() {
|
3431
3435
|
var _resolvePopElements3 = resolvePopElements(),
|
3432
3436
|
elReference = _resolvePopElements3.elReference,
|
3433
3437
|
root = _resolvePopElements3.root;
|
3434
3438
|
if (isFullscreen.value) {
|
3439
|
+
var _fullScreenTarget$val;
|
3435
3440
|
var _ref6 = elReference || root || {},
|
3436
3441
|
parentNode = _ref6.parentNode;
|
3437
|
-
boundary.value = (fullScreenTarget === null || fullScreenTarget === void 0 ? void 0 : fullScreenTarget.value)
|
3442
|
+
boundary.value = (_fullScreenTarget$val = fullScreenTarget === null || fullScreenTarget === void 0 ? void 0 : fullScreenTarget.value) !== null && _fullScreenTarget$val !== void 0 ? _fullScreenTarget$val : getClosestFullscreenElement(parentNode);
|
3438
3443
|
return;
|
3439
3444
|
}
|
3440
3445
|
boundary.value = getPrefixId(root || elReference);
|
@@ -3442,13 +3447,13 @@ var parentNodeReferId = null;
|
|
3442
3447
|
var _usePopperId = use_popper_id(props, '#'),
|
3443
3448
|
getPrefixId = _usePopperId.getPrefixId;
|
3444
3449
|
var setFullscreenTag = function setFullscreenTag() {
|
3445
|
-
var _fullScreenTarget$
|
3446
|
-
fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$
|
3450
|
+
var _fullScreenTarget$val2;
|
3451
|
+
fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val2 = fullScreenTarget.value) === null || _fullScreenTarget$val2 === void 0 || _fullScreenTarget$val2.setAttribute('data-fllsrn-id', fullscreenReferId);
|
3447
3452
|
};
|
3448
3453
|
var clearFullscreenTag = function clearFullscreenTag() {
|
3449
|
-
var _fullScreenTarget$
|
3454
|
+
var _fullScreenTarget$val3, _fullScreenTarget$val4;
|
3450
3455
|
var query = "[data-fllsrn-id=".concat(fullscreenReferId, "]");
|
3451
|
-
((_fullScreenTarget$
|
3456
|
+
((_fullScreenTarget$val3 = fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val4 = fullScreenTarget.value) === null || _fullScreenTarget$val4 === void 0 ? void 0 : _fullScreenTarget$val4.querySelectorAll(query)) !== null && _fullScreenTarget$val3 !== void 0 ? _fullScreenTarget$val3 : []).forEach(function (element) {
|
3452
3457
|
element === null || element === void 0 || element.removeAttribute('data-fllsrn-id');
|
3453
3458
|
});
|
3454
3459
|
};
|
package/lib/preset.js
CHANGED
@@ -1,3 +1,43 @@
|
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE__config_provider_e8e4cbd4__ from "./config-provider";
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE__components_96ad247a__ from "./components";
|
3
|
+
/******/ // The require scope
|
4
|
+
/******/ var __webpack_require__ = {};
|
5
|
+
/******/
|
6
|
+
/************************************************************************/
|
7
|
+
/******/ /* webpack/runtime/define property getters */
|
8
|
+
/******/ (() => {
|
9
|
+
/******/ // define getter functions for harmony exports
|
10
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
11
|
+
/******/ for(var key in definition) {
|
12
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
13
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
14
|
+
/******/ }
|
15
|
+
/******/ }
|
16
|
+
/******/ };
|
17
|
+
/******/ })();
|
18
|
+
/******/
|
19
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
20
|
+
/******/ (() => {
|
21
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
22
|
+
/******/ })();
|
23
|
+
/******/
|
24
|
+
/************************************************************************/
|
25
|
+
var __webpack_exports__ = {};
|
26
|
+
|
27
|
+
// EXPORTS
|
28
|
+
__webpack_require__.d(__webpack_exports__, {
|
29
|
+
"default": () => (/* binding */ preset)
|
30
|
+
});
|
31
|
+
|
32
|
+
;// CONCATENATED MODULE: external "./config-provider"
|
33
|
+
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
34
|
+
var y = x => () => x
|
35
|
+
const external_config_provider_namespaceObject = x({ ["provideGlobalConfig"]: () => __WEBPACK_EXTERNAL_MODULE__config_provider_e8e4cbd4__.provideGlobalConfig });
|
36
|
+
;// CONCATENATED MODULE: external "./components"
|
37
|
+
var external_components_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
38
|
+
var external_components_y = x => () => x
|
39
|
+
const external_components_namespaceObject = __WEBPACK_EXTERNAL_MODULE__components_96ad247a__;
|
40
|
+
;// CONCATENATED MODULE: ../../packages/bkui-vue/preset.ts
|
1
41
|
/*
|
2
42
|
* Tencent is pleased to support the open source community by making
|
3
43
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -24,30 +64,30 @@
|
|
24
64
|
* IN THE SOFTWARE.
|
25
65
|
*/
|
26
66
|
|
27
|
-
import { App } from 'vue';
|
28
|
-
|
29
|
-
import { ConfigProviderProps, provideGlobalConfig } from './config-provider';
|
30
67
|
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
Object.keys(components).forEach(key => {
|
38
|
-
const component = components[key];
|
68
|
+
var createInstall = function createInstall() {
|
69
|
+
var prefix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'Bk';
|
70
|
+
return function (app, options) {
|
71
|
+
var pre = app.config.globalProperties.bkUIPrefix || prefix;
|
72
|
+
Object.keys(external_components_namespaceObject).forEach(function (key) {
|
73
|
+
var component = external_components_namespaceObject[key];
|
39
74
|
if ('install' in component) {
|
40
|
-
app.use(component, {
|
75
|
+
app.use(component, {
|
76
|
+
prefix: pre
|
77
|
+
});
|
41
78
|
} else {
|
42
|
-
app.component(pre + key,
|
79
|
+
app.component(pre + key, external_components_namespaceObject[key]);
|
43
80
|
}
|
44
81
|
});
|
45
82
|
if (options) {
|
46
|
-
provideGlobalConfig(options, app);
|
83
|
+
(0,external_config_provider_namespaceObject.provideGlobalConfig)(options, app);
|
47
84
|
}
|
48
85
|
};
|
49
|
-
export default {
|
50
|
-
createInstall,
|
51
|
-
install: createInstall(),
|
52
|
-
version: '0.0.1',
|
53
86
|
};
|
87
|
+
/* harmony default export */ const preset = ({
|
88
|
+
createInstall: createInstall,
|
89
|
+
install: createInstall(),
|
90
|
+
version: '0.0.1'
|
91
|
+
});
|
92
|
+
var __webpack_exports__default = __webpack_exports__["default"];
|
93
|
+
export { __webpack_exports__default as default };
|
package/lib/table/index.d.ts
CHANGED
@@ -42,6 +42,9 @@ declare const BkTable: {
|
|
42
42
|
} & {
|
43
43
|
default: boolean;
|
44
44
|
};
|
45
|
+
sortValFormat: import("vue-types").VueTypeDef<any[]> & {
|
46
|
+
default: () => any[];
|
47
|
+
};
|
45
48
|
thead: import("vue-types").VueTypeDef<import("./props").Thead> & {
|
46
49
|
default: () => import("./props").Thead;
|
47
50
|
};
|
@@ -363,6 +366,9 @@ declare const BkTable: {
|
|
363
366
|
} & {
|
364
367
|
default: boolean;
|
365
368
|
};
|
369
|
+
sortValFormat: import("vue-types").VueTypeDef<any[]> & {
|
370
|
+
default: () => any[];
|
371
|
+
};
|
366
372
|
thead: import("vue-types").VueTypeDef<import("./props").Thead> & {
|
367
373
|
default: () => import("./props").Thead;
|
368
374
|
};
|
@@ -586,6 +592,7 @@ declare const BkTable: {
|
|
586
592
|
stripe: boolean;
|
587
593
|
rowHeight: import("./props").RowHeightFunctionNumber;
|
588
594
|
showHead: boolean;
|
595
|
+
sortValFormat: any[];
|
589
596
|
virtualEnabled: boolean;
|
590
597
|
paginationHeight: number;
|
591
598
|
remotePagination: boolean;
|
@@ -650,6 +657,9 @@ declare const BkTable: {
|
|
650
657
|
} & {
|
651
658
|
default: boolean;
|
652
659
|
};
|
660
|
+
sortValFormat: import("vue-types").VueTypeDef<any[]> & {
|
661
|
+
default: () => any[];
|
662
|
+
};
|
653
663
|
thead: import("vue-types").VueTypeDef<import("./props").Thead> & {
|
654
664
|
default: () => import("./props").Thead;
|
655
665
|
};
|
@@ -873,6 +883,7 @@ declare const BkTable: {
|
|
873
883
|
stripe: boolean;
|
874
884
|
rowHeight: import("./props").RowHeightFunctionNumber;
|
875
885
|
showHead: boolean;
|
886
|
+
sortValFormat: any[];
|
876
887
|
virtualEnabled: boolean;
|
877
888
|
paginationHeight: number;
|
878
889
|
remotePagination: boolean;
|
@@ -934,6 +945,9 @@ declare const BkTable: {
|
|
934
945
|
} & {
|
935
946
|
default: boolean;
|
936
947
|
};
|
948
|
+
sortValFormat: import("vue-types").VueTypeDef<any[]> & {
|
949
|
+
default: () => any[];
|
950
|
+
};
|
937
951
|
thead: import("vue-types").VueTypeDef<import("./props").Thead> & {
|
938
952
|
default: () => import("./props").Thead;
|
939
953
|
};
|
@@ -1240,6 +1254,7 @@ declare const BkTable: {
|
|
1240
1254
|
stripe: boolean;
|
1241
1255
|
rowHeight: import("./props").RowHeightFunctionNumber;
|
1242
1256
|
showHead: boolean;
|
1257
|
+
sortValFormat: any[];
|
1243
1258
|
virtualEnabled: boolean;
|
1244
1259
|
paginationHeight: number;
|
1245
1260
|
remotePagination: boolean;
|