bkui-vue 2.0.2-beta.47 → 2.0.2-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 +42 -47
- package/dist/index.esm.js +7009 -7201
- package/dist/index.umd.js +45 -50
- package/lib/affix/index.js +14 -12
- package/lib/alert/index.js +14 -12
- package/lib/animate-number/index.js +12 -11
- package/lib/backtop/index.js +11 -10
- package/lib/badge/index.js +14 -12
- package/lib/breadcrumb/index.js +14 -12
- package/lib/button/index.js +14 -12
- package/lib/card/index.js +14 -12
- package/lib/cascader/index.js +101 -94
- package/lib/checkbox/index.js +35 -37
- package/lib/code-diff/index.js +674 -1170
- package/lib/collapse/index.js +42 -44
- package/lib/collapse-transition/index.js +4 -3
- package/lib/color-picker/index.js +60 -59
- package/lib/config-provider/index.js +14 -12
- package/lib/container/index.js +25 -21
- package/lib/date-picker/index.js +51 -58
- package/lib/dialog/index.js +441 -43
- package/lib/directives/index.js +34 -37
- package/lib/divider/index.js +3 -2
- package/lib/dropdown/index.js +21 -17
- package/lib/exception/index.js +17 -14
- package/lib/fixed-navbar/index.js +3 -2
- package/lib/form/index.js +34 -37
- package/lib/icon/angle-double-down-line.js +36 -29
- package/lib/icon/angle-double-left-line.js +36 -29
- package/lib/icon/angle-double-left.js +36 -29
- package/lib/icon/angle-double-right-line.js +36 -29
- package/lib/icon/angle-double-right.js +36 -29
- package/lib/icon/angle-double-up-line.js +36 -29
- package/lib/icon/angle-down-fill.js +36 -29
- package/lib/icon/angle-down-line.js +36 -29
- package/lib/icon/angle-down.js +36 -29
- package/lib/icon/angle-left.js +36 -29
- package/lib/icon/angle-right.js +36 -29
- package/lib/icon/angle-up-fill.js +36 -29
- package/lib/icon/angle-up.js +36 -29
- package/lib/icon/archive-fill.js +36 -29
- package/lib/icon/arrows-left.js +36 -29
- package/lib/icon/arrows-right.js +36 -29
- package/lib/icon/assistant.js +36 -29
- package/lib/icon/audio-fill.js +36 -29
- package/lib/icon/bk.js +36 -29
- package/lib/icon/circle.js +36 -29
- package/lib/icon/close-line.js +36 -29
- package/lib/icon/close.js +36 -29
- package/lib/icon/code.js +36 -29
- package/lib/icon/cog-shape.js +36 -29
- package/lib/icon/collapse-left.js +36 -29
- package/lib/icon/copy-shape.js +36 -29
- package/lib/icon/copy.js +36 -29
- package/lib/icon/data-shape.js +36 -29
- package/lib/icon/del.js +36 -29
- package/lib/icon/doc-fill.js +36 -29
- package/lib/icon/done.js +36 -29
- package/lib/icon/down-shape.js +36 -29
- package/lib/icon/down-small.js +36 -29
- package/lib/icon/edit-line.js +36 -29
- package/lib/icon/ellipsis.js +36 -29
- package/lib/icon/enlarge-line.js +36 -29
- package/lib/icon/error.js +36 -29
- package/lib/icon/excel-fill.js +36 -29
- package/lib/icon/exclamation-circle-shape.js +36 -29
- package/lib/icon/eye.js +36 -29
- package/lib/icon/filliscreen-line.js +36 -29
- package/lib/icon/fix-line.js +36 -29
- package/lib/icon/fix-shape.js +36 -29
- package/lib/icon/folder-open.js +36 -29
- package/lib/icon/folder-shape-open.js +36 -29
- package/lib/icon/folder-shape.js +36 -29
- package/lib/icon/folder.js +36 -29
- package/lib/icon/funnel.js +36 -29
- package/lib/icon/grag-fill.js +36 -29
- package/lib/icon/help-document-fill.js +36 -29
- package/lib/icon/help-fill.js +36 -29
- package/lib/icon/help.js +36 -29
- package/lib/icon/image-fill.js +36 -29
- package/lib/icon/img-error.js +36 -29
- package/lib/icon/img-placehoulder.js +36 -29
- package/lib/icon/info-line.js +36 -29
- package/lib/icon/info.js +36 -29
- package/lib/icon/left-shape.js +36 -29
- package/lib/icon/left-turn-line.js +36 -29
- package/lib/icon/loading.js +36 -29
- package/lib/icon/narrow-line.js +36 -29
- package/lib/icon/original.js +36 -29
- package/lib/icon/pdf-fill.js +36 -29
- package/lib/icon/play-shape.js +36 -29
- package/lib/icon/plus.js +36 -29
- package/lib/icon/ppt-fill.js +36 -29
- package/lib/icon/qq.js +36 -29
- package/lib/icon/right-shape.js +36 -29
- package/lib/icon/right-turn-line.js +36 -29
- package/lib/icon/search.js +36 -29
- package/lib/icon/share.js +36 -29
- package/lib/icon/spinner.js +36 -29
- package/lib/icon/success.js +36 -29
- package/lib/icon/switcher-loading.js +36 -29
- package/lib/icon/text-all.js +36 -29
- package/lib/icon/text-file.js +36 -29
- package/lib/icon/text-fill.js +36 -29
- package/lib/icon/transfer.js +36 -29
- package/lib/icon/tree-application-shape.js +36 -29
- package/lib/icon/unfull-screen.js +36 -29
- package/lib/icon/unvisible.js +36 -29
- package/lib/icon/up-shape.js +36 -29
- package/lib/icon/upload.js +36 -29
- package/lib/icon/video-fill.js +36 -29
- package/lib/icon/warn.js +36 -29
- package/lib/icon/weixin-pro.js +36 -29
- package/lib/icon/weixin.js +36 -29
- package/lib/image/index.js +47 -49
- package/lib/index.js +1 -1
- package/lib/info-box/index.js +461 -62
- package/lib/input/index.js +60 -62
- package/lib/link/index.js +2 -2
- package/lib/loading/index.js +25 -22
- package/lib/menu/index.js +34 -36
- package/lib/message/index.js +31 -34
- package/lib/modal/index.js +14 -12
- package/lib/navigation/index.js +9 -7
- package/lib/notify/index.js +14 -12
- package/lib/overflow-title/index.js +10 -9
- package/lib/pagination/index.js +29 -32
- package/lib/pop-confirm/index.js +5 -4
- package/lib/popover/index.js +136 -209
- package/lib/popover2/index.js +2 -2
- package/lib/process/index.js +452 -59
- package/lib/progress/index.js +19 -16
- package/lib/radio/index.js +34 -37
- package/lib/rate/index.js +14 -12
- package/lib/resize-layout/index.js +20 -18
- package/lib/scrollbar/index.js +58 -51
- package/lib/search-select/index.js +595 -222
- package/lib/select/index.js +463 -111
- package/lib/shared/index.js +95 -83
- package/lib/sideslider/index.js +441 -43
- package/lib/slider/index.js +446 -49
- package/lib/steps/index.js +458 -60
- package/lib/swiper/index.js +17 -15
- package/lib/switcher/index.js +14 -12
- package/lib/tab/index.js +40 -42
- package/lib/table/index.js +501 -152
- package/lib/tag/index.js +14 -12
- package/lib/tag-input/index.js +41 -47
- package/lib/timeline/index.js +0 -1
- package/lib/transfer/index.js +17 -22
- package/lib/tree/index.js +66 -73
- package/lib/upload/index.js +487 -136
- package/lib/virtual-render/index.js +51 -47
- package/package.json +1 -2
package/lib/switcher/index.js
CHANGED
@@ -47,7 +47,6 @@ function _typeof(o) {
|
|
47
47
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
48
48
|
}, _typeof(o);
|
49
49
|
}
|
50
|
-
|
51
50
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
52
51
|
|
53
52
|
function toPrimitive(t, r) {
|
@@ -60,26 +59,29 @@ function toPrimitive(t, r) {
|
|
60
59
|
}
|
61
60
|
return ("string" === r ? String : Number)(t);
|
62
61
|
}
|
63
|
-
|
64
62
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
65
63
|
|
66
64
|
|
67
65
|
function toPropertyKey(t) {
|
68
66
|
var i = toPrimitive(t, "string");
|
69
|
-
return "symbol" == _typeof(i) ? i : i
|
67
|
+
return "symbol" == _typeof(i) ? i : String(i);
|
70
68
|
}
|
71
|
-
|
72
69
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
73
70
|
|
74
|
-
function _defineProperty(
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
71
|
+
function _defineProperty(obj, key, value) {
|
72
|
+
key = toPropertyKey(key);
|
73
|
+
if (key in obj) {
|
74
|
+
Object.defineProperty(obj, key, {
|
75
|
+
value: value,
|
76
|
+
enumerable: true,
|
77
|
+
configurable: true,
|
78
|
+
writable: true
|
79
|
+
});
|
80
|
+
} else {
|
81
|
+
obj[key] = value;
|
82
|
+
}
|
83
|
+
return obj;
|
81
84
|
}
|
82
|
-
|
83
85
|
;// CONCATENATED MODULE: external "vue"
|
84
86
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
85
87
|
var external_vue_y = x => () => x
|
package/lib/tab/index.js
CHANGED
@@ -700,7 +700,6 @@ function _typeof(o) {
|
|
700
700
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
701
701
|
}, _typeof(o);
|
702
702
|
}
|
703
|
-
|
704
703
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
705
704
|
|
706
705
|
function toPrimitive(t, r) {
|
@@ -713,26 +712,29 @@ function toPrimitive(t, r) {
|
|
713
712
|
}
|
714
713
|
return ("string" === r ? String : Number)(t);
|
715
714
|
}
|
716
|
-
|
717
715
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
718
716
|
|
719
717
|
|
720
718
|
function toPropertyKey(t) {
|
721
719
|
var i = toPrimitive(t, "string");
|
722
|
-
return "symbol" == _typeof(i) ? i : i
|
720
|
+
return "symbol" == _typeof(i) ? i : String(i);
|
723
721
|
}
|
724
|
-
|
725
722
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
726
723
|
|
727
|
-
function _defineProperty(
|
728
|
-
|
729
|
-
|
730
|
-
|
731
|
-
|
732
|
-
|
733
|
-
|
724
|
+
function _defineProperty(obj, key, value) {
|
725
|
+
key = toPropertyKey(key);
|
726
|
+
if (key in obj) {
|
727
|
+
Object.defineProperty(obj, key, {
|
728
|
+
value: value,
|
729
|
+
enumerable: true,
|
730
|
+
configurable: true,
|
731
|
+
writable: true
|
732
|
+
});
|
733
|
+
} else {
|
734
|
+
obj[key] = value;
|
735
|
+
}
|
736
|
+
return obj;
|
734
737
|
}
|
735
|
-
|
736
738
|
;// CONCATENATED MODULE: external "vue-types"
|
737
739
|
var external_vue_types_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
738
740
|
var external_vue_types_y = x => () => x
|
@@ -881,47 +883,42 @@ var tabNavProps = _objectSpread({
|
|
881
883
|
validateActive: shared_namespaceObject.PropTypes.bool.def(true)
|
882
884
|
}, tabNavEventProps);
|
883
885
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
884
|
-
function _arrayLikeToArray(
|
885
|
-
(
|
886
|
-
for (var
|
887
|
-
return
|
886
|
+
function _arrayLikeToArray(arr, len) {
|
887
|
+
if (len == null || len > arr.length) len = arr.length;
|
888
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
889
|
+
return arr2;
|
888
890
|
}
|
889
|
-
|
890
891
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
891
892
|
|
892
|
-
function _arrayWithoutHoles(
|
893
|
-
if (Array.isArray(
|
893
|
+
function _arrayWithoutHoles(arr) {
|
894
|
+
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
894
895
|
}
|
895
|
-
|
896
896
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
897
|
-
function _iterableToArray(
|
898
|
-
if (
|
897
|
+
function _iterableToArray(iter) {
|
898
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
899
899
|
}
|
900
|
-
|
901
900
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
902
901
|
|
903
|
-
function _unsupportedIterableToArray(
|
904
|
-
if (
|
905
|
-
|
906
|
-
|
907
|
-
|
908
|
-
|
902
|
+
function _unsupportedIterableToArray(o, minLen) {
|
903
|
+
if (!o) return;
|
904
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
905
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
906
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
907
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
908
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
909
909
|
}
|
910
|
-
|
911
910
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
912
911
|
function _nonIterableSpread() {
|
913
912
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
914
913
|
}
|
915
|
-
|
916
914
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
917
915
|
|
918
916
|
|
919
917
|
|
920
918
|
|
921
|
-
function _toConsumableArray(
|
922
|
-
return _arrayWithoutHoles(
|
919
|
+
function _toConsumableArray(arr) {
|
920
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
923
921
|
}
|
924
|
-
|
925
922
|
;// CONCATENATED MODULE: external "vue"
|
926
923
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
927
924
|
var external_vue_y = x => () => x
|
@@ -931,9 +928,9 @@ var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x
|
|
931
928
|
var config_provider_y = x => () => x
|
932
929
|
const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
|
933
930
|
;// CONCATENATED MODULE: ../../packages/directives/src/clickoutside.ts
|
934
|
-
function _createForOfIteratorHelper(
|
935
|
-
function clickoutside_unsupportedIterableToArray(
|
936
|
-
function clickoutside_arrayLikeToArray(
|
931
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = clickoutside_unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
932
|
+
function clickoutside_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return clickoutside_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return clickoutside_arrayLikeToArray(o, minLen); }
|
933
|
+
function clickoutside_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
937
934
|
/*
|
938
935
|
* Tencent is pleased to support the open source community by making
|
939
936
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -1953,7 +1950,7 @@ function tab_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var
|
|
1953
1950
|
var panels = (0,external_vue_namespaceObject.ref)([]);
|
1954
1951
|
var instance = (0,external_vue_namespaceObject.getCurrentInstance)();
|
1955
1952
|
// 动态插入tabPanel
|
1956
|
-
var
|
1953
|
+
var getPaneInstanceFromSlot = function getPaneInstanceFromSlot(vnode) {
|
1957
1954
|
var panelInstanceList = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
1958
1955
|
var children = vnode.children;
|
1959
1956
|
(children || []).forEach(function (node) {
|
@@ -1962,7 +1959,7 @@ function tab_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var
|
|
1962
1959
|
if (type === 'TabPanel' && node.component) {
|
1963
1960
|
panelInstanceList.push(node.component);
|
1964
1961
|
} else if (type === external_vue_namespaceObject.Fragment || type === 'template') {
|
1965
|
-
|
1962
|
+
getPaneInstanceFromSlot(node, panelInstanceList);
|
1966
1963
|
}
|
1967
1964
|
});
|
1968
1965
|
return panelInstanceList;
|
@@ -1972,7 +1969,7 @@ function tab_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var
|
|
1972
1969
|
var children = instance.subTree.children[1].children;
|
1973
1970
|
if (!children) return;
|
1974
1971
|
var content = children[0];
|
1975
|
-
var panelInstanceList =
|
1972
|
+
var panelInstanceList = getPaneInstanceFromSlot(content);
|
1976
1973
|
var isChanged = panelInstanceList.length !== panels.value.length;
|
1977
1974
|
if (isChanged) {
|
1978
1975
|
panels.value = panelInstanceList;
|
@@ -2147,7 +2144,8 @@ function tab_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var
|
|
2147
2144
|
*/
|
2148
2145
|
|
2149
2146
|
|
2150
|
-
|
2147
|
+
|
2148
|
+
/* harmony default export */ const tab_panel = ((0,external_vue_namespaceObject.defineComponent)({
|
2151
2149
|
name: 'TabPanel',
|
2152
2150
|
props: tabPanelProps,
|
2153
2151
|
render: function render() {
|
@@ -2159,7 +2157,7 @@ function tab_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var
|
|
2159
2157
|
return null;
|
2160
2158
|
}
|
2161
2159
|
if (typeof _this.panel === 'function') {
|
2162
|
-
return _this.panel(h);
|
2160
|
+
return _this.panel(external_vue_namespaceObject.h);
|
2163
2161
|
}
|
2164
2162
|
if (typeof _this.$slots["default"] === 'function') {
|
2165
2163
|
return _this.$slots["default"](null);
|