bkui-vue 2.0.2-beta.6 → 2.0.2-beta.7
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 +15 -15
- package/dist/index.esm.js +909 -897
- package/dist/index.umd.js +15 -15
- package/lib/affix/index.js +22 -30
- package/lib/alert/index.js +22 -30
- package/lib/animate-number/index.js +10 -14
- package/lib/backtop/index.js +22 -32
- package/lib/badge/index.js +18 -24
- package/lib/breadcrumb/index.js +23 -31
- package/lib/button/index.js +26 -36
- package/lib/card/index.js +33 -47
- package/lib/cascader/index.js +700 -696
- package/lib/checkbox/index.js +34 -44
- package/lib/code-diff/index.js +79 -83
- package/lib/collapse/index.js +33 -39
- package/lib/collapse-transition/index.js +14 -20
- package/lib/color-picker/index.js +624 -640
- package/lib/config-provider/index.js +26 -34
- package/lib/container/index.js +21 -27
- package/lib/date-picker/index.js +650 -672
- package/lib/dialog/index.js +87 -101
- package/lib/directives/index.js +512 -520
- package/lib/divider/index.js +15 -21
- package/lib/dropdown/index.js +31 -43
- package/lib/exception/index.js +49 -55
- package/lib/fixed-navbar/index.js +14 -20
- package/lib/form/index.js +638 -662
- package/lib/icon/angle-double-down-line.js +12 -14
- package/lib/icon/angle-double-left-line.js +12 -14
- package/lib/icon/angle-double-left.js +12 -14
- package/lib/icon/angle-double-right-line.js +12 -14
- package/lib/icon/angle-double-right.js +12 -14
- package/lib/icon/angle-double-up-line.js +12 -14
- package/lib/icon/angle-down-fill.js +12 -14
- package/lib/icon/angle-down-line.js +12 -14
- package/lib/icon/angle-down.js +12 -14
- package/lib/icon/angle-left.js +12 -14
- package/lib/icon/angle-right.js +12 -14
- package/lib/icon/angle-up-fill.js +12 -14
- package/lib/icon/angle-up.js +12 -14
- package/lib/icon/archive-fill.js +12 -14
- package/lib/icon/arrows-left.js +12 -14
- package/lib/icon/arrows-right.js +12 -14
- package/lib/icon/assistant.js +12 -14
- package/lib/icon/audio-fill.js +12 -14
- package/lib/icon/bk.js +12 -14
- package/lib/icon/circle.js +12 -14
- package/lib/icon/close-line.js +12 -14
- package/lib/icon/close.js +12 -14
- package/lib/icon/code.js +12 -14
- package/lib/icon/cog-shape.js +12 -14
- package/lib/icon/collapse-left.js +12 -14
- package/lib/icon/copy-shape.js +12 -14
- package/lib/icon/copy.js +12 -14
- package/lib/icon/data-shape.js +12 -14
- package/lib/icon/del.js +12 -14
- package/lib/icon/doc-fill.js +12 -14
- package/lib/icon/done.js +12 -14
- package/lib/icon/down-shape.js +12 -14
- package/lib/icon/down-small.js +12 -14
- package/lib/icon/edit-line.js +12 -14
- package/lib/icon/ellipsis.js +12 -14
- package/lib/icon/enlarge-line.js +12 -14
- package/lib/icon/error.js +12 -14
- package/lib/icon/excel-fill.js +12 -14
- package/lib/icon/exclamation-circle-shape.js +12 -14
- package/lib/icon/eye.js +12 -14
- package/lib/icon/filliscreen-line.js +12 -14
- package/lib/icon/fix-line.js +12 -14
- package/lib/icon/fix-shape.js +12 -14
- package/lib/icon/folder-open.js +12 -14
- package/lib/icon/folder-shape-open.js +12 -14
- package/lib/icon/folder-shape.js +12 -14
- package/lib/icon/folder.js +12 -14
- package/lib/icon/funnel.js +12 -14
- package/lib/icon/grag-fill.js +12 -14
- package/lib/icon/help-document-fill.js +12 -14
- package/lib/icon/help-fill.js +12 -14
- package/lib/icon/help.js +12 -14
- package/lib/icon/image-fill.js +12 -14
- package/lib/icon/img-error.js +12 -14
- package/lib/icon/img-placehoulder.js +12 -14
- package/lib/icon/info-line.js +12 -14
- package/lib/icon/info.js +12 -14
- package/lib/icon/left-shape.js +12 -14
- package/lib/icon/left-turn-line.js +12 -14
- package/lib/icon/loading.js +12 -14
- package/lib/icon/narrow-line.js +12 -14
- package/lib/icon/original.js +12 -14
- package/lib/icon/pdf-fill.js +12 -14
- package/lib/icon/play-shape.js +12 -14
- package/lib/icon/plus.js +12 -14
- package/lib/icon/ppt-fill.js +12 -14
- package/lib/icon/qq.js +12 -14
- package/lib/icon/right-shape.js +12 -14
- package/lib/icon/right-turn-line.js +12 -14
- package/lib/icon/search.js +12 -14
- package/lib/icon/share.js +12 -14
- package/lib/icon/spinner.js +12 -14
- package/lib/icon/success.js +12 -14
- package/lib/icon/switcher-loading.js +12 -14
- package/lib/icon/text-all.js +12 -14
- package/lib/icon/text-file.js +12 -14
- package/lib/icon/text-fill.js +12 -14
- package/lib/icon/transfer.js +12 -14
- package/lib/icon/tree-application-shape.js +12 -14
- package/lib/icon/unfull-screen.js +12 -14
- package/lib/icon/unvisible.js +12 -14
- package/lib/icon/up-shape.js +12 -14
- package/lib/icon/upload.js +12 -14
- package/lib/icon/video-fill.js +12 -14
- package/lib/icon/warn.js +12 -14
- package/lib/icon/weixin-pro.js +12 -14
- package/lib/icon/weixin.js +12 -14
- package/lib/image/index.js +324 -340
- package/lib/index.js +1 -1
- package/lib/info-box/index.js +87 -101
- package/lib/input/index.js +321 -333
- package/lib/link/index.js +18 -26
- package/lib/loading/index.js +19 -25
- package/lib/locale/index.js +3 -3
- package/lib/menu/index.js +32 -40
- package/lib/message/index.js +41 -47
- package/lib/modal/index.js +29 -39
- package/lib/navigation/index.js +19 -27
- package/lib/notify/index.js +27 -37
- package/lib/overflow-title/index.js +29 -41
- package/lib/pagination/index.js +46 -62
- package/lib/pop-confirm/index.js +33 -49
- package/lib/popover/index.js +345 -361
- package/lib/popover2/index.js +10 -14
- package/lib/process/index.js +74 -78
- package/lib/progress/index.js +20 -26
- package/lib/radio/index.js +31 -39
- package/lib/rate/index.js +19 -25
- package/lib/resize-layout/index.js +22 -30
- package/lib/scrollbar/index.js +25 -25
- package/lib/search-select/index.js +509 -531
- package/lib/select/index.js +543 -585
- package/lib/shared/index.js +49 -57
- package/lib/sideslider/index.js +79 -89
- package/lib/slider/index.js +75 -85
- package/lib/steps/index.js +72 -78
- package/lib/swiper/index.js +18 -24
- package/lib/switcher/index.js +22 -30
- package/lib/tab/index.js +321 -335
- package/lib/table/index.js +602 -660
- package/lib/table-column/index.js +9 -13
- package/lib/tag/index.js +26 -36
- package/lib/tag-input/index.js +348 -374
- package/lib/time-picker/index.js +9 -13
- package/lib/timeline/index.js +15 -21
- package/lib/transfer/index.js +40 -56
- package/lib/tree/index.js +76 -100
- package/lib/upload/index.js +562 -574
- package/lib/virtual-render/index.js +43 -55
- package/package.json +1 -1
package/lib/cascader/index.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import "../styles/reset.css";
|
2
2
|
import "./cascader.less";
|
3
|
-
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__ from "../popover";
|
4
3
|
import * as __WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__ from "@popperjs/core";
|
5
4
|
import * as __WEBPACK_EXTERNAL_MODULE__loading_4d683b23__ from "../loading";
|
6
5
|
import * as __WEBPACK_EXTERNAL_MODULE__overflow_title_f9bafa47__ from "../overflow-title";
|
6
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__ from "../popover";
|
7
7
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
8
8
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
9
9
|
import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
|
@@ -18,181 +18,7 @@ import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_checkbox_13b1cb4a__ from "../
|
|
18
18
|
import "../checkbox/checkbox.less";
|
19
19
|
/******/ var __webpack_modules__ = ({
|
20
20
|
|
21
|
-
/***/
|
22
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
23
|
-
|
24
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
25
|
-
/* harmony export */ "default": () => (/* binding */ toPropertyKey)
|
26
|
-
/* harmony export */ });
|
27
|
-
/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7545);
|
28
|
-
/* harmony import */ var _toPrimitive_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9824);
|
29
|
-
|
30
|
-
|
31
|
-
function toPropertyKey(t) {
|
32
|
-
var i = (0,_toPrimitive_js__WEBPACK_IMPORTED_MODULE_0__["default"])(t, "string");
|
33
|
-
return "symbol" == (0,_typeof_js__WEBPACK_IMPORTED_MODULE_1__["default"])(i) ? i : String(i);
|
34
|
-
}
|
35
|
-
|
36
|
-
/***/ }),
|
37
|
-
|
38
|
-
/***/ 592:
|
39
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
40
|
-
|
41
|
-
var x = (y) => {
|
42
|
-
var x = {}; __webpack_require__.d(x, y); return x
|
43
|
-
}
|
44
|
-
var y = (x) => (() => (x))
|
45
|
-
module.exports = x({ ["$bkPopover"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__.$bkPopover), ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__["default"]) });
|
46
|
-
|
47
|
-
/***/ }),
|
48
|
-
|
49
|
-
/***/ 1043:
|
50
|
-
/***/ ((module) => {
|
51
|
-
|
52
|
-
/**
|
53
|
-
* Copyright (c) 2015, Facebook, Inc.
|
54
|
-
* All rights reserved.
|
55
|
-
*
|
56
|
-
* This source code is licensed under the BSD-style license found in the
|
57
|
-
* LICENSE file in the root directory of this source tree. An additional grant
|
58
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
59
|
-
*
|
60
|
-
* @providesModule ExecutionEnvironment
|
61
|
-
*/
|
62
|
-
|
63
|
-
/*jslint evil: true */
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
var canUseDOM = !!(
|
68
|
-
typeof window !== 'undefined' &&
|
69
|
-
window.document &&
|
70
|
-
window.document.createElement
|
71
|
-
);
|
72
|
-
|
73
|
-
/**
|
74
|
-
* Simple, lightweight module assisting with the detection and context of
|
75
|
-
* Worker. Helps avoid circular dependencies and allows code to reason about
|
76
|
-
* whether or not they are in a Worker, even if they never include the main
|
77
|
-
* `ReactWorker` dependency.
|
78
|
-
*/
|
79
|
-
var ExecutionEnvironment = {
|
80
|
-
|
81
|
-
canUseDOM: canUseDOM,
|
82
|
-
|
83
|
-
canUseWorkers: typeof Worker !== 'undefined',
|
84
|
-
|
85
|
-
canUseEventListeners:
|
86
|
-
canUseDOM && !!(window.addEventListener || window.attachEvent),
|
87
|
-
|
88
|
-
canUseViewport: canUseDOM && !!window.screen,
|
89
|
-
|
90
|
-
isInWorker: !canUseDOM // For now, this is true - might change in the future.
|
91
|
-
|
92
|
-
};
|
93
|
-
|
94
|
-
module.exports = ExecutionEnvironment;
|
95
|
-
|
96
|
-
|
97
|
-
/***/ }),
|
98
|
-
|
99
|
-
/***/ 2586:
|
100
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
101
|
-
|
102
|
-
/**
|
103
|
-
* Copyright 2013-2015, Facebook, Inc.
|
104
|
-
* All rights reserved.
|
105
|
-
*
|
106
|
-
* This source code is licensed under the BSD-style license found in the
|
107
|
-
* LICENSE file in the root directory of this source tree. An additional grant
|
108
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
109
|
-
*
|
110
|
-
* @providesModule isEventSupported
|
111
|
-
*/
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
var ExecutionEnvironment = __webpack_require__(1043);
|
116
|
-
|
117
|
-
var useHasFeature;
|
118
|
-
if (ExecutionEnvironment.canUseDOM) {
|
119
|
-
useHasFeature =
|
120
|
-
document.implementation &&
|
121
|
-
document.implementation.hasFeature &&
|
122
|
-
// always returns true in newer browsers as per the standard.
|
123
|
-
// @see http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature
|
124
|
-
document.implementation.hasFeature('', '') !== true;
|
125
|
-
}
|
126
|
-
|
127
|
-
/**
|
128
|
-
* Checks if an event is supported in the current execution environment.
|
129
|
-
*
|
130
|
-
* NOTE: This will not work correctly for non-generic events such as `change`,
|
131
|
-
* `reset`, `load`, `error`, and `select`.
|
132
|
-
*
|
133
|
-
* Borrows from Modernizr.
|
134
|
-
*
|
135
|
-
* @param {string} eventNameSuffix Event name, e.g. "click".
|
136
|
-
* @param {?boolean} capture Check if the capture phase is supported.
|
137
|
-
* @return {boolean} True if the event is supported.
|
138
|
-
* @internal
|
139
|
-
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
140
|
-
*/
|
141
|
-
function isEventSupported(eventNameSuffix, capture) {
|
142
|
-
if (!ExecutionEnvironment.canUseDOM ||
|
143
|
-
capture && !('addEventListener' in document)) {
|
144
|
-
return false;
|
145
|
-
}
|
146
|
-
|
147
|
-
var eventName = 'on' + eventNameSuffix;
|
148
|
-
var isSupported = eventName in document;
|
149
|
-
|
150
|
-
if (!isSupported) {
|
151
|
-
var element = document.createElement('div');
|
152
|
-
element.setAttribute(eventName, 'return;');
|
153
|
-
isSupported = typeof element[eventName] === 'function';
|
154
|
-
}
|
155
|
-
|
156
|
-
if (!isSupported && useHasFeature && eventNameSuffix === 'wheel') {
|
157
|
-
// This is the only way to test support for the `wheel` event in IE9+.
|
158
|
-
isSupported = document.implementation.hasFeature('Events.wheel', '3.0');
|
159
|
-
}
|
160
|
-
|
161
|
-
return isSupported;
|
162
|
-
}
|
163
|
-
|
164
|
-
module.exports = isEventSupported;
|
165
|
-
|
166
|
-
|
167
|
-
/***/ }),
|
168
|
-
|
169
|
-
/***/ 2880:
|
170
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
171
|
-
|
172
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
173
|
-
/* harmony export */ "default": () => (/* binding */ _nonIterableSpread)
|
174
|
-
/* harmony export */ });
|
175
|
-
function _nonIterableSpread() {
|
176
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
177
|
-
}
|
178
|
-
|
179
|
-
/***/ }),
|
180
|
-
|
181
|
-
/***/ 3492:
|
182
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
183
|
-
|
184
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
185
|
-
/* harmony export */ "default": () => (/* binding */ _arrayWithoutHoles)
|
186
|
-
/* harmony export */ });
|
187
|
-
/* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6284);
|
188
|
-
|
189
|
-
function _arrayWithoutHoles(arr) {
|
190
|
-
if (Array.isArray(arr)) return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(arr);
|
191
|
-
}
|
192
|
-
|
193
|
-
/***/ }),
|
194
|
-
|
195
|
-
/***/ 4193:
|
21
|
+
/***/ 668:
|
196
22
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
197
23
|
|
198
24
|
|
@@ -203,7 +29,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
203
29
|
|
204
30
|
// UNUSED EXPORTS: bkEllipsis, bkEllipsisInstance, bkLoading, clickoutside, mousewheel, overflowTitle
|
205
31
|
|
206
|
-
;// ../../packages/directives/src/clickoutside.ts
|
32
|
+
;// CONCATENATED MODULE: ../../packages/directives/src/clickoutside.ts
|
207
33
|
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; } } }; }
|
208
34
|
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); }
|
209
35
|
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; }
|
@@ -330,10 +156,10 @@ ClickOutside.install = function (app) {
|
|
330
156
|
};
|
331
157
|
/* harmony default export */ const clickoutside = ((/* unused pure expression or super */ null && (ClickOutside)));
|
332
158
|
// EXTERNAL MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
333
|
-
var esm_typeof = __webpack_require__(
|
159
|
+
var esm_typeof = __webpack_require__(6522);
|
334
160
|
// EXTERNAL MODULE: external "../popover"
|
335
|
-
var popover_ = __webpack_require__(
|
336
|
-
;// ../../packages/directives/src/ellipsis.ts
|
161
|
+
var popover_ = __webpack_require__(563);
|
162
|
+
;// CONCATENATED MODULE: ../../packages/directives/src/ellipsis.ts
|
337
163
|
|
338
164
|
/*
|
339
165
|
* Tencent is pleased to support the open source community by making
|
@@ -444,9 +270,9 @@ var ellipsis = {
|
|
444
270
|
};
|
445
271
|
/* harmony default export */ const src_ellipsis = ((/* unused pure expression or super */ null && (ellipsis)));
|
446
272
|
// EXTERNAL MODULE: ../../node_modules/normalize-wheel/index.js
|
447
|
-
var normalize_wheel = __webpack_require__(
|
273
|
+
var normalize_wheel = __webpack_require__(2439);
|
448
274
|
var normalize_wheel_default = /*#__PURE__*/__webpack_require__.n(normalize_wheel);
|
449
|
-
;// ../../packages/directives/src/mousewheel.ts
|
275
|
+
;// CONCATENATED MODULE: ../../packages/directives/src/mousewheel.ts
|
450
276
|
/*
|
451
277
|
* Tencent is pleased to support the open source community by making
|
452
278
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -489,20 +315,18 @@ var mousewheel = {
|
|
489
315
|
};
|
490
316
|
/* harmony default export */ const src_mousewheel = ((/* unused pure expression or super */ null && (mousewheel)));
|
491
317
|
// EXTERNAL MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
492
|
-
var defineProperty = __webpack_require__(
|
318
|
+
var defineProperty = __webpack_require__(6666);
|
493
319
|
// EXTERNAL MODULE: ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
494
|
-
var toConsumableArray = __webpack_require__(
|
320
|
+
var toConsumableArray = __webpack_require__(7930);
|
495
321
|
// EXTERNAL MODULE: external "vue"
|
496
|
-
var external_vue_ = __webpack_require__(
|
322
|
+
var external_vue_ = __webpack_require__(6609);
|
497
323
|
// EXTERNAL MODULE: external "../shared"
|
498
|
-
var shared_ = __webpack_require__(
|
499
|
-
;// external "@popperjs/core"
|
500
|
-
var x = (y)
|
501
|
-
|
502
|
-
}
|
503
|
-
|
504
|
-
const core_namespaceObject = x({ ["createPopper"]: () => (__WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__.createPopper) });
|
505
|
-
;// ../../packages/directives/src/tooltips.ts
|
324
|
+
var shared_ = __webpack_require__(9253);
|
325
|
+
;// CONCATENATED MODULE: external "@popperjs/core"
|
326
|
+
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
327
|
+
var y = x => () => x
|
328
|
+
const core_namespaceObject = x({ ["createPopper"]: () => __WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__.createPopper });
|
329
|
+
;// CONCATENATED MODULE: ../../packages/directives/src/tooltips.ts
|
506
330
|
|
507
331
|
|
508
332
|
|
@@ -794,19 +618,15 @@ function hide(el) {
|
|
794
618
|
}
|
795
619
|
}
|
796
620
|
/* harmony default export */ const src_tooltips = (tooltips);
|
797
|
-
;// external "../loading"
|
798
|
-
var external_loading_x = (y)
|
799
|
-
|
800
|
-
}
|
801
|
-
var external_loading_y = (x) => (() => (x))
|
621
|
+
;// CONCATENATED MODULE: external "../loading"
|
622
|
+
var external_loading_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
623
|
+
var external_loading_y = x => () => x
|
802
624
|
const external_loading_namespaceObject = external_loading_x({ });
|
803
|
-
;// external "../overflow-title"
|
804
|
-
var external_overflow_title_x = (y)
|
805
|
-
|
806
|
-
}
|
807
|
-
var external_overflow_title_y = (x) => (() => (x))
|
625
|
+
;// CONCATENATED MODULE: external "../overflow-title"
|
626
|
+
var external_overflow_title_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
627
|
+
var external_overflow_title_y = x => () => x
|
808
628
|
const external_overflow_title_namespaceObject = external_overflow_title_x({ });
|
809
|
-
;// ../../packages/directives/src/index.ts
|
629
|
+
;// CONCATENATED MODULE: ../../packages/directives/src/index.ts
|
810
630
|
/*
|
811
631
|
* Tencent is pleased to support the open source community by making
|
812
632
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -842,45 +662,16 @@ const external_overflow_title_namespaceObject = external_overflow_title_x({ });
|
|
842
662
|
|
843
663
|
/***/ }),
|
844
664
|
|
845
|
-
/***/
|
846
|
-
/***/ ((
|
847
|
-
|
848
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
849
|
-
/* harmony export */ "default": () => (/* binding */ _iterableToArray)
|
850
|
-
/* harmony export */ });
|
851
|
-
function _iterableToArray(iter) {
|
852
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
853
|
-
}
|
854
|
-
|
855
|
-
/***/ }),
|
856
|
-
|
857
|
-
/***/ 4586:
|
858
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
665
|
+
/***/ 2439:
|
666
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
859
667
|
|
860
|
-
|
861
|
-
/* harmony export */ "default": () => (/* binding */ _defineProperty)
|
862
|
-
/* harmony export */ });
|
863
|
-
/* harmony import */ var _toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(205);
|
668
|
+
module.exports = __webpack_require__(2527);
|
864
669
|
|
865
|
-
function _defineProperty(obj, key, value) {
|
866
|
-
key = (0,_toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__["default"])(key);
|
867
|
-
if (key in obj) {
|
868
|
-
Object.defineProperty(obj, key, {
|
869
|
-
value: value,
|
870
|
-
enumerable: true,
|
871
|
-
configurable: true,
|
872
|
-
writable: true
|
873
|
-
});
|
874
|
-
} else {
|
875
|
-
obj[key] = value;
|
876
|
-
}
|
877
|
-
return obj;
|
878
|
-
}
|
879
670
|
|
880
671
|
/***/ }),
|
881
672
|
|
882
|
-
/***/
|
883
|
-
/***/ ((module
|
673
|
+
/***/ 7430:
|
674
|
+
/***/ ((module) => {
|
884
675
|
|
885
676
|
/**
|
886
677
|
* Copyright (c) 2015, Facebook, Inc.
|
@@ -890,260 +681,66 @@ function _defineProperty(obj, key, value) {
|
|
890
681
|
* LICENSE file in the root directory of this source tree. An additional grant
|
891
682
|
* of patent rights can be found in the PATENTS file in the same directory.
|
892
683
|
*
|
893
|
-
* @providesModule
|
894
|
-
|
684
|
+
* @providesModule ExecutionEnvironment
|
685
|
+
*/
|
686
|
+
|
687
|
+
/*jslint evil: true */
|
688
|
+
|
689
|
+
|
690
|
+
|
691
|
+
var canUseDOM = !!(
|
692
|
+
typeof window !== 'undefined' &&
|
693
|
+
window.document &&
|
694
|
+
window.document.createElement
|
695
|
+
);
|
696
|
+
|
697
|
+
/**
|
698
|
+
* Simple, lightweight module assisting with the detection and context of
|
699
|
+
* Worker. Helps avoid circular dependencies and allows code to reason about
|
700
|
+
* whether or not they are in a Worker, even if they never include the main
|
701
|
+
* `ReactWorker` dependency.
|
895
702
|
*/
|
703
|
+
var ExecutionEnvironment = {
|
896
704
|
|
705
|
+
canUseDOM: canUseDOM,
|
897
706
|
|
707
|
+
canUseWorkers: typeof Worker !== 'undefined',
|
898
708
|
|
899
|
-
|
709
|
+
canUseEventListeners:
|
710
|
+
canUseDOM && !!(window.addEventListener || window.attachEvent),
|
900
711
|
|
901
|
-
|
712
|
+
canUseViewport: canUseDOM && !!window.screen,
|
902
713
|
|
714
|
+
isInWorker: !canUseDOM // For now, this is true - might change in the future.
|
903
715
|
|
904
|
-
|
905
|
-
|
906
|
-
|
907
|
-
|
716
|
+
};
|
717
|
+
|
718
|
+
module.exports = ExecutionEnvironment;
|
719
|
+
|
720
|
+
|
721
|
+
/***/ }),
|
722
|
+
|
723
|
+
/***/ 6377:
|
724
|
+
/***/ ((module) => {
|
908
725
|
|
909
726
|
/**
|
910
|
-
*
|
911
|
-
* complicated, thus this doc is long and (hopefully) detailed enough to answer
|
912
|
-
* your questions.
|
727
|
+
* Copyright 2004-present Facebook. All Rights Reserved.
|
913
728
|
*
|
914
|
-
*
|
915
|
-
|
729
|
+
* @providesModule UserAgent_DEPRECATED
|
730
|
+
*/
|
731
|
+
|
732
|
+
/**
|
733
|
+
* Provides entirely client-side User Agent and OS detection. You should prefer
|
734
|
+
* the non-deprecated UserAgent module when possible, which exposes our
|
735
|
+
* authoritative server-side PHP-based detection to the client.
|
916
736
|
*
|
917
|
-
*
|
737
|
+
* Usage is straightforward:
|
918
738
|
*
|
919
|
-
*
|
920
|
-
*
|
921
|
-
*
|
922
|
-
* 'DOMMouseScroll' -- FF(0.9.7+) since 2003
|
739
|
+
* if (UserAgent_DEPRECATED.ie()) {
|
740
|
+
* // IE
|
741
|
+
* }
|
923
742
|
*
|
924
|
-
*
|
925
|
-
*
|
926
|
-
* normalizeWheel.getEventType();
|
927
|
-
*
|
928
|
-
* In your event callback, use this code to get sane interpretation of the
|
929
|
-
* deltas. This code will return an object with properties:
|
930
|
-
*
|
931
|
-
* spinX -- normalized spin speed (use for zoom) - x plane
|
932
|
-
* spinY -- " - y plane
|
933
|
-
* pixelX -- normalized distance (to pixels) - x plane
|
934
|
-
* pixelY -- " - y plane
|
935
|
-
*
|
936
|
-
* Wheel values are provided by the browser assuming you are using the wheel to
|
937
|
-
* scroll a web page by a number of lines or pixels (or pages). Values can vary
|
938
|
-
* significantly on different platforms and browsers, forgetting that you can
|
939
|
-
* scroll at different speeds. Some devices (like trackpads) emit more events
|
940
|
-
* at smaller increments with fine granularity, and some emit massive jumps with
|
941
|
-
* linear speed or acceleration.
|
942
|
-
*
|
943
|
-
* This code does its best to normalize the deltas for you:
|
944
|
-
*
|
945
|
-
* - spin is trying to normalize how far the wheel was spun (or trackpad
|
946
|
-
* dragged). This is super useful for zoom support where you want to
|
947
|
-
* throw away the chunky scroll steps on the PC and make those equal to
|
948
|
-
* the slow and smooth tiny steps on the Mac. Key data: This code tries to
|
949
|
-
* resolve a single slow step on a wheel to 1.
|
950
|
-
*
|
951
|
-
* - pixel is normalizing the desired scroll delta in pixel units. You'll
|
952
|
-
* get the crazy differences between browsers, but at least it'll be in
|
953
|
-
* pixels!
|
954
|
-
*
|
955
|
-
* - positive value indicates scrolling DOWN/RIGHT, negative UP/LEFT. This
|
956
|
-
* should translate to positive value zooming IN, negative zooming OUT.
|
957
|
-
* This matches the newer 'wheel' event.
|
958
|
-
*
|
959
|
-
* Why are there spinX, spinY (or pixels)?
|
960
|
-
*
|
961
|
-
* - spinX is a 2-finger side drag on the trackpad, and a shift + wheel turn
|
962
|
-
* with a mouse. It results in side-scrolling in the browser by default.
|
963
|
-
*
|
964
|
-
* - spinY is what you expect -- it's the classic axis of a mouse wheel.
|
965
|
-
*
|
966
|
-
* - I dropped spinZ/pixelZ. It is supported by the DOM 3 'wheel' event and
|
967
|
-
* probably is by browsers in conjunction with fancy 3D controllers .. but
|
968
|
-
* you know.
|
969
|
-
*
|
970
|
-
* Implementation info:
|
971
|
-
*
|
972
|
-
* Examples of 'wheel' event if you scroll slowly (down) by one step with an
|
973
|
-
* average mouse:
|
974
|
-
*
|
975
|
-
* OS X + Chrome (mouse) - 4 pixel delta (wheelDelta -120)
|
976
|
-
* OS X + Safari (mouse) - N/A pixel delta (wheelDelta -12)
|
977
|
-
* OS X + Firefox (mouse) - 0.1 line delta (wheelDelta N/A)
|
978
|
-
* Win8 + Chrome (mouse) - 100 pixel delta (wheelDelta -120)
|
979
|
-
* Win8 + Firefox (mouse) - 3 line delta (wheelDelta -120)
|
980
|
-
*
|
981
|
-
* On the trackpad:
|
982
|
-
*
|
983
|
-
* OS X + Chrome (trackpad) - 2 pixel delta (wheelDelta -6)
|
984
|
-
* OS X + Firefox (trackpad) - 1 pixel delta (wheelDelta N/A)
|
985
|
-
*
|
986
|
-
* On other/older browsers.. it's more complicated as there can be multiple and
|
987
|
-
* also missing delta values.
|
988
|
-
*
|
989
|
-
* The 'wheel' event is more standard:
|
990
|
-
*
|
991
|
-
* http://www.w3.org/TR/DOM-Level-3-Events/#events-wheelevents
|
992
|
-
*
|
993
|
-
* The basics is that it includes a unit, deltaMode (pixels, lines, pages), and
|
994
|
-
* deltaX, deltaY and deltaZ. Some browsers provide other values to maintain
|
995
|
-
* backward compatibility with older events. Those other values help us
|
996
|
-
* better normalize spin speed. Example of what the browsers provide:
|
997
|
-
*
|
998
|
-
* | event.wheelDelta | event.detail
|
999
|
-
* ------------------+------------------+--------------
|
1000
|
-
* Safari v5/OS X | -120 | 0
|
1001
|
-
* Safari v5/Win7 | -120 | 0
|
1002
|
-
* Chrome v17/OS X | -120 | 0
|
1003
|
-
* Chrome v17/Win7 | -120 | 0
|
1004
|
-
* IE9/Win7 | -120 | undefined
|
1005
|
-
* Firefox v4/OS X | undefined | 1
|
1006
|
-
* Firefox v4/Win7 | undefined | 3
|
1007
|
-
*
|
1008
|
-
*/
|
1009
|
-
function normalizeWheel(/*object*/ event) /*object*/ {
|
1010
|
-
var sX = 0, sY = 0, // spinX, spinY
|
1011
|
-
pX = 0, pY = 0; // pixelX, pixelY
|
1012
|
-
|
1013
|
-
// Legacy
|
1014
|
-
if ('detail' in event) { sY = event.detail; }
|
1015
|
-
if ('wheelDelta' in event) { sY = -event.wheelDelta / 120; }
|
1016
|
-
if ('wheelDeltaY' in event) { sY = -event.wheelDeltaY / 120; }
|
1017
|
-
if ('wheelDeltaX' in event) { sX = -event.wheelDeltaX / 120; }
|
1018
|
-
|
1019
|
-
// side scrolling on FF with DOMMouseScroll
|
1020
|
-
if ( 'axis' in event && event.axis === event.HORIZONTAL_AXIS ) {
|
1021
|
-
sX = sY;
|
1022
|
-
sY = 0;
|
1023
|
-
}
|
1024
|
-
|
1025
|
-
pX = sX * PIXEL_STEP;
|
1026
|
-
pY = sY * PIXEL_STEP;
|
1027
|
-
|
1028
|
-
if ('deltaY' in event) { pY = event.deltaY; }
|
1029
|
-
if ('deltaX' in event) { pX = event.deltaX; }
|
1030
|
-
|
1031
|
-
if ((pX || pY) && event.deltaMode) {
|
1032
|
-
if (event.deltaMode == 1) { // delta in LINE units
|
1033
|
-
pX *= LINE_HEIGHT;
|
1034
|
-
pY *= LINE_HEIGHT;
|
1035
|
-
} else { // delta in PAGE units
|
1036
|
-
pX *= PAGE_HEIGHT;
|
1037
|
-
pY *= PAGE_HEIGHT;
|
1038
|
-
}
|
1039
|
-
}
|
1040
|
-
|
1041
|
-
// Fall-back if spin cannot be determined
|
1042
|
-
if (pX && !sX) { sX = (pX < 1) ? -1 : 1; }
|
1043
|
-
if (pY && !sY) { sY = (pY < 1) ? -1 : 1; }
|
1044
|
-
|
1045
|
-
return { spinX : sX,
|
1046
|
-
spinY : sY,
|
1047
|
-
pixelX : pX,
|
1048
|
-
pixelY : pY };
|
1049
|
-
}
|
1050
|
-
|
1051
|
-
|
1052
|
-
/**
|
1053
|
-
* The best combination if you prefer spinX + spinY normalization. It favors
|
1054
|
-
* the older DOMMouseScroll for Firefox, as FF does not include wheelDelta with
|
1055
|
-
* 'wheel' event, making spin speed determination impossible.
|
1056
|
-
*/
|
1057
|
-
normalizeWheel.getEventType = function() /*string*/ {
|
1058
|
-
return (UserAgent_DEPRECATED.firefox())
|
1059
|
-
? 'DOMMouseScroll'
|
1060
|
-
: (isEventSupported('wheel'))
|
1061
|
-
? 'wheel'
|
1062
|
-
: 'mousewheel';
|
1063
|
-
};
|
1064
|
-
|
1065
|
-
module.exports = normalizeWheel;
|
1066
|
-
|
1067
|
-
|
1068
|
-
/***/ }),
|
1069
|
-
|
1070
|
-
/***/ 5153:
|
1071
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
1072
|
-
|
1073
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1074
|
-
/* harmony export */ "default": () => (/* binding */ _toConsumableArray)
|
1075
|
-
/* harmony export */ });
|
1076
|
-
/* harmony import */ var _arrayWithoutHoles_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3492);
|
1077
|
-
/* harmony import */ var _iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4430);
|
1078
|
-
/* harmony import */ var _unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7985);
|
1079
|
-
/* harmony import */ var _nonIterableSpread_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2880);
|
1080
|
-
|
1081
|
-
|
1082
|
-
|
1083
|
-
|
1084
|
-
function _toConsumableArray(arr) {
|
1085
|
-
return (0,_arrayWithoutHoles_js__WEBPACK_IMPORTED_MODULE_0__["default"])(arr) || (0,_iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__["default"])(arr) || (0,_unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__["default"])(arr) || (0,_nonIterableSpread_js__WEBPACK_IMPORTED_MODULE_3__["default"])();
|
1086
|
-
}
|
1087
|
-
|
1088
|
-
/***/ }),
|
1089
|
-
|
1090
|
-
/***/ 5166:
|
1091
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
1092
|
-
|
1093
|
-
var x = (y) => {
|
1094
|
-
var x = {}; __webpack_require__.d(x, y); return x
|
1095
|
-
}
|
1096
|
-
var y = (x) => (() => (x))
|
1097
|
-
module.exports = x({ ["PropTypes"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes), ["arrayEqual"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.arrayEqual), ["bkZIndexManager"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager), ["capitalize"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.capitalize), ["debounce"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.debounce), ["resolveClassName"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.resolveClassName), ["withInstallProps"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstallProps) });
|
1098
|
-
|
1099
|
-
/***/ }),
|
1100
|
-
|
1101
|
-
/***/ 5286:
|
1102
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
1103
|
-
|
1104
|
-
var x = (y) => {
|
1105
|
-
var x = {}; __webpack_require__.d(x, y); return x
|
1106
|
-
}
|
1107
|
-
var y = (x) => (() => (x))
|
1108
|
-
module.exports = 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), ["mergeProps"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.mergeProps), ["nextTick"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.nextTick), ["reactive"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.reactive), ["ref"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.ref), ["render"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.render), ["resolveDirective"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective), ["toRefs"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.toRefs), ["watch"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.watch), ["withDirectives"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.withDirectives) });
|
1109
|
-
|
1110
|
-
/***/ }),
|
1111
|
-
|
1112
|
-
/***/ 6284:
|
1113
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
1114
|
-
|
1115
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1116
|
-
/* harmony export */ "default": () => (/* binding */ _arrayLikeToArray)
|
1117
|
-
/* harmony export */ });
|
1118
|
-
function _arrayLikeToArray(arr, len) {
|
1119
|
-
if (len == null || len > arr.length) len = arr.length;
|
1120
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
1121
|
-
return arr2;
|
1122
|
-
}
|
1123
|
-
|
1124
|
-
/***/ }),
|
1125
|
-
|
1126
|
-
/***/ 7416:
|
1127
|
-
/***/ ((module) => {
|
1128
|
-
|
1129
|
-
/**
|
1130
|
-
* Copyright 2004-present Facebook. All Rights Reserved.
|
1131
|
-
*
|
1132
|
-
* @providesModule UserAgent_DEPRECATED
|
1133
|
-
*/
|
1134
|
-
|
1135
|
-
/**
|
1136
|
-
* Provides entirely client-side User Agent and OS detection. You should prefer
|
1137
|
-
* the non-deprecated UserAgent module when possible, which exposes our
|
1138
|
-
* authoritative server-side PHP-based detection to the client.
|
1139
|
-
*
|
1140
|
-
* Usage is straightforward:
|
1141
|
-
*
|
1142
|
-
* if (UserAgent_DEPRECATED.ie()) {
|
1143
|
-
* // IE
|
1144
|
-
* }
|
1145
|
-
*
|
1146
|
-
* You can also do version checks:
|
743
|
+
* You can also do version checks:
|
1147
744
|
*
|
1148
745
|
* if (UserAgent_DEPRECATED.ie() >= 7) {
|
1149
746
|
* // IE7 or better
|
@@ -1290,180 +887,517 @@ var UserAgent_DEPRECATED = {
|
|
1290
887
|
},
|
1291
888
|
|
1292
889
|
|
1293
|
-
/**
|
1294
|
-
* Whether the browser is 64-bit IE. Really, this is kind of weak sauce; we
|
1295
|
-
* only need this because Skype can't handle 64-bit IE yet. We need to remove
|
1296
|
-
* this when we don't need it -- tracked by #601957.
|
1297
|
-
*/
|
1298
|
-
ie64: function() {
|
1299
|
-
return UserAgent_DEPRECATED.ie() && _win64;
|
1300
|
-
},
|
890
|
+
/**
|
891
|
+
* Whether the browser is 64-bit IE. Really, this is kind of weak sauce; we
|
892
|
+
* only need this because Skype can't handle 64-bit IE yet. We need to remove
|
893
|
+
* this when we don't need it -- tracked by #601957.
|
894
|
+
*/
|
895
|
+
ie64: function() {
|
896
|
+
return UserAgent_DEPRECATED.ie() && _win64;
|
897
|
+
},
|
898
|
+
|
899
|
+
/**
|
900
|
+
* Check if the UA is Firefox.
|
901
|
+
*
|
902
|
+
*
|
903
|
+
* @return float|NaN Version number (if match) or NaN.
|
904
|
+
*/
|
905
|
+
firefox: function() {
|
906
|
+
return _populate() || _firefox;
|
907
|
+
},
|
908
|
+
|
909
|
+
|
910
|
+
/**
|
911
|
+
* Check if the UA is Opera.
|
912
|
+
*
|
913
|
+
*
|
914
|
+
* @return float|NaN Version number (if match) or NaN.
|
915
|
+
*/
|
916
|
+
opera: function() {
|
917
|
+
return _populate() || _opera;
|
918
|
+
},
|
919
|
+
|
920
|
+
|
921
|
+
/**
|
922
|
+
* Check if the UA is WebKit.
|
923
|
+
*
|
924
|
+
*
|
925
|
+
* @return float|NaN Version number (if match) or NaN.
|
926
|
+
*/
|
927
|
+
webkit: function() {
|
928
|
+
return _populate() || _webkit;
|
929
|
+
},
|
930
|
+
|
931
|
+
/**
|
932
|
+
* For Push
|
933
|
+
* WILL BE REMOVED VERY SOON. Use UserAgent_DEPRECATED.webkit
|
934
|
+
*/
|
935
|
+
safari: function() {
|
936
|
+
return UserAgent_DEPRECATED.webkit();
|
937
|
+
},
|
938
|
+
|
939
|
+
/**
|
940
|
+
* Check if the UA is a Chrome browser.
|
941
|
+
*
|
942
|
+
*
|
943
|
+
* @return float|NaN Version number (if match) or NaN.
|
944
|
+
*/
|
945
|
+
chrome : function() {
|
946
|
+
return _populate() || _chrome;
|
947
|
+
},
|
948
|
+
|
949
|
+
|
950
|
+
/**
|
951
|
+
* Check if the user is running Windows.
|
952
|
+
*
|
953
|
+
* @return bool `true' if the user's OS is Windows.
|
954
|
+
*/
|
955
|
+
windows: function() {
|
956
|
+
return _populate() || _windows;
|
957
|
+
},
|
958
|
+
|
959
|
+
|
960
|
+
/**
|
961
|
+
* Check if the user is running Mac OS X.
|
962
|
+
*
|
963
|
+
* @return float|bool Returns a float if a version number is detected,
|
964
|
+
* otherwise true/false.
|
965
|
+
*/
|
966
|
+
osx: function() {
|
967
|
+
return _populate() || _osx;
|
968
|
+
},
|
969
|
+
|
970
|
+
/**
|
971
|
+
* Check if the user is running Linux.
|
972
|
+
*
|
973
|
+
* @return bool `true' if the user's OS is some flavor of Linux.
|
974
|
+
*/
|
975
|
+
linux: function() {
|
976
|
+
return _populate() || _linux;
|
977
|
+
},
|
978
|
+
|
979
|
+
/**
|
980
|
+
* Check if the user is running on an iPhone or iPod platform.
|
981
|
+
*
|
982
|
+
* @return bool `true' if the user is running some flavor of the
|
983
|
+
* iPhone OS.
|
984
|
+
*/
|
985
|
+
iphone: function() {
|
986
|
+
return _populate() || _iphone;
|
987
|
+
},
|
988
|
+
|
989
|
+
mobile: function() {
|
990
|
+
return _populate() || (_iphone || _ipad || _android || _mobile);
|
991
|
+
},
|
992
|
+
|
993
|
+
nativeApp: function() {
|
994
|
+
// webviews inside of the native apps
|
995
|
+
return _populate() || _native;
|
996
|
+
},
|
997
|
+
|
998
|
+
android: function() {
|
999
|
+
return _populate() || _android;
|
1000
|
+
},
|
1001
|
+
|
1002
|
+
ipad: function() {
|
1003
|
+
return _populate() || _ipad;
|
1004
|
+
}
|
1005
|
+
};
|
1006
|
+
|
1007
|
+
module.exports = UserAgent_DEPRECATED;
|
1008
|
+
|
1009
|
+
|
1010
|
+
/***/ }),
|
1011
|
+
|
1012
|
+
/***/ 3541:
|
1013
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
1014
|
+
|
1015
|
+
/**
|
1016
|
+
* Copyright 2013-2015, Facebook, Inc.
|
1017
|
+
* All rights reserved.
|
1018
|
+
*
|
1019
|
+
* This source code is licensed under the BSD-style license found in the
|
1020
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
1021
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
1022
|
+
*
|
1023
|
+
* @providesModule isEventSupported
|
1024
|
+
*/
|
1025
|
+
|
1026
|
+
|
1027
|
+
|
1028
|
+
var ExecutionEnvironment = __webpack_require__(7430);
|
1029
|
+
|
1030
|
+
var useHasFeature;
|
1031
|
+
if (ExecutionEnvironment.canUseDOM) {
|
1032
|
+
useHasFeature =
|
1033
|
+
document.implementation &&
|
1034
|
+
document.implementation.hasFeature &&
|
1035
|
+
// always returns true in newer browsers as per the standard.
|
1036
|
+
// @see http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature
|
1037
|
+
document.implementation.hasFeature('', '') !== true;
|
1038
|
+
}
|
1039
|
+
|
1040
|
+
/**
|
1041
|
+
* Checks if an event is supported in the current execution environment.
|
1042
|
+
*
|
1043
|
+
* NOTE: This will not work correctly for non-generic events such as `change`,
|
1044
|
+
* `reset`, `load`, `error`, and `select`.
|
1045
|
+
*
|
1046
|
+
* Borrows from Modernizr.
|
1047
|
+
*
|
1048
|
+
* @param {string} eventNameSuffix Event name, e.g. "click".
|
1049
|
+
* @param {?boolean} capture Check if the capture phase is supported.
|
1050
|
+
* @return {boolean} True if the event is supported.
|
1051
|
+
* @internal
|
1052
|
+
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
1053
|
+
*/
|
1054
|
+
function isEventSupported(eventNameSuffix, capture) {
|
1055
|
+
if (!ExecutionEnvironment.canUseDOM ||
|
1056
|
+
capture && !('addEventListener' in document)) {
|
1057
|
+
return false;
|
1058
|
+
}
|
1059
|
+
|
1060
|
+
var eventName = 'on' + eventNameSuffix;
|
1061
|
+
var isSupported = eventName in document;
|
1062
|
+
|
1063
|
+
if (!isSupported) {
|
1064
|
+
var element = document.createElement('div');
|
1065
|
+
element.setAttribute(eventName, 'return;');
|
1066
|
+
isSupported = typeof element[eventName] === 'function';
|
1067
|
+
}
|
1068
|
+
|
1069
|
+
if (!isSupported && useHasFeature && eventNameSuffix === 'wheel') {
|
1070
|
+
// This is the only way to test support for the `wheel` event in IE9+.
|
1071
|
+
isSupported = document.implementation.hasFeature('Events.wheel', '3.0');
|
1072
|
+
}
|
1073
|
+
|
1074
|
+
return isSupported;
|
1075
|
+
}
|
1076
|
+
|
1077
|
+
module.exports = isEventSupported;
|
1078
|
+
|
1079
|
+
|
1080
|
+
/***/ }),
|
1081
|
+
|
1082
|
+
/***/ 2527:
|
1083
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
1084
|
+
|
1085
|
+
/**
|
1086
|
+
* Copyright (c) 2015, Facebook, Inc.
|
1087
|
+
* All rights reserved.
|
1088
|
+
*
|
1089
|
+
* This source code is licensed under the BSD-style license found in the
|
1090
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
1091
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
1092
|
+
*
|
1093
|
+
* @providesModule normalizeWheel
|
1094
|
+
* @typechecks
|
1095
|
+
*/
|
1096
|
+
|
1097
|
+
|
1098
|
+
|
1099
|
+
var UserAgent_DEPRECATED = __webpack_require__(6377);
|
1100
|
+
|
1101
|
+
var isEventSupported = __webpack_require__(3541);
|
1102
|
+
|
1103
|
+
|
1104
|
+
// Reasonable defaults
|
1105
|
+
var PIXEL_STEP = 10;
|
1106
|
+
var LINE_HEIGHT = 40;
|
1107
|
+
var PAGE_HEIGHT = 800;
|
1108
|
+
|
1109
|
+
/**
|
1110
|
+
* Mouse wheel (and 2-finger trackpad) support on the web sucks. It is
|
1111
|
+
* complicated, thus this doc is long and (hopefully) detailed enough to answer
|
1112
|
+
* your questions.
|
1113
|
+
*
|
1114
|
+
* If you need to react to the mouse wheel in a predictable way, this code is
|
1115
|
+
* like your bestest friend. * hugs *
|
1116
|
+
*
|
1117
|
+
* As of today, there are 4 DOM event types you can listen to:
|
1118
|
+
*
|
1119
|
+
* 'wheel' -- Chrome(31+), FF(17+), IE(9+)
|
1120
|
+
* 'mousewheel' -- Chrome, IE(6+), Opera, Safari
|
1121
|
+
* 'MozMousePixelScroll' -- FF(3.5 only!) (2010-2013) -- don't bother!
|
1122
|
+
* 'DOMMouseScroll' -- FF(0.9.7+) since 2003
|
1123
|
+
*
|
1124
|
+
* So what to do? The is the best:
|
1125
|
+
*
|
1126
|
+
* normalizeWheel.getEventType();
|
1127
|
+
*
|
1128
|
+
* In your event callback, use this code to get sane interpretation of the
|
1129
|
+
* deltas. This code will return an object with properties:
|
1130
|
+
*
|
1131
|
+
* spinX -- normalized spin speed (use for zoom) - x plane
|
1132
|
+
* spinY -- " - y plane
|
1133
|
+
* pixelX -- normalized distance (to pixels) - x plane
|
1134
|
+
* pixelY -- " - y plane
|
1135
|
+
*
|
1136
|
+
* Wheel values are provided by the browser assuming you are using the wheel to
|
1137
|
+
* scroll a web page by a number of lines or pixels (or pages). Values can vary
|
1138
|
+
* significantly on different platforms and browsers, forgetting that you can
|
1139
|
+
* scroll at different speeds. Some devices (like trackpads) emit more events
|
1140
|
+
* at smaller increments with fine granularity, and some emit massive jumps with
|
1141
|
+
* linear speed or acceleration.
|
1142
|
+
*
|
1143
|
+
* This code does its best to normalize the deltas for you:
|
1144
|
+
*
|
1145
|
+
* - spin is trying to normalize how far the wheel was spun (or trackpad
|
1146
|
+
* dragged). This is super useful for zoom support where you want to
|
1147
|
+
* throw away the chunky scroll steps on the PC and make those equal to
|
1148
|
+
* the slow and smooth tiny steps on the Mac. Key data: This code tries to
|
1149
|
+
* resolve a single slow step on a wheel to 1.
|
1150
|
+
*
|
1151
|
+
* - pixel is normalizing the desired scroll delta in pixel units. You'll
|
1152
|
+
* get the crazy differences between browsers, but at least it'll be in
|
1153
|
+
* pixels!
|
1154
|
+
*
|
1155
|
+
* - positive value indicates scrolling DOWN/RIGHT, negative UP/LEFT. This
|
1156
|
+
* should translate to positive value zooming IN, negative zooming OUT.
|
1157
|
+
* This matches the newer 'wheel' event.
|
1158
|
+
*
|
1159
|
+
* Why are there spinX, spinY (or pixels)?
|
1160
|
+
*
|
1161
|
+
* - spinX is a 2-finger side drag on the trackpad, and a shift + wheel turn
|
1162
|
+
* with a mouse. It results in side-scrolling in the browser by default.
|
1163
|
+
*
|
1164
|
+
* - spinY is what you expect -- it's the classic axis of a mouse wheel.
|
1165
|
+
*
|
1166
|
+
* - I dropped spinZ/pixelZ. It is supported by the DOM 3 'wheel' event and
|
1167
|
+
* probably is by browsers in conjunction with fancy 3D controllers .. but
|
1168
|
+
* you know.
|
1169
|
+
*
|
1170
|
+
* Implementation info:
|
1171
|
+
*
|
1172
|
+
* Examples of 'wheel' event if you scroll slowly (down) by one step with an
|
1173
|
+
* average mouse:
|
1174
|
+
*
|
1175
|
+
* OS X + Chrome (mouse) - 4 pixel delta (wheelDelta -120)
|
1176
|
+
* OS X + Safari (mouse) - N/A pixel delta (wheelDelta -12)
|
1177
|
+
* OS X + Firefox (mouse) - 0.1 line delta (wheelDelta N/A)
|
1178
|
+
* Win8 + Chrome (mouse) - 100 pixel delta (wheelDelta -120)
|
1179
|
+
* Win8 + Firefox (mouse) - 3 line delta (wheelDelta -120)
|
1180
|
+
*
|
1181
|
+
* On the trackpad:
|
1182
|
+
*
|
1183
|
+
* OS X + Chrome (trackpad) - 2 pixel delta (wheelDelta -6)
|
1184
|
+
* OS X + Firefox (trackpad) - 1 pixel delta (wheelDelta N/A)
|
1185
|
+
*
|
1186
|
+
* On other/older browsers.. it's more complicated as there can be multiple and
|
1187
|
+
* also missing delta values.
|
1188
|
+
*
|
1189
|
+
* The 'wheel' event is more standard:
|
1190
|
+
*
|
1191
|
+
* http://www.w3.org/TR/DOM-Level-3-Events/#events-wheelevents
|
1192
|
+
*
|
1193
|
+
* The basics is that it includes a unit, deltaMode (pixels, lines, pages), and
|
1194
|
+
* deltaX, deltaY and deltaZ. Some browsers provide other values to maintain
|
1195
|
+
* backward compatibility with older events. Those other values help us
|
1196
|
+
* better normalize spin speed. Example of what the browsers provide:
|
1197
|
+
*
|
1198
|
+
* | event.wheelDelta | event.detail
|
1199
|
+
* ------------------+------------------+--------------
|
1200
|
+
* Safari v5/OS X | -120 | 0
|
1201
|
+
* Safari v5/Win7 | -120 | 0
|
1202
|
+
* Chrome v17/OS X | -120 | 0
|
1203
|
+
* Chrome v17/Win7 | -120 | 0
|
1204
|
+
* IE9/Win7 | -120 | undefined
|
1205
|
+
* Firefox v4/OS X | undefined | 1
|
1206
|
+
* Firefox v4/Win7 | undefined | 3
|
1207
|
+
*
|
1208
|
+
*/
|
1209
|
+
function normalizeWheel(/*object*/ event) /*object*/ {
|
1210
|
+
var sX = 0, sY = 0, // spinX, spinY
|
1211
|
+
pX = 0, pY = 0; // pixelX, pixelY
|
1212
|
+
|
1213
|
+
// Legacy
|
1214
|
+
if ('detail' in event) { sY = event.detail; }
|
1215
|
+
if ('wheelDelta' in event) { sY = -event.wheelDelta / 120; }
|
1216
|
+
if ('wheelDeltaY' in event) { sY = -event.wheelDeltaY / 120; }
|
1217
|
+
if ('wheelDeltaX' in event) { sX = -event.wheelDeltaX / 120; }
|
1218
|
+
|
1219
|
+
// side scrolling on FF with DOMMouseScroll
|
1220
|
+
if ( 'axis' in event && event.axis === event.HORIZONTAL_AXIS ) {
|
1221
|
+
sX = sY;
|
1222
|
+
sY = 0;
|
1223
|
+
}
|
1224
|
+
|
1225
|
+
pX = sX * PIXEL_STEP;
|
1226
|
+
pY = sY * PIXEL_STEP;
|
1227
|
+
|
1228
|
+
if ('deltaY' in event) { pY = event.deltaY; }
|
1229
|
+
if ('deltaX' in event) { pX = event.deltaX; }
|
1230
|
+
|
1231
|
+
if ((pX || pY) && event.deltaMode) {
|
1232
|
+
if (event.deltaMode == 1) { // delta in LINE units
|
1233
|
+
pX *= LINE_HEIGHT;
|
1234
|
+
pY *= LINE_HEIGHT;
|
1235
|
+
} else { // delta in PAGE units
|
1236
|
+
pX *= PAGE_HEIGHT;
|
1237
|
+
pY *= PAGE_HEIGHT;
|
1238
|
+
}
|
1239
|
+
}
|
1240
|
+
|
1241
|
+
// Fall-back if spin cannot be determined
|
1242
|
+
if (pX && !sX) { sX = (pX < 1) ? -1 : 1; }
|
1243
|
+
if (pY && !sY) { sY = (pY < 1) ? -1 : 1; }
|
1244
|
+
|
1245
|
+
return { spinX : sX,
|
1246
|
+
spinY : sY,
|
1247
|
+
pixelX : pX,
|
1248
|
+
pixelY : pY };
|
1249
|
+
}
|
1301
1250
|
|
1302
|
-
/**
|
1303
|
-
* Check if the UA is Firefox.
|
1304
|
-
*
|
1305
|
-
*
|
1306
|
-
* @return float|NaN Version number (if match) or NaN.
|
1307
|
-
*/
|
1308
|
-
firefox: function() {
|
1309
|
-
return _populate() || _firefox;
|
1310
|
-
},
|
1311
1251
|
|
1252
|
+
/**
|
1253
|
+
* The best combination if you prefer spinX + spinY normalization. It favors
|
1254
|
+
* the older DOMMouseScroll for Firefox, as FF does not include wheelDelta with
|
1255
|
+
* 'wheel' event, making spin speed determination impossible.
|
1256
|
+
*/
|
1257
|
+
normalizeWheel.getEventType = function() /*string*/ {
|
1258
|
+
return (UserAgent_DEPRECATED.firefox())
|
1259
|
+
? 'DOMMouseScroll'
|
1260
|
+
: (isEventSupported('wheel'))
|
1261
|
+
? 'wheel'
|
1262
|
+
: 'mousewheel';
|
1263
|
+
};
|
1312
1264
|
|
1313
|
-
|
1314
|
-
* Check if the UA is Opera.
|
1315
|
-
*
|
1316
|
-
*
|
1317
|
-
* @return float|NaN Version number (if match) or NaN.
|
1318
|
-
*/
|
1319
|
-
opera: function() {
|
1320
|
-
return _populate() || _opera;
|
1321
|
-
},
|
1265
|
+
module.exports = normalizeWheel;
|
1322
1266
|
|
1323
1267
|
|
1324
|
-
|
1325
|
-
* Check if the UA is WebKit.
|
1326
|
-
*
|
1327
|
-
*
|
1328
|
-
* @return float|NaN Version number (if match) or NaN.
|
1329
|
-
*/
|
1330
|
-
webkit: function() {
|
1331
|
-
return _populate() || _webkit;
|
1332
|
-
},
|
1268
|
+
/***/ }),
|
1333
1269
|
|
1334
|
-
|
1335
|
-
|
1336
|
-
* WILL BE REMOVED VERY SOON. Use UserAgent_DEPRECATED.webkit
|
1337
|
-
*/
|
1338
|
-
safari: function() {
|
1339
|
-
return UserAgent_DEPRECATED.webkit();
|
1340
|
-
},
|
1270
|
+
/***/ 563:
|
1271
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
1341
1272
|
|
1342
|
-
|
1343
|
-
|
1344
|
-
|
1345
|
-
*
|
1346
|
-
* @return float|NaN Version number (if match) or NaN.
|
1347
|
-
*/
|
1348
|
-
chrome : function() {
|
1349
|
-
return _populate() || _chrome;
|
1350
|
-
},
|
1273
|
+
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1274
|
+
var y = x => () => x
|
1275
|
+
module.exports = x({ ["$bkPopover"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__.$bkPopover, ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__["default"] });
|
1351
1276
|
|
1277
|
+
/***/ }),
|
1352
1278
|
|
1353
|
-
|
1354
|
-
|
1355
|
-
*
|
1356
|
-
* @return bool `true' if the user's OS is Windows.
|
1357
|
-
*/
|
1358
|
-
windows: function() {
|
1359
|
-
return _populate() || _windows;
|
1360
|
-
},
|
1279
|
+
/***/ 9253:
|
1280
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
1361
1281
|
|
1282
|
+
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1283
|
+
var y = x => () => x
|
1284
|
+
module.exports = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["arrayEqual"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.arrayEqual, ["bkZIndexManager"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager, ["capitalize"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.capitalize, ["debounce"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.debounce, ["resolveClassName"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.resolveClassName, ["withInstallProps"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstallProps });
|
1362
1285
|
|
1363
|
-
|
1364
|
-
* Check if the user is running Mac OS X.
|
1365
|
-
*
|
1366
|
-
* @return float|bool Returns a float if a version number is detected,
|
1367
|
-
* otherwise true/false.
|
1368
|
-
*/
|
1369
|
-
osx: function() {
|
1370
|
-
return _populate() || _osx;
|
1371
|
-
},
|
1286
|
+
/***/ }),
|
1372
1287
|
|
1373
|
-
|
1374
|
-
|
1375
|
-
*
|
1376
|
-
* @return bool `true' if the user's OS is some flavor of Linux.
|
1377
|
-
*/
|
1378
|
-
linux: function() {
|
1379
|
-
return _populate() || _linux;
|
1380
|
-
},
|
1288
|
+
/***/ 6609:
|
1289
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
1381
1290
|
|
1382
|
-
|
1383
|
-
|
1384
|
-
|
1385
|
-
* @return bool `true' if the user is running some flavor of the
|
1386
|
-
* iPhone OS.
|
1387
|
-
*/
|
1388
|
-
iphone: function() {
|
1389
|
-
return _populate() || _iphone;
|
1390
|
-
},
|
1291
|
+
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1292
|
+
var y = x => () => x
|
1293
|
+
module.exports = 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, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["render"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.render, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["toRefs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRefs, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
|
1391
1294
|
|
1392
|
-
|
1393
|
-
return _populate() || (_iphone || _ipad || _android || _mobile);
|
1394
|
-
},
|
1295
|
+
/***/ }),
|
1395
1296
|
|
1396
|
-
|
1397
|
-
|
1398
|
-
return _populate() || _native;
|
1399
|
-
},
|
1297
|
+
/***/ 926:
|
1298
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
1400
1299
|
|
1401
|
-
|
1402
|
-
|
1403
|
-
|
1300
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1301
|
+
/* harmony export */ "default": () => (/* binding */ _arrayLikeToArray)
|
1302
|
+
/* harmony export */ });
|
1303
|
+
function _arrayLikeToArray(arr, len) {
|
1304
|
+
if (len == null || len > arr.length) len = arr.length;
|
1305
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
1306
|
+
return arr2;
|
1307
|
+
}
|
1404
1308
|
|
1405
|
-
|
1406
|
-
return _populate() || _ipad;
|
1407
|
-
}
|
1408
|
-
};
|
1309
|
+
/***/ }),
|
1409
1310
|
|
1410
|
-
|
1311
|
+
/***/ 74:
|
1312
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
1313
|
+
|
1314
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1315
|
+
/* harmony export */ "default": () => (/* binding */ _arrayWithoutHoles)
|
1316
|
+
/* harmony export */ });
|
1317
|
+
/* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(926);
|
1411
1318
|
|
1319
|
+
function _arrayWithoutHoles(arr) {
|
1320
|
+
if (Array.isArray(arr)) return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(arr);
|
1321
|
+
}
|
1412
1322
|
|
1413
1323
|
/***/ }),
|
1414
1324
|
|
1415
|
-
/***/
|
1325
|
+
/***/ 6666:
|
1416
1326
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
1417
1327
|
|
1418
1328
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1419
|
-
/* harmony export */ "default": () => (/* binding */
|
1329
|
+
/* harmony export */ "default": () => (/* binding */ _defineProperty)
|
1420
1330
|
/* harmony export */ });
|
1421
|
-
|
1422
|
-
"@babel/helpers - typeof";
|
1331
|
+
/* harmony import */ var _toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3795);
|
1423
1332
|
|
1424
|
-
|
1425
|
-
|
1426
|
-
|
1427
|
-
|
1428
|
-
|
1333
|
+
function _defineProperty(obj, key, value) {
|
1334
|
+
key = (0,_toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__["default"])(key);
|
1335
|
+
if (key in obj) {
|
1336
|
+
Object.defineProperty(obj, key, {
|
1337
|
+
value: value,
|
1338
|
+
enumerable: true,
|
1339
|
+
configurable: true,
|
1340
|
+
writable: true
|
1341
|
+
});
|
1342
|
+
} else {
|
1343
|
+
obj[key] = value;
|
1344
|
+
}
|
1345
|
+
return obj;
|
1429
1346
|
}
|
1430
1347
|
|
1431
1348
|
/***/ }),
|
1432
1349
|
|
1433
|
-
/***/
|
1350
|
+
/***/ 1079:
|
1434
1351
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
1435
1352
|
|
1436
1353
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1437
|
-
/* harmony export */ "default": () => (/* binding */
|
1354
|
+
/* harmony export */ "default": () => (/* binding */ _iterableToArray)
|
1438
1355
|
/* harmony export */ });
|
1439
|
-
|
1356
|
+
function _iterableToArray(iter) {
|
1357
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
1358
|
+
}
|
1440
1359
|
|
1441
|
-
|
1442
|
-
|
1443
|
-
|
1444
|
-
|
1445
|
-
|
1446
|
-
|
1447
|
-
|
1360
|
+
/***/ }),
|
1361
|
+
|
1362
|
+
/***/ 6098:
|
1363
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
1364
|
+
|
1365
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1366
|
+
/* harmony export */ "default": () => (/* binding */ _nonIterableSpread)
|
1367
|
+
/* harmony export */ });
|
1368
|
+
function _nonIterableSpread() {
|
1369
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
1448
1370
|
}
|
1449
1371
|
|
1450
1372
|
/***/ }),
|
1451
1373
|
|
1452
|
-
/***/
|
1453
|
-
/***/ ((
|
1374
|
+
/***/ 7930:
|
1375
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
1376
|
+
|
1377
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1378
|
+
/* harmony export */ "default": () => (/* binding */ _toConsumableArray)
|
1379
|
+
/* harmony export */ });
|
1380
|
+
/* harmony import */ var _arrayWithoutHoles_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(74);
|
1381
|
+
/* harmony import */ var _iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1079);
|
1382
|
+
/* harmony import */ var _unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9147);
|
1383
|
+
/* harmony import */ var _nonIterableSpread_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6098);
|
1384
|
+
|
1385
|
+
|
1454
1386
|
|
1455
|
-
module.exports = __webpack_require__(5022);
|
1456
1387
|
|
1388
|
+
function _toConsumableArray(arr) {
|
1389
|
+
return (0,_arrayWithoutHoles_js__WEBPACK_IMPORTED_MODULE_0__["default"])(arr) || (0,_iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__["default"])(arr) || (0,_unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__["default"])(arr) || (0,_nonIterableSpread_js__WEBPACK_IMPORTED_MODULE_3__["default"])();
|
1390
|
+
}
|
1457
1391
|
|
1458
1392
|
/***/ }),
|
1459
1393
|
|
1460
|
-
/***/
|
1394
|
+
/***/ 9745:
|
1461
1395
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
1462
1396
|
|
1463
1397
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1464
1398
|
/* harmony export */ "default": () => (/* binding */ toPrimitive)
|
1465
1399
|
/* harmony export */ });
|
1466
|
-
/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
1400
|
+
/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6522);
|
1467
1401
|
|
1468
1402
|
function toPrimitive(t, r) {
|
1469
1403
|
if ("object" != (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(t) || !t) return t;
|
@@ -1476,6 +1410,60 @@ function toPrimitive(t, r) {
|
|
1476
1410
|
return ("string" === r ? String : Number)(t);
|
1477
1411
|
}
|
1478
1412
|
|
1413
|
+
/***/ }),
|
1414
|
+
|
1415
|
+
/***/ 3795:
|
1416
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
1417
|
+
|
1418
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1419
|
+
/* harmony export */ "default": () => (/* binding */ toPropertyKey)
|
1420
|
+
/* harmony export */ });
|
1421
|
+
/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6522);
|
1422
|
+
/* harmony import */ var _toPrimitive_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9745);
|
1423
|
+
|
1424
|
+
|
1425
|
+
function toPropertyKey(t) {
|
1426
|
+
var i = (0,_toPrimitive_js__WEBPACK_IMPORTED_MODULE_0__["default"])(t, "string");
|
1427
|
+
return "symbol" == (0,_typeof_js__WEBPACK_IMPORTED_MODULE_1__["default"])(i) ? i : String(i);
|
1428
|
+
}
|
1429
|
+
|
1430
|
+
/***/ }),
|
1431
|
+
|
1432
|
+
/***/ 6522:
|
1433
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
1434
|
+
|
1435
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1436
|
+
/* harmony export */ "default": () => (/* binding */ _typeof)
|
1437
|
+
/* harmony export */ });
|
1438
|
+
function _typeof(o) {
|
1439
|
+
"@babel/helpers - typeof";
|
1440
|
+
|
1441
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
1442
|
+
return typeof o;
|
1443
|
+
} : function (o) {
|
1444
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
1445
|
+
}, _typeof(o);
|
1446
|
+
}
|
1447
|
+
|
1448
|
+
/***/ }),
|
1449
|
+
|
1450
|
+
/***/ 9147:
|
1451
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
1452
|
+
|
1453
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1454
|
+
/* harmony export */ "default": () => (/* binding */ _unsupportedIterableToArray)
|
1455
|
+
/* harmony export */ });
|
1456
|
+
/* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(926);
|
1457
|
+
|
1458
|
+
function _unsupportedIterableToArray(o, minLen) {
|
1459
|
+
if (!o) return;
|
1460
|
+
if (typeof o === "string") return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(o, minLen);
|
1461
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
1462
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
1463
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
1464
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(o, minLen);
|
1465
|
+
}
|
1466
|
+
|
1479
1467
|
/***/ })
|
1480
1468
|
|
1481
1469
|
/******/ });
|
@@ -1536,6 +1524,8 @@ function toPrimitive(t, r) {
|
|
1536
1524
|
/******/
|
1537
1525
|
/************************************************************************/
|
1538
1526
|
var __webpack_exports__ = {};
|
1527
|
+
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
1528
|
+
(() => {
|
1539
1529
|
|
1540
1530
|
// EXPORTS
|
1541
1531
|
__webpack_require__.d(__webpack_exports__, {
|
@@ -1545,74 +1535,54 @@ __webpack_require__.d(__webpack_exports__, {
|
|
1545
1535
|
});
|
1546
1536
|
|
1547
1537
|
// EXTERNAL MODULE: external "../shared"
|
1548
|
-
var shared_ = __webpack_require__(
|
1538
|
+
var shared_ = __webpack_require__(9253);
|
1549
1539
|
// EXTERNAL MODULE: external "vue"
|
1550
|
-
var external_vue_ = __webpack_require__(
|
1551
|
-
;// external "vue-types"
|
1552
|
-
var x = (y)
|
1553
|
-
|
1554
|
-
}
|
1555
|
-
|
1556
|
-
|
1557
|
-
|
1558
|
-
|
1559
|
-
var x = {}; __webpack_require__.d(x, y); return x
|
1560
|
-
}
|
1561
|
-
var config_provider_y = (x) => (() => (x))
|
1562
|
-
const config_provider_namespaceObject = config_provider_x({ ["useLocale"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.useLocale), ["usePrefix"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix) });
|
1540
|
+
var external_vue_ = __webpack_require__(6609);
|
1541
|
+
;// CONCATENATED MODULE: external "vue-types"
|
1542
|
+
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1543
|
+
var y = x => () => x
|
1544
|
+
const external_vue_types_namespaceObject = x({ ["array"]: () => __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__.array, ["object"]: () => __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__.object });
|
1545
|
+
;// CONCATENATED MODULE: external "../config-provider"
|
1546
|
+
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1547
|
+
var config_provider_y = x => () => x
|
1548
|
+
const config_provider_namespaceObject = config_provider_x({ ["useLocale"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.useLocale, ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
|
1563
1549
|
// EXTERNAL MODULE: ../../packages/directives/src/index.ts + 7 modules
|
1564
|
-
var src = __webpack_require__(
|
1565
|
-
;// external "../icon"
|
1566
|
-
var icon_x = (y)
|
1567
|
-
|
1568
|
-
}
|
1569
|
-
var icon_y = (x) => (() => (x))
|
1570
|
-
const icon_namespaceObject = icon_x({ ["AngleRight"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.AngleRight), ["AngleUp"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.AngleUp), ["Close"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Close), ["Error"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Error), ["Spinner"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Spinner) });
|
1550
|
+
var src = __webpack_require__(668);
|
1551
|
+
;// CONCATENATED MODULE: external "../icon"
|
1552
|
+
var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1553
|
+
var icon_y = x => () => x
|
1554
|
+
const icon_namespaceObject = icon_x({ ["AngleRight"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.AngleRight, ["AngleUp"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.AngleUp, ["Close"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Close, ["Error"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Error, ["Spinner"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Spinner });
|
1571
1555
|
// EXTERNAL MODULE: external "../popover"
|
1572
|
-
var popover_ = __webpack_require__(
|
1573
|
-
;// external "../popover/popover.less"
|
1574
|
-
var popover_less_x = (y)
|
1575
|
-
|
1576
|
-
}
|
1577
|
-
var popover_less_y = (x) => (() => (x))
|
1556
|
+
var popover_ = __webpack_require__(563);
|
1557
|
+
;// CONCATENATED MODULE: external "../popover/popover.less"
|
1558
|
+
var popover_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1559
|
+
var popover_less_y = x => () => x
|
1578
1560
|
const popover_less_namespaceObject = popover_less_x({ });
|
1579
|
-
;// external "../select"
|
1580
|
-
var select_x = (y)
|
1581
|
-
|
1582
|
-
}
|
1583
|
-
|
1584
|
-
|
1585
|
-
|
1586
|
-
|
1587
|
-
|
1588
|
-
}
|
1589
|
-
var
|
1590
|
-
const tag_namespaceObject = tag_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_tag_d74826be__["default"]) });
|
1591
|
-
;// external "../tag/tag.less"
|
1592
|
-
var tag_less_x = (y) => {
|
1593
|
-
var x = {}; __webpack_require__.d(x, y); return x
|
1594
|
-
}
|
1595
|
-
var tag_less_y = (x) => (() => (x))
|
1561
|
+
;// CONCATENATED MODULE: external "../select"
|
1562
|
+
var select_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1563
|
+
var select_y = x => () => x
|
1564
|
+
const select_namespaceObject = select_x({ ["useHover"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_select_1a0d1ad7__.useHover });
|
1565
|
+
;// CONCATENATED MODULE: external "../tag"
|
1566
|
+
var tag_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1567
|
+
var tag_y = x => () => x
|
1568
|
+
const tag_namespaceObject = tag_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_tag_d74826be__["default"] });
|
1569
|
+
;// CONCATENATED MODULE: external "../tag/tag.less"
|
1570
|
+
var tag_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1571
|
+
var tag_less_y = x => () => x
|
1596
1572
|
const tag_less_namespaceObject = tag_less_x({ });
|
1597
|
-
;// external "../tag-input"
|
1598
|
-
var tag_input_x = (y)
|
1599
|
-
|
1600
|
-
}
|
1601
|
-
|
1602
|
-
|
1603
|
-
|
1604
|
-
|
1605
|
-
|
1606
|
-
}
|
1607
|
-
var
|
1608
|
-
const checkbox_namespaceObject = checkbox_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_checkbox_13b1cb4a__["default"]) });
|
1609
|
-
;// external "../checkbox/checkbox.less"
|
1610
|
-
var checkbox_less_x = (y) => {
|
1611
|
-
var x = {}; __webpack_require__.d(x, y); return x
|
1612
|
-
}
|
1613
|
-
var checkbox_less_y = (x) => (() => (x))
|
1573
|
+
;// CONCATENATED MODULE: external "../tag-input"
|
1574
|
+
var tag_input_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1575
|
+
var tag_input_y = x => () => x
|
1576
|
+
const tag_input_namespaceObject = tag_input_x({ ["useTagsOverflow"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_tag_input_bee9f515__.useTagsOverflow });
|
1577
|
+
;// CONCATENATED MODULE: external "../checkbox"
|
1578
|
+
var checkbox_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1579
|
+
var checkbox_y = x => () => x
|
1580
|
+
const checkbox_namespaceObject = checkbox_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_checkbox_13b1cb4a__["default"] });
|
1581
|
+
;// CONCATENATED MODULE: external "../checkbox/checkbox.less"
|
1582
|
+
var checkbox_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1583
|
+
var checkbox_less_y = x => () => x
|
1614
1584
|
const checkbox_less_namespaceObject = checkbox_less_x({ });
|
1615
|
-
;// ../../packages/cascader/src/cascader-panel.tsx
|
1585
|
+
;// CONCATENATED MODULE: ../../packages/cascader/src/cascader-panel.tsx
|
1616
1586
|
|
1617
1587
|
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; } } }; }
|
1618
1588
|
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); }
|
@@ -1707,31 +1677,63 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
1707
1677
|
* @param value - 节点ID数组
|
1708
1678
|
*/
|
1709
1679
|
var expandByNodeList = function expandByNodeList(value) {
|
1710
|
-
|
1711
|
-
|
1712
|
-
|
1713
|
-
|
1714
|
-
|
1715
|
-
|
1716
|
-
|
1717
|
-
|
1718
|
-
|
1719
|
-
|
1680
|
+
// 判断是否为初始加载
|
1681
|
+
var isInitialLoad = checkValue.value.length === 0;
|
1682
|
+
// 如果是初始加载或单选情况,按原来的逻辑处理
|
1683
|
+
if (isInitialLoad || !store.config.multiple) {
|
1684
|
+
var targetList = [];
|
1685
|
+
// 处理多选情况
|
1686
|
+
if (store.config.multiple) {
|
1687
|
+
var _iterator = _createForOfIteratorHelper(value),
|
1688
|
+
_step;
|
1689
|
+
try {
|
1690
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
1691
|
+
var subArray = _step.value;
|
1692
|
+
if (subArray.length > targetList.length) {
|
1693
|
+
targetList = subArray;
|
1694
|
+
}
|
1720
1695
|
}
|
1696
|
+
} catch (err) {
|
1697
|
+
_iterator.e(err);
|
1698
|
+
} finally {
|
1699
|
+
_iterator.f();
|
1721
1700
|
}
|
1722
|
-
}
|
1723
|
-
|
1724
|
-
|
1725
|
-
_iterator.f();
|
1701
|
+
} else {
|
1702
|
+
// 单选情况
|
1703
|
+
targetList = value;
|
1726
1704
|
}
|
1727
|
-
|
1728
|
-
targetList
|
1705
|
+
// 执行展开操作
|
1706
|
+
targetList.forEach(function (id) {
|
1707
|
+
var node = store.getNodeById(id);
|
1708
|
+
if (node) {
|
1709
|
+
// 只展开,不需要重复触发
|
1710
|
+
var expandNode = function expandNode(node) {
|
1711
|
+
var _node$children;
|
1712
|
+
if (!node || node !== null && node !== void 0 && node.isDisabled) return;
|
1713
|
+
var level = node.level;
|
1714
|
+
// 确保面板只更新到当前节点层级
|
1715
|
+
menus.list = menus.list.slice(0, level);
|
1716
|
+
activePath.value = activePath.value.slice(0, level - 1);
|
1717
|
+
// 如果节点有子节点,直接添加到面板
|
1718
|
+
if ((_node$children = node.children) !== null && _node$children !== void 0 && _node$children.length) {
|
1719
|
+
if (menus.list.length === level) {
|
1720
|
+
menus.list.push(node.children);
|
1721
|
+
activePath.value.push(node);
|
1722
|
+
}
|
1723
|
+
}
|
1724
|
+
};
|
1725
|
+
// 展开节点的所有父节点
|
1726
|
+
var expandParents = function expandParents(node) {
|
1727
|
+
if (node.parent) {
|
1728
|
+
expandParents(node.parent);
|
1729
|
+
}
|
1730
|
+
expandNode(node);
|
1731
|
+
};
|
1732
|
+
expandParents(node);
|
1733
|
+
}
|
1734
|
+
});
|
1729
1735
|
}
|
1730
|
-
//
|
1731
|
-
targetList.forEach(function (id) {
|
1732
|
-
var node = store.getNodeById(id);
|
1733
|
-
nodeExpandHandler(node);
|
1734
|
-
});
|
1736
|
+
// 用户交互过程中的选择由nodeExpandHandler单独处理,这里不干预
|
1735
1737
|
};
|
1736
1738
|
/** 节点选中回调
|
1737
1739
|
* 根据单选、多选配置checkValue
|
@@ -1754,14 +1756,14 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
1754
1756
|
};
|
1755
1757
|
/** node点击展开回调 */
|
1756
1758
|
var nodeExpandHandler = function nodeExpandHandler(node) {
|
1757
|
-
var _node$
|
1759
|
+
var _node$children2;
|
1758
1760
|
if (!node || node !== null && node !== void 0 && node.isDisabled) return;
|
1759
1761
|
menus.list = menus.list.slice(0, node.level);
|
1760
1762
|
activePath.value = activePath.value.slice(0, node.level - 1);
|
1761
1763
|
/** 如果所点击的node具有children元素,则直接展开
|
1762
1764
|
* 否则判断是否开启了远程加载,进行远程加载列表
|
1763
1765
|
*/
|
1764
|
-
if ((_node$
|
1766
|
+
if ((_node$children2 = node.children) !== null && _node$children2 !== void 0 && _node$children2.length) {
|
1765
1767
|
menus.list.push(node.children);
|
1766
1768
|
activePath.value.push(node);
|
1767
1769
|
return;
|
@@ -1979,15 +1981,15 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
1979
1981
|
})]);
|
1980
1982
|
}
|
1981
1983
|
}));
|
1982
|
-
;// ../../node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
1984
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
1983
1985
|
function _classCallCheck(instance, Constructor) {
|
1984
1986
|
if (!(instance instanceof Constructor)) {
|
1985
1987
|
throw new TypeError("Cannot call a class as a function");
|
1986
1988
|
}
|
1987
1989
|
}
|
1988
1990
|
// EXTERNAL MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
1989
|
-
var toPropertyKey = __webpack_require__(
|
1990
|
-
;// ../../node_modules/@babel/runtime/helpers/esm/createClass.js
|
1991
|
+
var toPropertyKey = __webpack_require__(3795);
|
1992
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/createClass.js
|
1991
1993
|
|
1992
1994
|
function _defineProperties(target, props) {
|
1993
1995
|
for (var i = 0; i < props.length; i++) {
|
@@ -2006,7 +2008,7 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
2006
2008
|
});
|
2007
2009
|
return Constructor;
|
2008
2010
|
}
|
2009
|
-
;// ../../packages/cascader/src/node.ts
|
2011
|
+
;// CONCATENATED MODULE: ../../packages/cascader/src/node.ts
|
2010
2012
|
|
2011
2013
|
|
2012
2014
|
/*
|
@@ -2203,7 +2205,7 @@ var Node = /*#__PURE__*/function () {
|
|
2203
2205
|
return Node;
|
2204
2206
|
}();
|
2205
2207
|
/* harmony default export */ const src_node = (Node);
|
2206
|
-
;// ../../packages/cascader/src/store.ts
|
2208
|
+
;// CONCATENATED MODULE: ../../packages/cascader/src/store.ts
|
2207
2209
|
|
2208
2210
|
|
2209
2211
|
/*
|
@@ -2357,7 +2359,7 @@ var Store = /*#__PURE__*/function () {
|
|
2357
2359
|
return Store;
|
2358
2360
|
}();
|
2359
2361
|
/* harmony default export */ const src_store = (Store);
|
2360
|
-
;// ../../packages/cascader/src/cascader.tsx
|
2362
|
+
;// CONCATENATED MODULE: ../../packages/cascader/src/cascader.tsx
|
2361
2363
|
|
2362
2364
|
/*
|
2363
2365
|
* Tencent is pleased to support the open source community by making
|
@@ -2711,7 +2713,7 @@ var Store = /*#__PURE__*/function () {
|
|
2711
2713
|
var _this = this;
|
2712
2714
|
// 定义suffixIcon函数,用于根据不同情况渲染后缀图标
|
2713
2715
|
var suffixIcon = function suffixIcon() {
|
2714
|
-
if (_this.clearable && _this.isHover && !_this.disabled) {
|
2716
|
+
if (_this.clearable && _this.isHover && !_this.disabled && _this.modelValue.length > 0) {
|
2715
2717
|
// 当可清空、鼠标悬浮且未禁用时,渲染清空图标
|
2716
2718
|
return (0,external_vue_.createVNode)(icon_namespaceObject.Close, {
|
2717
2719
|
"class": _this.resolveClassName('icon-clear-icon'),
|
@@ -2854,7 +2856,7 @@ var Store = /*#__PURE__*/function () {
|
|
2854
2856
|
}, [suffixIcon(), popoverRender()])]);
|
2855
2857
|
}
|
2856
2858
|
}));
|
2857
|
-
;// ../../packages/cascader/src/index.ts
|
2859
|
+
;// CONCATENATED MODULE: ../../packages/cascader/src/index.ts
|
2858
2860
|
/*
|
2859
2861
|
* Tencent is pleased to support the open source community by making
|
2860
2862
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -2888,6 +2890,8 @@ var BkCascader = (0,shared_.withInstallProps)(cascader, {
|
|
2888
2890
|
});
|
2889
2891
|
/* harmony default export */ const cascader_src = (BkCascader);
|
2890
2892
|
|
2893
|
+
})();
|
2894
|
+
|
2891
2895
|
var __webpack_exports__BkCascader = __webpack_exports__.BkCascader;
|
2892
2896
|
var __webpack_exports__BkCascaderPanel = __webpack_exports__.BkCascaderPanel;
|
2893
2897
|
var __webpack_exports__default = __webpack_exports__["default"];
|