bkui-vue 0.0.2-beta.78 → 0.0.2-beta.78.beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +135 -161
- package/dist/index.esm.js +15602 -18268
- package/dist/index.umd.js +135 -161
- package/lib/affix/index.js +6 -6
- package/lib/backtop/index.js +6 -6
- package/lib/config-provider/index.js +6 -6
- package/lib/date-picker/index.js +6 -6
- package/lib/dropdown/index.js +6 -6
- package/lib/exception/index.js +9 -9
- package/lib/form/index.js +12 -12
- package/lib/image/index.js +8 -8
- package/lib/plugin-popover/index.js +6 -6
- package/lib/popover/index.js +6 -6
- package/lib/select/index.js +9 -9
- package/lib/shared/index.js +6 -6
- package/lib/table/index.js +18 -18
- package/lib/tag-input/index.js +6 -6
- package/lib/tag-input/tag-input.d.ts +4 -2
- package/lib/virtual-render/index.js +6 -6
- package/package.json +3 -3
package/lib/table/index.js
CHANGED
@@ -8,7 +8,7 @@ import * as __WEBPACK_EXTERNAL_MODULE__checkbox_a57bcb84__ from "../checkbox";
|
|
8
8
|
import * as __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__ from "../icon";
|
9
9
|
import * as __WEBPACK_EXTERNAL_MODULE__pagination_6e36ddb9__ from "../pagination";
|
10
10
|
import * as __WEBPACK_EXTERNAL_MODULE__directives_9cc9ba10__ from "../directives";
|
11
|
-
import * as
|
11
|
+
import * as __WEBPACK_EXTERNAL_MODULE_lodash_es_87a6bcbc__ from "lodash-es";
|
12
12
|
import * as __WEBPACK_EXTERNAL_MODULE__exception_12c197e0__ from "../exception";
|
13
13
|
import * as __WEBPACK_EXTERNAL_MODULE__popover_cf5f8dce__ from "../popover";
|
14
14
|
import * as __WEBPACK_EXTERNAL_MODULE__icon__2ba2075d__ from "../icon/";
|
@@ -1277,10 +1277,10 @@ const external_pagination_namespaceObject = external_pagination_x({ ["default"]:
|
|
1277
1277
|
var external_directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1278
1278
|
var external_directives_y = x => () => x
|
1279
1279
|
const external_directives_namespaceObject = external_directives_x({ ["bkEllipsisInstance"]: () => __WEBPACK_EXTERNAL_MODULE__directives_9cc9ba10__.bkEllipsisInstance });
|
1280
|
-
;// CONCATENATED MODULE: external "lodash"
|
1281
|
-
var
|
1282
|
-
var
|
1283
|
-
const
|
1280
|
+
;// CONCATENATED MODULE: external "lodash-es"
|
1281
|
+
var external_lodash_es_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1282
|
+
var external_lodash_es_y = x => () => x
|
1283
|
+
const external_lodash_es_namespaceObject = external_lodash_es_x({ ["debounce"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_es_87a6bcbc__.debounce, ["get"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_es_87a6bcbc__.get, ["has"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_es_87a6bcbc__.has, ["isElement"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_es_87a6bcbc__.isElement, ["set"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_es_87a6bcbc__.set, ["throttle"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_es_87a6bcbc__.throttle });
|
1284
1284
|
;// CONCATENATED MODULE: ../../node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js
|
1285
1285
|
/**
|
1286
1286
|
* A collection of shims that provide minimal functionality of the ES6 collections.
|
@@ -2485,7 +2485,7 @@ var observerResize = function observerResize(root, callbackFn) {
|
|
2485
2485
|
callbackFn();
|
2486
2486
|
}
|
2487
2487
|
};
|
2488
|
-
var execFn = resizerWay === 'debounce' ? (0,
|
2488
|
+
var execFn = resizerWay === 'debounce' ? (0,external_lodash_es_namespaceObject.debounce)(resolveCallbackFn, delay) : (0,external_lodash_es_namespaceObject.throttle)(resolveCallbackFn, delay);
|
2489
2489
|
var callFn = function callFn() {
|
2490
2490
|
return Reflect.apply(execFn, _this, []);
|
2491
2491
|
};
|
@@ -2542,7 +2542,7 @@ var getRowText = function getRowText(row, key, column) {
|
|
2542
2542
|
if (column.type === 'index') {
|
2543
2543
|
return row[const_TABLE_ROW_ATTRIBUTE.ROW_INDEX] + 1;
|
2544
2544
|
}
|
2545
|
-
return (0,
|
2545
|
+
return (0,external_lodash_es_namespaceObject.get)(row, key);
|
2546
2546
|
};
|
2547
2547
|
/**
|
2548
2548
|
* 格式化prop配置为标准数组格式
|
@@ -2580,7 +2580,7 @@ var getRowKeyNull = function getRowKeyNull(item, props, index) {
|
|
2580
2580
|
if (props.rowKey === const_TABLE_ROW_ATTRIBUTE.ROW_INDEX) {
|
2581
2581
|
return "__ROW_INDEX_".concat(index);
|
2582
2582
|
}
|
2583
|
-
return (0,
|
2583
|
+
return (0,external_lodash_es_namespaceObject.get)(item, props.rowKey);
|
2584
2584
|
}
|
2585
2585
|
if (typeof props.rowKey === 'function') {
|
2586
2586
|
return Reflect.apply(props.rowKey, _this, [item]);
|
@@ -5069,7 +5069,7 @@ var use_active_columns_resolveActiveColumns = function resolveActiveColumns(prop
|
|
5069
5069
|
});
|
5070
5070
|
};
|
5071
5071
|
var updateOffsetX = function updateOffsetX(e) {
|
5072
|
-
return (0,
|
5072
|
+
return (0,external_lodash_es_namespaceObject.throttle)(function () {
|
5073
5073
|
var _dragColumn$resizeWid2;
|
5074
5074
|
var diff = e.clientX - startX;
|
5075
5075
|
var resolveWidth = ((_dragColumn$resizeWid2 = dragColumn.resizeWidth) !== null && _dragColumn$resizeWid2 !== void 0 ? _dragColumn$resizeWid2 : dragColumn.calcWidth) + diff;
|
@@ -5085,7 +5085,7 @@ var use_active_columns_resolveActiveColumns = function resolveActiveColumns(prop
|
|
5085
5085
|
updateOffsetX(e)();
|
5086
5086
|
};
|
5087
5087
|
var setChildrenNodeCursor = function setChildrenNodeCursor(root, cursor) {
|
5088
|
-
if ((0,
|
5088
|
+
if ((0,external_lodash_es_namespaceObject.isElement)(root)) {
|
5089
5089
|
var _root$style, _root$childNodes;
|
5090
5090
|
(_root$style = root.style) === null || _root$style === void 0 ? void 0 : _root$style.setProperty('cursor', cursor);
|
5091
5091
|
if (((_root$childNodes = root.childNodes) === null || _root$childNodes === void 0 ? void 0 : _root$childNodes.length) > 0) {
|
@@ -5489,7 +5489,7 @@ var useInit = function useInit(props, targetColumns) {
|
|
5489
5489
|
updateColGroups();
|
5490
5490
|
}
|
5491
5491
|
});
|
5492
|
-
var debounceColUpdate = (0,
|
5492
|
+
var debounceColUpdate = (0,external_lodash_es_namespaceObject.debounce)(function () {
|
5493
5493
|
updateColGroups();
|
5494
5494
|
resetResizeEvents();
|
5495
5495
|
registerResizeEvent();
|
@@ -5693,7 +5693,7 @@ var useInit = function useInit(props, targetColumns) {
|
|
5693
5693
|
}]);
|
5694
5694
|
}
|
5695
5695
|
if (typeof props.selectionKey === 'string' && props.selectionKey.length) {
|
5696
|
-
return (0,
|
5696
|
+
return (0,external_lodash_es_namespaceObject.get)(row, props.selectionKey);
|
5697
5697
|
}
|
5698
5698
|
return thenFn(row);
|
5699
5699
|
};
|
@@ -5871,7 +5871,7 @@ var useInit = function useInit(props, targetColumns) {
|
|
5871
5871
|
});
|
5872
5872
|
return skipCfg[rowId];
|
5873
5873
|
};
|
5874
|
-
var debounceUpdate = (0,
|
5874
|
+
var debounceUpdate = (0,external_lodash_es_namespaceObject.debounce)(updateIndexData, 120);
|
5875
5875
|
(0,external_vue_namespaceObject.watch)([neepColspanOrRowspan, needSelection, needExpand, needIndexColumn], function () {
|
5876
5876
|
debounceUpdate();
|
5877
5877
|
});
|
@@ -5886,16 +5886,16 @@ var useInit = function useInit(props, targetColumns) {
|
|
5886
5886
|
if (props.asyncData && props.rowKey) {
|
5887
5887
|
if (all) {
|
5888
5888
|
props.data.forEach(function (item) {
|
5889
|
-
if ((0,
|
5890
|
-
(0,
|
5889
|
+
if ((0,external_lodash_es_namespaceObject.has)(item, props.selectionKey)) {
|
5890
|
+
(0,external_lodash_es_namespaceObject.set)(item, props.selectionKey, !!value);
|
5891
5891
|
}
|
5892
5892
|
});
|
5893
5893
|
} else {
|
5894
|
-
if ((0,
|
5894
|
+
if ((0,external_lodash_es_namespaceObject.has)(row, props.selectionKey)) {
|
5895
5895
|
var target = props.data.find(function (item) {
|
5896
|
-
return (0,
|
5896
|
+
return (0,external_lodash_es_namespaceObject.get)(item, props.rowKey) === (0,external_lodash_es_namespaceObject.get)(row, props.rowKey);
|
5897
5897
|
});
|
5898
|
-
(0,
|
5898
|
+
(0,external_lodash_es_namespaceObject.set)(target, props.selectionKey, !!value);
|
5899
5899
|
}
|
5900
5900
|
}
|
5901
5901
|
}
|
package/lib/tag-input/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__ from "../shared";
|
2
2
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
3
|
-
import * as
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE_lodash_es_87a6bcbc__ from "lodash-es";
|
4
4
|
import * as __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__ from "../config-provider";
|
5
5
|
import * as __WEBPACK_EXTERNAL_MODULE__directives_9cc9ba10__ from "../directives";
|
6
6
|
import * as __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__ from "../icon";
|
@@ -170,10 +170,10 @@ function _defineProperty(obj, key, value) {
|
|
170
170
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
171
171
|
var external_vue_y = x => () => x
|
172
172
|
const external_vue_namespaceObject = external_vue_x({ ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["markRaw"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.markRaw, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["toRefs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRefs, ["vModelText"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vModelText, ["vShow"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vShow, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
|
173
|
-
;// CONCATENATED MODULE: external "lodash"
|
174
|
-
var
|
175
|
-
var
|
176
|
-
const
|
173
|
+
;// CONCATENATED MODULE: external "lodash-es"
|
174
|
+
var external_lodash_es_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
175
|
+
var external_lodash_es_y = x => () => x
|
176
|
+
const external_lodash_es_namespaceObject = external_lodash_es_x({ ["debounce"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_es_87a6bcbc__.debounce });
|
177
177
|
;// CONCATENATED MODULE: external "../config-provider"
|
178
178
|
var external_config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
179
179
|
var external_config_provider_y = x => () => x
|
@@ -801,7 +801,7 @@ function tag_input_objectSpread(target) { for (var i = 1; i < arguments.length;
|
|
801
801
|
}
|
802
802
|
}
|
803
803
|
});
|
804
|
-
(0,external_vue_namespaceObject.watch)(curInputValue, (0,
|
804
|
+
(0,external_vue_namespaceObject.watch)(curInputValue, (0,external_lodash_es_namespaceObject.debounce)(function () {
|
805
805
|
var hasShowCount = pageState.curPageList.length !== 0;
|
806
806
|
var value = curInputValue.value;
|
807
807
|
/**
|
@@ -274,7 +274,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
274
274
|
default: boolean;
|
275
275
|
};
|
276
276
|
tagOverflowTips: {
|
277
|
-
type: import("vue").PropType<Partial<import("../directives/src/tooltips").IOptions>>;
|
277
|
+
type: import("vue").PropType<Partial<import("../directives/src/tooltips").IOptions>>;
|
278
|
+
/**
|
278
279
|
* 不显示条件:
|
279
280
|
* 1. 设置不可清除
|
280
281
|
* 2. 禁用时
|
@@ -613,7 +614,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
613
614
|
default: boolean;
|
614
615
|
};
|
615
616
|
tagOverflowTips: {
|
616
|
-
type: import("vue").PropType<Partial<import("../directives/src/tooltips").IOptions>>;
|
617
|
+
type: import("vue").PropType<Partial<import("../directives/src/tooltips").IOptions>>;
|
618
|
+
/**
|
617
619
|
* 不显示条件:
|
618
620
|
* 1. 设置不可清除
|
619
621
|
* 2. 禁用时
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import * as __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__ from "../shared";
|
2
2
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
3
3
|
import * as __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__ from "../config-provider";
|
4
|
-
import * as
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE_lodash_es_87a6bcbc__ from "lodash-es";
|
5
5
|
/******/ // The require scope
|
6
6
|
/******/ var __webpack_require__ = {};
|
7
7
|
/******/
|
@@ -331,10 +331,10 @@ function use_tag_render_objectSpread(target) { for (var i = 1; i < arguments.len
|
|
331
331
|
}
|
332
332
|
};
|
333
333
|
});
|
334
|
-
;// CONCATENATED MODULE: external "lodash"
|
335
|
-
var
|
336
|
-
var
|
337
|
-
const
|
334
|
+
;// CONCATENATED MODULE: external "lodash-es"
|
335
|
+
var external_lodash_es_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
336
|
+
var external_lodash_es_y = x => () => x
|
337
|
+
const external_lodash_es_namespaceObject = external_lodash_es_x({ ["throttle"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_es_87a6bcbc__.throttle });
|
338
338
|
;// CONCATENATED MODULE: ../../packages/virtual-render/src/v-virtual-render.ts
|
339
339
|
var _this = undefined;
|
340
340
|
/*
|
@@ -456,7 +456,7 @@ function visibleRender(e, wrapper, binding) {
|
|
456
456
|
}
|
457
457
|
var throttledRender = function throttledRender() {
|
458
458
|
var delay = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 60;
|
459
|
-
return (0,
|
459
|
+
return (0,external_lodash_es_namespaceObject.throttle)(function (e, wrapper, binding) {
|
460
460
|
return visibleRender(e, wrapper, binding);
|
461
461
|
}, delay);
|
462
462
|
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "bkui-vue",
|
3
|
-
"version": "0.0.2-beta.78",
|
3
|
+
"version": "0.0.2-beta.78.beta.1",
|
4
4
|
"workspaces": {
|
5
5
|
"packages": [
|
6
6
|
"packages/!(**.bak)*",
|
@@ -46,7 +46,7 @@
|
|
46
46
|
"@commitlint/cli": "~16.2.3",
|
47
47
|
"@commitlint/config-conventional": "~16.2.1",
|
48
48
|
"@types/jest": "~29.5.3",
|
49
|
-
"@types/lodash": "~4.
|
49
|
+
"@types/lodash-es": "~4.17.10",
|
50
50
|
"@types/node": "~20.4.5",
|
51
51
|
"@types/postcss-less": "~4.0.2",
|
52
52
|
"@typescript-eslint/eslint-plugin": "^5.20.0",
|
@@ -145,7 +145,7 @@
|
|
145
145
|
"date-fns": "~2.30.0",
|
146
146
|
"js-calendar": "~1.2.3",
|
147
147
|
"json-formatter-js": "~2.3.4",
|
148
|
-
"lodash": "~4.17.21",
|
148
|
+
"lodash-es": "~4.17.21",
|
149
149
|
"tinycolor2": "~1.6.0",
|
150
150
|
"vue-types": "~4.1.1"
|
151
151
|
}
|