bkui-vue 2.0.1-beta.48 → 2.0.1-beta.49
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 +24 -24
- package/dist/index.esm.js +1858 -1858
- package/dist/index.umd.js +22 -22
- package/lib/directives/index.js +5 -13
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/lib/directives/index.js
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
import "../styles/reset.css";
|
2
2
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_plugin_popover_300e25d0__ from "../plugin-popover";
|
3
3
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
4
|
-
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
|
5
4
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
6
5
|
import * as __WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__ from "@popperjs/core";
|
7
6
|
import * as __WEBPACK_EXTERNAL_MODULE__overflow_title_f9bafa47__ from "../overflow-title";
|
@@ -1055,14 +1054,10 @@ function _toConsumableArray(arr) {
|
|
1055
1054
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1056
1055
|
var external_vue_y = x => () => x
|
1057
1056
|
const external_vue_namespaceObject = external_vue_x({ ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["render"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.render });
|
1058
|
-
;// CONCATENATED MODULE: external "../config-provider"
|
1059
|
-
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1060
|
-
var config_provider_y = x => () => x
|
1061
|
-
const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
|
1062
1057
|
;// CONCATENATED MODULE: external "../shared"
|
1063
1058
|
var shared_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1064
1059
|
var shared_y = x => () => x
|
1065
|
-
const shared_namespaceObject = shared_x({ ["bkZIndexManager"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager });
|
1060
|
+
const shared_namespaceObject = shared_x({ ["bkZIndexManager"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager, ["resolveClassName"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.resolveClassName });
|
1066
1061
|
;// CONCATENATED MODULE: external "@popperjs/core"
|
1067
1062
|
var core_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1068
1063
|
var core_y = x => () => x
|
@@ -1101,7 +1096,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
1101
1096
|
|
1102
1097
|
|
1103
1098
|
|
1104
|
-
|
1105
1099
|
var tooltips_nodeList = new WeakMap();
|
1106
1100
|
var tooltips = {
|
1107
1101
|
beforeMount: function beforeMount(el, binding) {
|
@@ -1216,8 +1210,6 @@ function renderContext(value, content) {
|
|
1216
1210
|
}
|
1217
1211
|
}
|
1218
1212
|
function renderContent(opts) {
|
1219
|
-
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
1220
|
-
resolveClassName = _usePrefix.resolveClassName;
|
1221
1213
|
var value = opts.content,
|
1222
1214
|
hasArrow = opts.arrow,
|
1223
1215
|
theme = opts.theme,
|
@@ -1225,7 +1217,8 @@ function renderContent(opts) {
|
|
1225
1217
|
var isLight = theme === 'light';
|
1226
1218
|
var zIndex = shared_namespaceObject.bkZIndexManager.getPopperIndex();
|
1227
1219
|
var content = document.createElement('div');
|
1228
|
-
|
1220
|
+
var prefix = document.documentElement.style.getPropertyValue('--bk-prefix') || 'bk';
|
1221
|
+
content.className = "".concat((0,shared_namespaceObject.resolveClassName)('popper', prefix), " ").concat(isLight ? 'light' : 'dark', " ").concat(extCls);
|
1229
1222
|
content.innerText = value;
|
1230
1223
|
content.style.zIndex = String(zIndex);
|
1231
1224
|
renderContext(value, content);
|
@@ -1241,9 +1234,8 @@ function renderContent(opts) {
|
|
1241
1234
|
*/
|
1242
1235
|
function renderArrow() {
|
1243
1236
|
var arrow = document.createElement('div');
|
1244
|
-
var
|
1245
|
-
|
1246
|
-
arrow.className = resolveClassName('popper-arrow');
|
1237
|
+
var prefix = document.documentElement.style.getPropertyValue('--bk-prefix') || 'bk';
|
1238
|
+
arrow.className = (0,shared_namespaceObject.resolveClassName)('popper-arrow', prefix);
|
1247
1239
|
arrow.setAttribute('data-popper-arrow', '');
|
1248
1240
|
return arrow;
|
1249
1241
|
}
|
package/lib/index.js
CHANGED