bkui-vue 2.0.2-beta.48 → 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/icon/weixin-pro.js
CHANGED
@@ -38,7 +38,6 @@ function _typeof(o) {
|
|
38
38
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
39
39
|
}, _typeof(o);
|
40
40
|
}
|
41
|
-
|
42
41
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
43
42
|
|
44
43
|
function toPrimitive(t, r) {
|
@@ -51,55 +50,63 @@ function toPrimitive(t, r) {
|
|
51
50
|
}
|
52
51
|
return ("string" === r ? String : Number)(t);
|
53
52
|
}
|
54
|
-
|
55
53
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
56
54
|
|
57
55
|
|
58
56
|
function toPropertyKey(t) {
|
59
57
|
var i = toPrimitive(t, "string");
|
60
|
-
return "symbol" == _typeof(i) ? i : i
|
58
|
+
return "symbol" == _typeof(i) ? i : String(i);
|
61
59
|
}
|
62
|
-
|
63
60
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
64
61
|
|
65
|
-
function _defineProperty(
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
62
|
+
function _defineProperty(obj, key, value) {
|
63
|
+
key = toPropertyKey(key);
|
64
|
+
if (key in obj) {
|
65
|
+
Object.defineProperty(obj, key, {
|
66
|
+
value: value,
|
67
|
+
enumerable: true,
|
68
|
+
configurable: true,
|
69
|
+
writable: true
|
70
|
+
});
|
71
|
+
} else {
|
72
|
+
obj[key] = value;
|
73
|
+
}
|
74
|
+
return obj;
|
72
75
|
}
|
73
|
-
|
74
76
|
;// CONCATENATED MODULE: external "vue"
|
75
77
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
76
78
|
var y = x => () => x
|
77
79
|
const external_vue_namespaceObject = x({ ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps });
|
78
80
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
79
|
-
function _objectWithoutPropertiesLoose(
|
80
|
-
if (
|
81
|
-
var
|
82
|
-
|
83
|
-
|
84
|
-
|
81
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
82
|
+
if (source == null) return {};
|
83
|
+
var target = {};
|
84
|
+
var sourceKeys = Object.keys(source);
|
85
|
+
var key, i;
|
86
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
87
|
+
key = sourceKeys[i];
|
88
|
+
if (excluded.indexOf(key) >= 0) continue;
|
89
|
+
target[key] = source[key];
|
85
90
|
}
|
86
|
-
return
|
91
|
+
return target;
|
87
92
|
}
|
88
|
-
|
89
93
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
90
94
|
|
91
|
-
function _objectWithoutProperties(
|
92
|
-
if (
|
93
|
-
var
|
94
|
-
|
95
|
-
i = _objectWithoutPropertiesLoose(e, t);
|
95
|
+
function _objectWithoutProperties(source, excluded) {
|
96
|
+
if (source == null) return {};
|
97
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
98
|
+
var key, i;
|
96
99
|
if (Object.getOwnPropertySymbols) {
|
97
|
-
var
|
98
|
-
for (
|
100
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
101
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
102
|
+
key = sourceSymbolKeys[i];
|
103
|
+
if (excluded.indexOf(key) >= 0) continue;
|
104
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
105
|
+
target[key] = source[key];
|
106
|
+
}
|
99
107
|
}
|
100
|
-
return
|
108
|
+
return target;
|
101
109
|
}
|
102
|
-
|
103
110
|
;// CONCATENATED MODULE: ../../packages/icon/icons/icon.tsx
|
104
111
|
|
105
112
|
|
package/lib/icon/weixin.js
CHANGED
@@ -38,7 +38,6 @@ function _typeof(o) {
|
|
38
38
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
39
39
|
}, _typeof(o);
|
40
40
|
}
|
41
|
-
|
42
41
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
43
42
|
|
44
43
|
function toPrimitive(t, r) {
|
@@ -51,55 +50,63 @@ function toPrimitive(t, r) {
|
|
51
50
|
}
|
52
51
|
return ("string" === r ? String : Number)(t);
|
53
52
|
}
|
54
|
-
|
55
53
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
56
54
|
|
57
55
|
|
58
56
|
function toPropertyKey(t) {
|
59
57
|
var i = toPrimitive(t, "string");
|
60
|
-
return "symbol" == _typeof(i) ? i : i
|
58
|
+
return "symbol" == _typeof(i) ? i : String(i);
|
61
59
|
}
|
62
|
-
|
63
60
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
64
61
|
|
65
|
-
function _defineProperty(
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
62
|
+
function _defineProperty(obj, key, value) {
|
63
|
+
key = toPropertyKey(key);
|
64
|
+
if (key in obj) {
|
65
|
+
Object.defineProperty(obj, key, {
|
66
|
+
value: value,
|
67
|
+
enumerable: true,
|
68
|
+
configurable: true,
|
69
|
+
writable: true
|
70
|
+
});
|
71
|
+
} else {
|
72
|
+
obj[key] = value;
|
73
|
+
}
|
74
|
+
return obj;
|
72
75
|
}
|
73
|
-
|
74
76
|
;// CONCATENATED MODULE: external "vue"
|
75
77
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
76
78
|
var y = x => () => x
|
77
79
|
const external_vue_namespaceObject = x({ ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps });
|
78
80
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
79
|
-
function _objectWithoutPropertiesLoose(
|
80
|
-
if (
|
81
|
-
var
|
82
|
-
|
83
|
-
|
84
|
-
|
81
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
82
|
+
if (source == null) return {};
|
83
|
+
var target = {};
|
84
|
+
var sourceKeys = Object.keys(source);
|
85
|
+
var key, i;
|
86
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
87
|
+
key = sourceKeys[i];
|
88
|
+
if (excluded.indexOf(key) >= 0) continue;
|
89
|
+
target[key] = source[key];
|
85
90
|
}
|
86
|
-
return
|
91
|
+
return target;
|
87
92
|
}
|
88
|
-
|
89
93
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
90
94
|
|
91
|
-
function _objectWithoutProperties(
|
92
|
-
if (
|
93
|
-
var
|
94
|
-
|
95
|
-
i = _objectWithoutPropertiesLoose(e, t);
|
95
|
+
function _objectWithoutProperties(source, excluded) {
|
96
|
+
if (source == null) return {};
|
97
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
98
|
+
var key, i;
|
96
99
|
if (Object.getOwnPropertySymbols) {
|
97
|
-
var
|
98
|
-
for (
|
100
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
101
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
102
|
+
key = sourceSymbolKeys[i];
|
103
|
+
if (excluded.indexOf(key) >= 0) continue;
|
104
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
105
|
+
target[key] = source[key];
|
106
|
+
}
|
99
107
|
}
|
100
|
-
return
|
108
|
+
return target;
|
101
109
|
}
|
102
|
-
|
103
110
|
;// CONCATENATED MODULE: ../../packages/icon/icons/icon.tsx
|
104
111
|
|
105
112
|
|
package/lib/image/index.js
CHANGED
@@ -691,7 +691,7 @@ const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODUL
|
|
691
691
|
;// CONCATENATED MODULE: external "vue"
|
692
692
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
693
693
|
var external_vue_y = x => () => x
|
694
|
-
const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["Teleport"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Teleport, ["Transition"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Transition, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["effectScope"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.effectScope, ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["render"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.render, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["shallowRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.shallowRef, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
|
694
|
+
const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["Teleport"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Teleport, ["Transition"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Transition, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["effectScope"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.effectScope, ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["render"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.render, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["shallowRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.shallowRef, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
|
695
695
|
;// CONCATENATED MODULE: external "../config-provider"
|
696
696
|
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
697
697
|
var config_provider_y = x => () => x
|
@@ -710,7 +710,6 @@ function _typeof(o) {
|
|
710
710
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
711
711
|
}, _typeof(o);
|
712
712
|
}
|
713
|
-
|
714
713
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
715
714
|
|
716
715
|
function toPrimitive(t, r) {
|
@@ -723,30 +722,33 @@ function toPrimitive(t, r) {
|
|
723
722
|
}
|
724
723
|
return ("string" === r ? String : Number)(t);
|
725
724
|
}
|
726
|
-
|
727
725
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
728
726
|
|
729
727
|
|
730
728
|
function toPropertyKey(t) {
|
731
729
|
var i = toPrimitive(t, "string");
|
732
|
-
return "symbol" == _typeof(i) ? i : i
|
730
|
+
return "symbol" == _typeof(i) ? i : String(i);
|
733
731
|
}
|
734
|
-
|
735
732
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
736
733
|
|
737
|
-
function _defineProperty(
|
738
|
-
|
739
|
-
|
740
|
-
|
741
|
-
|
742
|
-
|
743
|
-
|
734
|
+
function _defineProperty(obj, key, value) {
|
735
|
+
key = toPropertyKey(key);
|
736
|
+
if (key in obj) {
|
737
|
+
Object.defineProperty(obj, key, {
|
738
|
+
value: value,
|
739
|
+
enumerable: true,
|
740
|
+
configurable: true,
|
741
|
+
writable: true
|
742
|
+
});
|
743
|
+
} else {
|
744
|
+
obj[key] = value;
|
745
|
+
}
|
746
|
+
return obj;
|
744
747
|
}
|
745
|
-
|
746
748
|
;// CONCATENATED MODULE: ../../packages/directives/src/clickoutside.ts
|
747
|
-
function _createForOfIteratorHelper(
|
748
|
-
function _unsupportedIterableToArray(
|
749
|
-
function _arrayLikeToArray(
|
749
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _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; } } }; }
|
750
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _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 _arrayLikeToArray(o, minLen); }
|
751
|
+
function _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; }
|
750
752
|
/*
|
751
753
|
* Tencent is pleased to support the open source community by making
|
752
754
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -1029,47 +1031,42 @@ var mousewheel = {
|
|
1029
1031
|
};
|
1030
1032
|
/* harmony default export */ const src_mousewheel = ((/* unused pure expression or super */ null && (mousewheel)));
|
1031
1033
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
1032
|
-
function arrayLikeToArray_arrayLikeToArray(
|
1033
|
-
(
|
1034
|
-
for (var
|
1035
|
-
return
|
1034
|
+
function arrayLikeToArray_arrayLikeToArray(arr, len) {
|
1035
|
+
if (len == null || len > arr.length) len = arr.length;
|
1036
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
1037
|
+
return arr2;
|
1036
1038
|
}
|
1037
|
-
|
1038
1039
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
1039
1040
|
|
1040
|
-
function _arrayWithoutHoles(
|
1041
|
-
if (Array.isArray(
|
1041
|
+
function _arrayWithoutHoles(arr) {
|
1042
|
+
if (Array.isArray(arr)) return arrayLikeToArray_arrayLikeToArray(arr);
|
1042
1043
|
}
|
1043
|
-
|
1044
1044
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
1045
|
-
function _iterableToArray(
|
1046
|
-
if (
|
1045
|
+
function _iterableToArray(iter) {
|
1046
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
1047
1047
|
}
|
1048
|
-
|
1049
1048
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
1050
1049
|
|
1051
|
-
function unsupportedIterableToArray_unsupportedIterableToArray(
|
1052
|
-
if (
|
1053
|
-
|
1054
|
-
|
1055
|
-
|
1056
|
-
|
1050
|
+
function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
1051
|
+
if (!o) return;
|
1052
|
+
if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
1053
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
1054
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
1055
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
1056
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
1057
1057
|
}
|
1058
|
-
|
1059
1058
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
1060
1059
|
function _nonIterableSpread() {
|
1061
1060
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
1062
1061
|
}
|
1063
|
-
|
1064
1062
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
1065
1063
|
|
1066
1064
|
|
1067
1065
|
|
1068
1066
|
|
1069
|
-
function _toConsumableArray(
|
1070
|
-
return _arrayWithoutHoles(
|
1067
|
+
function _toConsumableArray(arr) {
|
1068
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || unsupportedIterableToArray_unsupportedIterableToArray(arr) || _nonIterableSpread();
|
1071
1069
|
}
|
1072
|
-
|
1073
1070
|
;// CONCATENATED MODULE: external "@popperjs/core"
|
1074
1071
|
var core_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1075
1072
|
var core_y = x => () => x
|
@@ -1705,12 +1702,12 @@ function image_viewer_objectSpread(e) { for (var r = 1; r < arguments.length; r+
|
|
1705
1702
|
offsetY: offsetY + ev.pageY - startY
|
1706
1703
|
});
|
1707
1704
|
});
|
1708
|
-
var
|
1705
|
+
var mouseup = function mouseup() {
|
1709
1706
|
document.removeEventListener('mousemove', mousemove);
|
1710
|
-
document.removeEventListener('mouseup',
|
1707
|
+
document.removeEventListener('mouseup', mouseup);
|
1711
1708
|
};
|
1712
1709
|
document.addEventListener('mousemove', mousemove);
|
1713
|
-
document.addEventListener('mouseup',
|
1710
|
+
document.addEventListener('mouseup', mouseup);
|
1714
1711
|
e.preventDefault();
|
1715
1712
|
}
|
1716
1713
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
@@ -1829,25 +1826,26 @@ function image_viewer_objectSpread(e) { for (var r = 1; r < arguments.length; r+
|
|
1829
1826
|
|
1830
1827
|
|
1831
1828
|
|
1832
|
-
|
1829
|
+
|
1830
|
+
/* harmony default export */ const src_image = ((0,external_vue_namespaceObject.defineComponent)({
|
1833
1831
|
name: 'Image',
|
1834
1832
|
props: propsImage,
|
1835
1833
|
emits: ['loaded', 'error', 'close', 'change'],
|
1836
1834
|
setup: function setup(props, _ref) {
|
1837
1835
|
var emit = _ref.emit,
|
1838
1836
|
slots = _ref.slots;
|
1839
|
-
var loading = ref(true);
|
1840
|
-
var hasError = ref(true);
|
1841
|
-
var isShowViewer = ref(false);
|
1842
|
-
var prevOverflow = ref('');
|
1843
|
-
var imageSrc = ref('');
|
1837
|
+
var loading = (0,external_vue_namespaceObject.ref)(true);
|
1838
|
+
var hasError = (0,external_vue_namespaceObject.ref)(true);
|
1839
|
+
var isShowViewer = (0,external_vue_namespaceObject.ref)(false);
|
1840
|
+
var prevOverflow = (0,external_vue_namespaceObject.ref)('');
|
1841
|
+
var imageSrc = (0,external_vue_namespaceObject.ref)('');
|
1844
1842
|
function clickHandler() {}
|
1845
|
-
watch(function () {
|
1843
|
+
(0,external_vue_namespaceObject.watch)(function () {
|
1846
1844
|
return props.src;
|
1847
1845
|
}, function () {
|
1848
1846
|
loadImage();
|
1849
1847
|
});
|
1850
|
-
var preview = computed(function () {
|
1848
|
+
var preview = (0,external_vue_namespaceObject.computed)(function () {
|
1851
1849
|
var _props$urlList;
|
1852
1850
|
return (props === null || props === void 0 || (_props$urlList = props.urlList) === null || _props$urlList === void 0 ? void 0 : _props$urlList.length) > 0;
|
1853
1851
|
});
|
package/lib/index.js
CHANGED