bkui-vue 2.0.2-beta.8 → 2.0.2-beta.80
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/License.txt +1 -2
- package/dist/cli.css +1 -0
- package/dist/index.cjs.js +166 -138
- package/dist/index.esm.js +24292 -18450
- package/dist/index.umd.js +166 -138
- package/dist/locale/en.esm.js.map +1 -1
- package/dist/locale/en.umd.js.map +1 -1
- package/dist/locale/ja-jp.esm.js +2 -0
- package/dist/locale/ja-jp.esm.js.map +1 -0
- package/dist/locale/ja-jp.umd.js +2 -0
- package/dist/locale/ja-jp.umd.js.map +1 -0
- package/dist/locale/zh-cn.esm.js.map +1 -1
- package/dist/locale/zh-cn.umd.js.map +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.variable.css +2 -1
- package/lib/affix/index.js +24 -32
- package/lib/alert/alert.variable.css +2 -1
- package/lib/alert/index.js +38 -35
- package/lib/animate-number/index.js +12 -16
- package/lib/backtop/backtop.variable.css +2 -1
- package/lib/backtop/index.js +24 -34
- package/lib/badge/badge.variable.css +2 -1
- package/lib/badge/index.js +20 -26
- package/lib/breadcrumb/breadcrumb.variable.css +2 -1
- package/lib/breadcrumb/index.js +26 -34
- package/lib/button/button.d.ts +1 -1
- package/lib/button/button.variable.css +2 -1
- package/lib/button/index.js +29 -39
- package/lib/card/card.variable.css +2 -1
- package/lib/card/index.js +35 -49
- package/lib/cascader/cascader.css +26 -24
- package/lib/cascader/cascader.d.ts +315 -0
- package/lib/cascader/cascader.less +78 -76
- package/lib/cascader/cascader.variable.css +28 -25
- package/lib/cascader/index.d.ts +618 -0
- package/lib/cascader/index.js +749 -717
- package/lib/checkbox/checkbox.variable.css +2 -1
- package/lib/checkbox/index.js +39 -49
- package/lib/code-diff/code-diff.variable.css +2 -1
- package/lib/code-diff/index.js +81 -85
- package/lib/collapse/collapse.variable.css +2 -1
- package/lib/collapse/index.js +36 -42
- package/lib/collapse-transition/collapse-transition.variable.css +2 -1
- package/lib/collapse-transition/index.js +16 -22
- package/lib/color-picker/color-picker.variable.css +2 -1
- package/lib/color-picker/index.js +682 -689
- package/lib/components.js +1 -1
- package/lib/config-provider/config-provider.variable.css +2 -1
- package/lib/config-provider/index.d.ts +1 -1
- package/lib/config-provider/index.js +32 -40
- package/lib/container/container.variable.css +2 -1
- package/lib/container/index.js +26 -32
- package/lib/date-picker/date-picker.d.ts +2 -1
- package/lib/date-picker/date-picker.variable.css +2 -1
- package/lib/date-picker/index.d.ts +6 -2
- package/lib/date-picker/index.js +717 -736
- package/lib/date-picker/panel/date-range.d.ts +2 -1
- package/lib/date-picker/panel/time.d.ts +1 -1
- package/lib/date-picker/utils.d.ts +5 -17
- package/lib/dialog/dialog.css +20 -1
- package/lib/dialog/dialog.variable.css +22 -2
- package/lib/dialog/index.js +100 -137
- package/lib/directives/index.js +509 -518
- package/lib/dist.index.js +1 -1
- package/lib/divider/divider.variable.css +2 -1
- package/lib/divider/index.js +18 -24
- package/lib/dropdown/dropdown.d.ts +1 -0
- package/lib/dropdown/dropdown.variable.css +2 -1
- package/lib/dropdown/index.d.ts +3 -0
- package/lib/dropdown/index.js +45 -52
- package/lib/exception/exception.variable.css +2 -1
- package/lib/exception/index.js +51 -57
- package/lib/fixed-navbar/fixed-navbar.variable.css +2 -1
- package/lib/fixed-navbar/index.js +16 -22
- package/lib/form/form-item.d.ts +19 -0
- package/lib/form/form.css +16 -4
- package/lib/form/form.less +24 -6
- package/lib/form/form.variable.css +18 -5
- package/lib/form/index.d.ts +13 -0
- package/lib/form/index.js +677 -708
- package/lib/hooks.js +1 -1
- package/lib/icon/angle-double-down-line.js +13 -15
- package/lib/icon/angle-double-left-line.js +13 -15
- package/lib/icon/angle-double-left.js +13 -15
- package/lib/icon/angle-double-right-line.js +13 -15
- package/lib/icon/angle-double-right.js +13 -15
- package/lib/icon/angle-double-up-line.js +13 -15
- package/lib/icon/angle-down-fill.js +13 -15
- package/lib/icon/angle-down-line.js +13 -15
- package/lib/icon/angle-down.js +13 -15
- package/lib/icon/angle-left.js +13 -15
- package/lib/icon/angle-right.js +13 -15
- package/lib/icon/angle-up-fill.js +13 -15
- package/lib/icon/angle-up.js +13 -15
- package/lib/icon/archive-fill.js +13 -15
- package/lib/icon/arrows-left.js +13 -15
- package/lib/icon/arrows-right.js +13 -15
- package/lib/icon/assistant.js +13 -15
- package/lib/icon/audio-fill.js +13 -15
- package/lib/icon/bk.js +13 -15
- package/lib/icon/circle.js +13 -15
- package/lib/icon/close-line.js +13 -15
- package/lib/icon/close.js +13 -15
- package/lib/icon/code.js +13 -15
- package/lib/icon/cog-shape.js +13 -15
- package/lib/icon/collapse-left.js +13 -15
- package/lib/icon/copy-shape.js +13 -15
- package/lib/icon/copy.js +13 -15
- package/lib/icon/data-shape.js +13 -15
- package/lib/icon/del.js +13 -15
- package/lib/icon/doc-fill.js +13 -15
- package/lib/icon/done.js +13 -15
- package/lib/icon/down-shape.js +13 -15
- package/lib/icon/down-small.js +13 -15
- package/lib/icon/edit-line.js +13 -15
- package/lib/icon/ellipsis.js +13 -15
- package/lib/icon/enlarge-line.js +13 -15
- package/lib/icon/error.js +13 -15
- package/lib/icon/excel-fill.js +13 -15
- package/lib/icon/exclamation-circle-shape.js +13 -15
- package/lib/icon/eye.js +13 -15
- package/lib/icon/filliscreen-line.js +13 -15
- package/lib/icon/fix-line.js +13 -15
- package/lib/icon/fix-shape.js +13 -15
- package/lib/icon/folder-open.js +13 -15
- package/lib/icon/folder-shape-open.js +13 -15
- package/lib/icon/folder-shape.js +13 -15
- package/lib/icon/folder.js +13 -15
- package/lib/icon/funnel.js +13 -15
- package/lib/icon/grag-fill.js +13 -15
- package/lib/icon/help-document-fill.js +13 -15
- package/lib/icon/help-fill.js +13 -15
- package/lib/icon/help.js +13 -15
- package/lib/icon/image-fill.js +13 -15
- package/lib/icon/img-error.js +13 -15
- package/lib/icon/img-placehoulder.js +13 -15
- package/lib/icon/index.js +1 -1
- package/lib/icon/info-line.js +13 -15
- package/lib/icon/info.js +13 -15
- package/lib/icon/left-shape.js +13 -15
- package/lib/icon/left-turn-line.js +13 -15
- package/lib/icon/loading.js +13 -15
- package/lib/icon/narrow-line.js +13 -15
- package/lib/icon/original.js +13 -15
- package/lib/icon/pdf-fill.js +13 -15
- package/lib/icon/play-shape.js +13 -15
- package/lib/icon/plus.js +13 -15
- package/lib/icon/ppt-fill.js +13 -15
- package/lib/icon/qq.js +13 -15
- package/lib/icon/right-shape.js +13 -15
- package/lib/icon/right-turn-line.js +13 -15
- package/lib/icon/search.js +13 -15
- package/lib/icon/share.js +13 -15
- package/lib/icon/spinner.js +13 -15
- package/lib/icon/success.js +13 -15
- package/lib/icon/switcher-loading.js +13 -15
- package/lib/icon/text-all.js +13 -15
- package/lib/icon/text-file.js +13 -15
- package/lib/icon/text-fill.js +13 -15
- package/lib/icon/transfer.js +13 -15
- package/lib/icon/tree-application-shape.js +13 -15
- package/lib/icon/unfull-screen.js +13 -15
- package/lib/icon/unvisible.js +13 -15
- package/lib/icon/up-shape.js +13 -15
- package/lib/icon/upload.js +13 -15
- package/lib/icon/video-fill.js +13 -15
- package/lib/icon/warn.js +13 -15
- package/lib/icon/weixin-pro.js +13 -15
- package/lib/icon/weixin.js +13 -15
- package/lib/image/image-viewer.variable.css +2 -1
- package/lib/image/image.variable.css +2 -1
- package/lib/image/index.js +335 -352
- package/lib/index.js +1 -1
- package/lib/info-box/index.js +109 -108
- package/lib/info-box/info-box.css +20 -1
- package/lib/info-box/info-box.d.ts +1 -0
- package/lib/info-box/info-box.less +28 -2
- package/lib/info-box/info-box.variable.css +23 -3
- package/lib/input/index.d.ts +39 -20
- package/lib/input/index.js +448 -444
- package/lib/input/input.css +6 -0
- package/lib/input/input.d.ts +33 -19
- package/lib/input/input.less +7 -0
- package/lib/input/input.variable.css +8 -1
- package/lib/link/index.js +20 -28
- package/lib/link/link.variable.css +2 -1
- package/lib/loading/index.js +34 -32
- package/lib/loading/loading.variable.css +2 -1
- package/lib/locale/index.d.ts +1 -0
- package/lib/locale/index.js +175 -7
- package/lib/locale/lang/ja-jp.d.ts +3 -0
- package/lib/menu/index.js +44 -49
- package/lib/menu/menu.css +5 -4
- package/lib/menu/menu.less +1 -0
- package/lib/menu/menu.variable.css +7 -5
- package/lib/menu/submenu.variable.css +2 -1
- package/lib/message/index.js +102 -74
- package/lib/message/message.variable.css +2 -1
- package/lib/message/messageConstructor.d.ts +1 -1
- package/lib/modal/index.js +43 -45
- package/lib/modal/modal.css +20 -1
- package/lib/modal/modal.variable.css +22 -2
- package/lib/navigation/index.js +22 -30
- package/lib/navigation/navigation.css +29 -29
- package/lib/navigation/navigation.less +29 -29
- package/lib/navigation/navigation.variable.css +31 -30
- package/lib/notify/index.js +69 -60
- package/lib/notify/notify.variable.css +2 -1
- package/lib/overflow-title/components/overflow-title.d.ts +6 -2
- package/lib/overflow-title/index.d.ts +12 -4
- package/lib/overflow-title/index.js +32 -44
- package/lib/overflow-title/props.d.ts +3 -1
- package/lib/pagination/index.js +68 -76
- package/lib/pagination/pagination.css +1 -0
- package/lib/pagination/pagination.less +1 -0
- package/lib/pagination/pagination.variable.css +3 -1
- package/lib/pop-confirm/index.d.ts +592 -0
- package/lib/pop-confirm/index.js +43 -55
- package/lib/pop-confirm/pop-confirm.d.ts +296 -0
- package/lib/pop-confirm/pop-confirm.variable.css +2 -1
- package/lib/pop-confirm/props.d.ts +148 -0
- package/lib/popover/index.d.ts +18 -10
- package/lib/popover/index.js +582 -459
- package/lib/popover/popover.d.ts +8 -4
- package/lib/popover/popover.variable.css +2 -1
- package/lib/popover/props.d.ts +3 -1
- package/lib/popover/use-floating.d.ts +2 -2
- package/lib/popover/use-popover-init.d.ts +2 -2
- package/lib/popover/use-popper-id.d.ts +3 -1
- package/lib/popover2/index.js +12 -16
- package/lib/preset.js +1 -1
- package/lib/process/index.js +76 -80
- package/lib/process/process.d.ts +1 -1
- package/lib/process/process.variable.css +2 -1
- package/lib/progress/index.js +24 -30
- package/lib/progress/progress.variable.css +2 -1
- package/lib/radio/index.js +36 -44
- package/lib/radio/radio.variable.css +2 -1
- package/lib/rate/index.js +22 -28
- package/lib/rate/rate.variable.css +2 -1
- package/lib/resize-layout/index.js +24 -32
- package/lib/resize-layout/resize-layout.css +1 -0
- package/lib/resize-layout/resize-layout.less +1 -0
- package/lib/resize-layout/resize-layout.variable.css +3 -1
- package/lib/scrollbar/css/scrollbar.variable.css +2 -1
- package/lib/scrollbar/index.js +31 -31
- package/lib/search-select/index.d.ts +39 -11
- package/lib/search-select/index.js +576 -547
- package/lib/search-select/input.d.ts +5 -1
- package/lib/search-select/search-select.d.ts +13 -4
- package/lib/search-select/search-select.variable.css +2 -1
- package/lib/search-select/selected.d.ts +10 -2
- package/lib/search-select/utils.d.ts +1 -0
- package/lib/select/common.d.ts +0 -1
- package/lib/select/index.d.ts +55 -11
- package/lib/select/index.js +570 -619
- package/lib/select/optionGroup.d.ts +12 -1
- package/lib/select/select.d.ts +20 -4
- package/lib/select/select.variable.css +2 -1
- package/lib/select/type.d.ts +1 -0
- package/lib/shared/index.d.ts +1 -1
- package/lib/shared/index.js +59 -67
- package/lib/shared/z-index-manager.d.ts +1 -1
- package/lib/sideslider/index.js +86 -94
- package/lib/sideslider/sideslider.variable.css +2 -1
- package/lib/slider/index.d.ts +1 -1
- package/lib/slider/index.js +80 -89
- package/lib/slider/slider-button.d.ts +1 -1
- package/lib/slider/slider.d.ts +1 -1
- package/lib/slider/slider.variable.css +2 -1
- package/lib/steps/index.js +85 -92
- package/lib/steps/steps.css +24 -11
- package/lib/steps/steps.d.ts +1 -1
- package/lib/steps/steps.less +28 -10
- package/lib/steps/steps.variable.css +26 -12
- package/lib/styles/mixins/animate.variable.css +2 -1
- package/lib/styles/mixins/popper.variable.css +2 -1
- package/lib/styles/mixins/scroll.variable.css +2 -1
- package/lib/styles/reset.variable.css +2 -1
- package/lib/styles/themes/themes.less +4 -1
- package/lib/swiper/index.js +20 -26
- package/lib/swiper/swiper.variable.css +2 -1
- package/lib/switcher/index.js +24 -32
- package/lib/switcher/switcher.variable.css +2 -1
- package/lib/tab/index.d.ts +12 -0
- package/lib/tab/index.js +344 -353
- package/lib/tab/props.d.ts +3 -0
- package/lib/tab/tab.d.ts +6 -0
- package/lib/tab/tab.variable.css +2 -1
- package/lib/table/index.js +632 -691
- package/lib/table/plugins/head-filter.variable.css +2 -1
- package/lib/table/plugins/head-sort.variable.css +2 -1
- package/lib/table/plugins/settings.variable.css +2 -1
- package/lib/table/table.css +1 -0
- package/lib/table/table.variable.css +3 -1
- package/lib/table-column/index.js +10 -14
- package/lib/tag/index.js +28 -38
- package/lib/tag/tag.variable.css +2 -1
- package/lib/tag-input/index.d.ts +79 -6
- package/lib/tag-input/index.js +2341 -791
- package/lib/tag-input/tag-input.css +31 -0
- package/lib/tag-input/tag-input.d.ts +35 -3
- package/lib/tag-input/tag-input.less +36 -0
- package/lib/tag-input/tag-input.variable.css +33 -1
- package/lib/tag-input/tag-props.d.ts +13 -1
- package/lib/tag-input/tag-render.d.ts +24 -2
- package/lib/time-picker/index.js +10 -14
- package/lib/time-picker/time-picker.variable.css +2 -1
- package/lib/timeline/index.js +1368 -25
- package/lib/timeline/timeline.d.ts +1 -1
- package/lib/timeline/timeline.variable.css +2 -1
- package/lib/transfer/index.d.ts +1 -24
- package/lib/transfer/index.js +61 -67
- package/lib/transfer/props.d.ts +0 -5
- package/lib/transfer/transfer.css +26 -8
- package/lib/transfer/transfer.d.ts +1 -12
- package/lib/transfer/transfer.less +18 -8
- package/lib/transfer/transfer.variable.css +28 -9
- package/lib/tree/constant.d.ts +2 -0
- package/lib/tree/index.d.ts +71 -11
- package/lib/tree/index.js +17743 -209
- package/lib/tree/props.d.ts +38 -3
- package/lib/tree/tree.css +46 -0
- package/lib/tree/tree.d.ts +33 -5
- package/lib/tree/tree.less +57 -2
- package/lib/tree/tree.variable.css +48 -1
- package/lib/tree/use-array-move.d.ts +6 -0
- package/lib/tree/use-node-action.d.ts +2 -2
- package/lib/tree/use-node-attribute.d.ts +3 -0
- package/lib/upload/index.js +570 -582
- package/lib/upload/upload.variable.css +2 -1
- package/lib/virtual-render/index.js +50 -62
- package/lib/virtual-render/virtual-render.variable.css +2 -1
- package/lib/volar.components.d.ts +2 -1
- package/package.json +13 -2
- package/dist/style.css +0 -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";
|
|
@@ -14,185 +14,12 @@ import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_select_1a0d1ad7__ from "../se
|
|
|
14
14
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_tag_d74826be__ from "../tag";
|
|
15
15
|
import "../tag/tag.less";
|
|
16
16
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_tag_input_bee9f515__ from "../tag-input";
|
|
17
|
+
import * as __WEBPACK_EXTERNAL_MODULE_lodash_merge_cf99375a__ from "lodash/merge";
|
|
17
18
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_checkbox_13b1cb4a__ from "../checkbox";
|
|
18
19
|
import "../checkbox/checkbox.less";
|
|
19
20
|
/******/ var __webpack_modules__ = ({
|
|
20
21
|
|
|
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:
|
|
22
|
+
/***/ 668:
|
|
196
23
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
197
24
|
|
|
198
25
|
|
|
@@ -203,7 +30,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
203
30
|
|
|
204
31
|
// UNUSED EXPORTS: bkEllipsis, bkEllipsisInstance, bkLoading, clickoutside, mousewheel, overflowTitle
|
|
205
32
|
|
|
206
|
-
;// ../../packages/directives/src/clickoutside.ts
|
|
33
|
+
;// CONCATENATED MODULE: ../../packages/directives/src/clickoutside.ts
|
|
207
34
|
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
35
|
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
36
|
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; }
|
|
@@ -211,7 +38,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
211
38
|
* Tencent is pleased to support the open source community by making
|
|
212
39
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
213
40
|
*
|
|
214
|
-
* Copyright (C)
|
|
41
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
215
42
|
*
|
|
216
43
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
217
44
|
*
|
|
@@ -330,16 +157,16 @@ ClickOutside.install = function (app) {
|
|
|
330
157
|
};
|
|
331
158
|
/* harmony default export */ const clickoutside = ((/* unused pure expression or super */ null && (ClickOutside)));
|
|
332
159
|
// EXTERNAL MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
333
|
-
var esm_typeof = __webpack_require__(
|
|
160
|
+
var esm_typeof = __webpack_require__(6522);
|
|
334
161
|
// EXTERNAL MODULE: external "../popover"
|
|
335
|
-
var popover_ = __webpack_require__(
|
|
336
|
-
;// ../../packages/directives/src/ellipsis.ts
|
|
162
|
+
var popover_ = __webpack_require__(563);
|
|
163
|
+
;// CONCATENATED MODULE: ../../packages/directives/src/ellipsis.ts
|
|
337
164
|
|
|
338
165
|
/*
|
|
339
166
|
* Tencent is pleased to support the open source community by making
|
|
340
167
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
341
168
|
*
|
|
342
|
-
* Copyright (C)
|
|
169
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
343
170
|
*
|
|
344
171
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
345
172
|
*
|
|
@@ -444,14 +271,14 @@ var ellipsis = {
|
|
|
444
271
|
};
|
|
445
272
|
/* harmony default export */ const src_ellipsis = ((/* unused pure expression or super */ null && (ellipsis)));
|
|
446
273
|
// EXTERNAL MODULE: ../../node_modules/normalize-wheel/index.js
|
|
447
|
-
var normalize_wheel = __webpack_require__(
|
|
274
|
+
var normalize_wheel = __webpack_require__(2439);
|
|
448
275
|
var normalize_wheel_default = /*#__PURE__*/__webpack_require__.n(normalize_wheel);
|
|
449
|
-
;// ../../packages/directives/src/mousewheel.ts
|
|
276
|
+
;// CONCATENATED MODULE: ../../packages/directives/src/mousewheel.ts
|
|
450
277
|
/*
|
|
451
278
|
* Tencent is pleased to support the open source community by making
|
|
452
279
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
453
280
|
*
|
|
454
|
-
* Copyright (C)
|
|
281
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
455
282
|
*
|
|
456
283
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
457
284
|
*
|
|
@@ -489,20 +316,18 @@ var mousewheel = {
|
|
|
489
316
|
};
|
|
490
317
|
/* harmony default export */ const src_mousewheel = ((/* unused pure expression or super */ null && (mousewheel)));
|
|
491
318
|
// EXTERNAL MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
492
|
-
var defineProperty = __webpack_require__(
|
|
319
|
+
var defineProperty = __webpack_require__(6666);
|
|
493
320
|
// EXTERNAL MODULE: ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
|
494
|
-
var toConsumableArray = __webpack_require__(
|
|
321
|
+
var toConsumableArray = __webpack_require__(7930);
|
|
495
322
|
// EXTERNAL MODULE: external "vue"
|
|
496
|
-
var external_vue_ = __webpack_require__(
|
|
323
|
+
var external_vue_ = __webpack_require__(6609);
|
|
497
324
|
// 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
|
|
325
|
+
var shared_ = __webpack_require__(9253);
|
|
326
|
+
;// CONCATENATED MODULE: external "@popperjs/core"
|
|
327
|
+
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
328
|
+
var y = x => () => x
|
|
329
|
+
const core_namespaceObject = x({ ["createPopper"]: () => __WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__.createPopper });
|
|
330
|
+
;// CONCATENATED MODULE: ../../packages/directives/src/tooltips.ts
|
|
506
331
|
|
|
507
332
|
|
|
508
333
|
|
|
@@ -512,7 +337,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
512
337
|
* Tencent is pleased to support the open source community by making
|
|
513
338
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
514
339
|
*
|
|
515
|
-
* Copyright (C)
|
|
340
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
516
341
|
*
|
|
517
342
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
518
343
|
*
|
|
@@ -567,9 +392,6 @@ var tooltips = {
|
|
|
567
392
|
hide(el);
|
|
568
393
|
}, 100);
|
|
569
394
|
});
|
|
570
|
-
el.addEventListener('click', function () {
|
|
571
|
-
hide(el);
|
|
572
|
-
});
|
|
573
395
|
popper.addEventListener('mouseleave', function () {
|
|
574
396
|
clearTimeout(delayTimeout);
|
|
575
397
|
hideTimeout = setTimeout(function () {
|
|
@@ -583,7 +405,7 @@ var tooltips = {
|
|
|
583
405
|
show(el);
|
|
584
406
|
clearTimeout(delayTimeout);
|
|
585
407
|
}, opts.delay);
|
|
586
|
-
} else if (popper.hasAttribute('data-show')) {
|
|
408
|
+
} else if (!el.contains(event.target) && popper.hasAttribute('data-show')) {
|
|
587
409
|
hide(el);
|
|
588
410
|
}
|
|
589
411
|
});
|
|
@@ -692,6 +514,7 @@ function renderArrow() {
|
|
|
692
514
|
* @returns popper实例
|
|
693
515
|
*/
|
|
694
516
|
function createPopperInstance(el, popper) {
|
|
517
|
+
if (!tooltips_nodeList.get(el)) return;
|
|
695
518
|
var _nodeList$get = tooltips_nodeList.get(el),
|
|
696
519
|
opts = _nodeList$get.opts;
|
|
697
520
|
var placement = opts.placement,
|
|
@@ -732,6 +555,7 @@ function createPopperInstance(el, popper) {
|
|
|
732
555
|
* @param el
|
|
733
556
|
*/
|
|
734
557
|
function show(el) {
|
|
558
|
+
if (!tooltips_nodeList.get(el)) return;
|
|
735
559
|
var _nodeList$get2 = tooltips_nodeList.get(el),
|
|
736
560
|
popper = _nodeList$get2.popper,
|
|
737
561
|
opts = _nodeList$get2.opts;
|
|
@@ -794,24 +618,20 @@ 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.
|
|
813
633
|
*
|
|
814
|
-
* Copyright (C)
|
|
634
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
815
635
|
*
|
|
816
636
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
817
637
|
*
|
|
@@ -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,254 +681,60 @@ 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
|
-
* @typechecks
|
|
684
|
+
* @providesModule ExecutionEnvironment
|
|
895
685
|
*/
|
|
896
686
|
|
|
687
|
+
/*jslint evil: true */
|
|
688
|
+
|
|
689
|
+
|
|
690
|
+
|
|
691
|
+
var canUseDOM = !!(
|
|
692
|
+
typeof window !== 'undefined' &&
|
|
693
|
+
window.document &&
|
|
694
|
+
window.document.createElement
|
|
695
|
+
);
|
|
897
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.
|
|
702
|
+
*/
|
|
703
|
+
var ExecutionEnvironment = {
|
|
898
704
|
|
|
899
|
-
|
|
705
|
+
canUseDOM: canUseDOM,
|
|
900
706
|
|
|
901
|
-
|
|
707
|
+
canUseWorkers: typeof Worker !== 'undefined',
|
|
902
708
|
|
|
709
|
+
canUseEventListeners:
|
|
710
|
+
canUseDOM && !!(window.addEventListener || window.attachEvent),
|
|
903
711
|
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
712
|
+
canUseViewport: canUseDOM && !!window.screen,
|
|
713
|
+
|
|
714
|
+
isInWorker: !canUseDOM // For now, this is true - might change in the future.
|
|
715
|
+
|
|
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.
|
|
913
|
-
*
|
|
914
|
-
* If you need to react to the mouse wheel in a predictable way, this code is
|
|
915
|
-
* like your bestest friend. * hugs *
|
|
727
|
+
* Copyright 2004-present Facebook. All Rights Reserved.
|
|
916
728
|
*
|
|
917
|
-
*
|
|
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.
|
|
918
736
|
*
|
|
919
|
-
*
|
|
920
|
-
* 'mousewheel' -- Chrome, IE(6+), Opera, Safari
|
|
921
|
-
* 'MozMousePixelScroll' -- FF(3.5 only!) (2010-2013) -- don't bother!
|
|
922
|
-
* 'DOMMouseScroll' -- FF(0.9.7+) since 2003
|
|
923
|
-
*
|
|
924
|
-
* So what to do? The is the best:
|
|
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:
|
|
737
|
+
* Usage is straightforward:
|
|
1141
738
|
*
|
|
1142
739
|
* if (UserAgent_DEPRECATED.ie()) {
|
|
1143
740
|
* // IE
|
|
@@ -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
|
+
}
|
|
1250
|
+
|
|
1301
1251
|
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
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
|
+
};
|
|
1311
1264
|
|
|
1265
|
+
module.exports = normalizeWheel;
|
|
1312
1266
|
|
|
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
|
-
},
|
|
1322
1267
|
|
|
1268
|
+
/***/ }),
|
|
1323
1269
|
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
*
|
|
1327
|
-
*
|
|
1328
|
-
* @return float|NaN Version number (if match) or NaN.
|
|
1329
|
-
*/
|
|
1330
|
-
webkit: function() {
|
|
1331
|
-
return _populate() || _webkit;
|
|
1332
|
-
},
|
|
1270
|
+
/***/ 563:
|
|
1271
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
1333
1272
|
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
*/
|
|
1338
|
-
safari: function() {
|
|
1339
|
-
return UserAgent_DEPRECATED.webkit();
|
|
1340
|
-
},
|
|
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"] });
|
|
1341
1276
|
|
|
1342
|
-
|
|
1343
|
-
* Check if the UA is a Chrome browser.
|
|
1344
|
-
*
|
|
1345
|
-
*
|
|
1346
|
-
* @return float|NaN Version number (if match) or NaN.
|
|
1347
|
-
*/
|
|
1348
|
-
chrome : function() {
|
|
1349
|
-
return _populate() || _chrome;
|
|
1350
|
-
},
|
|
1277
|
+
/***/ }),
|
|
1351
1278
|
|
|
1279
|
+
/***/ 9253:
|
|
1280
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
1352
1281
|
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
* @return bool `true' if the user's OS is Windows.
|
|
1357
|
-
*/
|
|
1358
|
-
windows: function() {
|
|
1359
|
-
return _populate() || _windows;
|
|
1360
|
-
},
|
|
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 });
|
|
1361
1285
|
|
|
1286
|
+
/***/ }),
|
|
1362
1287
|
|
|
1363
|
-
|
|
1364
|
-
|
|
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
|
-
},
|
|
1288
|
+
/***/ 6609:
|
|
1289
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
1372
1290
|
|
|
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
|
-
},
|
|
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 });
|
|
1381
1294
|
|
|
1382
|
-
|
|
1383
|
-
* Check if the user is running on an iPhone or iPod platform.
|
|
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
|
-
},
|
|
1295
|
+
/***/ }),
|
|
1391
1296
|
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
},
|
|
1297
|
+
/***/ 926:
|
|
1298
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
1395
1299
|
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
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
|
+
}
|
|
1400
1308
|
|
|
1401
|
-
|
|
1402
|
-
return _populate() || _android;
|
|
1403
|
-
},
|
|
1309
|
+
/***/ }),
|
|
1404
1310
|
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
}
|
|
1408
|
-
};
|
|
1311
|
+
/***/ 74:
|
|
1312
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
1409
1313
|
|
|
1410
|
-
|
|
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);
|
|
1454
1384
|
|
|
1455
|
-
module.exports = __webpack_require__(5022);
|
|
1456
1385
|
|
|
1457
1386
|
|
|
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
|
+
}
|
|
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,58 @@ __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 checkbox_y =
|
|
1608
|
-
const checkbox_namespaceObject = checkbox_x({ ["default"]: () =>
|
|
1609
|
-
;// external "../checkbox/checkbox.less"
|
|
1610
|
-
var checkbox_less_x = (y)
|
|
1611
|
-
|
|
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 "lodash/merge"
|
|
1578
|
+
var merge_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
1579
|
+
var merge_y = x => () => x
|
|
1580
|
+
const merge_namespaceObject = merge_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_merge_cf99375a__["default"] });
|
|
1581
|
+
;// CONCATENATED MODULE: external "../checkbox"
|
|
1582
|
+
var checkbox_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
1583
|
+
var checkbox_y = x => () => x
|
|
1584
|
+
const checkbox_namespaceObject = checkbox_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_checkbox_13b1cb4a__["default"] });
|
|
1585
|
+
;// CONCATENATED MODULE: external "../checkbox/checkbox.less"
|
|
1586
|
+
var checkbox_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
1587
|
+
var checkbox_less_y = x => () => x
|
|
1614
1588
|
const checkbox_less_namespaceObject = checkbox_less_x({ });
|
|
1615
|
-
;// ../../packages/cascader/src/cascader-panel.tsx
|
|
1589
|
+
;// CONCATENATED MODULE: ../../packages/cascader/src/cascader-panel.tsx
|
|
1616
1590
|
|
|
1617
1591
|
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
1592
|
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); }
|
|
@@ -1621,7 +1595,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
1621
1595
|
* Tencent is pleased to support the open source community by making
|
|
1622
1596
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
1623
1597
|
*
|
|
1624
|
-
* Copyright (C)
|
|
1598
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
1625
1599
|
*
|
|
1626
1600
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
1627
1601
|
*
|
|
@@ -1671,7 +1645,8 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
1671
1645
|
var t = (0,config_provider_namespaceObject.useLocale)('cascader');
|
|
1672
1646
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
|
1673
1647
|
resolveClassName = _usePrefix.resolveClassName;
|
|
1674
|
-
var
|
|
1648
|
+
var _toRefs = (0,external_vue_.toRefs)(props),
|
|
1649
|
+
store = _toRefs.store;
|
|
1675
1650
|
var menus = (0,external_vue_.reactive)({
|
|
1676
1651
|
list: [props.store.getNodes()]
|
|
1677
1652
|
});
|
|
@@ -1695,7 +1670,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
1695
1670
|
* @param value - 选中的值数组
|
|
1696
1671
|
*/
|
|
1697
1672
|
var updateCheckValue = function updateCheckValue(value) {
|
|
1698
|
-
if (value.length === 0) {
|
|
1673
|
+
if (!value || value.length === 0) {
|
|
1699
1674
|
menus.list = menus.list.slice(0, 1);
|
|
1700
1675
|
activePath.value = [];
|
|
1701
1676
|
}
|
|
@@ -1710,10 +1685,10 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
1710
1685
|
// 判断是否为初始加载
|
|
1711
1686
|
var isInitialLoad = checkValue.value.length === 0;
|
|
1712
1687
|
// 如果是初始加载或单选情况,按原来的逻辑处理
|
|
1713
|
-
if (isInitialLoad || !store.config.multiple) {
|
|
1688
|
+
if (isInitialLoad || !store.value.config.multiple) {
|
|
1714
1689
|
var targetList = [];
|
|
1715
1690
|
// 处理多选情况
|
|
1716
|
-
if (store.config.multiple) {
|
|
1691
|
+
if (store.value.config.multiple) {
|
|
1717
1692
|
var _iterator = _createForOfIteratorHelper(value),
|
|
1718
1693
|
_step;
|
|
1719
1694
|
try {
|
|
@@ -1734,7 +1709,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
1734
1709
|
}
|
|
1735
1710
|
// 执行展开操作
|
|
1736
1711
|
targetList.forEach(function (id) {
|
|
1737
|
-
var node = store.getNodeById(id);
|
|
1712
|
+
var node = store.value.getNodeById(id);
|
|
1738
1713
|
if (node) {
|
|
1739
1714
|
// 只展开,不需要重复触发
|
|
1740
1715
|
var expandNode = function expandNode(node) {
|
|
@@ -1775,7 +1750,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
1775
1750
|
}
|
|
1776
1751
|
if (node.config.multiple) {
|
|
1777
1752
|
// 如果checkAnyLevel,返回所有check的节点; 否则只check 叶子节点
|
|
1778
|
-
var targets = store.config.checkAnyLevel ? store.getCheckedNodes() : store.getCheckedLeafNodes();
|
|
1753
|
+
var targets = store.value.config.checkAnyLevel ? store.value.getCheckedNodes() : store.value.getCheckedLeafNodes();
|
|
1779
1754
|
checkValue.value = targets.map(function (node) {
|
|
1780
1755
|
return node.path;
|
|
1781
1756
|
}); // 如果任意级别可选,当前节点即为所选内容
|
|
@@ -1798,15 +1773,15 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
1798
1773
|
activePath.value.push(node);
|
|
1799
1774
|
return;
|
|
1800
1775
|
}
|
|
1801
|
-
if (store.config.isRemote && !node.isLeaf) {
|
|
1776
|
+
if (store.value.config.isRemote && !node.isLeaf) {
|
|
1802
1777
|
node.loading = true;
|
|
1803
1778
|
var updateNodes = function updateNodes(nodeData) {
|
|
1804
|
-
store.appendNodes(nodeData, node || null);
|
|
1779
|
+
store.value.appendNodes(nodeData, node || null);
|
|
1805
1780
|
menus.list.push(node.children);
|
|
1806
1781
|
activePath.value.push(node);
|
|
1807
1782
|
node.loading = false;
|
|
1808
1783
|
};
|
|
1809
|
-
store.config.remoteMethod(node, updateNodes);
|
|
1784
|
+
store.value.config.remoteMethod(node, updateNodes);
|
|
1810
1785
|
}
|
|
1811
1786
|
};
|
|
1812
1787
|
/**
|
|
@@ -1867,6 +1842,17 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
1867
1842
|
}
|
|
1868
1843
|
});
|
|
1869
1844
|
};
|
|
1845
|
+
// 监听store.config.multiple属性的变化,当切换单选/多选模式时需要重新初始化面板
|
|
1846
|
+
(0,external_vue_.watch)(function () {
|
|
1847
|
+
return store.value.config.multiple;
|
|
1848
|
+
}, function (newVal, oldVal) {
|
|
1849
|
+
if (newVal !== oldVal) {
|
|
1850
|
+
// 当multiple属性变化时,重置面板状态
|
|
1851
|
+
menus.list = [store.value.getNodes()];
|
|
1852
|
+
activePath.value = [];
|
|
1853
|
+
checkValue.value = [];
|
|
1854
|
+
}
|
|
1855
|
+
});
|
|
1870
1856
|
var noDataText = t.value.noData;
|
|
1871
1857
|
var emptyText = t.value.emptyText;
|
|
1872
1858
|
/**
|
|
@@ -1973,15 +1959,20 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
1973
1959
|
};
|
|
1974
1960
|
return (0,external_vue_.createVNode)("div", {
|
|
1975
1961
|
"class": this.resolveClassName('cascader-panel-wrapper')
|
|
1976
|
-
}, [this.isFiltering ? searchPanelRender() : this.menus.list.map(function (menu) {
|
|
1962
|
+
}, [this.isFiltering ? searchPanelRender() : this.menus.list.map(function (menu, index) {
|
|
1963
|
+
var _this$$slots$panel, _this$$slots;
|
|
1977
1964
|
return (0,external_vue_.createVNode)("ul", {
|
|
1978
1965
|
"style": {
|
|
1979
1966
|
height: _this.panelHeight,
|
|
1980
1967
|
width: _this.panelWidth
|
|
1981
1968
|
},
|
|
1982
1969
|
"class": [_this.resolveClassName('cascader-panel'), _this.resolveClassName('scroll-y')]
|
|
1983
|
-
}, [
|
|
1984
|
-
|
|
1970
|
+
}, [(_this$$slots$panel = (_this$$slots = _this.$slots).panel) === null || _this$$slots$panel === void 0 ? void 0 : _this$$slots$panel.call(_this$$slots, {
|
|
1971
|
+
nodes: menu,
|
|
1972
|
+
level: index,
|
|
1973
|
+
activePath: _this.activePath
|
|
1974
|
+
}), menu.length ? menu.map(function (node) {
|
|
1975
|
+
var _this$$slots$default, _this$$slots2;
|
|
1985
1976
|
return (0,external_vue_.createVNode)("li", (0,external_vue_.mergeProps)({
|
|
1986
1977
|
"class": [_this.resolveClassName('cascader-node'), {
|
|
1987
1978
|
'is-selected': _this.isNodeInPath(node)
|
|
@@ -2001,7 +1992,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
2001
1992
|
"onChange": function onChange(val) {
|
|
2002
1993
|
return _this.checkNode(node, !!val);
|
|
2003
1994
|
}
|
|
2004
|
-
}, null), (_this$$slots$default = (_this$$
|
|
1995
|
+
}, null), (_this$$slots$default = (_this$$slots2 = _this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots2, {
|
|
2005
1996
|
node: node,
|
|
2006
1997
|
data: node.data
|
|
2007
1998
|
}), !node.isLeaf ? _this.iconRender(node) : '']);
|
|
@@ -2011,15 +2002,15 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
2011
2002
|
})]);
|
|
2012
2003
|
}
|
|
2013
2004
|
}));
|
|
2014
|
-
;// ../../node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
2005
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
2015
2006
|
function _classCallCheck(instance, Constructor) {
|
|
2016
2007
|
if (!(instance instanceof Constructor)) {
|
|
2017
2008
|
throw new TypeError("Cannot call a class as a function");
|
|
2018
2009
|
}
|
|
2019
2010
|
}
|
|
2020
2011
|
// EXTERNAL MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
2021
|
-
var toPropertyKey = __webpack_require__(
|
|
2022
|
-
;// ../../node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
2012
|
+
var toPropertyKey = __webpack_require__(3795);
|
|
2013
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
2023
2014
|
|
|
2024
2015
|
function _defineProperties(target, props) {
|
|
2025
2016
|
for (var i = 0; i < props.length; i++) {
|
|
@@ -2038,14 +2029,14 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
2038
2029
|
});
|
|
2039
2030
|
return Constructor;
|
|
2040
2031
|
}
|
|
2041
|
-
;// ../../packages/cascader/src/node.ts
|
|
2032
|
+
;// CONCATENATED MODULE: ../../packages/cascader/src/node.ts
|
|
2042
2033
|
|
|
2043
2034
|
|
|
2044
2035
|
/*
|
|
2045
2036
|
* Tencent is pleased to support the open source community by making
|
|
2046
2037
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
2047
2038
|
*
|
|
2048
|
-
* Copyright (C)
|
|
2039
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
2049
2040
|
*
|
|
2050
2041
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
2051
2042
|
*
|
|
@@ -2235,14 +2226,14 @@ var Node = /*#__PURE__*/function () {
|
|
|
2235
2226
|
return Node;
|
|
2236
2227
|
}();
|
|
2237
2228
|
/* harmony default export */ const src_node = (Node);
|
|
2238
|
-
;// ../../packages/cascader/src/store.ts
|
|
2229
|
+
;// CONCATENATED MODULE: ../../packages/cascader/src/store.ts
|
|
2239
2230
|
|
|
2240
2231
|
|
|
2241
2232
|
/*
|
|
2242
2233
|
* Tencent is pleased to support the open source community by making
|
|
2243
2234
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
2244
2235
|
*
|
|
2245
|
-
* Copyright (C)
|
|
2236
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
2246
2237
|
*
|
|
2247
2238
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
2248
2239
|
*
|
|
@@ -2389,13 +2380,13 @@ var Store = /*#__PURE__*/function () {
|
|
|
2389
2380
|
return Store;
|
|
2390
2381
|
}();
|
|
2391
2382
|
/* harmony default export */ const src_store = (Store);
|
|
2392
|
-
;// ../../packages/cascader/src/cascader.tsx
|
|
2383
|
+
;// CONCATENATED MODULE: ../../packages/cascader/src/cascader.tsx
|
|
2393
2384
|
|
|
2394
2385
|
/*
|
|
2395
2386
|
* Tencent is pleased to support the open source community by making
|
|
2396
2387
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
2397
2388
|
*
|
|
2398
|
-
* Copyright (C)
|
|
2389
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
2399
2390
|
*
|
|
2400
2391
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
2401
2392
|
*
|
|
@@ -2430,6 +2421,7 @@ var Store = /*#__PURE__*/function () {
|
|
|
2430
2421
|
|
|
2431
2422
|
|
|
2432
2423
|
|
|
2424
|
+
|
|
2433
2425
|
/**
|
|
2434
2426
|
* Cascader 组件
|
|
2435
2427
|
* 用于展示级联选择器,支持多选、单选、搜索、远程加载等功能。
|
|
@@ -2458,12 +2450,14 @@ var Store = /*#__PURE__*/function () {
|
|
|
2458
2450
|
childrenKey: shared_.PropTypes.string.def('children'),
|
|
2459
2451
|
separator: shared_.PropTypes.string.def('/'),
|
|
2460
2452
|
limitOneLine: shared_.PropTypes.bool.def(false),
|
|
2453
|
+
popoverOptions: Object,
|
|
2461
2454
|
extCls: shared_.PropTypes.string.def(''),
|
|
2462
2455
|
filterMethod: shared_.PropTypes.func,
|
|
2463
2456
|
scrollHeight: shared_.PropTypes.oneOfType([shared_.PropTypes.number, shared_.PropTypes.string]).def(216),
|
|
2464
2457
|
scrollWidth: shared_.PropTypes.oneOfType([shared_.PropTypes.number, shared_.PropTypes.string]).def('auto'),
|
|
2465
2458
|
customTextFillback: shared_.PropTypes.func,
|
|
2466
2459
|
customTagsFillback: shared_.PropTypes.func,
|
|
2460
|
+
changeEmitsNodes: shared_.PropTypes.bool.def(false),
|
|
2467
2461
|
collapseTags: {
|
|
2468
2462
|
type: Boolean,
|
|
2469
2463
|
"default": true
|
|
@@ -2479,14 +2473,15 @@ var Store = /*#__PURE__*/function () {
|
|
|
2479
2473
|
var emit = _ref.emit,
|
|
2480
2474
|
slots = _ref.slots;
|
|
2481
2475
|
var t = (0,config_provider_namespaceObject.useLocale)('cascader');
|
|
2482
|
-
var separator = props.separator
|
|
2483
|
-
multiple = props.multiple;
|
|
2476
|
+
var separator = props.separator;
|
|
2484
2477
|
// 用useHover自定义hook来处理鼠标hover状态
|
|
2485
2478
|
var _useHover = (0,select_namespaceObject.useHover)(),
|
|
2486
2479
|
isHover = _useHover.isHover,
|
|
2487
2480
|
setHover = _useHover.setHover,
|
|
2488
2481
|
cancelHover = _useHover.cancelHover;
|
|
2489
2482
|
var store = (0,external_vue_.ref)(new src_store(props));
|
|
2483
|
+
// 用于处理在 removeTag 时, popOver panel 触发 clickOutside 消失的问题
|
|
2484
|
+
var isAlways = (0,external_vue_.ref)(false);
|
|
2490
2485
|
// 定义selectedText变量用于记录当前选择的值的文本
|
|
2491
2486
|
var selectedText = (0,external_vue_.ref)('');
|
|
2492
2487
|
// 定义selectedTags变量用于记录多选模式下已选的tag
|
|
@@ -2523,7 +2518,8 @@ var Store = /*#__PURE__*/function () {
|
|
|
2523
2518
|
var inputRef = (0,external_vue_.ref)(null);
|
|
2524
2519
|
// 用computed定义placeholder变量,用于处理props中的placeholder属性
|
|
2525
2520
|
var placeholder = (0,external_vue_.computed)(function () {
|
|
2526
|
-
|
|
2521
|
+
var placeholder = props.placeholder ? props.placeholder : t.value.pleaseSelect;
|
|
2522
|
+
return modelValue.value.length === 0 ? placeholder : '';
|
|
2527
2523
|
});
|
|
2528
2524
|
var displayText = (0,external_vue_.computed)(function () {
|
|
2529
2525
|
if (props.customTextFillback) {
|
|
@@ -2551,7 +2547,7 @@ var Store = /*#__PURE__*/function () {
|
|
|
2551
2547
|
// 更新选中
|
|
2552
2548
|
var updateValue = function updateValue(val) {
|
|
2553
2549
|
// 更新多选情况下的选中标签
|
|
2554
|
-
if (multiple) {
|
|
2550
|
+
if (props.multiple) {
|
|
2555
2551
|
store.value.setNodesCheck(val); // 同步节点选中的状态
|
|
2556
2552
|
selectedTags.value = store.value.getCheckedNodes().filter(function (node) {
|
|
2557
2553
|
return store.value.config.checkAnyLevel || node.isLeaf;
|
|
@@ -2588,18 +2584,25 @@ var Store = /*#__PURE__*/function () {
|
|
|
2588
2584
|
};
|
|
2589
2585
|
// 移除tag
|
|
2590
2586
|
var removeTag = function removeTag(value, index, e) {
|
|
2587
|
+
isAlways.value = true;
|
|
2591
2588
|
e.stopPropagation();
|
|
2592
2589
|
var current = JSON.parse(JSON.stringify(value));
|
|
2593
2590
|
var tag = current.splice(index, 1)[0];
|
|
2594
2591
|
isEdit.value = true; // 删除时也在编辑态,触发overflowTagIndex的计算
|
|
2595
2592
|
store.value.removeTag(tag);
|
|
2596
2593
|
updateValue(current);
|
|
2597
|
-
emit('update:modelValue', store.value.getCheckedNodes()
|
|
2594
|
+
emit('update:modelValue', store.value.getCheckedNodes()
|
|
2595
|
+
// a. 开启 checkAnyLevel 后,不过滤任何节点
|
|
2596
|
+
// b. 关闭 checkAnyLevel 后,只返回叶子节点,避免父节点在子节点全部选中后,同时出现在 modelValue 中
|
|
2597
|
+
.filter(function (node) {
|
|
2598
|
+
return store.value.config.checkAnyLevel || node.isLeaf;
|
|
2599
|
+
}).map(function (node) {
|
|
2598
2600
|
return node.path;
|
|
2599
2601
|
}));
|
|
2600
2602
|
// 计算过后,关闭编辑状态
|
|
2601
2603
|
setTimeout(function () {
|
|
2602
2604
|
isEdit.value = isFocus.value;
|
|
2605
|
+
isAlways.value = false;
|
|
2603
2606
|
});
|
|
2604
2607
|
};
|
|
2605
2608
|
// modelValue的监听函数
|
|
@@ -2608,7 +2611,8 @@ var Store = /*#__PURE__*/function () {
|
|
|
2608
2611
|
updateValue(value);
|
|
2609
2612
|
// 派发相关事件
|
|
2610
2613
|
emit('update:modelValue', value);
|
|
2611
|
-
|
|
2614
|
+
var emitValue = props.changeEmitsNodes ? store.value.getNodeByValue(value) : value;
|
|
2615
|
+
oldValue !== undefined && emit('change', emitValue); // oldValue = undefined代表初始化,init不派发change事件
|
|
2612
2616
|
// 如果有过滤搜索,选择后,自动focus到input
|
|
2613
2617
|
inputRef === null || inputRef === void 0 || (_inputRef$value = inputRef.value) === null || _inputRef$value === void 0 || _inputRef$value.focus();
|
|
2614
2618
|
// 选择后过滤条件清除,面板初始化渲染
|
|
@@ -2627,10 +2631,9 @@ var Store = /*#__PURE__*/function () {
|
|
|
2627
2631
|
// popover激活后,focus相应事件
|
|
2628
2632
|
isFocus.value = val.isShow;
|
|
2629
2633
|
(0,external_vue_.nextTick)(function () {
|
|
2630
|
-
var _inputRef$value2;
|
|
2631
|
-
val && ((_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0 ? void 0 : _inputRef$value2.focus());
|
|
2632
2634
|
if (val.isShow) {
|
|
2633
|
-
var _cascaderPanel$value;
|
|
2635
|
+
var _inputRef$value2, _cascaderPanel$value;
|
|
2636
|
+
(_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0 || _inputRef$value2.focus();
|
|
2634
2637
|
(_cascaderPanel$value = cascaderPanel.value) === null || _cascaderPanel$value === void 0 || _cascaderPanel$value.scrollToSelected(); // 滚动到选中的节点
|
|
2635
2638
|
}
|
|
2636
2639
|
});
|
|
@@ -2686,6 +2689,22 @@ var Store = /*#__PURE__*/function () {
|
|
|
2686
2689
|
deep: true,
|
|
2687
2690
|
immediate: true
|
|
2688
2691
|
});
|
|
2692
|
+
// 监听multiple属性的变化,当切换单选/多选模式时需要重新初始化组件
|
|
2693
|
+
(0,external_vue_.watch)(function () {
|
|
2694
|
+
return props.multiple;
|
|
2695
|
+
}, function (newVal, oldVal) {
|
|
2696
|
+
if (newVal !== oldVal) {
|
|
2697
|
+
// 重新初始化store
|
|
2698
|
+
store.value = new src_store(props);
|
|
2699
|
+
// 重置selectedTags和selectedText状态
|
|
2700
|
+
selectedTags.value = [];
|
|
2701
|
+
selectedText.value = '';
|
|
2702
|
+
// 更新组件状态
|
|
2703
|
+
updateValue(props.modelValue);
|
|
2704
|
+
}
|
|
2705
|
+
}, {
|
|
2706
|
+
immediate: true
|
|
2707
|
+
});
|
|
2689
2708
|
// 定义overflowTagIndex变量,用于处理tag的折叠
|
|
2690
2709
|
var tagList = (0,external_vue_.computed)(function () {
|
|
2691
2710
|
return props.customTagsFillback ? props.customTagsFillback(props.modelValue, store.value.getFlattedNodes()) : selectedTags.value.map(function (item) {
|
|
@@ -2713,6 +2732,7 @@ var Store = /*#__PURE__*/function () {
|
|
|
2713
2732
|
overflowTagIndex: overflowTagIndex,
|
|
2714
2733
|
isCollapse: isCollapse,
|
|
2715
2734
|
isFocus: isFocus,
|
|
2735
|
+
isAlways: isAlways,
|
|
2716
2736
|
store: store,
|
|
2717
2737
|
updateValue: updateValue,
|
|
2718
2738
|
selectedText: selectedText,
|
|
@@ -2743,7 +2763,8 @@ var Store = /*#__PURE__*/function () {
|
|
|
2743
2763
|
var _this = this;
|
|
2744
2764
|
// 定义suffixIcon函数,用于根据不同情况渲染后缀图标
|
|
2745
2765
|
var suffixIcon = function suffixIcon() {
|
|
2746
|
-
|
|
2766
|
+
var _this$modelValue;
|
|
2767
|
+
if (_this.clearable && _this.isHover && !_this.disabled && ((_this$modelValue = _this.modelValue) === null || _this$modelValue === void 0 ? void 0 : _this$modelValue.length) > 0) {
|
|
2747
2768
|
// 当可清空、鼠标悬浮且未禁用时,渲染清空图标
|
|
2748
2769
|
return (0,external_vue_.createVNode)(icon_namespaceObject.Close, {
|
|
2749
2770
|
"class": _this.resolveClassName('icon-clear-icon'),
|
|
@@ -2806,22 +2827,27 @@ var Store = /*#__PURE__*/function () {
|
|
|
2806
2827
|
_this.multiple ? null : (0,external_vue_.createVNode)("span", null, [_this.displayText])
|
|
2807
2828
|
);
|
|
2808
2829
|
};
|
|
2830
|
+
/** popover 基础配置 */
|
|
2831
|
+
var basePopoverOptions = (0,merge_namespaceObject["default"])({
|
|
2832
|
+
always: this.isAlways,
|
|
2833
|
+
arrow: false,
|
|
2834
|
+
boundary: 'body',
|
|
2835
|
+
disabled: this.disabled,
|
|
2836
|
+
hideIgnoreReference: true,
|
|
2837
|
+
offset: 4,
|
|
2838
|
+
placement: 'bottom-start',
|
|
2839
|
+
referenceCls: this.resolveClassName('cascader-popover-reference'),
|
|
2840
|
+
theme: "light ".concat(this.resolveClassName('cascader-popover')),
|
|
2841
|
+
trigger: 'click'
|
|
2842
|
+
}, this.popoverOptions);
|
|
2809
2843
|
// 定义popoverRender函数,用于渲染弹出框
|
|
2810
2844
|
var popoverRender = function popoverRender() {
|
|
2811
|
-
return (0,external_vue_.createVNode)(popover_["default"], {
|
|
2845
|
+
return (0,external_vue_.createVNode)(popover_["default"], (0,external_vue_.mergeProps)({
|
|
2812
2846
|
"ref": "popover",
|
|
2813
2847
|
"class": _this.resolveClassName('cascader-popover-wrapper'),
|
|
2814
|
-
"arrow": false,
|
|
2815
|
-
"boundary": "body",
|
|
2816
|
-
"disabled": _this.disabled,
|
|
2817
|
-
"offset": 4,
|
|
2818
|
-
"placement": "bottom-start",
|
|
2819
|
-
"referenceCls": _this.resolveClassName('cascader-popover-reference'),
|
|
2820
|
-
"theme": "light ".concat(_this.resolveClassName('cascader-popover')),
|
|
2821
|
-
"trigger": "click",
|
|
2822
2848
|
"onAfterHidden": _this.popoverChangeEmitter,
|
|
2823
2849
|
"onAfterShow": _this.popoverChangeEmitter
|
|
2824
|
-
}, {
|
|
2850
|
+
}, basePopoverOptions), {
|
|
2825
2851
|
"default": function _default() {
|
|
2826
2852
|
return _this.$slots.trigger ? _this.$slots.trigger({
|
|
2827
2853
|
selected: _this.modelValue,
|
|
@@ -2842,6 +2868,7 @@ var Store = /*#__PURE__*/function () {
|
|
|
2842
2868
|
}, null) : textRender()]);
|
|
2843
2869
|
},
|
|
2844
2870
|
content: function content() {
|
|
2871
|
+
var _this$$slots$extensio, _this$$slots;
|
|
2845
2872
|
return (0,external_vue_.createVNode)("div", {
|
|
2846
2873
|
"class": _this.resolveClassName('cascader-popover')
|
|
2847
2874
|
}, [(0,external_vue_.createVNode)(cascader_panel, {
|
|
@@ -2862,8 +2889,11 @@ var Store = /*#__PURE__*/function () {
|
|
|
2862
2889
|
return _this.$slots["default"] ? _this.$slots["default"](scope) : (0,external_vue_.createVNode)("span", {
|
|
2863
2890
|
"class": _this.resolveClassName('cascader-node-name')
|
|
2864
2891
|
}, [scope.node.name]);
|
|
2892
|
+
},
|
|
2893
|
+
panel: function panel(scope) {
|
|
2894
|
+
return _this.$slots.panel ? _this.$slots.panel(scope) : null;
|
|
2865
2895
|
}
|
|
2866
|
-
})]);
|
|
2896
|
+
}), (_this$$slots$extensio = (_this$$slots = _this.$slots).extension) === null || _this$$slots$extensio === void 0 ? void 0 : _this$$slots$extensio.call(_this$$slots)]);
|
|
2867
2897
|
}
|
|
2868
2898
|
});
|
|
2869
2899
|
};
|
|
@@ -2872,7 +2902,7 @@ var Store = /*#__PURE__*/function () {
|
|
|
2872
2902
|
}, [this.$slots.trigger ? popoverRender() : (0,external_vue_.createVNode)("div", {
|
|
2873
2903
|
"ref": "bkCascaderRef",
|
|
2874
2904
|
"class": [this.resolveClassName('cascader'), this.extCls, {
|
|
2875
|
-
'is-unselected': this.modelValue.length === 0,
|
|
2905
|
+
'is-unselected': !this.modelValue || this.modelValue.length === 0,
|
|
2876
2906
|
'is-hover': this.isHover,
|
|
2877
2907
|
'is-filterable': this.filterable,
|
|
2878
2908
|
'is-focus': this.isFocus,
|
|
@@ -2886,12 +2916,12 @@ var Store = /*#__PURE__*/function () {
|
|
|
2886
2916
|
}, [suffixIcon(), popoverRender()])]);
|
|
2887
2917
|
}
|
|
2888
2918
|
}));
|
|
2889
|
-
;// ../../packages/cascader/src/index.ts
|
|
2919
|
+
;// CONCATENATED MODULE: ../../packages/cascader/src/index.ts
|
|
2890
2920
|
/*
|
|
2891
2921
|
* Tencent is pleased to support the open source community by making
|
|
2892
2922
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
2893
2923
|
*
|
|
2894
|
-
* Copyright (C)
|
|
2924
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
2895
2925
|
*
|
|
2896
2926
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
2897
2927
|
*
|
|
@@ -2920,6 +2950,8 @@ var BkCascader = (0,shared_.withInstallProps)(cascader, {
|
|
|
2920
2950
|
});
|
|
2921
2951
|
/* harmony default export */ const cascader_src = (BkCascader);
|
|
2922
2952
|
|
|
2953
|
+
})();
|
|
2954
|
+
|
|
2923
2955
|
var __webpack_exports__BkCascader = __webpack_exports__.BkCascader;
|
|
2924
2956
|
var __webpack_exports__BkCascaderPanel = __webpack_exports__.BkCascaderPanel;
|
|
2925
2957
|
var __webpack_exports__default = __webpack_exports__["default"];
|