bkui-vue 2.0.2-beta.45 → 2.0.2-beta.46
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 +47 -42
- package/dist/index.esm.js +7198 -7008
- package/dist/index.umd.js +50 -45
- package/lib/affix/index.js +12 -14
- package/lib/alert/index.js +12 -14
- package/lib/animate-number/index.js +11 -12
- package/lib/backtop/index.js +10 -11
- package/lib/badge/index.js +12 -14
- package/lib/breadcrumb/index.js +12 -14
- package/lib/button/index.js +12 -14
- package/lib/card/index.js +12 -14
- package/lib/cascader/index.js +94 -101
- package/lib/checkbox/index.js +37 -35
- package/lib/code-diff/index.js +1171 -675
- package/lib/collapse/index.js +44 -42
- package/lib/collapse-transition/index.js +3 -4
- package/lib/color-picker/index.js +59 -60
- package/lib/config-provider/index.js +12 -14
- package/lib/container/index.js +21 -25
- package/lib/date-picker/index.js +58 -51
- package/lib/dialog/index.js +53 -474
- package/lib/directives/index.js +37 -34
- package/lib/divider/index.js +2 -3
- package/lib/dropdown/index.js +17 -21
- package/lib/exception/index.js +14 -17
- package/lib/fixed-navbar/index.js +2 -3
- package/lib/form/index.js +37 -34
- package/lib/icon/angle-double-down-line.js +29 -36
- package/lib/icon/angle-double-left-line.js +29 -36
- package/lib/icon/angle-double-left.js +29 -36
- package/lib/icon/angle-double-right-line.js +29 -36
- package/lib/icon/angle-double-right.js +29 -36
- package/lib/icon/angle-double-up-line.js +29 -36
- package/lib/icon/angle-down-fill.js +29 -36
- package/lib/icon/angle-down-line.js +29 -36
- package/lib/icon/angle-down.js +29 -36
- package/lib/icon/angle-left.js +29 -36
- package/lib/icon/angle-right.js +29 -36
- package/lib/icon/angle-up-fill.js +29 -36
- package/lib/icon/angle-up.js +29 -36
- package/lib/icon/archive-fill.js +29 -36
- package/lib/icon/arrows-left.js +29 -36
- package/lib/icon/arrows-right.js +29 -36
- package/lib/icon/assistant.js +29 -36
- package/lib/icon/audio-fill.js +29 -36
- package/lib/icon/bk.js +29 -36
- package/lib/icon/circle.js +29 -36
- package/lib/icon/close-line.js +29 -36
- package/lib/icon/close.js +29 -36
- package/lib/icon/code.js +29 -36
- package/lib/icon/cog-shape.js +29 -36
- package/lib/icon/collapse-left.js +29 -36
- package/lib/icon/copy-shape.js +29 -36
- package/lib/icon/copy.js +29 -36
- package/lib/icon/data-shape.js +29 -36
- package/lib/icon/del.js +29 -36
- package/lib/icon/doc-fill.js +29 -36
- package/lib/icon/done.js +29 -36
- package/lib/icon/down-shape.js +29 -36
- package/lib/icon/down-small.js +29 -36
- package/lib/icon/edit-line.js +29 -36
- package/lib/icon/ellipsis.js +29 -36
- package/lib/icon/enlarge-line.js +29 -36
- package/lib/icon/error.js +29 -36
- package/lib/icon/excel-fill.js +29 -36
- package/lib/icon/exclamation-circle-shape.js +29 -36
- package/lib/icon/eye.js +29 -36
- package/lib/icon/filliscreen-line.js +29 -36
- package/lib/icon/fix-line.js +29 -36
- package/lib/icon/fix-shape.js +29 -36
- package/lib/icon/folder-open.js +29 -36
- package/lib/icon/folder-shape-open.js +29 -36
- package/lib/icon/folder-shape.js +29 -36
- package/lib/icon/folder.js +29 -36
- package/lib/icon/funnel.js +29 -36
- package/lib/icon/grag-fill.js +29 -36
- package/lib/icon/help-document-fill.js +29 -36
- package/lib/icon/help-fill.js +29 -36
- package/lib/icon/help.js +29 -36
- package/lib/icon/image-fill.js +29 -36
- package/lib/icon/img-error.js +29 -36
- package/lib/icon/img-placehoulder.js +29 -36
- package/lib/icon/info-line.js +29 -36
- package/lib/icon/info.js +29 -36
- package/lib/icon/left-shape.js +29 -36
- package/lib/icon/left-turn-line.js +29 -36
- package/lib/icon/loading.js +29 -36
- package/lib/icon/narrow-line.js +29 -36
- package/lib/icon/original.js +29 -36
- package/lib/icon/pdf-fill.js +29 -36
- package/lib/icon/play-shape.js +29 -36
- package/lib/icon/plus.js +29 -36
- package/lib/icon/ppt-fill.js +29 -36
- package/lib/icon/qq.js +29 -36
- package/lib/icon/right-shape.js +29 -36
- package/lib/icon/right-turn-line.js +29 -36
- package/lib/icon/search.js +29 -36
- package/lib/icon/share.js +29 -36
- package/lib/icon/spinner.js +29 -36
- package/lib/icon/success.js +29 -36
- package/lib/icon/switcher-loading.js +29 -36
- package/lib/icon/text-all.js +29 -36
- package/lib/icon/text-file.js +29 -36
- package/lib/icon/text-fill.js +29 -36
- package/lib/icon/transfer.js +29 -36
- package/lib/icon/tree-application-shape.js +29 -36
- package/lib/icon/unfull-screen.js +29 -36
- package/lib/icon/unvisible.js +29 -36
- package/lib/icon/up-shape.js +29 -36
- package/lib/icon/upload.js +29 -36
- package/lib/icon/video-fill.js +29 -36
- package/lib/icon/warn.js +29 -36
- package/lib/icon/weixin-pro.js +29 -36
- package/lib/icon/weixin.js +29 -36
- package/lib/image/index.js +49 -47
- package/lib/index.js +1 -1
- package/lib/info-box/index.js +62 -461
- package/lib/input/index.js +62 -60
- package/lib/link/index.js +2 -2
- package/lib/loading/index.js +22 -25
- package/lib/menu/index.js +36 -34
- package/lib/message/index.js +34 -31
- package/lib/modal/index.js +12 -14
- package/lib/navigation/index.js +7 -9
- package/lib/notify/index.js +12 -14
- package/lib/overflow-title/index.js +9 -10
- package/lib/pagination/index.js +32 -29
- package/lib/pop-confirm/index.js +4 -5
- package/lib/popover/index.js +209 -136
- package/lib/popover2/index.js +2 -2
- package/lib/process/index.js +59 -452
- package/lib/progress/index.js +16 -19
- package/lib/radio/index.js +37 -34
- package/lib/rate/index.js +12 -14
- package/lib/resize-layout/index.js +18 -20
- package/lib/scrollbar/index.js +51 -58
- package/lib/search-select/index.js +222 -595
- package/lib/select/index.js +111 -463
- package/lib/shared/index.js +83 -95
- package/lib/sideslider/index.js +43 -441
- package/lib/slider/index.js +49 -446
- package/lib/steps/index.js +60 -458
- package/lib/swiper/index.js +15 -17
- package/lib/switcher/index.js +12 -14
- package/lib/tab/index.js +42 -40
- package/lib/table/index.js +152 -501
- package/lib/tag/index.js +12 -14
- package/lib/tag-input/index.js +47 -41
- package/lib/timeline/index.js +1 -0
- package/lib/transfer/index.js +22 -17
- package/lib/tree/index.js +73 -66
- package/lib/upload/index.js +136 -487
- package/lib/virtual-render/index.js +47 -51
- package/package.json +1 -1
package/lib/progress/index.js
CHANGED
@@ -46,6 +46,7 @@ function _typeof(o) {
|
|
46
46
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
47
47
|
}, _typeof(o);
|
48
48
|
}
|
49
|
+
|
49
50
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
50
51
|
|
51
52
|
function toPrimitive(t, r) {
|
@@ -58,33 +59,30 @@ function toPrimitive(t, r) {
|
|
58
59
|
}
|
59
60
|
return ("string" === r ? String : Number)(t);
|
60
61
|
}
|
62
|
+
|
61
63
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
62
64
|
|
63
65
|
|
64
66
|
function toPropertyKey(t) {
|
65
67
|
var i = toPrimitive(t, "string");
|
66
|
-
return "symbol" == _typeof(i) ? i :
|
68
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
67
69
|
}
|
70
|
+
|
68
71
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
69
72
|
|
70
|
-
function _defineProperty(
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
writable: true
|
78
|
-
});
|
79
|
-
} else {
|
80
|
-
obj[key] = value;
|
81
|
-
}
|
82
|
-
return obj;
|
73
|
+
function _defineProperty(e, r, t) {
|
74
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
75
|
+
value: t,
|
76
|
+
enumerable: !0,
|
77
|
+
configurable: !0,
|
78
|
+
writable: !0
|
79
|
+
}) : e[r] = t, e;
|
83
80
|
}
|
81
|
+
|
84
82
|
;// CONCATENATED MODULE: external "vue"
|
85
83
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
86
84
|
var external_vue_y = x => () => x
|
87
|
-
const external_vue_namespaceObject = external_vue_x({ ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["
|
85
|
+
const external_vue_namespaceObject = external_vue_x({ ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isVNode });
|
88
86
|
;// CONCATENATED MODULE: external "../config-provider"
|
89
87
|
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
90
88
|
var config_provider_y = x => () => x
|
@@ -273,9 +271,6 @@ var Line = function Line(_, _ref) {
|
|
273
271
|
/* harmony default export */ const line = (Line);
|
274
272
|
;// CONCATENATED MODULE: ../../packages/progress/src/progress.tsx
|
275
273
|
|
276
|
-
|
277
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
278
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
279
274
|
/*
|
280
275
|
* Tencent is pleased to support the open source community by making
|
281
276
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -302,6 +297,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
302
297
|
* IN THE SOFTWARE.
|
303
298
|
*/
|
304
299
|
|
300
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
301
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
305
302
|
|
306
303
|
|
307
304
|
|
@@ -333,7 +330,7 @@ var progressType = {
|
|
333
330
|
verticalAlign: 'middle'
|
334
331
|
})
|
335
332
|
};
|
336
|
-
/* harmony default export */ const progress = (
|
333
|
+
/* harmony default export */ const progress = (defineComponent({
|
337
334
|
name: 'Progress',
|
338
335
|
props: progressType,
|
339
336
|
setup: function setup() {
|
package/lib/radio/index.js
CHANGED
@@ -50,6 +50,7 @@ function _typeof(o) {
|
|
50
50
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
51
51
|
}, _typeof(o);
|
52
52
|
}
|
53
|
+
|
53
54
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
54
55
|
|
55
56
|
function toPrimitive(t, r) {
|
@@ -62,33 +63,31 @@ function toPrimitive(t, r) {
|
|
62
63
|
}
|
63
64
|
return ("string" === r ? String : Number)(t);
|
64
65
|
}
|
66
|
+
|
65
67
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
66
68
|
|
67
69
|
|
68
70
|
function toPropertyKey(t) {
|
69
71
|
var i = toPrimitive(t, "string");
|
70
|
-
return "symbol" == _typeof(i) ? i :
|
72
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
71
73
|
}
|
74
|
+
|
72
75
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
73
76
|
|
74
|
-
function _defineProperty(
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
writable: true
|
82
|
-
});
|
83
|
-
} else {
|
84
|
-
obj[key] = value;
|
85
|
-
}
|
86
|
-
return obj;
|
77
|
+
function _defineProperty(e, r, t) {
|
78
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
79
|
+
value: t,
|
80
|
+
enumerable: !0,
|
81
|
+
configurable: !0,
|
82
|
+
writable: !0
|
83
|
+
}) : e[r] = t, e;
|
87
84
|
}
|
85
|
+
|
88
86
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
89
|
-
function _arrayWithHoles(
|
90
|
-
if (Array.isArray(
|
87
|
+
function _arrayWithHoles(r) {
|
88
|
+
if (Array.isArray(r)) return r;
|
91
89
|
}
|
90
|
+
|
92
91
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
93
92
|
function _iterableToArrayLimit(r, l) {
|
94
93
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
@@ -117,38 +116,42 @@ function _iterableToArrayLimit(r, l) {
|
|
117
116
|
return a;
|
118
117
|
}
|
119
118
|
}
|
119
|
+
|
120
120
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
121
|
-
function _arrayLikeToArray(
|
122
|
-
|
123
|
-
for (var
|
124
|
-
return
|
121
|
+
function _arrayLikeToArray(r, a) {
|
122
|
+
(null == a || a > r.length) && (a = r.length);
|
123
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
124
|
+
return n;
|
125
125
|
}
|
126
|
+
|
126
127
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
127
128
|
|
128
|
-
function _unsupportedIterableToArray(
|
129
|
-
if (
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
129
|
+
function _unsupportedIterableToArray(r, a) {
|
130
|
+
if (r) {
|
131
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
132
|
+
var t = {}.toString.call(r).slice(8, -1);
|
133
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
134
|
+
}
|
135
135
|
}
|
136
|
+
|
136
137
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
137
138
|
function _nonIterableRest() {
|
138
139
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
139
140
|
}
|
141
|
+
|
140
142
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
141
143
|
|
142
144
|
|
143
145
|
|
144
146
|
|
145
|
-
function _slicedToArray(
|
146
|
-
return _arrayWithHoles(
|
147
|
+
function _slicedToArray(r, e) {
|
148
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
147
149
|
}
|
150
|
+
|
148
151
|
;// CONCATENATED MODULE: external "vue"
|
149
152
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
150
153
|
var external_vue_y = x => () => x
|
151
|
-
const external_vue_namespaceObject = external_vue_x({ ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["getCurrentInstance"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.getCurrentInstance, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["
|
154
|
+
const external_vue_namespaceObject = external_vue_x({ ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["getCurrentInstance"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.getCurrentInstance, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch });
|
152
155
|
;// CONCATENATED MODULE: external "vue-types"
|
153
156
|
var external_vue_types_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
154
157
|
var external_vue_types_y = x => () => x
|
@@ -553,7 +556,7 @@ var radioGroupProps = {
|
|
553
556
|
return true;
|
554
557
|
})
|
555
558
|
};
|
556
|
-
/* harmony default export */ const radio_group = (
|
559
|
+
/* harmony default export */ const radio_group = (defineComponent({
|
557
560
|
name: 'RadioGroup',
|
558
561
|
props: radioGroupProps,
|
559
562
|
emits: {
|
@@ -586,13 +589,13 @@ var radioGroupProps = {
|
|
586
589
|
context.emit('update:modelValue', nextValue);
|
587
590
|
context.emit('change', nextValue);
|
588
591
|
};
|
589
|
-
|
592
|
+
provide(radioGroupKey, {
|
590
593
|
props: props,
|
591
594
|
register: register,
|
592
595
|
unregister: unregister,
|
593
596
|
handleChange: handleChange
|
594
597
|
});
|
595
|
-
|
598
|
+
watch(function () {
|
596
599
|
return props.modelValue;
|
597
600
|
}, function () {
|
598
601
|
if (props.withValidate) {
|
@@ -600,7 +603,7 @@ var radioGroupProps = {
|
|
600
603
|
formItem === null || formItem === void 0 || (_formItem$validate = formItem.validate) === null || _formItem$validate === void 0 || _formItem$validate.call(formItem, 'change');
|
601
604
|
}
|
602
605
|
});
|
603
|
-
|
606
|
+
onMounted(function () {
|
604
607
|
if (props.modelValue === '') {
|
605
608
|
return;
|
606
609
|
}
|
package/lib/rate/index.js
CHANGED
@@ -46,6 +46,7 @@ function _typeof(o) {
|
|
46
46
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
47
47
|
}, _typeof(o);
|
48
48
|
}
|
49
|
+
|
49
50
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
50
51
|
|
51
52
|
function toPrimitive(t, r) {
|
@@ -58,29 +59,26 @@ function toPrimitive(t, r) {
|
|
58
59
|
}
|
59
60
|
return ("string" === r ? String : Number)(t);
|
60
61
|
}
|
62
|
+
|
61
63
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
62
64
|
|
63
65
|
|
64
66
|
function toPropertyKey(t) {
|
65
67
|
var i = toPrimitive(t, "string");
|
66
|
-
return "symbol" == _typeof(i) ? i :
|
68
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
67
69
|
}
|
70
|
+
|
68
71
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
69
72
|
|
70
|
-
function _defineProperty(
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
writable: true
|
78
|
-
});
|
79
|
-
} else {
|
80
|
-
obj[key] = value;
|
81
|
-
}
|
82
|
-
return obj;
|
73
|
+
function _defineProperty(e, r, t) {
|
74
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
75
|
+
value: t,
|
76
|
+
enumerable: !0,
|
77
|
+
configurable: !0,
|
78
|
+
writable: !0
|
79
|
+
}) : e[r] = t, e;
|
83
80
|
}
|
81
|
+
|
84
82
|
;// CONCATENATED MODULE: external "vue"
|
85
83
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
86
84
|
var external_vue_y = x => () => x
|
@@ -47,6 +47,7 @@ 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
|
+
|
50
51
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
51
52
|
|
52
53
|
function toPrimitive(t, r) {
|
@@ -59,29 +60,26 @@ function toPrimitive(t, r) {
|
|
59
60
|
}
|
60
61
|
return ("string" === r ? String : Number)(t);
|
61
62
|
}
|
63
|
+
|
62
64
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
63
65
|
|
64
66
|
|
65
67
|
function toPropertyKey(t) {
|
66
68
|
var i = toPrimitive(t, "string");
|
67
|
-
return "symbol" == _typeof(i) ? i :
|
69
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
68
70
|
}
|
71
|
+
|
69
72
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
70
73
|
|
71
|
-
function _defineProperty(
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
writable: true
|
79
|
-
});
|
80
|
-
} else {
|
81
|
-
obj[key] = value;
|
82
|
-
}
|
83
|
-
return obj;
|
74
|
+
function _defineProperty(e, r, t) {
|
75
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
76
|
+
value: t,
|
77
|
+
enumerable: !0,
|
78
|
+
configurable: !0,
|
79
|
+
writable: !0
|
80
|
+
}) : e[r] = t, e;
|
84
81
|
}
|
82
|
+
|
85
83
|
;// CONCATENATED MODULE: external "vue"
|
86
84
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
87
85
|
var external_vue_y = x => () => x
|
@@ -283,11 +281,11 @@ const icon_namespaceObject = icon_x({ ["AngleLeft"]: () => __WEBPACK_EXTERNAL_MO
|
|
283
281
|
}
|
284
282
|
resizingCallback(realValue);
|
285
283
|
};
|
286
|
-
var
|
284
|
+
var _handleMouseUp = function handleMouseUp() {
|
287
285
|
resizeProxyRef.value.style.visibility = 'hidden';
|
288
286
|
resizeMaskRef.value.style.display = 'none';
|
289
287
|
document.removeEventListener('mousemove', handleMouseMove);
|
290
|
-
document.removeEventListener('mouseup',
|
288
|
+
document.removeEventListener('mouseup', _handleMouseUp);
|
291
289
|
document.onselectstart = null;
|
292
290
|
document.ondragstart = null;
|
293
291
|
(0,external_vue_namespaceObject.nextTick)(function () {
|
@@ -300,7 +298,7 @@ const icon_namespaceObject = icon_x({ ["AngleLeft"]: () => __WEBPACK_EXTERNAL_MO
|
|
300
298
|
asideRef.value.style[cssPropKey.value] = resizeProxyRef.value.style[placement.value];
|
301
299
|
};
|
302
300
|
document.addEventListener('mousemove', handleMouseMove);
|
303
|
-
document.addEventListener('mouseup',
|
301
|
+
document.addEventListener('mouseup', _handleMouseUp);
|
304
302
|
};
|
305
303
|
var setupAutoMinimize = function setupAutoMinimize() {
|
306
304
|
if (!autoMinimize.value) {
|
@@ -335,12 +333,12 @@ const icon_namespaceObject = icon_x({ ["AngleLeft"]: () => __WEBPACK_EXTERNAL_MO
|
|
335
333
|
}
|
336
334
|
};
|
337
335
|
var setupAsideListener = function setupAsideListener(visible) {
|
338
|
-
var
|
336
|
+
var _removeClass = function removeClass() {
|
339
337
|
asideContentVisible.value = visible;
|
340
338
|
asideRef.value.style.transition = '';
|
341
|
-
asideRef.value.removeEventListener('transitionend',
|
339
|
+
asideRef.value.removeEventListener('transitionend', _removeClass);
|
342
340
|
};
|
343
|
-
asideRef.value.addEventListener('transitionend',
|
341
|
+
asideRef.value.addEventListener('transitionend', _removeClass);
|
344
342
|
asideRef.value.style.transition = "".concat(cssPropKey.value, " cubic-bezier(0.4, 0, 0.2, 1) .3s");
|
345
343
|
};
|
346
344
|
// 监听折叠状态变化
|
package/lib/scrollbar/index.js
CHANGED
@@ -31,11 +31,10 @@ __webpack_require__.d(__webpack_exports__, {
|
|
31
31
|
});
|
32
32
|
|
33
33
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
34
|
-
function _classCallCheck(
|
35
|
-
if (!(
|
36
|
-
throw new TypeError("Cannot call a class as a function");
|
37
|
-
}
|
34
|
+
function _classCallCheck(a, n) {
|
35
|
+
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
38
36
|
}
|
37
|
+
|
39
38
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
40
39
|
function _typeof(o) {
|
41
40
|
"@babel/helpers - typeof";
|
@@ -46,6 +45,7 @@ function _typeof(o) {
|
|
46
45
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
47
46
|
}, _typeof(o);
|
48
47
|
}
|
48
|
+
|
49
49
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
50
50
|
|
51
51
|
function toPrimitive(t, r) {
|
@@ -58,48 +58,40 @@ function toPrimitive(t, r) {
|
|
58
58
|
}
|
59
59
|
return ("string" === r ? String : Number)(t);
|
60
60
|
}
|
61
|
+
|
61
62
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
62
63
|
|
63
64
|
|
64
65
|
function toPropertyKey(t) {
|
65
66
|
var i = toPrimitive(t, "string");
|
66
|
-
return "symbol" == _typeof(i) ? i :
|
67
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
67
68
|
}
|
69
|
+
|
68
70
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/createClass.js
|
69
71
|
|
70
|
-
function _defineProperties(
|
71
|
-
for (var
|
72
|
-
var
|
73
|
-
|
74
|
-
descriptor.configurable = true;
|
75
|
-
if ("value" in descriptor) descriptor.writable = true;
|
76
|
-
Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
|
72
|
+
function _defineProperties(e, r) {
|
73
|
+
for (var t = 0; t < r.length; t++) {
|
74
|
+
var o = r[t];
|
75
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);
|
77
76
|
}
|
78
77
|
}
|
79
|
-
function _createClass(
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
writable: false
|
84
|
-
});
|
85
|
-
return Constructor;
|
78
|
+
function _createClass(e, r, t) {
|
79
|
+
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
80
|
+
writable: !1
|
81
|
+
}), e;
|
86
82
|
}
|
83
|
+
|
87
84
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
88
85
|
|
89
|
-
function _defineProperty(
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
writable: true
|
97
|
-
});
|
98
|
-
} else {
|
99
|
-
obj[key] = value;
|
100
|
-
}
|
101
|
-
return obj;
|
86
|
+
function _defineProperty(e, r, t) {
|
87
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
88
|
+
value: t,
|
89
|
+
enumerable: !0,
|
90
|
+
configurable: !0,
|
91
|
+
writable: !0
|
92
|
+
}) : e[r] = t, e;
|
102
93
|
}
|
94
|
+
|
103
95
|
;// CONCATENATED MODULE: ../../packages/scrollbar/src/helper/dom.ts
|
104
96
|
/*
|
105
97
|
* Tencent is pleased to support the open source community by making
|
@@ -353,9 +345,10 @@ function updateCss(element, i) {
|
|
353
345
|
});
|
354
346
|
}
|
355
347
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
356
|
-
function _arrayWithHoles(
|
357
|
-
if (Array.isArray(
|
348
|
+
function _arrayWithHoles(r) {
|
349
|
+
if (Array.isArray(r)) return r;
|
358
350
|
}
|
351
|
+
|
359
352
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
360
353
|
function _iterableToArrayLimit(r, l) {
|
361
354
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
@@ -384,34 +377,38 @@ function _iterableToArrayLimit(r, l) {
|
|
384
377
|
return a;
|
385
378
|
}
|
386
379
|
}
|
380
|
+
|
387
381
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
388
|
-
function _arrayLikeToArray(
|
389
|
-
|
390
|
-
for (var
|
391
|
-
return
|
382
|
+
function _arrayLikeToArray(r, a) {
|
383
|
+
(null == a || a > r.length) && (a = r.length);
|
384
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
385
|
+
return n;
|
392
386
|
}
|
387
|
+
|
393
388
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
394
389
|
|
395
|
-
function _unsupportedIterableToArray(
|
396
|
-
if (
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
390
|
+
function _unsupportedIterableToArray(r, a) {
|
391
|
+
if (r) {
|
392
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
393
|
+
var t = {}.toString.call(r).slice(8, -1);
|
394
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
395
|
+
}
|
402
396
|
}
|
397
|
+
|
403
398
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
404
399
|
function _nonIterableRest() {
|
405
400
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
406
401
|
}
|
402
|
+
|
407
403
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
408
404
|
|
409
405
|
|
410
406
|
|
411
407
|
|
412
|
-
function _slicedToArray(
|
413
|
-
return _arrayWithHoles(
|
408
|
+
function _slicedToArray(r, e) {
|
409
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
414
410
|
}
|
411
|
+
|
415
412
|
;// CONCATENATED MODULE: ../../packages/scrollbar/src/helper/class-names.ts
|
416
413
|
|
417
414
|
|
@@ -1091,7 +1088,7 @@ var EventElement = /*#__PURE__*/function () {
|
|
1091
1088
|
this.element = element;
|
1092
1089
|
this.handlers = {};
|
1093
1090
|
}
|
1094
|
-
_createClass(EventElement, [{
|
1091
|
+
return _createClass(EventElement, [{
|
1095
1092
|
key: "bind",
|
1096
1093
|
value: function bind(eventName, handler) {
|
1097
1094
|
if (typeof this.handlers[eventName] === 'undefined') {
|
@@ -1128,14 +1125,13 @@ var EventElement = /*#__PURE__*/function () {
|
|
1128
1125
|
});
|
1129
1126
|
}
|
1130
1127
|
}]);
|
1131
|
-
return EventElement;
|
1132
1128
|
}();
|
1133
1129
|
var EventManager = /*#__PURE__*/function () {
|
1134
1130
|
function EventManager() {
|
1135
1131
|
_classCallCheck(this, EventManager);
|
1136
1132
|
this.eventElements = [];
|
1137
1133
|
}
|
1138
|
-
_createClass(EventManager, [{
|
1134
|
+
return _createClass(EventManager, [{
|
1139
1135
|
key: "eventElement",
|
1140
1136
|
value: function eventElement(element) {
|
1141
1137
|
var ee = this.eventElements.filter(function (ee) {
|
@@ -1174,14 +1170,13 @@ var EventManager = /*#__PURE__*/function () {
|
|
1174
1170
|
key: "once",
|
1175
1171
|
value: function once(element, eventName, handler) {
|
1176
1172
|
var ee = this.eventElement(element);
|
1177
|
-
var
|
1178
|
-
ee.unbind(eventName,
|
1173
|
+
var _onceHandler = function onceHandler(evt) {
|
1174
|
+
ee.unbind(eventName, _onceHandler);
|
1179
1175
|
handler(evt);
|
1180
1176
|
};
|
1181
|
-
ee.bind(eventName,
|
1177
|
+
ee.bind(eventName, _onceHandler);
|
1182
1178
|
}
|
1183
1179
|
}]);
|
1184
|
-
return EventManager;
|
1185
1180
|
}();
|
1186
1181
|
|
1187
1182
|
;// CONCATENATED MODULE: ../../packages/scrollbar/src/process-scroll-diff.ts
|
@@ -1402,7 +1397,7 @@ var VirtualElement = /*#__PURE__*/function () {
|
|
1402
1397
|
}
|
1403
1398
|
});
|
1404
1399
|
}
|
1405
|
-
_createClass(VirtualElement, [{
|
1400
|
+
return _createClass(VirtualElement, [{
|
1406
1401
|
key: "handleScrollChanged",
|
1407
1402
|
value: function handleScrollChanged(prop) {
|
1408
1403
|
if (['scrollLeft', 'scrollTop'].includes(prop)) {
|
@@ -1426,7 +1421,6 @@ var VirtualElement = /*#__PURE__*/function () {
|
|
1426
1421
|
this.delegateElement.scrollTo(x, y);
|
1427
1422
|
}
|
1428
1423
|
}]);
|
1429
|
-
return VirtualElement;
|
1430
1424
|
}();
|
1431
1425
|
// 自定义滚动条类
|
1432
1426
|
var BkScrollbar = /*#__PURE__*/function () {
|
@@ -1555,7 +1549,7 @@ var BkScrollbar = /*#__PURE__*/function () {
|
|
1555
1549
|
/**
|
1556
1550
|
* 更新滚动条
|
1557
1551
|
*/
|
1558
|
-
_createClass(BkScrollbar, [{
|
1552
|
+
return _createClass(BkScrollbar, [{
|
1559
1553
|
key: "update",
|
1560
1554
|
value: function update(virtaulElement) {
|
1561
1555
|
if (!this.isAlive) {
|
@@ -1652,7 +1646,6 @@ var BkScrollbar = /*#__PURE__*/function () {
|
|
1652
1646
|
}).join(' ');
|
1653
1647
|
}
|
1654
1648
|
}]);
|
1655
|
-
return BkScrollbar;
|
1656
1649
|
}();
|
1657
1650
|
|
1658
1651
|
var __webpack_exports__IScrollbarSize = __webpack_exports__.IScrollbarSize;
|